GPIODIR
pl061->csave_regs.gpio_dir = readb(pl061->base + GPIODIR);
if (readb(pl061->base + GPIODIR) & BIT(offset))
gpiodir = readb(pl061->base + GPIODIR);
writeb(gpiodir, pl061->base + GPIODIR);
gpiodir = readb(pl061->base + GPIODIR);
writeb(gpiodir, pl061->base + GPIODIR);