aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mv78xx0/db78x00-bp-setup.c
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@iki.fi>2009-03-03 14:13:50 -0500
committerNicolas Pitre <nico@cam.org>2009-03-03 21:06:12 -0500
commit693599438909de47fbfa4246bf67d6c535f719b5 (patch)
tree1b0b323d6c12c5df3c22c7f7cf8bde7016aec57c /arch/arm/mach-mv78xx0/db78x00-bp-setup.c
parent5b99d5348304a32dfca92238d27ac4de2b365175 (diff)
[ARM] mv78xx0: wire i2c support
All the pieces were ready, just matter of assembling them together. Signed-off-by: Riku Voipio <riku.voipio@iki.fi> Signed-off-by: Nicolas Pitre <nico@marvell.com>
Diffstat (limited to 'arch/arm/mach-mv78xx0/db78x00-bp-setup.c')
-rw-r--r--arch/arm/mach-mv78xx0/db78x00-bp-setup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-mv78xx0/db78x00-bp-setup.c b/arch/arm/mach-mv78xx0/db78x00-bp-setup.c
index be0a59a6139e..efdabe04c69e 100644
--- a/arch/arm/mach-mv78xx0/db78x00-bp-setup.c
+++ b/arch/arm/mach-mv78xx0/db78x00-bp-setup.c
@@ -14,6 +14,7 @@
14#include <linux/ata_platform.h> 14#include <linux/ata_platform.h>
15#include <linux/mv643xx_eth.h> 15#include <linux/mv643xx_eth.h>
16#include <linux/ethtool.h> 16#include <linux/ethtool.h>
17#include <linux/i2c.h>
17#include <mach/mv78xx0.h> 18#include <mach/mv78xx0.h>
18#include <asm/mach-types.h> 19#include <asm/mach-types.h>
19#include <asm/mach/arch.h> 20#include <asm/mach/arch.h>
@@ -39,6 +40,11 @@ static struct mv_sata_platform_data db78x00_sata_data = {
39 .n_ports = 2, 40 .n_ports = 2,
40}; 41};
41 42
43static struct i2c_board_info __initdata db78x00_i2c_rtc = {
44 I2C_BOARD_INFO("ds1338", 0x68),
45};
46
47
42static void __init db78x00_init(void) 48static void __init db78x00_init(void)
43{ 49{
44 /* 50 /*
@@ -60,6 +66,8 @@ static void __init db78x00_init(void)
60 mv78xx0_sata_init(&db78x00_sata_data); 66 mv78xx0_sata_init(&db78x00_sata_data);
61 mv78xx0_uart0_init(); 67 mv78xx0_uart0_init();
62 mv78xx0_uart2_init(); 68 mv78xx0_uart2_init();
69 mv78xx0_i2c_init();
70 i2c_register_board_info(0, &db78x00_i2c_rtc, 1);
63 } else { 71 } else {
64 mv78xx0_uart1_init(); 72 mv78xx0_uart1_init();
65 mv78xx0_uart3_init(); 73 mv78xx0_uart3_init();