* [2.6.28-rc2-omap] board-h4: list those eeproms
@ 2008-10-29 7:11 David Brownell
2008-10-29 17:51 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: David Brownell @ 2008-10-29 7:11 UTC (permalink / raw)
To: linux-omap
From: David Brownell <dbrownell@users.sourceforge.net>
Declare the two 1Kbit EEPROMs included in the H4 board stack.
One is on the CPU card; the other is on the mainboard.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
---
arch/arm/mach-omap2/board-h4.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
--- a/arch/arm/mach-omap2/board-h4.c
+++ b/arch/arm/mach-omap2/board-h4.c
@@ -22,6 +22,7 @@
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/i2c.h>
+#include <linux/i2c/at24.h>
#include <linux/i2c/menelaus.h>
#include <linux/spi/spi.h>
#include <linux/spi/tsc210x.h>
@@ -627,6 +628,11 @@ static struct ov9640_platform_data h4_ov
};
#endif
+static struct at24_platform_data m24c01 = {
+ .byte_len = SZ_1K / 8,
+ .page_size = 16,
+};
+
static struct i2c_board_info __initdata h4_i2c_board_info[] = {
{
I2C_BOARD_INFO("rv5c387a", 0x32),
@@ -646,6 +652,14 @@ static struct i2c_board_info __initdata
.platform_data = &h4_ov9640_platform_data,
},
#endif
+ { /* EEPROM on mainboard */
+ I2C_BOARD_INFO("24c01", 0x52),
+ .platform_data = &m24c01,
+ },
+ { /* EEPROM on cpu card */
+ I2C_BOARD_INFO("24c01", 0x57),
+ .platform_data = &m24c01,
+ },
};
static void __init omap_h4_init(void)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [2.6.28-rc2-omap] board-h4: list those eeproms
2008-10-29 7:11 [2.6.28-rc2-omap] board-h4: list those eeproms David Brownell
@ 2008-10-29 17:51 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2008-10-29 17:51 UTC (permalink / raw)
To: David Brownell; +Cc: linux-omap
* David Brownell <david-b@pacbell.net> [081029 00:11]:
> From: David Brownell <dbrownell@users.sourceforge.net>
>
> Declare the two 1Kbit EEPROMs included in the H4 board stack.
> One is on the CPU card; the other is on the mainboard.
Pushed and added to omap2-upstream queue.
Tony
> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
> ---
> arch/arm/mach-omap2/board-h4.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> --- a/arch/arm/mach-omap2/board-h4.c
> +++ b/arch/arm/mach-omap2/board-h4.c
> @@ -22,6 +22,7 @@
> #include <linux/err.h>
> #include <linux/clk.h>
> #include <linux/i2c.h>
> +#include <linux/i2c/at24.h>
> #include <linux/i2c/menelaus.h>
> #include <linux/spi/spi.h>
> #include <linux/spi/tsc210x.h>
> @@ -627,6 +628,11 @@ static struct ov9640_platform_data h4_ov
> };
> #endif
>
> +static struct at24_platform_data m24c01 = {
> + .byte_len = SZ_1K / 8,
> + .page_size = 16,
> +};
> +
> static struct i2c_board_info __initdata h4_i2c_board_info[] = {
> {
> I2C_BOARD_INFO("rv5c387a", 0x32),
> @@ -646,6 +652,14 @@ static struct i2c_board_info __initdata
> .platform_data = &h4_ov9640_platform_data,
> },
> #endif
> + { /* EEPROM on mainboard */
> + I2C_BOARD_INFO("24c01", 0x52),
> + .platform_data = &m24c01,
> + },
> + { /* EEPROM on cpu card */
> + I2C_BOARD_INFO("24c01", 0x57),
> + .platform_data = &m24c01,
> + },
> };
>
> static void __init omap_h4_init(void)
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-29 17:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-29 7:11 [2.6.28-rc2-omap] board-h4: list those eeproms David Brownell
2008-10-29 17:51 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox