From: "Trilok Soni" <soni.trilok@gmail.com>
To: linux-omap-open-source@linux.omap.com
Subject: [PATCH 2/3] ARM: OMAP: menelaus chip info for H4 board.
Date: Sat, 26 May 2007 13:58:14 +0530 [thread overview]
Message-ID: <5d5443650705260128vc6f79a0rdaa220dc0527e79d@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 18 bytes --]
--
--Trilok Soni
[-- Attachment #2: 0002-ARM-OMAP-menelaus-chip-info-for-H4-board.patch --]
[-- Type: text/x-patch, Size: 1417 bytes --]
From 0fc7c6966ef0732184c6680b2aa21351fe4382ff Mon Sep 17 00:00:00 2001
From: Trilok Soni <soni.trilok@gmail.com>
Date: Sat, 26 May 2007 19:19:19 +0530
Subject: [PATCH 2/3] ARM: OMAP: menelaus chip info for H4 board.
- Add menelaus i2c chip info for H4 board.
Signed-off-by: Trilok Soni <soni.trilok@gmail.com>
---
arch/arm/mach-omap2/board-h4.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c
index c4ca225..97ce0c6 100644
--- a/arch/arm/mach-omap2/board-h4.c
+++ b/arch/arm/mach-omap2/board-h4.c
@@ -21,6 +21,7 @@
#include <linux/input.h>
#include <linux/err.h>
#include <linux/clk.h>
+#include <linux/i2c.h>
#include <asm/hardware.h>
#include <asm/mach-types.h>
@@ -492,6 +493,15 @@ static void __init tusb_evm_setup(void)
#endif
+static struct i2c_board_info __initdata h4_i2c_board_info[] = {
+#ifdef CONFIG_MENELAUS
+ {
+ I2C_BOARD_INFO("menelaus", 0x72),
+ .irq = INT_24XX_SYS_NIRQ,
+ },
+#endif
+};
+
static void __init omap_h4_init(void)
{
/*
@@ -520,6 +530,9 @@ static void __init omap_h4_init(void)
omap_cfg_reg(V19_24XX_USB1_RCV);
#endif
+ i2c_register_board_info(1, h4_i2c_board_info,
+ ARRAY_SIZE(h4_i2c_board_info));
+
platform_add_devices(h4_devices, ARRAY_SIZE(h4_devices));
omap_board_config = h4_config;
omap_board_config_size = ARRAY_SIZE(h4_config);
--
1.5.0
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
next reply other threads:[~2007-05-26 8:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-26 8:28 Trilok Soni [this message]
2007-05-27 2:44 ` [PATCH 2/3] ARM: OMAP: menelaus chip info for H4 board David Brownell
2007-05-29 12:33 ` Trilok Soni
2007-05-29 13:09 ` David Brownell
2007-05-29 13:29 ` Trilok Soni
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=5d5443650705260128vc6f79a0rdaa220dc0527e79d@mail.gmail.com \
--to=soni.trilok@gmail.com \
--cc=linux-omap-open-source@linux.omap.com \
/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