OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 38... | Line 38... | |||
38 | #include <asm/fw/cfe/cfe_api.h> |
38 | #include <asm/fw/cfe/cfe_api.h> |
|
39 | +#include <asm/prom.h> |
39 | +#include <asm/prom.h> |
|
40 | #include <bcm63xx_board.h> |
40 | #include <bcm63xx_board.h> |
|
41 | #include <bcm63xx_cpu.h> |
41 | #include <bcm63xx_cpu.h> |
|
42 | #include <bcm63xx_dev_uart.h> |
42 | #include <bcm63xx_dev_uart.h> |
|
43 | @@ -125,8 +128,23 @@ void __init board_setup(void) |
43 | @@ -126,8 +129,23 @@ void __init board_setup(void) |
|
44 | /* make sure we're running on expected cpu */ |
44 | /* make sure we're running on expected cpu */ |
|
45 | if (bcm63xx_get_cpu_id() != board.expected_cpu_id) |
45 | if (bcm63xx_get_cpu_id() != board.expected_cpu_id) |
|
46 | panic("unexpected CPU for bcm963xx board"); |
46 | panic("unexpected CPU for bcm963xx board"); |
|
47 | + |
47 | + |
|
48 | +#if CONFIG_OF |
48 | +#if CONFIG_OF |
|
Line 62... | Line 62... | |||
62 | +#endif |
62 | +#endif |
|
63 | + |
63 | + |
|
64 | static struct gpio_led_platform_data bcm63xx_led_data; |
64 | static struct gpio_led_platform_data bcm63xx_led_data; |
|
Line 65... | Line 65... | |||
65 | |
65 | |
|
66 | static struct platform_device bcm63xx_gpio_leds = { |
66 | static struct platform_device bcm63xx_gpio_leds = { |
|
67 | @@ -135,6 +153,13 @@ static struct platform_device bcm63xx_gp |
67 | @@ -136,6 +154,13 @@ static struct platform_device bcm63xx_gp |
|
68 | .dev.platform_data = &bcm63xx_led_data, |
68 | .dev.platform_data = &bcm63xx_led_data, |
|
Line 69... | Line 69... | |||
69 | }; |
69 | }; |
|
70 | |
70 | |
|
Line 76... | Line 76... | |||
76 | +}; |
76 | +}; |
|
77 | +#endif |
77 | +#endif |
|
78 | /* |
78 | /* |
|
79 | * third stage init callback, register all board devices. |
79 | * third stage init callback, register all board devices. |
|
80 | */ |
80 | */ |
|
81 | @@ -142,6 +167,15 @@ int __init board_register_devices(void) |
81 | @@ -143,6 +168,15 @@ int __init board_register_devices(void) |
|
82 | { |
82 | { |
|
83 | int usbh_ports = 0; |
83 | int usbh_ports = 0; |
|
Line 84... | Line 84... | |||
84 | |
84 | |
|
85 | +#if CONFIG_OF |
85 | +#if CONFIG_OF |