[PATCH v4 07/10] ARM: DaVinci: I2C driver initialization for dm6467

Sudhakar Rajashekhara sudhakar.raj at ti.com
Wed Sep 10 04:34:09 CDT 2008


I2C initialization for dm6467.

Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj at ti.com>
---
 arch/arm/mach-davinci/board-dm6467-evm.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-davinci/board-dm6467-evm.c b/arch/arm/mach-davinci/board-dm6467-evm.c
index 863a3f8..03cd7d1 100644
--- a/arch/arm/mach-davinci/board-dm6467-evm.c
+++ b/arch/arm/mach-davinci/board-dm6467-evm.c
@@ -54,6 +54,16 @@ static struct davinci_board_config_kernel davinci_evm_config[] __initdata = {
 	{ DAVINCI_TAG_UART,     &davinci_evm_uart_config },
 };
 
+static struct davinci_i2c_platform_data i2c_pdata = {
+	.bus_freq       = 100 /* kHz */,
+	.bus_delay      = 0 /* usec */,
+};
+
+static void __init evm_init_i2c(void)
+{
+	davinci_init_i2c(&i2c_pdata);
+}
+
 static void board_init(void)
 {
 	davinci_psc_config(DAVINCI_GPSC_ARMDOMAIN,
@@ -76,6 +86,7 @@ static __init void evm_init(void)
 	platform_add_devices(davinci_evm_devices,
 		ARRAY_SIZE(davinci_evm_devices));
 
+	evm_init_i2c();
 	davinci_board_config = davinci_evm_config;
 	davinci_board_config_size = ARRAY_SIZE(davinci_evm_config);
 	davinci_serial_init();
-- 
1.5.4.1



More information about the Davinci-linux-open-source mailing list