aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-omap3beagle.c
diff options
context:
space:
mode:
authorMathieu J. Poirier <mathieu.poirier@canonical.com>2010-09-23 21:22:48 -0400
committerTony Lindgren <tony@atomide.com>2010-09-23 21:22:48 -0400
commite3333f48dd5cb21b8d43d6d3a434055815084f1e (patch)
tree3e590b34dc0ee6b21be58e62b5aca8e4184e9e6b /arch/arm/mach-omap2/board-omap3beagle.c
parentcf74d41ea07fe6066daea7df74d9550bc2c64284 (diff)
omap: Adding beagle i2c eeprom driver to read EDID
Adding i2c eeprom driver to access monitor EDID binary information from user space, something that is required by 'decode-edid' and 'parse-edid'. BugLink: https://bugs.launchpad.net/bugs/608279 Signed-off-by: Mathieu Poirier <mathieu.poirier@canonical.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3beagle.c')
-rw-r--r--arch/arm/mach-omap2/board-omap3beagle.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
index 55348412da76..e27f3bf45a35 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -412,13 +412,19 @@ static struct i2c_board_info __initdata beagle_i2c_boardinfo[] = {
412 }, 412 },
413}; 413};
414 414
415static struct i2c_board_info __initdata beagle_i2c_eeprom[] = {
416 {
417 I2C_BOARD_INFO("eeprom", 0x50),
418 },
419};
420
415static int __init omap3_beagle_i2c_init(void) 421static int __init omap3_beagle_i2c_init(void)
416{ 422{
417 omap_register_i2c_bus(1, 2600, beagle_i2c_boardinfo, 423 omap_register_i2c_bus(1, 2600, beagle_i2c_boardinfo,
418 ARRAY_SIZE(beagle_i2c_boardinfo)); 424 ARRAY_SIZE(beagle_i2c_boardinfo));
419 /* Bus 3 is attached to the DVI port where devices like the pico DLP 425 /* Bus 3 is attached to the DVI port where devices like the pico DLP
420 * projector don't work reliably with 400kHz */ 426 * projector don't work reliably with 400kHz */
421 omap_register_i2c_bus(3, 100, NULL, 0); 427 omap_register_i2c_bus(3, 100, beagle_i2c_eeprom, ARRAY_SIZE(beagle_i2c_eeprom));
422 return 0; 428 return 0;
423} 429}
424 430