summaryrefslogtreecommitdiffstats
path: root/board/keymile
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2014-10-22 12:13:11 +0200
committerTom Rini <trini@ti.com>2014-10-23 09:59:21 -0400
commitd5c5132f878394b7487d3f6da0d469aa72737318 (patch)
tree6e0879ddf2c632f0ed23cdbd6250bcf65f75b423 /board/keymile
parent4aceea2088e04724900a9c6f22c48d99293206f2 (diff)
downloadtalos-obmc-uboot-d5c5132f878394b7487d3f6da0d469aa72737318.tar.gz
talos-obmc-uboot-d5c5132f878394b7487d3f6da0d469aa72737318.zip
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.c4
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 cd508d22bc..6621464009 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);
OpenPOWER on IntegriCloud