summaryrefslogtreecommitdiff
path: root/board/samsung/trats
diff options
context:
space:
mode:
authorƁukasz Majewski <l.majewski@samsung.com>2012-09-04 23:15:21 +0000
committerHeiko Schocher <hs@denx.de>2012-09-17 09:40:18 +0200
commitfd8dca83ed4b9d960d3b9a0450da12bb32f512f8 (patch)
treee67244717ffaa827ee336f8fc4b5e713984e5226 /board/samsung/trats
parent7ca8f73a0ad9176e6e45190a3490bbeb3d80e018 (diff)
downloadu-boot-imx-fd8dca83ed4b9d960d3b9a0450da12bb32f512f8.zip
u-boot-imx-fd8dca83ed4b9d960d3b9a0450da12bb32f512f8.tar.gz
u-boot-imx-fd8dca83ed4b9d960d3b9a0450da12bb32f512f8.tar.bz2
i2c:soft:multi: Enable soft I2C multibus at Trats development board
This commit enables multibus handling at Samsung's Trats development board. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Cc: Minkyu Kang <mk7.kang@samsung.com> Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board/samsung/trats')
-rw-r--r--board/samsung/trats/trats.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/board/samsung/trats/trats.c b/board/samsung/trats/trats.c
index 4f9cb5a..e11a892 100644
--- a/board/samsung/trats/trats.c
+++ b/board/samsung/trats/trats.c
@@ -75,6 +75,21 @@ int board_init(void)
return 0;
}
+void i2c_init_board(void)
+{
+ struct exynos4_gpio_part1 *gpio1 =
+ (struct exynos4_gpio_part1 *)samsung_get_base_gpio_part1();
+ struct exynos4_gpio_part2 *gpio2 =
+ (struct exynos4_gpio_part2 *)samsung_get_base_gpio_part2();
+
+ /* I2C_5 -> PMIC */
+ s5p_gpio_direction_output(&gpio1->b, 7, 1);
+ s5p_gpio_direction_output(&gpio1->b, 6, 1);
+ /* I2C_9 -> FG */
+ s5p_gpio_direction_output(&gpio2->y4, 0, 1);
+ s5p_gpio_direction_output(&gpio2->y4, 1, 1);
+}
+
int dram_init(void)
{
gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE) +