From patchwork Sat May 31 18:00:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 4276341 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8D7E9BEEA7 for ; Sat, 31 May 2014 18:03:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 81CBC20266 for ; Sat, 31 May 2014 18:03:43 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0B8B62020A for ; Sat, 31 May 2014 18:03:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WqnaG-0002gz-HO; Sat, 31 May 2014 18:00:44 +0000 Received: from smtp14.mail.ru ([94.100.181.95]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WqnaC-0002QA-1i for linux-arm-kernel@lists.infradead.org; Sat, 31 May 2014 18:00:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Message-Id:Date:Subject:Cc:To:From; bh=AFcB37R5bWlPuv8Tluc/f1p3HA9VmlsYXPMtYAp7Ngc=; b=QcC5z5GaZY5gKnz7zVoMVVmv8WeA1FMeDTsn2pqGWzck7RJqd/E/YkdpigzYHJpRK7JkuuZWaw7g+XIv4VTyhJjGD8Wm3eNAlozuXfMyihR2Yb3ZfvwFP05j3QKzAeTbUgEn7TfgMsLsiFRsK0uBHtzgdGEWyNJl25UYSvmZUl0=; Received: from [5.18.98.7] (port=61827 helo=shc.zet) by smtp14.mail.ru with esmtpa (envelope-from ) id 1WqnZl-0000Ld-Sz; Sat, 31 May 2014 22:00:14 +0400 From: Alexander Shiyan To: linux-arm-kernel@lists.infradead.org Subject: [PATCH RFC] ARM: clps711x: Partial multiplatform support Date: Sat, 31 May 2014 22:00:06 +0400 Message-Id: <1401559206-23767-1-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 1.8.5.5 X-Mras: Ok X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140531_110040_720200_D744AEE9 X-CRM114-Status: GOOD ( 13.69 ) X-Spam-Score: -0.1 (/) Cc: Olof Johansson , Kevin Hilman , Russell King , Alexander Shiyan , Arnd Bergmann X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch provide initial partial multiplatform support for CLPS711X CPUs. Not intended for apply, just for comments at now. --- arch/arm/Kconfig | 10 ++-------- arch/arm/mach-clps711x/Kconfig | 21 +++++++++++++++++++++ arch/arm/mach-clps711x/common.c | 2 +- arch/arm/mach-clps711x/devices.c | 2 +- arch/arm/mach-clps711x/include/mach/hardware.h | 2 +- 5 files changed, 26 insertions(+), 11 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 899afa4..aced2fb 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -385,15 +385,9 @@ config ARCH_AT91 This enables support for systems based on Atmel AT91RM9200 and AT91SAM9* processors. -config ARCH_CLPS711X +config CLPS711X_SINGLE bool "Cirrus Logic CLPS711x/EP721x/EP731x-based" - select ARCH_REQUIRE_GPIOLIB - select AUTO_ZRELADDR - select CLKSRC_MMIO - select COMMON_CLK - select CPU_ARM720T - select GENERIC_CLOCKEVENTS - select MFD_SYSCON + select ARCH_CLPS711X help Support for Cirrus Logic 711x/721x/731x based boards. diff --git a/arch/arm/mach-clps711x/Kconfig b/arch/arm/mach-clps711x/Kconfig index f711498..1802562 100644 --- a/arch/arm/mach-clps711x/Kconfig +++ b/arch/arm/mach-clps711x/Kconfig @@ -1,15 +1,34 @@ +config ARCH_CLPS711X + bool + depends on CLPS711X_SINGLE || CLPS711X_MULTI + select ARCH_REQUIRE_GPIOLIB + select AUTO_ZRELADDR + select CLKSRC_MMIO + select COMMON_CLK + select CPU_ARM720T + select GENERIC_CLOCKEVENTS + select MFD_SYSCON + +config CLPS711X_MULTI + bool "Cirrus Logic CLPS711X" if ARCH_MULTI_V4T + select ARCH_CLPS711X + help + Support for Cirrus Logic CLPS711X-based family of processors. + if ARCH_CLPS711X menu "CLPS711X/EP721X/EP731X Implementations" config ARCH_AUTCPU12 bool "AUTCPU12" + depends on CLPS711X_SINGLE help Say Y if you intend to run the kernel on the autronix autcpu12 board. This board is based on a Cirrus Logic CS89712. config ARCH_CDB89712 bool "CDB89712" + depends on CLPS711X_SINGLE help This is an evaluation board from Cirrus for the CS89712 processor. The board includes 2 serial ports, Ethernet, IRDA, and expansion @@ -22,6 +41,7 @@ config ARCH_CLEP7312 config ARCH_EDB7211 bool "EDB7211" + depends on CLPS711X_SINGLE select ARCH_HAS_HOLES_MEMORYMODEL help Say Y here if you intend to run this kernel on a Cirrus Logic EDB-7211 @@ -29,6 +49,7 @@ config ARCH_EDB7211 config ARCH_P720T bool "P720T" + depends on CLPS711X_SINGLE help Say Y here if you intend to run this kernel on the ARM Prospector 720T. diff --git a/arch/arm/mach-clps711x/common.c b/arch/arm/mach-clps711x/common.c index 2a6323b..a230989 100644 --- a/arch/arm/mach-clps711x/common.c +++ b/arch/arm/mach-clps711x/common.c @@ -35,7 +35,7 @@ #include #include -#include +#include "include/mach/hardware.h" #include "common.h" diff --git a/arch/arm/mach-clps711x/devices.c b/arch/arm/mach-clps711x/devices.c index 0c689d3..08562d5 100644 --- a/arch/arm/mach-clps711x/devices.c +++ b/arch/arm/mach-clps711x/devices.c @@ -12,7 +12,7 @@ #include #include -#include +#include "include/mach/hardware.h" static const struct resource clps711x_cpuidle_res __initconst = DEFINE_RES_MEM(CLPS711X_PHYS_BASE + HALT, SZ_128); diff --git a/arch/arm/mach-clps711x/include/mach/hardware.h b/arch/arm/mach-clps711x/include/mach/hardware.h index 833129c..e507a60 100644 --- a/arch/arm/mach-clps711x/include/mach/hardware.h +++ b/arch/arm/mach-clps711x/include/mach/hardware.h @@ -22,7 +22,7 @@ #ifndef __MACH_HARDWARE_H #define __MACH_HARDWARE_H -#include +#include "clps711x.h" #define CLPS711X_VIRT_BASE IOMEM(0xfeff0000)