diff options
author | Tom Rini <trini@konsulko.com> | 2015-09-13 17:25:16 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-09-13 17:25:16 -0400 |
commit | 850f788709cef8f7d53d571aec3bfb73b14c5531 (patch) | |
tree | 0641e0c973667223693da2b12c866460fd61af1c /drivers/gpio | |
parent | 4c669e2d3b0d65aeb5593c04b719284a41013c87 (diff) | |
parent | 21871138b7686b36dd8ae97cab5dc1e9c5c6e183 (diff) | |
download | u-boot-850f788709cef8f7d53d571aec3bfb73b14c5531.tar.gz u-boot-850f788709cef8f7d53d571aec3bfb73b14c5531.tar.bz2 u-boot-850f788709cef8f7d53d571aec3bfb73b14c5531.zip |
Merge branch 'rmobile' of git://git.denx.de/u-boot-sh
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/sh_pfc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/sh_pfc.c b/drivers/gpio/sh_pfc.c index 7a5af20a2a..a0eac137c2 100644 --- a/drivers/gpio/sh_pfc.c +++ b/drivers/gpio/sh_pfc.c @@ -75,7 +75,8 @@ static int gpio_read_bit(struct pinmux_data_reg *dr, debug("read_bit: addr = %lx, pos = %ld, " "r_width = %ld\n", dr->reg, pos, dr->reg_width); - return (gpio_read_raw_reg(dr->mapped_reg, dr->reg_width) >> pos) & 1; + return + (gpio_read_raw_reg(dr->mapped_reg + 0x4, dr->reg_width) >> pos) & 1; } static void gpio_write_bit(struct pinmux_data_reg *dr, |