diff options
author | Anand Gadiyar <gadiyar@ti.com> | 2012-05-21 16:00:11 +0530 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-05-21 21:40:33 +0200 |
commit | 0da6a0f0649f76c9bbfb097824478a9f2900d2a1 (patch) | |
tree | 7e8490aaeb06cf56f52c70bc8d54f31df6a5eb1e /arch | |
parent | 3fe489609dabb0a0e1d4cdc4a57d9dd4bd8e553a (diff) | |
download | barebox-0da6a0f0649f76c9bbfb097824478a9f2900d2a1.tar.gz barebox-0da6a0f0649f76c9bbfb097824478a9f2900d2a1.tar.xz |
panda: add i2c and twlcore to panda
Add i2c-omap and twlcore driver to panda board.
(Based on similar patch for pcm049).
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boards/panda/board.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/boards/panda/board.c b/arch/arm/boards/panda/board.c index 628d3f1e4e..669e9b33c0 100644 --- a/arch/arm/boards/panda/board.c +++ b/arch/arm/boards/panda/board.c @@ -20,6 +20,7 @@ #include <mach/gpio.h> #include <environment.h> #include <mach/xload.h> +#include <i2c/i2c.h> static int board_revision; @@ -105,6 +106,12 @@ static void __init panda_boardrev_init(void) pr_info("PandaBoard Revision: %03d\n", board_revision); } +static struct i2c_board_info i2c_devices[] = { + { + I2C_BOARD_INFO("twl6030", 0x48), + }, +}; + static int panda_devices_init(void) { panda_boardrev_init(); @@ -133,6 +140,12 @@ static int panda_devices_init(void) sr32(OMAP44XX_SCRM_ALTCLKSRC, 2, 2, 0x3); } + i2c_register_board_info(0, i2c_devices, ARRAY_SIZE(i2c_devices)); + add_generic_device("i2c-omap", DEVICE_ID_DYNAMIC, + NULL, 0x48070000, 0x1000, + IORESOURCE_MEM, NULL); + + add_generic_device("omap-hsmmc", DEVICE_ID_DYNAMIC, NULL, 0x4809C100, SZ_4K, IORESOURCE_MEM, NULL); panda_ehci_init(); |