diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-03-28 16:29:51 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-03-28 16:29:51 -0400 |
commit | ed40d0c472b136682b2fcba05f89762859c7374f (patch) | |
tree | 076b83a26bcd63d6158463735dd34c10bbc591dc /arch/arm/mach-orion5x | |
parent | 9e495834e59ca9b29f1a1f63b9f5533bb022ac49 (diff) | |
parent | 5d80f8e5a9dc9c9a94d4aeaa567e219a808b8a4a (diff) |
Merge branch 'origin' into devel
Conflicts:
sound/soc/pxa/pxa2xx-i2s.c
Diffstat (limited to 'arch/arm/mach-orion5x')
-rw-r--r-- | arch/arm/mach-orion5x/common.c | 34 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/rd88f5181l-ge-setup.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/rd88f6183ap-ge-setup.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/wrt350n-v2-setup.c | 9 |
5 files changed, 63 insertions, 9 deletions
diff --git a/arch/arm/mach-orion5x/common.c b/arch/arm/mach-orion5x/common.c index 8a0e49d84256..68cc3efae567 100644 --- a/arch/arm/mach-orion5x/common.c +++ b/arch/arm/mach-orion5x/common.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <plat/ehci-orion.h> | 31 | #include <plat/ehci-orion.h> |
32 | #include <plat/mv_xor.h> | 32 | #include <plat/mv_xor.h> |
33 | #include <plat/orion_nand.h> | 33 | #include <plat/orion_nand.h> |
34 | #include <plat/orion5x_wdt.h> | ||
34 | #include <plat/time.h> | 35 | #include <plat/time.h> |
35 | #include "common.h" | 36 | #include "common.h" |
36 | 37 | ||
@@ -219,14 +220,17 @@ static struct platform_device orion5x_switch_device = { | |||
219 | 220 | ||
220 | void __init orion5x_eth_switch_init(struct dsa_platform_data *d, int irq) | 221 | void __init orion5x_eth_switch_init(struct dsa_platform_data *d, int irq) |
221 | { | 222 | { |
223 | int i; | ||
224 | |||
222 | if (irq != NO_IRQ) { | 225 | if (irq != NO_IRQ) { |
223 | orion5x_switch_resources[0].start = irq; | 226 | orion5x_switch_resources[0].start = irq; |
224 | orion5x_switch_resources[0].end = irq; | 227 | orion5x_switch_resources[0].end = irq; |
225 | orion5x_switch_device.num_resources = 1; | 228 | orion5x_switch_device.num_resources = 1; |
226 | } | 229 | } |
227 | 230 | ||
228 | d->mii_bus = &orion5x_eth_shared.dev; | ||
229 | d->netdev = &orion5x_eth.dev; | 231 | d->netdev = &orion5x_eth.dev; |
232 | for (i = 0; i < d->nr_chips; i++) | ||
233 | d->chip[i].mii_bus = &orion5x_eth_shared.dev; | ||
230 | orion5x_switch_device.dev.platform_data = d; | 234 | orion5x_switch_device.dev.platform_data = d; |
231 | 235 | ||
232 | platform_device_register(&orion5x_switch_device); | 236 | platform_device_register(&orion5x_switch_device); |
@@ -533,6 +537,29 @@ void __init orion5x_xor_init(void) | |||
533 | 537 | ||
534 | 538 | ||
535 | /***************************************************************************** | 539 | /***************************************************************************** |
540 | * Watchdog | ||
541 | ****************************************************************************/ | ||
542 | static struct orion5x_wdt_platform_data orion5x_wdt_data = { | ||
543 | .tclk = 0, | ||
544 | }; | ||
545 | |||
546 | static struct platform_device orion5x_wdt_device = { | ||
547 | .name = "orion5x_wdt", | ||
548 | .id = -1, | ||
549 | .dev = { | ||
550 | .platform_data = &orion5x_wdt_data, | ||
551 | }, | ||
552 | .num_resources = 0, | ||
553 | }; | ||
554 | |||
555 | void __init orion5x_wdt_init(void) | ||
556 | { | ||
557 | orion5x_wdt_data.tclk = orion5x_tclk; | ||
558 | platform_device_register(&orion5x_wdt_device); | ||
559 | } | ||
560 | |||
561 | |||
562 | /***************************************************************************** | ||
536 | * Time handling | 563 | * Time handling |
537 | ****************************************************************************/ | 564 | ****************************************************************************/ |
538 | int orion5x_tclk; | 565 | int orion5x_tclk; |
@@ -631,6 +658,11 @@ void __init orion5x_init(void) | |||
631 | printk(KERN_INFO "Orion: Applying 5281 D0 WFI workaround.\n"); | 658 | printk(KERN_INFO "Orion: Applying 5281 D0 WFI workaround.\n"); |
632 | disable_hlt(); | 659 | disable_hlt(); |
633 | } | 660 | } |
661 | |||
662 | /* | ||
663 | * Register watchdog driver | ||
664 | */ | ||
665 | orion5x_wdt_init(); | ||
634 | } | 666 | } |
635 | 667 | ||
636 | /* | 668 | /* |
diff --git a/arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c b/arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c index 15f53235ee30..9c1ca41730ba 100644 --- a/arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c +++ b/arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c | |||
@@ -94,7 +94,7 @@ static struct mv643xx_eth_platform_data rd88f5181l_fxo_eth_data = { | |||
94 | .duplex = DUPLEX_FULL, | 94 | .duplex = DUPLEX_FULL, |
95 | }; | 95 | }; |
96 | 96 | ||
97 | static struct dsa_platform_data rd88f5181l_fxo_switch_data = { | 97 | static struct dsa_chip_data rd88f5181l_fxo_switch_chip_data = { |
98 | .port_names[0] = "lan2", | 98 | .port_names[0] = "lan2", |
99 | .port_names[1] = "lan1", | 99 | .port_names[1] = "lan1", |
100 | .port_names[2] = "wan", | 100 | .port_names[2] = "wan", |
@@ -103,6 +103,11 @@ static struct dsa_platform_data rd88f5181l_fxo_switch_data = { | |||
103 | .port_names[7] = "lan3", | 103 | .port_names[7] = "lan3", |
104 | }; | 104 | }; |
105 | 105 | ||
106 | static struct dsa_platform_data rd88f5181l_fxo_switch_plat_data = { | ||
107 | .nr_chips = 1, | ||
108 | .chip = &rd88f5181l_fxo_switch_chip_data, | ||
109 | }; | ||
110 | |||
106 | static void __init rd88f5181l_fxo_init(void) | 111 | static void __init rd88f5181l_fxo_init(void) |
107 | { | 112 | { |
108 | /* | 113 | /* |
@@ -117,7 +122,7 @@ static void __init rd88f5181l_fxo_init(void) | |||
117 | */ | 122 | */ |
118 | orion5x_ehci0_init(); | 123 | orion5x_ehci0_init(); |
119 | orion5x_eth_init(&rd88f5181l_fxo_eth_data); | 124 | orion5x_eth_init(&rd88f5181l_fxo_eth_data); |
120 | orion5x_eth_switch_init(&rd88f5181l_fxo_switch_data, NO_IRQ); | 125 | orion5x_eth_switch_init(&rd88f5181l_fxo_switch_plat_data, NO_IRQ); |
121 | orion5x_uart0_init(); | 126 | orion5x_uart0_init(); |
122 | 127 | ||
123 | orion5x_setup_dev_boot_win(RD88F5181L_FXO_NOR_BOOT_BASE, | 128 | orion5x_setup_dev_boot_win(RD88F5181L_FXO_NOR_BOOT_BASE, |
diff --git a/arch/arm/mach-orion5x/rd88f5181l-ge-setup.c b/arch/arm/mach-orion5x/rd88f5181l-ge-setup.c index 8ad3934399d4..ee1399ff0ced 100644 --- a/arch/arm/mach-orion5x/rd88f5181l-ge-setup.c +++ b/arch/arm/mach-orion5x/rd88f5181l-ge-setup.c | |||
@@ -95,7 +95,7 @@ static struct mv643xx_eth_platform_data rd88f5181l_ge_eth_data = { | |||
95 | .duplex = DUPLEX_FULL, | 95 | .duplex = DUPLEX_FULL, |
96 | }; | 96 | }; |
97 | 97 | ||
98 | static struct dsa_platform_data rd88f5181l_ge_switch_data = { | 98 | static struct dsa_chip_data rd88f5181l_ge_switch_chip_data = { |
99 | .port_names[0] = "lan2", | 99 | .port_names[0] = "lan2", |
100 | .port_names[1] = "lan1", | 100 | .port_names[1] = "lan1", |
101 | .port_names[2] = "wan", | 101 | .port_names[2] = "wan", |
@@ -104,6 +104,11 @@ static struct dsa_platform_data rd88f5181l_ge_switch_data = { | |||
104 | .port_names[7] = "lan3", | 104 | .port_names[7] = "lan3", |
105 | }; | 105 | }; |
106 | 106 | ||
107 | static struct dsa_platform_data rd88f5181l_ge_switch_plat_data = { | ||
108 | .nr_chips = 1, | ||
109 | .chip = &rd88f5181l_ge_switch_chip_data, | ||
110 | }; | ||
111 | |||
107 | static struct i2c_board_info __initdata rd88f5181l_ge_i2c_rtc = { | 112 | static struct i2c_board_info __initdata rd88f5181l_ge_i2c_rtc = { |
108 | I2C_BOARD_INFO("ds1338", 0x68), | 113 | I2C_BOARD_INFO("ds1338", 0x68), |
109 | }; | 114 | }; |
@@ -122,7 +127,8 @@ static void __init rd88f5181l_ge_init(void) | |||
122 | */ | 127 | */ |
123 | orion5x_ehci0_init(); | 128 | orion5x_ehci0_init(); |
124 | orion5x_eth_init(&rd88f5181l_ge_eth_data); | 129 | orion5x_eth_init(&rd88f5181l_ge_eth_data); |
125 | orion5x_eth_switch_init(&rd88f5181l_ge_switch_data, gpio_to_irq(8)); | 130 | orion5x_eth_switch_init(&rd88f5181l_ge_switch_plat_data, |
131 | gpio_to_irq(8)); | ||
126 | orion5x_i2c_init(); | 132 | orion5x_i2c_init(); |
127 | orion5x_uart0_init(); | 133 | orion5x_uart0_init(); |
128 | 134 | ||
diff --git a/arch/arm/mach-orion5x/rd88f6183ap-ge-setup.c b/arch/arm/mach-orion5x/rd88f6183ap-ge-setup.c index 262e25e4dace..7737cf9a8f50 100644 --- a/arch/arm/mach-orion5x/rd88f6183ap-ge-setup.c +++ b/arch/arm/mach-orion5x/rd88f6183ap-ge-setup.c | |||
@@ -35,7 +35,7 @@ static struct mv643xx_eth_platform_data rd88f6183ap_ge_eth_data = { | |||
35 | .duplex = DUPLEX_FULL, | 35 | .duplex = DUPLEX_FULL, |
36 | }; | 36 | }; |
37 | 37 | ||
38 | static struct dsa_platform_data rd88f6183ap_ge_switch_data = { | 38 | static struct dsa_chip_data rd88f6183ap_ge_switch_chip_data = { |
39 | .port_names[0] = "lan1", | 39 | .port_names[0] = "lan1", |
40 | .port_names[1] = "lan2", | 40 | .port_names[1] = "lan2", |
41 | .port_names[2] = "lan3", | 41 | .port_names[2] = "lan3", |
@@ -44,6 +44,11 @@ static struct dsa_platform_data rd88f6183ap_ge_switch_data = { | |||
44 | .port_names[5] = "cpu", | 44 | .port_names[5] = "cpu", |
45 | }; | 45 | }; |
46 | 46 | ||
47 | static struct dsa_platform_data rd88f6183ap_ge_switch_plat_data = { | ||
48 | .nr_chips = 1, | ||
49 | .chip = &rd88f6183ap_ge_switch_chip_data, | ||
50 | }; | ||
51 | |||
47 | static struct mtd_partition rd88f6183ap_ge_partitions[] = { | 52 | static struct mtd_partition rd88f6183ap_ge_partitions[] = { |
48 | { | 53 | { |
49 | .name = "kernel", | 54 | .name = "kernel", |
@@ -89,7 +94,8 @@ static void __init rd88f6183ap_ge_init(void) | |||
89 | */ | 94 | */ |
90 | orion5x_ehci0_init(); | 95 | orion5x_ehci0_init(); |
91 | orion5x_eth_init(&rd88f6183ap_ge_eth_data); | 96 | orion5x_eth_init(&rd88f6183ap_ge_eth_data); |
92 | orion5x_eth_switch_init(&rd88f6183ap_ge_switch_data, gpio_to_irq(3)); | 97 | orion5x_eth_switch_init(&rd88f6183ap_ge_switch_plat_data, |
98 | gpio_to_irq(3)); | ||
93 | spi_register_board_info(rd88f6183ap_ge_spi_slave_info, | 99 | spi_register_board_info(rd88f6183ap_ge_spi_slave_info, |
94 | ARRAY_SIZE(rd88f6183ap_ge_spi_slave_info)); | 100 | ARRAY_SIZE(rd88f6183ap_ge_spi_slave_info)); |
95 | orion5x_spi_init(); | 101 | orion5x_spi_init(); |
diff --git a/arch/arm/mach-orion5x/wrt350n-v2-setup.c b/arch/arm/mach-orion5x/wrt350n-v2-setup.c index cc8f89200865..1b4ad9d5e2eb 100644 --- a/arch/arm/mach-orion5x/wrt350n-v2-setup.c +++ b/arch/arm/mach-orion5x/wrt350n-v2-setup.c | |||
@@ -106,7 +106,7 @@ static struct mv643xx_eth_platform_data wrt350n_v2_eth_data = { | |||
106 | .duplex = DUPLEX_FULL, | 106 | .duplex = DUPLEX_FULL, |
107 | }; | 107 | }; |
108 | 108 | ||
109 | static struct dsa_platform_data wrt350n_v2_switch_data = { | 109 | static struct dsa_chip_data wrt350n_v2_switch_chip_data = { |
110 | .port_names[0] = "lan2", | 110 | .port_names[0] = "lan2", |
111 | .port_names[1] = "lan1", | 111 | .port_names[1] = "lan1", |
112 | .port_names[2] = "wan", | 112 | .port_names[2] = "wan", |
@@ -115,6 +115,11 @@ static struct dsa_platform_data wrt350n_v2_switch_data = { | |||
115 | .port_names[7] = "lan4", | 115 | .port_names[7] = "lan4", |
116 | }; | 116 | }; |
117 | 117 | ||
118 | static struct dsa_platform_data wrt350n_v2_switch_plat_data = { | ||
119 | .nr_chips = 1, | ||
120 | .chip = &wrt350n_v2_switch_chip_data, | ||
121 | }; | ||
122 | |||
118 | static void __init wrt350n_v2_init(void) | 123 | static void __init wrt350n_v2_init(void) |
119 | { | 124 | { |
120 | /* | 125 | /* |
@@ -129,7 +134,7 @@ static void __init wrt350n_v2_init(void) | |||
129 | */ | 134 | */ |
130 | orion5x_ehci0_init(); | 135 | orion5x_ehci0_init(); |
131 | orion5x_eth_init(&wrt350n_v2_eth_data); | 136 | orion5x_eth_init(&wrt350n_v2_eth_data); |
132 | orion5x_eth_switch_init(&wrt350n_v2_switch_data, NO_IRQ); | 137 | orion5x_eth_switch_init(&wrt350n_v2_switch_plat_data, NO_IRQ); |
133 | orion5x_uart0_init(); | 138 | orion5x_uart0_init(); |
134 | 139 | ||
135 | orion5x_setup_dev_boot_win(WRT350N_V2_NOR_BOOT_BASE, | 140 | orion5x_setup_dev_boot_win(WRT350N_V2_NOR_BOOT_BASE, |