summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <p.marczak@samsung.com>2014-10-24 17:45:03 +0200
committerSimon Glass <sjg@chromium.org>2014-10-27 19:21:07 -0600
commit4381aad947b907dca5697656dd13b9b0223a2e00 (patch)
tree35e3a1961c5b73626fbb2e326399b40b0ab94034
parent523943d429cd2a10f02360bb5d0bb8bda1d0eb01 (diff)
downloadu-boot-imx-4381aad947b907dca5697656dd13b9b0223a2e00.zip
u-boot-imx-4381aad947b907dca5697656dd13b9b0223a2e00.tar.gz
u-boot-imx-4381aad947b907dca5697656dd13b9b0223a2e00.tar.bz2
universal: request soft i2c gpio
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r--board/samsung/universal_c210/universal.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/samsung/universal_c210/universal.c b/board/samsung/universal_c210/universal.c
index 22b0849..df46713 100644
--- a/board/samsung/universal_c210/universal.c
+++ b/board/samsung/universal_c210/universal.c
@@ -328,6 +328,8 @@ void exynos_enable_ldo(unsigned int onoff)
int exynos_init(void)
{
+ char buf[16];
+
gd->bd->bi_arch_number = MACH_TYPE_UNIVERSAL_C210;
switch (get_hwrev()) {
@@ -352,6 +354,13 @@ int exynos_init(void)
break;
}
+ /* Request soft I2C gpios */
+ sprintf(buf, "soft_i2c_scl");
+ gpio_request(CONFIG_SOFT_I2C_GPIO_SCL, buf);
+
+ sprintf(buf, "soft_i2c_sda");
+ gpio_request(CONFIG_SOFT_I2C_GPIO_SDA, buf);
+
check_hw_revision();
printf("HW Revision:\t0x%x\n", board_rev);