x86: add generic GPIO support to x86