mpc85xx: convert TL-WDR4900 v1 to simpleImage
[openwrt/openwrt.git] / target / linux / mpc85xx / patches-4.14 / 100-powerpc-85xx-tl-wdr4900-v1-support.patch
1 From 53bc6ae5da3b2902581c30ac2568f51ce35e7624 Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Wed, 20 Feb 2013 08:40:33 +0100
4 Subject: [PATCH] powerpc: 85xx: add support for the TP-Link TL-WDR4900 v1
5 board
6
7 This patch adds support for the TP-Link TL-WDR4900 v1
8 concurrent dual-band wireless router. The devices uses
9 the Freescale P1014 SoC.
10
11 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
12 Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
13 ---
14 arch/powerpc/boot/Makefile | 3 ++-
15 arch/powerpc/boot/wrapper | 5 +++++
16 arch/powerpc/platforms/85xx/Kconfig | 11 +++++++++++
17 arch/powerpc/platforms/85xx/Makefile | 1 +
18 4 files changed, 19 insertions(+), 1 deletion(-)
19
20 diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
21 index e2a5a932c24a..925140f8350b 100644
22 --- a/arch/powerpc/boot/Makefile
23 +++ b/arch/powerpc/boot/Makefile
24 @@ -156,6 +156,7 @@ src-plat-$(CONFIG_PPC_PSERIES) += pseries-head.S
25 src-plat-$(CONFIG_PPC_POWERNV) += pseries-head.S
26 src-plat-$(CONFIG_PPC_IBM_CELL_BLADE) += pseries-head.S
27 src-plat-$(CONFIG_MVME7100) += motload-head.S mvme7100.c
28 +src-plat-$(CONFIG_TL_WDR4900_V1) += simpleboot.c fixed-head.S
29
30 src-wlib := $(sort $(src-wlib-y))
31 src-plat := $(sort $(src-plat-y))
32 @@ -335,7 +336,7 @@ image-$(CONFIG_TQM8555) += cuImage.tqm8555
33 image-$(CONFIG_TQM8560) += cuImage.tqm8560
34 image-$(CONFIG_SBC8548) += cuImage.sbc8548
35 image-$(CONFIG_KSI8560) += cuImage.ksi8560
36 -
37 +image-$(CONFIG_TL_WDR4900_V1) += simpleImage.tl-wdr4900-v1
38 # Board ports in arch/powerpc/platform/86xx/Kconfig
39 image-$(CONFIG_MVME7100) += dtbImage.mvme7100
40
41 diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper
42 index 76fe3ccfd381..96fd853a1ed0 100755
43 --- a/arch/powerpc/boot/wrapper
44 +++ b/arch/powerpc/boot/wrapper
45 @@ -302,6 +302,11 @@ adder875-redboot)
46 platformo="$object/fixed-head.o $object/redboot-8xx.o"
47 binary=y
48 ;;
49 +simpleboot-tl-wdr4900-v1)
50 + platformo="$object/fixed-head.o $object/simpleboot.o"
51 + link_address='0x1000000'
52 + binary=y
53 + ;;
54 simpleboot-virtex405-*)
55 platformo="$object/virtex405-head.o $object/simpleboot.o $object/virtex.o"
56 binary=y
57 diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx/Kconfig
58 index 68920d42b4bc..477782740f0e 100644
59 --- a/arch/powerpc/platforms/85xx/Kconfig
60 +++ b/arch/powerpc/platforms/85xx/Kconfig
61 @@ -170,6 +170,17 @@ config STX_GP3
62 select CPM2
63 select DEFAULT_UIMAGE
64
65 +config TL_WDR4900_V1
66 + bool "TP-Link TL-WDR4900 v1"
67 + select DEFAULT_UIMAGE
68 + select ARCH_REQUIRE_GPIOLIB
69 + select GPIO_MPC8XXX
70 + help
71 + This option enables support for the TP-Link TL-WDR4900 v1 board.
72 +
73 + This board is a Concurrent Dual-Band wireless router with a
74 + Freescale P1014 SoC.
75 +
76 config TQM8540
77 bool "TQ Components TQM8540"
78 help
79 diff --git a/arch/powerpc/platforms/85xx/Makefile b/arch/powerpc/platforms/85xx/Makefile
80 index d1dd0dca5ebf..d0dab29a33eb 100644
81 --- a/arch/powerpc/platforms/85xx/Makefile
82 +++ b/arch/powerpc/platforms/85xx/Makefile
83 @@ -26,6 +26,7 @@ obj-$(CONFIG_CORENET_GENERIC) += corenet_generic.o
84 obj-$(CONFIG_FB_FSL_DIU) += t1042rdb_diu.o
85 obj-$(CONFIG_STX_GP3) += stx_gp3.o
86 obj-$(CONFIG_TQM85xx) += tqm85xx.o
87 +obj-$(CONFIG_TL_WDR4900_V1) += tl_wdr4900_v1.o
88 obj-$(CONFIG_SBC8548) += sbc8548.o
89 obj-$(CONFIG_PPA8548) += ppa8548.o
90 obj-$(CONFIG_SOCRATES) += socrates.o socrates_fpga_pic.o
91 --
92 2.20.1
93