diff options
author | Stefan Roese <sr@denx.de> | 2007-07-20 15:03:44 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-07-20 15:03:44 +0200 |
commit | a71d96eac8130b53a91f93cd10c70fca0db18d52 (patch) | |
tree | e65126f8b6f778fe01ac121e9550dc5777471269 /cpu | |
parent | 531e3e8b831f357056448fa573137d5fb37000fd (diff) | |
download | u-boot-imx-a71d96eac8130b53a91f93cd10c70fca0db18d52.zip u-boot-imx-a71d96eac8130b53a91f93cd10c70fca0db18d52.tar.gz u-boot-imx-a71d96eac8130b53a91f93cd10c70fca0db18d52.tar.bz2 |
ppc4xx: Fix bug with default GPIO output value
As spotted by Matthias Fuchs, the default output values for all GPIO1
outputs were not setup correctly. This patch fixes this issue.
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/ppc4xx/gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/ppc4xx/gpio.c b/cpu/ppc4xx/gpio.c index 5235203..0d0e273 100644 --- a/cpu/ppc4xx/gpio.c +++ b/cpu/ppc4xx/gpio.c @@ -193,12 +193,12 @@ void gpio_set_chip_configuration(void) * 0 -> low level * else -> don't touch */ - reg = in32(GPIO0_OR); + reg = in32(GPIO1_OR); if (gpio_tab[gpio_core][i].out_val == GPIO_OUT_1) reg |= (0x80000000 >> (i)); else if (gpio_tab[gpio_core][i].out_val == GPIO_OUT_0) reg &= ~(0x80000000 >> (i)); - out32(GPIO0_OR, reg); + out32(GPIO1_OR, reg); reg = in32(GPIO1_TCR) | (0x80000000 >> (i)); out32(GPIO1_TCR, reg); |