Re: [PATCH v4 2/8] ARM: Prepare Realtek RTD1195

From: Andreas FÃrber
Date: Sun Jan 05 2020 - 00:54:02 EST


Am 23.11.19 um 21:37 schrieb Andreas FÃrber:
Introduce ARCH_REALTEK Kconfig option also for 32-bit Arm.

Override the text offset to cope with boot ROM occupying first 0xa800
bytes and further reservations up to 0xf4000 (compare Device Tree).

Add a custom machine_desc to enforce memory carveout for I/O registers.

Signed-off-by: Andreas FÃrber <afaerber@xxxxxxx>
---
v3 -> v4:
* Added reservation of boot ROM (James)
v2 -> v3:
* Fixed r-bus size in .reserve from 0x100000 to 0x70000 (James)
v1 -> v2:
* Dropped selection of COMMON_CLK (Arnd)
* Dropped selection of AMBA, SCU, TWD
* Added comment about text offset to distinguish from HTC comment above
* Added machine_desc with .reserve to exclude peripheral spaces (Rob)
arch/arm/Kconfig | 2 ++
arch/arm/Makefile | 3 +++
arch/arm/mach-realtek/Kconfig | 11 +++++++++++
arch/arm/mach-realtek/Makefile | 2 ++
arch/arm/mach-realtek/rtd1195.c | 40 ++++++++++++++++++++++++++++++++++++++++
5 files changed, 58 insertions(+)
create mode 100644 arch/arm/mach-realtek/Kconfig
create mode 100644 arch/arm/mach-realtek/Makefile
create mode 100644 arch/arm/mach-realtek/rtd1195.c

This patch was lacking a MAINTAINERS update. Squashing:

diff --git a/MAINTAINERS b/MAINTAINERS
index 7b626563fb3c..b48461736971 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -2204,6 +2204,7 @@ M: Andreas FÃrber <afaerber@xxxxxxx>
L: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx (moderated for non-subscribers)
L: linux-realtek-soc@xxxxxxxxxxxxxxxxxxx (moderated for non-subscribers)
S: Maintained
+F: arch/arm/mach-realtek/
F: arch/arm64/boot/dts/realtek/
F: Documentation/devicetree/bindings/arm/realtek.yaml


Unfortunately this on v5.6/soc branch will conflict with adding an entry for the DTs on v5.6/dt branch, so I guess the best way to handle this will be a follow-up patch for the v5.6/soc branch (which may trigger pattern warnings due to the files getting added on a different branch)?

diff --git a/MAINTAINERS b/MAINTAINERS
index b48461736971..01081bea2488 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -2204,6 +2204,7 @@ M: Andreas FÃrber <afaerber@xxxxxxx>
L: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx (moderated for non-subscribers)
L: linux-realtek-soc@xxxxxxxxxxxxxxxxxxx (moderated for non-subscribers)
S: Maintained
+F: arch/arm/boot/dts/rtd*
F: arch/arm/mach-realtek/
F: arch/arm64/boot/dts/realtek/
F: Documentation/devicetree/bindings/arm/realtek.yaml

Regards,
Andreas

--
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 NÃrnberg, Germany
GF: Felix ImendÃrffer
HRB 36809 (AG NÃrnberg)