Some adaptions to make gpio working on cubieboard with cubian. Needs more cleanup though.