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:
parent
3fe489609d
commit
0da6a0f064
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue