[i2c] [patch 3/4] csb337 uses new-style rtc-ds1307

David Brownell david-b at pacbell.net
Mon May 14 18:46:04 CEST 2007


Update CSB337 board specific init to support "new style" rtc-ds1307 driver.

Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>

---
Tested ... relies on two preceding patches updating rtc-ds1307 driver.

--- at91.orig/arch/arm/mach-at91/board-csb337.c	2007-05-10 07:50:34.000000000 -0700
+++ at91/arch/arm/mach-at91/board-csb337.c	2007-05-10 09:55:42.000000000 -0700
@@ -85,6 +85,13 @@ static struct at91_udc_data __initdata c
 	.pullup_pin	= AT91_PIN_PA24,
 };
 
+static struct i2c_board_info __initdata csb337_i2c_devices[] = {
+	{ I2C_BOARD_INFO("rtc-ds1307", 0x68),
+	  .type = "ds1307",
+	},
+};
+
+
 static struct at91_cf_data __initdata csb337_cf_data = {
 	/*
 	 * connector P4 on the CSB 337 mates to
@@ -199,6 +206,8 @@ static void __init csb337_board_init(voi
 	at91_add_device_udc(&csb337_udc_data);
 	/* I2C */
 	at91_add_device_i2c();
+	i2c_register_board_info(0, csb337_i2c_devices,
+			ARRAY_SIZE(csb337_i2c_devices));
 	/* Compact Flash */
 	at91_set_gpio_input(AT91_PIN_PB22, 1);		/* IOIS16 */
 	at91_add_device_cf(&csb337_cf_data);



More information about the i2c mailing list