diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-05 10:12:53 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-05 10:12:53 +0000 |
commit | 5c105d9f3fd086aff195d3849dcf847d6b0bd927 (patch) | |
tree | 1229a11f725bfa58aa7c57a76898553bb5f6654a /target/linux/at91/patches/900-AT91-Add-external-RTC-for-Flexibity-board.patch | |
download | openwrt-5c105d9f3fd086aff195d3849dcf847d6b0bd927.tar.gz openwrt-5c105d9f3fd086aff195d3849dcf847d6b0bd927.zip |
branch Attitude Adjustment
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33625 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/at91/patches/900-AT91-Add-external-RTC-for-Flexibity-board.patch')
-rw-r--r-- | target/linux/at91/patches/900-AT91-Add-external-RTC-for-Flexibity-board.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/target/linux/at91/patches/900-AT91-Add-external-RTC-for-Flexibity-board.patch b/target/linux/at91/patches/900-AT91-Add-external-RTC-for-Flexibity-board.patch new file mode 100644 index 000000000..2b67be1e4 --- /dev/null +++ b/target/linux/at91/patches/900-AT91-Add-external-RTC-for-Flexibity-board.patch @@ -0,0 +1,35 @@ +--- a/arch/arm/mach-at91/board-flexibity.c ++++ b/arch/arm/mach-at91/board-flexibity.c +@@ -1,7 +1,7 @@ + /* + * linux/arch/arm/mach-at91/board-flexibity.c + * +- * Copyright (C) 2010 Flexibity ++ * Copyright (C) 2010-2011 Flexibity + * Copyright (C) 2005 SAN People + * Copyright (C) 2006 Atmel + * +@@ -62,6 +62,13 @@ static struct at91_udc_data __initdata f + .pullup_pin = -EINVAL, /* pull-up driven by UDC */ + }; + ++/* I2C devices */ ++static struct i2c_board_info __initdata flexibity_i2c_devices[] = { ++ { ++ I2C_BOARD_INFO("ds1307", 0x68), ++ }, ++}; ++ + /* SPI devices */ + static struct spi_board_info flexibity_spi_devices[] = { + { /* DataFlash chip */ +@@ -141,6 +148,9 @@ static void __init flexibity_board_init( + at91_add_device_usbh(&flexibity_usbh_data); + /* USB Device */ + at91_add_device_udc(&flexibity_udc_data); ++ /* I2C */ ++ at91_add_device_i2c(flexibity_i2c_devices, ++ ARRAY_SIZE(flexibity_i2c_devices)); + /* SPI */ + at91_add_device_spi(flexibity_spi_devices, + ARRAY_SIZE(flexibity_spi_devices)); |