Skip to content
Snippets Groups Projects
Commit a180c80f authored by Jonas Gorski's avatar Jonas Gorski
Browse files

brcm63xx: Add DT support for A4001N1


Signed-off-by: default avatarÁlvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: default avatarJonas Gorski <jogo@openwrt.org>

SVN-Revision: 42244
parent 83651bad
No related branches found
No related tags found
No related merge requests found
Showing
with 50 additions and 41 deletions
/dts-v1/;
/include/ "bcm6328.dtsi"
/ {
model = "ADB P.DG A4001N1";
compatible = "adb,a4001n1", "brcm,bcm6328";
};
......@@ -245,8 +245,6 @@ define Image/Build
# ADB P.DG A4001N
$(call Image/Build/CFE,$(1),96328dg2x2,6328,A4001N,,--pad 4)
# ADB P.DG A4001N1
$(call Image/Build/CFE,$(1),963281T_TEF,6328,A4001N1,,--pad 8)
# BT Voyager V210_BTR
$(call Image/Build/CFE,$(1),V210_BB,6348,BTV210_BTR,,--layoutver 5)
# BT Voyager V210_ROI, V210_WB
......@@ -345,6 +343,8 @@ $(eval $(call CfeImageDTB,96328avng,bcm96328avng,96328avng,6328,96328avng-4M-fla
$(eval $(call CfeImageDTB,96328avng,bcm96328avng,96328avng,6328,96328avng-8M-flash-generic,,--pad 4))
$(eval $(call CfeImageDTB,96328avng,bcm96328avng,96328avng,6328,96328avng-16M-flash-generic,,--pad 8))
# ADB P.DG A4001N1
$(eval $(call CfeImageDTB,A4001N1,a4001n1,963281T_TEF,6328,A4001N1,,--pad 8))
# Asmax AR 1004g
$(eval $(call CfeImageDTB,AR1004G,ar1004g,96348GW-10,6348,AR1004G))
# Comtrend AR-5381u
......
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -236,6 +236,133 @@ static struct board_info __initdata boar
@@ -236,6 +236,134 @@ static struct board_info __initdata boar
},
};
+static struct board_info __initdata board_A4001N1 = {
+ .name = "963281T_TEF",
+ .of_board_id = "adb,a4001n1",
+ .expected_cpu_id = 0x6328,
+
+ .has_uart0 = 1,
......@@ -134,7 +135,7 @@
static struct board_info __initdata board_dsl_274xb_f1 = {
.name = "AW4339U",
.expected_cpu_id = 0x6328,
@@ -2695,6 +2822,7 @@ static const struct board_info __initcon
@@ -2695,6 +2823,7 @@ static const struct board_info __initcon
#ifdef CONFIG_BCM63XX_CPU_6328
&board_96328avng,
&board_963281TAN,
......
......@@ -117,7 +117,7 @@
static struct board_info __initdata board_963281TAN = {
.name = "963281TAN",
.expected_cpu_id = 0x6328,
@@ -2821,6 +2931,7 @@ static const struct board_info __initcon
@@ -2822,6 +2932,7 @@ static const struct board_info __initcon
#endif
#ifdef CONFIG_BCM63XX_CPU_6328
&board_96328avng,
......
......@@ -93,7 +93,7 @@
static struct sprom_fixup __initdata ar5387un_fixups[] = {
{ .offset = 2, .value = 0x05bb },
{ .offset = 65, .value = 0x1204 },
@@ -2931,6 +3017,7 @@ static const struct board_info __initcon
@@ -2932,6 +3018,7 @@ static const struct board_info __initcon
#endif
#ifdef CONFIG_BCM63XX_CPU_6328
&board_96328avng,
......
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -840,6 +840,55 @@ static struct board_info __initdata boar
@@ -841,6 +841,55 @@ static struct board_info __initdata boar
.has_uart0 = 1,
};
......@@ -56,7 +56,7 @@
#endif /* CONFIG_BCM63XX_CPU_6345 */
/*
@@ -3031,6 +3080,7 @@ static const struct board_info __initcon
@@ -3032,6 +3081,7 @@ static const struct board_info __initcon
#endif
#ifdef CONFIG_BCM63XX_CPU_6345
&board_96345gw2,
......
......@@ -8,7 +8,7 @@
#include <linux/platform_device.h>
#include <linux/spi/spi.h>
#include <linux/spi/spi_gpio.h>
@@ -2678,6 +2679,405 @@ static struct board_info __initdata boar
@@ -2679,6 +2680,405 @@ static struct board_info __initdata boar
},
};
......@@ -414,7 +414,7 @@
/* T-Home Speedport W 303V Typ B */
static struct board_info __initdata board_spw303v = {
.name = "96358-502V",
@@ -3116,6 +3516,9 @@ static const struct board_info __initcon
@@ -3117,6 +3517,9 @@ static const struct board_info __initcon
&board_nb4_fxc_r1,
&board_ct6373_1,
&board_HW553,
......
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -890,6 +890,60 @@ static struct board_info __initdata boar
@@ -891,6 +891,60 @@ static struct board_info __initdata boar
},
},
};
......@@ -61,7 +61,7 @@
#endif /* CONFIG_BCM63XX_CPU_6345 */
/*
@@ -3481,6 +3535,7 @@ static const struct board_info __initcon
@@ -3482,6 +3536,7 @@ static const struct board_info __initcon
#ifdef CONFIG_BCM63XX_CPU_6345
&board_96345gw2,
&board_rta770bw,
......
......@@ -12,7 +12,7 @@ Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
---
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -664,6 +664,122 @@ static struct board_info __initdata boar
@@ -665,6 +665,122 @@ static struct board_info __initdata boar
},
},
};
......@@ -135,7 +135,7 @@ Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
#endif /* CONFIG_BCM63XX_CPU_6328 */
/*
@@ -3525,6 +3641,7 @@ static const struct board_info __initcon
@@ -3526,6 +3642,7 @@ static const struct board_info __initcon
&board_963281TAN,
&board_A4001N1,
&board_dsl_274xb_f1,
......
......@@ -6,7 +6,7 @@ Signed-off-by: Max Staudt <openwrt.max@enpas.org>
---
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -3480,6 +3480,96 @@ static struct board_info __initdata boar
@@ -3481,6 +3481,96 @@ static struct board_info __initdata boar
.devs = nb6_devices,
.num_devs = ARRAY_SIZE(nb6_devices),
};
......@@ -103,7 +103,7 @@ Signed-off-by: Max Staudt <openwrt.max@enpas.org>
#endif /* CONFIG_BCM63XX_CPU_6362 */
/*
@@ -3697,6 +3787,7 @@ static const struct board_info __initcon
@@ -3698,6 +3788,7 @@ static const struct board_info __initcon
#ifdef CONFIG_BCM63XX_CPU_6362
&board_nb6,
......
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -2305,6 +2305,99 @@ static struct board_info __initdata boar
@@ -2306,6 +2306,99 @@ static struct board_info __initdata boar
.has_ohci0 = 1,
.has_ehci0 = 1,
......
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -1776,6 +1776,19 @@ static struct board_info __initdata boar
@@ -1777,6 +1777,19 @@ static struct board_info __initdata boar
},
.has_ohci0 = 1,
......
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -1172,6 +1172,17 @@ static struct board_info __initdata boar
@@ -1173,6 +1173,17 @@ static struct board_info __initdata boar
.active_low = 1,
},
},
......
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -794,6 +794,8 @@ static struct board_info __initdata boar
@@ -795,6 +795,8 @@ static struct board_info __initdata boar
.has_uart0 = 1,
.has_enet0 = 1,
.enet0 = {
......@@ -9,7 +9,7 @@
.force_speed_100 = 1,
.force_duplex_full = 1,
},
@@ -838,6 +840,8 @@ static struct board_info __initdata boar
@@ -839,6 +841,8 @@ static struct board_info __initdata boar
.has_uart0 = 1,
.has_enet0 = 1,
.enet0 = {
......@@ -18,7 +18,7 @@
.force_speed_100 = 1,
.force_duplex_full = 1,
},
@@ -1128,6 +1132,8 @@ static struct board_info __initdata boar
@@ -1129,6 +1133,8 @@ static struct board_info __initdata boar
.use_internal_phy = 1,
},
.enet1 = {
......@@ -27,7 +27,7 @@
.force_speed_100 = 1,
.force_duplex_full = 1,
},
@@ -1202,6 +1208,8 @@ static struct board_info __initdata boar
@@ -1203,6 +1209,8 @@ static struct board_info __initdata boar
},
.enet1 = {
......@@ -36,7 +36,7 @@
.force_speed_100 = 1,
.force_duplex_full = 1,
},
@@ -1483,6 +1491,8 @@ static struct board_info __initdata boar
@@ -1484,6 +1492,8 @@ static struct board_info __initdata boar
.use_internal_phy = 1,
},
.enet1 = {
......@@ -45,7 +45,7 @@
.force_speed_100 = 1,
.force_duplex_full = 1,
},
@@ -1662,6 +1672,8 @@ static struct board_info __initdata boar
@@ -1663,6 +1673,8 @@ static struct board_info __initdata boar
},
.enet1 = {
......@@ -54,7 +54,7 @@
.force_speed_100 = 1,
.force_duplex_full = 1,
},
@@ -1738,6 +1750,8 @@ static struct board_info __initdata boar
@@ -1739,6 +1751,8 @@ static struct board_info __initdata boar
.use_internal_phy = 1,
},
.enet1 = {
......@@ -63,7 +63,7 @@
.force_speed_100 = 1,
.force_duplex_full = 1,
},
@@ -1761,6 +1775,8 @@ static struct board_info __initdata boar
@@ -1762,6 +1776,8 @@ static struct board_info __initdata boar
.use_internal_phy = 1,
},
.enet1 = {
......@@ -72,7 +72,7 @@
.force_speed_100 = 1,
.force_duplex_full = 1,
},
@@ -1782,6 +1798,8 @@ static struct board_info __initdata boar
@@ -1783,6 +1799,8 @@ static struct board_info __initdata boar
.use_internal_phy = 1,
},
.enet1 = {
......@@ -81,7 +81,7 @@
.force_speed_100 = 1,
.force_duplex_full = 1,
},
@@ -2127,6 +2145,8 @@ static struct board_info __initdata boar
@@ -2128,6 +2146,8 @@ static struct board_info __initdata boar
},
.enet1 = {
......@@ -90,7 +90,7 @@
.force_speed_100 = 1,
.force_duplex_full = 1,
},
@@ -2181,6 +2201,8 @@ static struct board_info __initdata boar
@@ -2182,6 +2202,8 @@ static struct board_info __initdata boar
},
.enet1 = {
......@@ -99,7 +99,7 @@
.force_speed_100 = 1,
.force_duplex_full = 1,
},
@@ -2323,6 +2345,8 @@ static struct board_info __initdata boar
@@ -2324,6 +2346,8 @@ static struct board_info __initdata boar
},
.enet1 = {
......@@ -108,7 +108,7 @@
.force_speed_100 = 1,
.force_duplex_full = 1,
},
@@ -2442,6 +2466,8 @@ static struct board_info __initdata boar
@@ -2443,6 +2467,8 @@ static struct board_info __initdata boar
},
.enet1 = {
......
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -2474,6 +2474,94 @@ static struct board_info __initdata boar
@@ -2475,6 +2475,94 @@ static struct board_info __initdata boar
.has_ohci0 = 1,
.has_ehci0 = 1,
......
......@@ -94,7 +94,7 @@
* known 6328 boards
*/
#ifdef CONFIG_BCM63XX_CPU_6328
@@ -3955,6 +4042,9 @@ static const struct board_info __initcon
@@ -3956,6 +4043,9 @@ static const struct board_info __initcon
#ifdef CONFIG_BCM63XX_CPU_3368
&board_cvg834g,
#endif
......
......@@ -95,7 +95,7 @@
#endif /* CONFIG_BCM63XX_CPU_6318 */
/*
@@ -4044,6 +4132,7 @@ static const struct board_info __initcon
@@ -4045,6 +4133,7 @@ static const struct board_info __initcon
#endif
#ifdef CONFIG_BCM63XX_CPU_6318
&board_96318ref,
......
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -4124,6 +4124,75 @@ static struct board_info __initdata boar
@@ -4125,6 +4125,75 @@ static struct board_info __initdata boar
#endif /* CONFIG_BCM63XX_CPU_6368 */
/*
......@@ -76,7 +76,7 @@
* all boards
*/
static const struct board_info __initconst *bcm963xx_boards[] = {
@@ -4204,6 +4273,9 @@ static const struct board_info __initcon
@@ -4205,6 +4274,9 @@ static const struct board_info __initcon
&board_96368mvwg,
&board_96368mvngr,
#endif
......
......@@ -8,7 +8,7 @@ Signed-off-by: Adrian Feliks <mexit@o2.pl>
---
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -1434,6 +1434,52 @@ static struct board_info __initdata boar
@@ -1435,6 +1435,52 @@ static struct board_info __initdata boar
},
};
......@@ -61,7 +61,7 @@ Signed-off-by: Adrian Feliks <mexit@o2.pl>
/* BT Voyager 2110 */
static struct board_info __initdata board_V2110 = {
@@ -4244,6 +4290,7 @@ static const struct board_info __initcon
@@ -4245,6 +4291,7 @@ static const struct board_info __initcon
&board_96348A_122,
&board_CPVA502plus,
&board_96348W3,
......
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -4236,6 +4236,108 @@ static struct board_info __initdata boar
@@ -4237,6 +4237,108 @@ static struct board_info __initdata boar
},
},
};
......@@ -109,7 +109,7 @@
#endif /* CONFIG_BCM63XX_CPU_63268 */
/*
@@ -4322,6 +4424,7 @@ static const struct board_info __initcon
@@ -4323,6 +4425,7 @@ static const struct board_info __initcon
#endif
#ifdef CONFIG_BCM63XX_CPU_63268
&board_963269bhr,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment