From: Anand Gadiyar <gadiyar@ti.com>
To: barebox@lists.infradead.org
Cc: Anand Gadiyar <gadiyar@ti.com>
Subject: [PATCH 2/4] panda: add i2c and twlcore to panda
Date: Mon, 21 May 2012 16:00:11 +0530 [thread overview]
Message-ID: <1337596213-15239-3-git-send-email-gadiyar@ti.com> (raw)
In-Reply-To: <1337596213-15239-1-git-send-email-gadiyar@ti.com>
Add i2c-omap and twlcore driver to panda board.
(Based on similar patch for pcm049).
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
---
Tested on OMAP4430 Pandaboard
arch/arm/boards/panda/board.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boards/panda/board.c b/arch/arm/boards/panda/board.c
index 26d365c..fcca5dd 100644
--- a/arch/arm/boards/panda/board.c
+++ b/arch/arm/boards/panda/board.c
@@ -20,6 +20,7 @@
#include <mach/gpio.h>
#include <environment.h>
#include <mach/xload.h>
+#include <i2c/i2c.h>
static int board_revision;
@@ -106,6 +107,12 @@ static void __init panda_boardrev_init(void)
pr_info("PandaBoard Revision: %03d\n", board_revision);
}
+static struct i2c_board_info i2c_devices[] = {
+ {
+ I2C_BOARD_INFO("twl6030", 0x48),
+ },
+};
+
static int panda_devices_init(void)
{
panda_boardrev_init();
@@ -134,6 +141,12 @@ static int panda_devices_init(void)
sr32(OMAP44XX_SCRM_ALTCLKSRC, 2, 2, 0x3);
}
+ i2c_register_board_info(0, i2c_devices, ARRAY_SIZE(i2c_devices));
+ add_generic_device("i2c-omap", DEVICE_ID_DYNAMIC,
+ NULL, 0x48070000, 0x1000,
+ IORESOURCE_MEM, NULL);
+
+
add_generic_device("omap-hsmmc", DEVICE_ID_DYNAMIC, NULL, 0x4809C100, SZ_4K,
IORESOURCE_MEM, NULL);
panda_ehci_init();
--
1.7.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-05-21 10:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-21 10:30 [PATCH 0/4] panda: misc patches Anand Gadiyar
2012-05-21 10:30 ` [PATCH 1/4] panda: fix crash when not using barebox as second stage Anand Gadiyar
2012-05-21 10:30 ` Anand Gadiyar [this message]
2012-05-21 10:30 ` [PATCH 3/4] panda: add LED support Anand Gadiyar
2012-05-21 10:30 ` [PATCH 4/4] panda: update defconfig for i2c and led support Anand Gadiyar
2012-05-21 19:42 ` [PATCH 0/4] panda: misc patches Sascha Hauer
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=1337596213-15239-3-git-send-email-gadiyar@ti.com \
--to=gadiyar@ti.com \
--cc=barebox@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