9
0
Fork 0

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>
This commit is contained in:
Anand Gadiyar 2012-05-21 16:00:11 +05:30 committed by Sascha Hauer
parent 3fe489609d
commit 0da6a0f064
1 changed files with 13 additions and 0 deletions

View File

@ -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();