replace the rest of the gpio code from mako jb kernel