kernel/mpc85xx: Restore kernel files for v6.1
[openwrt/staging/stintel.git] / target / linux / mpc85xx / patches-6.1 / 107-powerpc-85xx-add-ws-ap3825i-support.patch
1 From 2fa1a7983ef30f3c7486f9b07c001bee87d1f6d6 Mon Sep 17 00:00:00 2001
2 From: Martin Kennedy <hurricos@gmail.com>
3 Date: Sat, 1 Jan 2022 11:01:37 -0500
4 Subject: [PATCH] PowerPC 85xx: Add WS-AP3825i support
5
6 This patch adds support for building Linux for the Extreme Networks
7 WS-AP3825i AP.
8
9 --- a/arch/powerpc/platforms/85xx/Kconfig
10 +++ b/arch/powerpc/platforms/85xx/Kconfig
11 @@ -73,6 +73,16 @@ config WS_AP3710I
12 This board is a Concurrent Dual-Band wireless access point with a
13 Freescale P1020 SoC.
14
15 +config WS_AP3825I
16 + bool "Extreme Networks WS-AP3825i"
17 + select DEFAULT_UIMAGE
18 + select ARCH_REQUIRE_GPIOLIB
19 + select GPIO_MPC8XXX
20 + help
21 + This option enables support for the Extreme Networks WS-AP3825i board.
22 + This board is a Concurrent Dual-Band wireless access point with a
23 + Freescale P1020 SoC.
24 +
25 config MPC8540_ADS
26 bool "Freescale MPC8540 ADS"
27 select DEFAULT_UIMAGE
28 --- a/arch/powerpc/platforms/85xx/Makefile
29 +++ b/arch/powerpc/platforms/85xx/Makefile
30 @@ -27,6 +27,7 @@ obj-$(CONFIG_P1023_RDB) += p1023_rdb.o
31 obj-$(CONFIG_PANDA) += panda.o
32 obj-$(CONFIG_TWR_P102x) += twr_p102x.o
33 obj-$(CONFIG_WS_AP3710I) += ws-ap3710i.o
34 +obj-$(CONFIG_WS_AP3825I) += ws-ap3825i.o
35 obj-$(CONFIG_CORENET_GENERIC) += corenet_generic.o
36 obj-$(CONFIG_FB_FSL_DIU) += t1042rdb_diu.o
37 obj-$(CONFIG_RED_15W_REV1) += red15w_rev1.o
38 --- a/arch/powerpc/boot/Makefile
39 +++ b/arch/powerpc/boot/Makefile
40 @@ -181,6 +181,7 @@ src-plat-$(CONFIG_PPC_IBM_CELL_BLADE) +=
41 src-plat-$(CONFIG_MVME7100) += motload-head.S mvme7100.c
42 src-plat-$(CONFIG_HIVEAP_330) += simpleboot.c fixed-head.S
43 src-plat-$(CONFIG_TL_WDR4900_V1) += simpleboot.c fixed-head.S
44 +src-plat-$(CONFIG_WS_AP3825I) += simpleboot.c fixed-head.S
45
46 src-plat-$(CONFIG_PPC_MICROWATT) += fixed-head.S microwatt.c
47
48 @@ -363,6 +364,7 @@ image-$(CONFIG_TQM8560) += cuImage.tqm
49 image-$(CONFIG_KSI8560) += cuImage.ksi8560
50 image-$(CONFIG_HIVEAP_330) += simpleImage.hiveap-330
51 image-$(CONFIG_TL_WDR4900_V1) += simpleImage.tl-wdr4900-v1
52 +image-$(CONFIG_WS_AP3825I) += simpleImage.ws-ap3825i
53 # Board ports in arch/powerpc/platform/86xx/Kconfig
54 image-$(CONFIG_MVME7100) += dtbImage.mvme7100
55
56 --- a/arch/powerpc/boot/wrapper
57 +++ b/arch/powerpc/boot/wrapper
58 @@ -342,6 +342,7 @@ adder875-redboot)
59 binary=y
60 ;;
61 simpleboot-hiveap-330|\
62 +simpleboot-ws-ap3825i|\
63 simpleboot-tl-wdr4900-v1)
64 platformo="$object/fixed-head.o $object/simpleboot.o"
65 link_address='0x1500000'