diff options
author | Jonas Gorski <jogo@openwrt.org> | 2014-08-21 11:28:34 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2014-08-21 11:28:34 +0000 |
commit | 7b2d74a156214dd905e4594011a4087b81c7f9dd (patch) | |
tree | ccf11d663b0082ed3554c76364b3973927ab14d7 /target/linux | |
parent | 42bbf7bcb31dfe7af60b30d4cdba10ba0da8157a (diff) | |
download | upstream-7b2d74a156214dd905e4594011a4087b81c7f9dd.tar.gz upstream-7b2d74a156214dd905e4594011a4087b81c7f9dd.tar.bz2 upstream-7b2d74a156214dd905e4594011a4087b81c7f9dd.zip |
brcm63xx: Add DT support for VR-3025un
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo: make linux partition writable]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 42242
Diffstat (limited to 'target/linux')
8 files changed, 49 insertions, 8 deletions
diff --git a/target/linux/brcm63xx/dts/vr-3025un.dts b/target/linux/brcm63xx/dts/vr-3025un.dts new file mode 100644 index 0000000000..6fc0c2aee5 --- /dev/null +++ b/target/linux/brcm63xx/dts/vr-3025un.dts @@ -0,0 +1,30 @@ +/dts-v1/; + +/include/ "bcm6368.dtsi" + +/ { + model = "Comtrend VR-3025un"; + compatible = "comtrend,vr-3025un", "brcm,bcm6368"; +}; + +&pflash { + status = "ok"; + + linux,part-probe = "bcm63xxpart"; + + cfe@0 { + label = "CFE"; + reg = <0x000000 0x010000>; + read-only; + }; + + linux@10000 { + label = "linux"; + reg = <0x010000 0x7e0000>; + }; + + nvram@7f0000 { + label = "nvram"; + reg = <0x7f0000 0x010000>; + }; +}; diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile index fc759785dc..9c8deb61f6 100755 --- a/target/linux/brcm63xx/image/Makefile +++ b/target/linux/brcm63xx/image/Makefile @@ -271,8 +271,6 @@ define Image/Build # Sagem F@ST2504n $(call Image/Build/CFE,$(1),F@ST2504n,6362,F@ST2504n,OpenWRT-$(REVISION)) - # Comtrend VR-3025un - $(call Image/Build/CFE,$(1),96368M-1341N,6368,VR-3025un,,--pad 4) # Comtrend WAP-5813n $(call Image/Build/CFE,$(1),96369R-1231N,6368,WAP-5813n,,--pad 4) # Davolink DV201AMR @@ -363,6 +361,8 @@ $(eval $(call CfeImageDTB,CT5365,ct-5365,96348A-122,6348,CT-5365)) $(eval $(call CfeImageDTB,CT6373,ct-6373,CT6373-1,6358,CT-6373)) # Comtrend VR-3025u $(eval $(call CfeImageDTB,VR3025u,vr-3025u,96368M-1541N,6368,VR-3025u,,--pad 16 --image-offset 0x20000 --block-size 0x20000)) +# Comtrend VR-3025un +$(eval $(call CfeImageDTB,VR3025un,vr-3025un,96368M-1341N,6368,VR-3025un,,--pad 4)) # D-Link DSL-2740B/DSL-2741B, rev C2 $(eval $(call CfeImageDTB,DSL274XB_C,dsl-274xb-c,96358GW,6358,DSL274XB-C2)) # D-Link DSL-2740B/DSL-2741B, rev C3 diff --git a/target/linux/brcm63xx/patches-3.14/563-board_VR-3025un.patch b/target/linux/brcm63xx/patches-3.14/563-board_VR-3025un.patch index 5b18b72e45..8e25172f20 100644 --- a/target/linux/brcm63xx/patches-3.14/563-board_VR-3025un.patch +++ b/target/linux/brcm63xx/patches-3.14/563-board_VR-3025un.patch @@ -1,6 +1,6 @@ --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c -@@ -4280,6 +4280,116 @@ static struct board_info __initdata boar +@@ -4280,6 +4280,117 @@ static struct board_info __initdata boar }, }; @@ -15,6 +15,7 @@ + +static struct board_info __initdata board_VR3025un = { + .name = "96368M-1341N", ++ .of_board_id = "comtrend,vr-3025un", + .expected_cpu_id = 0x6368, + + .has_uart0 = 1, @@ -117,7 +118,7 @@ static struct b53_platform_data WAP5813n_b53_pdata = { .alias = "eth0", }; -@@ -4770,6 +4880,7 @@ static const struct board_info __initcon +@@ -4770,6 +4881,7 @@ static const struct board_info __initcon &board_96368mvwg, &board_96368mvngr, &board_VR3025u, diff --git a/target/linux/brcm63xx/patches-3.14/564-board_P870HW-51a_v2.patch b/target/linux/brcm63xx/patches-3.14/564-board_P870HW-51a_v2.patch index 3ee2dd5d7a..35ee212502 100644 --- a/target/linux/brcm63xx/patches-3.14/564-board_P870HW-51a_v2.patch +++ b/target/linux/brcm63xx/patches-3.14/564-board_P870HW-51a_v2.patch @@ -97,7 +97,7 @@ static struct board_info __initdata board_VR3025u = { .name = "96368M-1541N", .of_board_id = "comtrend,vr-3025u", -@@ -4879,6 +4969,7 @@ static const struct board_info __initcon +@@ -4880,6 +4970,7 @@ static const struct board_info __initcon #ifdef CONFIG_BCM63XX_CPU_6368 &board_96368mvwg, &board_96368mvngr, diff --git a/target/linux/brcm63xx/patches-3.14/565-board_hw520.patch b/target/linux/brcm63xx/patches-3.14/565-board_hw520.patch index a686ef6a8d..5f5d77118f 100644 --- a/target/linux/brcm63xx/patches-3.14/565-board_hw520.patch +++ b/target/linux/brcm63xx/patches-3.14/565-board_hw520.patch @@ -57,7 +57,7 @@ static struct board_info __initdata board_HW553 = { .name = "HW553", .expected_cpu_id = 0x6358, -@@ -4953,6 +5003,7 @@ static const struct board_info __initcon +@@ -4954,6 +5004,7 @@ static const struct board_info __initcon &board_nb4_ser_r0, &board_nb4_fxc_r1, &board_ct6373_1, diff --git a/target/linux/brcm63xx/patches-3.14/566-board_A4001N.patch b/target/linux/brcm63xx/patches-3.14/566-board_A4001N.patch index 0fbb1758db..1f2214f035 100644 --- a/target/linux/brcm63xx/patches-3.14/566-board_A4001N.patch +++ b/target/linux/brcm63xx/patches-3.14/566-board_A4001N.patch @@ -96,7 +96,7 @@ static struct board_info __initdata board_A4001N1 = { .name = "963281T_TEF", .expected_cpu_id = 0x6328, -@@ -4954,6 +5043,7 @@ static const struct board_info __initcon +@@ -4955,6 +5044,7 @@ static const struct board_info __initcon &board_AR5381u, &board_AR5387un, &board_963281TAN, diff --git a/target/linux/brcm63xx/patches-3.14/567-board_dsl-2751b_e1.patch b/target/linux/brcm63xx/patches-3.14/567-board_dsl-2751b_e1.patch index 2bb41de61a..9e524433e1 100644 --- a/target/linux/brcm63xx/patches-3.14/567-board_dsl-2751b_e1.patch +++ b/target/linux/brcm63xx/patches-3.14/567-board_dsl-2751b_e1.patch @@ -142,7 +142,7 @@ #endif /* CONFIG_BCM63XX_CPU_6318 */ /* -@@ -5037,6 +5172,7 @@ static const struct board_info __initcon +@@ -5038,6 +5173,7 @@ static const struct board_info __initcon #ifdef CONFIG_BCM63XX_CPU_6318 &board_96318ref, &board_96318ref_p300, diff --git a/target/linux/brcm63xx/profiles/comtrend.mk b/target/linux/brcm63xx/profiles/comtrend.mk index ab9b61253c..b3495b13be 100644 --- a/target/linux/brcm63xx/profiles/comtrend.mk +++ b/target/linux/brcm63xx/profiles/comtrend.mk @@ -62,3 +62,13 @@ define Profile/VR3025u/Description Package set optimized for VR-3025u. endef $(eval $(call Profile,VR3025u)) + +define Profile/VR3025un + NAME:=Comtrend VR-3025un + PACKAGES:=kmod-b43 wpad-mini \ + kmod-usb2 kmod-usb-ohci +endef +define Profile/VR3025un/Description + Package set optimized for VR-3025un. +endef +$(eval $(call Profile,VR3025un)) |