diff options
author | Shubhrajyoti Datta <shubhrajyoti@ti.com> | 2010-09-23 21:22:47 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-09-23 21:22:47 -0400 |
commit | 0df891bb9c36c57d09c8b7cf28904e3672d93f9e (patch) | |
tree | d236bff2dbc47390bd6087d2d9be5e459db67220 /arch/arm/mach-omap2/board-4430sdp.c | |
parent | b30a3f6257ed2105259b404d419b4964e363928c (diff) |
hmc5843: Digital compass board file
The board file changes for the digital compass hmc5843.
The interface to the device is i2c.
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-4430sdp.c')
-rw-r--r-- | arch/arm/mach-omap2/board-4430sdp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index 9447644774c2..5b6a48dad86f 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c | |||
@@ -412,6 +412,11 @@ static struct i2c_board_info __initdata sdp4430_i2c_3_boardinfo[] = { | |||
412 | I2C_BOARD_INFO("tmp105", 0x48), | 412 | I2C_BOARD_INFO("tmp105", 0x48), |
413 | }, | 413 | }, |
414 | }; | 414 | }; |
415 | static struct i2c_board_info __initdata sdp4430_i2c_4_boardinfo[] = { | ||
416 | { | ||
417 | I2C_BOARD_INFO("hmc5843", 0x1e), | ||
418 | }, | ||
419 | }; | ||
415 | static int __init omap4_i2c_init(void) | 420 | static int __init omap4_i2c_init(void) |
416 | { | 421 | { |
417 | /* | 422 | /* |
@@ -423,7 +428,8 @@ static int __init omap4_i2c_init(void) | |||
423 | omap_register_i2c_bus(2, 400, NULL, 0); | 428 | omap_register_i2c_bus(2, 400, NULL, 0); |
424 | omap_register_i2c_bus(3, 400, sdp4430_i2c_3_boardinfo, | 429 | omap_register_i2c_bus(3, 400, sdp4430_i2c_3_boardinfo, |
425 | ARRAY_SIZE(sdp4430_i2c_3_boardinfo)); | 430 | ARRAY_SIZE(sdp4430_i2c_3_boardinfo)); |
426 | omap_register_i2c_bus(4, 400, NULL, 0); | 431 | omap_register_i2c_bus(4, 400, sdp4430_i2c_4_boardinfo, |
432 | ARRAY_SIZE(sdp4430_i2c_4_boardinfo)); | ||
427 | return 0; | 433 | return 0; |
428 | } | 434 | } |
429 | static void __init omap_4430sdp_init(void) | 435 | static void __init omap_4430sdp_init(void) |