Commit 948ce6a6 authored by Maxim Osipov's avatar Maxim Osipov Committed by Nicolas Ferre

ARM: at91: Add external RTC for Flexibity board

This patch enables external RTC support on AT91 Flexibity board.
Signed-off-by: default avatarMaxim Osipov <maxim.osipov@gmail.com>
Acked-by: default avatarAndrew Victor <linux@maxim.org.za>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
parent 343754f5
/* /*
* linux/arch/arm/mach-at91/board-flexibity.c * linux/arch/arm/mach-at91/board-flexibity.c
* *
* Copyright (C) 2010 Flexibity * Copyright (C) 2010-2011 Flexibity
* Copyright (C) 2005 SAN People * Copyright (C) 2005 SAN People
* Copyright (C) 2006 Atmel * Copyright (C) 2006 Atmel
* *
...@@ -62,6 +62,13 @@ static struct at91_udc_data __initdata flexibity_udc_data = { ...@@ -62,6 +62,13 @@ static struct at91_udc_data __initdata flexibity_udc_data = {
.pullup_pin = -EINVAL, /* pull-up driven by UDC */ .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 */ /* SPI devices */
static struct spi_board_info flexibity_spi_devices[] = { static struct spi_board_info flexibity_spi_devices[] = {
{ /* DataFlash chip */ { /* DataFlash chip */
...@@ -141,6 +148,9 @@ static void __init flexibity_board_init(void) ...@@ -141,6 +148,9 @@ static void __init flexibity_board_init(void)
at91_add_device_usbh(&flexibity_usbh_data); at91_add_device_usbh(&flexibity_usbh_data);
/* USB Device */ /* USB Device */
at91_add_device_udc(&flexibity_udc_data); at91_add_device_udc(&flexibity_udc_data);
/* I2C */
at91_add_device_i2c(flexibity_i2c_devices,
ARRAY_SIZE(flexibity_i2c_devices));
/* SPI */ /* SPI */
at91_add_device_spi(flexibity_spi_devices, at91_add_device_spi(flexibity_spi_devices,
ARRAY_SIZE(flexibity_spi_devices)); ARRAY_SIZE(flexibity_spi_devices));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment