blob: 8aa71f360f61eb4b10358cbcbe53d022e5adc2ce [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From f125e2d4339dda6937865f975470b29c84714c9b Mon Sep 17 00:00:00 2001
2From: Christian Lamparter <chunkeey@gmail.com>
3Date: Mon, 6 Jan 2020 14:57:15 +0100
4Subject: [PATCH] ARM: qcom: Add support for IPQ40xx
5
6Add support for the Qualcomm IPQ40xx SoC in Kconfig.
7Also add its appropriate textofs.
8
9Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
10Signed-off-by: John Crispin <john@phrozen.org>
11Tested-by: Robert Marko <robert.marko@sartura.hr>
12Cc: Luka Perkov <luka.perkov@sartura.hr>
13Signed-off-by: Arnd Bergmann <arnd@arndb.de>
14---
15 arch/arm/Makefile | 1 +
16 arch/arm/mach-qcom/Kconfig | 5 +++++
17 2 files changed, 6 insertions(+)
18
19--- a/arch/arm/Makefile
20+++ b/arch/arm/Makefile
21@@ -152,6 +152,7 @@ textofs-$(CONFIG_PM_H1940) := 0x001
22 ifeq ($(CONFIG_ARCH_SA1100),y)
23 textofs-$(CONFIG_SA1111) := 0x00208000
24 endif
25+textofs-$(CONFIG_ARCH_IPQ40XX) := 0x00208000
26 textofs-$(CONFIG_ARCH_MSM8X60) := 0x00208000
27 textofs-$(CONFIG_ARCH_MSM8960) := 0x00208000
28 textofs-$(CONFIG_ARCH_MESON) := 0x00208000
29--- a/arch/arm/mach-qcom/Kconfig
30+++ b/arch/arm/mach-qcom/Kconfig
31@@ -12,6 +12,11 @@ menuconfig ARCH_QCOM
32
33 if ARCH_QCOM
34
35+config ARCH_IPQ40XX
36+ bool "Enable support for IPQ40XX"
37+ select CLKSRC_QCOM
38+ select HAVE_ARM_ARCH_TIMER
39+
40 config ARCH_MSM8X60
41 bool "Enable support for MSM8X60"
42 select CLKSRC_QCOM