diff options
author | Stefan Roese <sr@denx.de> | 2014-10-22 12:13:11 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-10-23 09:59:21 -0400 |
commit | d5c5132f878394b7487d3f6da0d469aa72737318 (patch) | |
tree | 6e0879ddf2c632f0ed23cdbd6250bcf65f75b423 /board/keymile | |
parent | 4aceea2088e04724900a9c6f22c48d99293206f2 (diff) | |
download | u-boot-imx-d5c5132f878394b7487d3f6da0d469aa72737318.zip u-boot-imx-d5c5132f878394b7487d3f6da0d469aa72737318.tar.gz u-boot-imx-d5c5132f878394b7487d3f6da0d469aa72737318.tar.bz2 |
arm: marvell: Extract kirkwood gpio functions into new common file gpio.c
This makes is possible to use those gpio functions from other MVEBU SoC's as well.
Signed-off-by: Stefan Roese <sr@denx.de>
Tested-by: Luka Perkov <luka@openwrt.org>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
Diffstat (limited to 'board/keymile')
-rw-r--r-- | board/keymile/km_arm/km_arm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/keymile/km_arm/km_arm.c b/board/keymile/km_arm/km_arm.c index cd508d2..6621464 100644 --- a/board/keymile/km_arm/km_arm.c +++ b/board/keymile/km_arm/km_arm.c @@ -222,8 +222,8 @@ int board_early_init_f(void) u32 tmp; /* set the 2 bitbang i2c pins as output gpios */ - tmp = readl(KW_GPIO0_BASE + 4); - writel(tmp & (~KM_KIRKWOOD_SOFT_I2C_GPIOS) , KW_GPIO0_BASE + 4); + tmp = readl(MVEBU_GPIO0_BASE + 4); + writel(tmp & (~KM_KIRKWOOD_SOFT_I2C_GPIOS) , MVEBU_GPIO0_BASE + 4); #endif /* adjust SDRAM size for bank 0 */ kw_sdram_size_adjust(0); |