[MIPS] Add generic GPIO support