From: maxim.osipov@gmail.com (Maxim Osipov)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] AT91: Add external RTC for Flexibity board
Date: Sat, 07 May 2011 12:47:00 +0100 [thread overview]
Message-ID: <4DC53134.8070706@gmail.com> (raw)
Hello,
This patch enables external RTC support on AT91 Flexibity board.
Kind regards,
Maxim
Signed-off-by: Maxim Osipov <maxim.osipov@gmail.com>
---
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
next reply other threads:[~2011-05-07 11:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-07 11:47 Maxim Osipov [this message]
2011-05-10 10:04 ` [PATCH] AT91: Add external RTC for Flexibity board Maxim Osipov
2011-05-10 23:45 ` Jean-Christophe PLAGNIOL-VILLARD
2011-05-11 7:44 ` Andrew Victor
2011-05-11 8:34 ` Nicolas Ferre
2011-10-13 21:11 ` Russell King - ARM Linux
2011-10-14 15:14 ` Maxim Osipov
2011-10-17 10:15 ` Jean-Christophe PLAGNIOL-VILLARD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DC53134.8070706@gmail.com \
--to=maxim.osipov@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).