[PATCH 2/3] olpc-xo-1-75.c: Hook up rtc driver to TWSI2
Saadia Baloch
saadia at laptop.org
Fri May 13 13:50:35 EDT 2011
Signed-off-by: Saadia Baloch <saadia at laptop.org>
---
arch/arm/mach-mmp/olpc-xo-1-75.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-mmp/olpc-xo-1-75.c b/arch/arm/mach-mmp/olpc-xo-1-75.c
index 7a8f518..99349d5 100644
--- a/arch/arm/mach-mmp/olpc-xo-1-75.c
+++ b/arch/arm/mach-mmp/olpc-xo-1-75.c
@@ -68,6 +68,7 @@ int olpc_xo_1_75_ec_cmd(u8 *cmd, u8 *resp, int resp_len)
/* platform devices *********************************************************/
+
static struct resource olpc_xo_1_75_ec_resources[] = {
{
.start = APB_PHYS_BASE + 0x037000,
@@ -181,6 +182,13 @@ static struct i2c_board_info olpc_xo_1_75_twsi4_info[] = {
},
};
+static struct i2c_board_info olpc_xo_1_75_twsi2_info[] = {
+ [0] = {
+ .type = "rtc_idt1338",
+ .addr = 0x68,
+ },
+};
+
void olpc_xo_1_75_poweroff(void)
{
u8 ec_cmd[8] = {0};
@@ -206,7 +214,7 @@ static void __init olpc_xo_1_75_init(void)
mmp2_add_uart(1);
mmp2_add_uart(3);
mmp2_add_twsi(4, NULL, ARRAY_AND_SIZE(olpc_xo_1_75_twsi4_info));
-
+ mmp2_add_twsi(2, NULL, ARRAY_AND_SIZE(olpc_xo_1_75_twsi2_info));
platform_device_register(&olpc_xo_1_75_ec);
platform_device_register(&olpc_xo_1_75_ehci);
--
1.7.4.1
More information about the Devel
mailing list