bcm63xx: add bcm96338w and bcm96338gw board support
PATCH 5/8 bcm63xx: add bcm96338w and bcm96338gw board support
This patch adds support for the bcm96338w and bcm96338gw reference designs. Tested on bcm96338w.
Signed-off-by Florian Fainelli <[email protected]>
---
arch/mips/bcm63xx/boards/board_bcm963xx.c +91 -0
@@ -37,6 +37,93 @@ static unsigned int mac_addr_used;static struct board_info board;/* +* known 6338 boards +*/ +#ifdef CONFIG_BCM63XX_CPU_6338 +static struct board_info __initdata board_96338gw = { + .name ="96338GW" , + .expected_cpu_id =0x6338 , + + .has_enet0 =1 , + .enet0 = { + .force_speed_100 =1 , + .force_duplex_full =1 , + }, + + .has_ohci0 =1 , + + .leds = { + { + .name ="adsl" , + .gpio =3 , + .active_low =1 , + }, + { + .name ="ses" , + .gpio =5 , + .active_low =1 , + }, + { + .name ="ppp-fail" , + .gpio =4 , + .active_low =1 , + }, + { + .name ="power" , + .gpio =0 , + .active_low =1 , + .default_trigger ="default-on" , + }, + { + .name ="stop" , + .gpio =1 , + .active_low =1 , + } + }, +}; + +static struct board_info __initdata board_96338w = { + .name ="96338W" , + .expected_cpu_id =0x6338 , + + .has_enet0 =1 , + .enet0 = { + .force_speed_100 =1 , + .force_duplex_full =1 , + }, + + .leds = { + { + .name ="adsl" , + .gpio =3 , + .active_low =1 , + }, + { + .name ="ses" , + .gpio =5 , + .active_low =1 , + }, + { + .name ="ppp-fail" , + .gpio =4 , + .active_low =1 , + }, + { + .name ="power" , + .gpio =0 , + .active_low =1 , + .default_trigger ="default-on" , + }, + { + .name ="stop" , + .gpio =1 , + .active_low =1 , + }, + }, +}; +#endif + +/* * known 6348 boards */ #ifdef CONFIG_BCM63XX_CPU_6348
@@ -445,6 +532,10 @@ static struct board_info __initdata board_AGPFS0 = {* all boards */ static const struct board_info __initdata *bcm963xx_boards[] = { +#ifdef CONFIG_BCM63XX_CPU_6338 + &board_96338gw, + &board_96338w, +#endif #ifdef CONFIG_BCM63XX_CPU_6348 &board_96348r, &board_96348gw,
On Fri, Aug 07, 2009 at 11:46:52PM +0200, Florian Fainelli wrote:
Folded into "MIPS: BCM63XX: Add board support code."
Thanks,
Ralf
PS: This patch contais some more George Michael ;-)