From patchwork Mon Oct 21 02:10:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 177015 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2766428ill; Sun, 20 Oct 2019 19:10:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIjkjIsv9e8lGwE5fWcCxaPDl/8jWG0MisjJ+CJe6SDDBH/IZ4pJR9iRGP9ljBM+lI2h1/ X-Received: by 2002:a05:6402:8c2:: with SMTP id d2mr3750908edz.217.1571623855142; Sun, 20 Oct 2019 19:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571623855; cv=none; d=google.com; s=arc-20160816; b=FSQgwRKG7d77z+VWbsWxEjYslt/peI6SRA1Mzrl4LCmxulGSBzaji5g2tFmfBz+1SU /wnyU6WGXg7l8IOrcXtMnlMDydMpDeFfTbWmtnktwPyyhYHUhjCcaCIodkSNwjbFMqLb ap8apk2vIp74D1kFPbmG9nS4ivMGzw+W3n+Af1scIJ2+m67Ca2T5a4TNJQu9tHUK03ox dOQV7J7Y1LgMwjOT5s1bQoR6LSeB3W7EFOoR0+sAoaQCn/Yb7VjESzwnxMqAJ3aG43uf RE3PWsSyYlaoc9hJtpMIgi6qQd21woE0RGduKtg/tiepedFY3SxFRQIZZWWwpSZ9wIwZ YNFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=9GRNAOTvR4WTZHIq462Ak4r4WsnhoNKk1pzd18lXF8I=; b=O9i8s+MlscJUk7cBmt4HTAgb2IKCGUfgky46sG9YBMafBOjsUhhI17ICZZyInU0dzk BLMNnxc+r8ek7Wx36nDLNSF5PAFNx6H3zswYQM0hETD9sUq7sULJojr6VTeV6jDbhluM qgNVk95XjjVtitcfqPuY5E11XQSi+wBFdLpseXtGN/pFVws7LRLAgJwRypVW80cO+ry+ F5RvQS0DAkXYlXya5+3SmXgJDMR0Qer4KtNxTnK/7klZI98LuA1KkGKE6GyTSfhmMc8M wjykwB6pWNNgl2ybflIf4clJXXfZf1b/2X7EjNnSp92bcASJubMhiVugIZHm10qcxdsu oCjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c48si8885923eda.100.2019.10.20.19.10.54; Sun, 20 Oct 2019 19:10:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726920AbfJUCKr (ORCPT + 26 others); Sun, 20 Oct 2019 22:10:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:57656 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726873AbfJUCKq (ORCPT ); Sun, 20 Oct 2019 22:10:46 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 84B04B1FF; Mon, 21 Oct 2019 02:10:44 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Russell King , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] ARM: Prepare Realtek RTD1195 Date: Mon, 21 Oct 2019 04:10:34 +0200 Message-Id: <20191021021035.7032-3-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191021021035.7032-1-afaerber@suse.de> References: <20191021021035.7032-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce ARCH_REALTEK Kconfig option also for 32-bit Arm. Override the text offset to cope with boot ROM living up to 0xf4000. Signed-off-by: Andreas Färber --- arch/arm/Kconfig | 2 ++ arch/arm/Makefile | 1 + arch/arm/mach-realtek/Kconfig | 16 ++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 arch/arm/mach-realtek/Kconfig -- 2.16.4 diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 8a50efb559f3..ac0d1837253d 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -700,6 +700,8 @@ source "arch/arm/mach-qcom/Kconfig" source "arch/arm/mach-rda/Kconfig" +source "arch/arm/mach-realtek/Kconfig" + source "arch/arm/mach-realview/Kconfig" source "arch/arm/mach-rockchip/Kconfig" diff --git a/arch/arm/Makefile b/arch/arm/Makefile index db857d07114f..60c76380f380 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -148,6 +148,7 @@ head-y := arch/arm/kernel/head$(MMUEXT).o textofs-y := 0x00008000 # We don't want the htc bootloader to corrupt kernel during resume textofs-$(CONFIG_PM_H1940) := 0x00108000 +textofs-$(CONFIG_ARCH_REALTEK) := 0x00108000 # SA1111 DMA bug: we don't want the kernel to live in precious DMA-able memory ifeq ($(CONFIG_ARCH_SA1100),y) textofs-$(CONFIG_SA1111) := 0x00208000 diff --git a/arch/arm/mach-realtek/Kconfig b/arch/arm/mach-realtek/Kconfig new file mode 100644 index 000000000000..67ae5f122acb --- /dev/null +++ b/arch/arm/mach-realtek/Kconfig @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +menuconfig ARCH_REALTEK + bool "Realtek SoCs" + depends on ARCH_MULTI_V7 + select ARM_AMBA + select ARM_GIC + select ARM_GLOBAL_TIMER + select CACHE_L2X0 + select CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK + select COMMON_CLK + select GENERIC_IRQ_CHIP + select HAVE_ARM_SCU if SMP + select HAVE_ARM_TWD if SMP + select RESET_CONTROLLER + help + This enables support for the Realtek RTD1195 SoC family.