* [PATCH] sh: Add I2C device support for EcoVec24
@ 2009-09-10 1:39 Kuninori Morimoto
2009-09-11 4:20 ` Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Kuninori Morimoto @ 2009-09-10 1:39 UTC (permalink / raw)
To: linux-sh
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
---
arch/sh/boards/mach-ecovec24/setup.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c
index 428d118..6721b25 100644
--- a/arch/sh/boards/mach-ecovec24/setup.c
+++ b/arch/sh/boards/mach-ecovec24/setup.c
@@ -324,6 +324,13 @@ static struct platform_device ceu1_device = {
},
};
+/* I2C device */
+static struct i2c_board_info i2c1_devices[] = {
+ {
+ I2C_BOARD_INFO("r2025sd", 0x32),
+ },
+};
+
static struct platform_device *ecovec_devices[] __initdata = {
&heartbeat_device,
&nor_flash_device,
@@ -506,10 +513,14 @@ static int __init devices_setup(void)
gpio_request(GPIO_FN_VIO1_CLK, NULL);
platform_resource_setup_memory(&ceu1_device, "ceu1", 4 << 20);
+ /* enable I2C device */
+ i2c_register_board_info(1, i2c1_devices,
+ ARRAY_SIZE(i2c1_devices));
+
return platform_add_devices(ecovec_devices,
ARRAY_SIZE(ecovec_devices));
}
-device_initcall(devices_setup);
+arch_initcall(devices_setup);
static struct sh_machine_vector mv_ecovec __initmv = {
.mv_name = "R0P7724 (EcoVec)",
--
1.6.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] sh: Add I2C device support for EcoVec24
2009-09-10 1:39 [PATCH] sh: Add I2C device support for EcoVec24 Kuninori Morimoto
@ 2009-09-11 4:20 ` Paul Mundt
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2009-09-11 4:20 UTC (permalink / raw)
To: linux-sh
On Thu, Sep 10, 2009 at 10:39:37AM +0900, Kuninori Morimoto wrote:
> Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
> ---
> arch/sh/boards/mach-ecovec24/setup.c | 13 ++++++++++++-
> 1 files changed, 12 insertions(+), 1 deletions(-)
On Thu, Sep 10, 2009 at 10:39:48AM +0900, Kuninori Morimoto wrote:
> Kuninori Morimoto:
> sh: add romimage-macros.h
> sh: Add romImage support for EcoVec24
> sh: EcoVec24: write MAC address in boot
> sh: EcoVec24: add HIZA setting for LED
> sh: USB disable process is needed if romImage boot for EcoVec24
> sh: Add EcoVec24 romImage defconfig
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-11 4:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-10 1:39 [PATCH] sh: Add I2C device support for EcoVec24 Kuninori Morimoto
2009-09-11 4:20 ` Paul Mundt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.