diff options
Diffstat (limited to 'arch/arm/mach-mv78xx0/db78x00-bp-setup.c')
-rw-r--r-- | arch/arm/mach-mv78xx0/db78x00-bp-setup.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/arch/arm/mach-mv78xx0/db78x00-bp-setup.c b/arch/arm/mach-mv78xx0/db78x00-bp-setup.c index 2e285bbb7bbd..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> |
@@ -28,21 +29,22 @@ static struct mv643xx_eth_platform_data db78x00_ge01_data = { | |||
28 | }; | 29 | }; |
29 | 30 | ||
30 | static struct mv643xx_eth_platform_data db78x00_ge10_data = { | 31 | static struct mv643xx_eth_platform_data db78x00_ge10_data = { |
31 | .phy_addr = MV643XX_ETH_PHY_NONE, | 32 | .phy_addr = MV643XX_ETH_PHY_ADDR(10), |
32 | .speed = SPEED_1000, | ||
33 | .duplex = DUPLEX_FULL, | ||
34 | }; | 33 | }; |
35 | 34 | ||
36 | static struct mv643xx_eth_platform_data db78x00_ge11_data = { | 35 | static struct mv643xx_eth_platform_data db78x00_ge11_data = { |
37 | .phy_addr = MV643XX_ETH_PHY_NONE, | 36 | .phy_addr = MV643XX_ETH_PHY_ADDR(11), |
38 | .speed = SPEED_1000, | ||
39 | .duplex = DUPLEX_FULL, | ||
40 | }; | 37 | }; |
41 | 38 | ||
42 | static struct mv_sata_platform_data db78x00_sata_data = { | 39 | static struct mv_sata_platform_data db78x00_sata_data = { |
43 | .n_ports = 2, | 40 | .n_ports = 2, |
44 | }; | 41 | }; |
45 | 42 | ||
43 | static struct i2c_board_info __initdata db78x00_i2c_rtc = { | ||
44 | I2C_BOARD_INFO("ds1338", 0x68), | ||
45 | }; | ||
46 | |||
47 | |||
46 | static void __init db78x00_init(void) | 48 | static void __init db78x00_init(void) |
47 | { | 49 | { |
48 | /* | 50 | /* |
@@ -64,6 +66,8 @@ static void __init db78x00_init(void) | |||
64 | mv78xx0_sata_init(&db78x00_sata_data); | 66 | mv78xx0_sata_init(&db78x00_sata_data); |
65 | mv78xx0_uart0_init(); | 67 | mv78xx0_uart0_init(); |
66 | mv78xx0_uart2_init(); | 68 | mv78xx0_uart2_init(); |
69 | mv78xx0_i2c_init(); | ||
70 | i2c_register_board_info(0, &db78x00_i2c_rtc, 1); | ||
67 | } else { | 71 | } else { |
68 | mv78xx0_uart1_init(); | 72 | mv78xx0_uart1_init(); |
69 | mv78xx0_uart3_init(); | 73 | mv78xx0_uart3_init(); |