aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/patches-3.14/508-board_hw553.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/brcm63xx/patches-3.14/508-board_hw553.patch')
-rw-r--r--target/linux/brcm63xx/patches-3.14/508-board_hw553.patch25
1 files changed, 9 insertions, 16 deletions
diff --git a/target/linux/brcm63xx/patches-3.14/508-board_hw553.patch b/target/linux/brcm63xx/patches-3.14/508-board_hw553.patch
index 3627ea5e8c..3ea981e6c0 100644
--- a/target/linux/brcm63xx/patches-3.14/508-board_hw553.patch
+++ b/target/linux/brcm63xx/patches-3.14/508-board_hw553.patch
@@ -1,6 +1,6 @@
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -1770,6 +1770,83 @@ static struct board_info __initdata boar
+@@ -1770,6 +1770,76 @@ static struct board_info __initdata boar
.spis = nb4_spi_devices,
.num_spis = ARRAY_SIZE(nb4_spi_devices),
};
@@ -11,15 +11,9 @@
+
+ .has_uart0 = 1,
+
-+ .has_enet0 = 1,
+ .has_enet1 = 1,
+ .has_pci = 1,
+
-+ .enet0 = {
-+ .has_phy = 1,
-+ .use_internal_phy = 1,
-+ },
-+
+ .enet1 = {
+ .has_phy = 1,
+ .phy_id = 0,
@@ -33,22 +27,22 @@
+
+ .leds = {
+ {
-+ .name = "HW553:red:lan",
++ .name = "HW553:red:adsl",
+ .gpio = 34,
+ .active_low = 1,
+ },
+ {
-+ .name = "HW553:blue:lan",
++ .name = "HW553:blue:adsl",
+ .gpio = 35,
+ .active_low = 1,
+ },
+ {
-+ .name = "HW553:red:adsl",
++ .name = "HW553:red:lan",
+ .gpio = 22,
+ .active_low = 1,
+ },
+ {
-+ .name = "HW553:blue:adsl",
++ .name = "HW553:blue:lan",
+ .gpio = 23,
+ .active_low = 1,
+ },
@@ -56,13 +50,12 @@
+ .name = "HW553:red:power",
+ .gpio = 5,
+ .active_low = 1,
-+ .default_trigger = "default-on",
+ },
-+
+ {
+ .name = "HW553:blue:power",
+ .gpio = 4,
+ .active_low = 1,
++ .default_trigger = "default-on",
+ },
+ {
+ .name = "HW553:red:wifi",
@@ -70,12 +63,12 @@
+ .active_low = 1,
+ },
+ {
-+ .name = "HW553:red:internetkey",
++ .name = "HW553:red:hspa",
+ .gpio = 12,
+ .active_low = 1,
+ },
+ {
-+ .name = "HW553:blue:internetkey",
++ .name = "HW553:blue:hspa",
+ .gpio = 13,
+ .active_low = 1,
+ },
@@ -84,7 +77,7 @@
#endif
/*
-@@ -1818,6 +1895,7 @@ static const struct board_info __initcon
+@@ -1818,6 +1888,7 @@ static const struct board_info __initcon
&board_nb4_ser_r2,
&board_nb4_fxc_r1,
&board_nb4_fxc_r2,
round-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -1770,6 +1770,83 @@ static struct board_info __initdata boar
 	.spis = nb4_spi_devices,
 	.num_spis = ARRAY_SIZE(nb4_spi_devices),
 };
+
+static struct board_info __initdata board_HW553 = {
+	.name                           = "HW553",
+	.expected_cpu_id                = 0x6358,
+
+	.has_uart0			= 1,
+
+	.has_enet0                      = 1,
+	.has_enet1                      = 1,
+	.has_pci                        = 1,
+
+	.enet0 = {
+		.has_phy                = 1,
+		.use_internal_phy       = 1,
+	},
+
+	.enet1 = {
+		.has_phy		= 1,
+		.phy_id			= 0,
+		.force_speed_100        = 1,
+		.force_duplex_full      = 1,
+	},
+
+	.has_ohci0 = 1,
+	.has_ehci0 = 1,
+	.num_usbh_ports			= 2,
+
+	.leds = {
+		{
+			.name		= "HW553:red:lan",
+			.gpio		= 34,
+			.active_low	= 1,
+		},
+		{
+			.name		= "HW553:blue:lan",
+			.gpio		= 35,
+			.active_low	= 1,
+		},
+		{
+			.name		= "HW553:red:adsl",
+			.gpio		= 22,
+			.active_low	= 1,
+		},
+		{
+			.name		= "HW553:blue:adsl",
+			.gpio		= 23,
+			.active_low	= 1,
+		},
+		{
+			.name		= "HW553:red:power",
+			.gpio		= 5,
+			.active_low	= 1,
+			.default_trigger = "default-on",
+		},
+
+		{
+			.name		= "HW553:blue:power",
+			.gpio		= 4,
+			.active_low	= 1,
+		},
+		{
+			.name		= "HW553:red:wifi",
+			.gpio		= 25,
+			.active_low	= 1,
+		},
+		{
+			.name		= "HW553:red:internetkey",
+			.gpio		= 12,
+			.active_low	= 1,
+		},
+		{
+			.name		= "HW553:blue:internetkey",
+			.gpio		= 13,
+			.active_low	= 1,
+		},
+	},
+};
 #endif
 
 /*
@@ -1818,6 +1895,7 @@ static const struct board_info __initcon
 	&board_nb4_ser_r2,
 	&board_nb4_fxc_r1,
 	&board_nb4_fxc_r2,
+	&board_HW553,
 #endif
 };