Re: [PATCH] AT91: Add external RTC for Flexibity board

From: Maxim Osipov
Date: Tue May 10 2011 - 06:04:13 EST


Hi,

On Sat, May 7, 2011 at 12:47 PM, Maxim Osipov <maxim.osipov@xxxxxxxxx> wrote:
>
> This patch enables external RTC support on AT91 Flexibity board.
>
> Signed-off-by: Maxim Osipov <maxim.osipov@xxxxxxxxx>
> ---
> Âarch/arm/mach-at91/board-flexibity.c | Â 12 +++++++++++-
> Â1 files changed, 11 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-at91/board-flexibity.c b/arch/arm/mach-at91/board-flexibity.c
> index c8a62dc..4fdc96c 100644
> --- 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
> Â*
> @@ -65,6 +65,13 @@ static struct at91_udc_data __initdata flexibity_udc_data = {
>    Â.pullup_pin   = 0,      Â/* 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 */
> @@ -143,6 +150,9 @@ static void __init flexibity_board_init(void)
> Â Â Â Â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));
> --
> 1.7.4.1
>
>

If no comments on the patch - could someone commit it please? Or
should I submit it to the Russell's patch tracking system?

Kind regards,
Maxim
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/