38380773ac77725db98ce9447270c7aab72b6081
[oweals/openwrt.git] / target / linux / mpc85xx / patches-4.19 / 100-powerpc-85xx-tl-wdr4900-v1-support.patch
1 From 1d9f596e572917772b87a2a37e1680902964782f 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  | 12 ++++++++++++
17  arch/powerpc/platforms/85xx/Makefile |  1 +
18  4 files changed, 20 insertions(+), 1 deletion(-)
19
20 diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
21 index 25e3184f11f7..0826346fd97c 100644
22 --- a/arch/powerpc/boot/Makefile
23 +++ b/arch/powerpc/boot/Makefile
24 @@ -164,6 +164,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 @@ -343,7 +344,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 f9141eaec6ff..bd55094d9899 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..2bf6533ce023 100644
59 --- a/arch/powerpc/platforms/85xx/Kconfig
60 +++ b/arch/powerpc/platforms/85xx/Kconfig
61 @@ -170,6 +170,18 @@ 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 +    select SWIOTLB
71 +    help
72 +      This option enables support for the TP-Link TL-WDR4900 v1 board.
73 +
74 +      This board is a Concurrent Dual-Band wireless router with a
75 +      Freescale P1014 SoC.
76 +
77  config TQM8540
78         bool "TQ Components TQM8540"
79         help
80 diff --git a/arch/powerpc/platforms/85xx/Makefile b/arch/powerpc/platforms/85xx/Makefile
81 index d1dd0dca5ebf..d0dab29a33eb 100644
82 --- a/arch/powerpc/platforms/85xx/Makefile
83 +++ b/arch/powerpc/platforms/85xx/Makefile
84 @@ -26,6 +26,7 @@ obj-$(CONFIG_CORENET_GENERIC)   += corenet_generic.o
85  obj-$(CONFIG_FB_FSL_DIU)       += t1042rdb_diu.o
86  obj-$(CONFIG_STX_GP3)    += stx_gp3.o
87  obj-$(CONFIG_TQM85xx)    += tqm85xx.o
88 +obj-$(CONFIG_TL_WDR4900_V1) += tl_wdr4900_v1.o
89  obj-$(CONFIG_SBC8548)     += sbc8548.o
90  obj-$(CONFIG_PPA8548)     += ppa8548.o
91  obj-$(CONFIG_SOCRATES)    += socrates.o socrates_fpga_pic.o
92 -- 
93 2.20.1
94