From patchwork Sat Mar 14 11:49:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 45810 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D84AF214BF for ; Sat, 14 Mar 2015 11:52:40 +0000 (UTC) Received: by wggy19 with SMTP id y19sf20133197wgg.2 for ; Sat, 14 Mar 2015 04:52:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=vFGOcL+4b/8a3jHkyFTLME2ADHykWc42PgO2AxahGYI=; b=kFwU/SEHyDdZrzBJIyIedXKmV+63sVRzXxxReW7guPcktgii8Yy5r3xXsY7kxDmvHw 2127ZGd7F4vz2Nx9I8c2p+DO/3sN3Cnzx1MON5knnh2NKulfDObxHwbx65tbnDgYDRjn j58e1aDhezI3OYXVMfZy3cJHiZ5xwvzVSNl5AoL7IW+OC1WkC7jOqmrVGXCJ0sQLDAc8 fcswqP14BiNMdOyhbj2ld8PchW4507dhCurLgpsY1zVNKG1TVOAJ3iTuAkMr8Lmp3pQZ VGNye7mE9DNBswDoKiotfvDz9jd8pBvHO/Y4w8+Zxbw/JUE8kYi9ftgHa+f6njgP9wTh 6ufA== X-Gm-Message-State: ALoCoQkYStRo82bw2Ewiyd5I8Am7N8oRF7X41FTGt2gos4Egz4TCHr8j+VL5j2ls8iFjpn9DOltu X-Received: by 10.112.202.227 with SMTP id kl3mr1178923lbc.2.1426333960152; Sat, 14 Mar 2015 04:52:40 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.197.2 with SMTP id iq2ls503957lac.100.gmail; Sat, 14 Mar 2015 04:52:39 -0700 (PDT) X-Received: by 10.112.62.167 with SMTP id z7mr17878097lbr.115.1426333959866; Sat, 14 Mar 2015 04:52:39 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id bb1si3364489lab.113.2015.03.14.04.52.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Mar 2015 04:52:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lbcds1 with SMTP id ds1so5268477lbc.3 for ; Sat, 14 Mar 2015 04:52:39 -0700 (PDT) X-Received: by 10.112.172.229 with SMTP id bf5mr46384433lbc.72.1426333959763; Sat, 14 Mar 2015 04:52:39 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp1477482lbj; Sat, 14 Mar 2015 04:52:38 -0700 (PDT) X-Received: by 10.70.93.36 with SMTP id cr4mr111444851pdb.168.1426333957910; Sat, 14 Mar 2015 04:52:37 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id fa9si9450496pdb.76.2015.03.14.04.52.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Mar 2015 04:52:37 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; 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 1YWkaY-0003Cd-UO; Sat, 14 Mar 2015 11:50:42 +0000 Received: from mail-pd0-f179.google.com ([209.85.192.179]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YWkaN-0002x3-9E for linux-arm-kernel@lists.infradead.org; Sat, 14 Mar 2015 11:50:32 +0000 Received: by pdnc3 with SMTP id c3so10862031pdn.0 for ; Sat, 14 Mar 2015 04:50:09 -0700 (PDT) X-Received: by 10.70.35.193 with SMTP id k1mr101734727pdj.46.1426333809705; Sat, 14 Mar 2015 04:50:09 -0700 (PDT) Received: from localhost.localdomain ([107.6.112.156]) by mx.google.com with ESMTPSA id ov5sm7365488pdb.91.2015.03.14.04.50.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 14 Mar 2015 04:50:08 -0700 (PDT) From: Jun Nie To: linux-arm-kernel@lists.infradead.org, mturquette@linaro.org, linux@arm.linux.org.uk, shawn.guo@linaro.org, jun.nie@linaro.org, zte-lt@lists.linaro.org Subject: [PATCH 01/10] ARM: zx: add basic support of ZTE ZX296702 Date: Sat, 14 Mar 2015 19:49:36 +0800 Message-Id: <1426333785-3952-2-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1426333785-3952-1-git-send-email-jun.nie@linaro.org> References: <1426333785-3952-1-git-send-email-jun.nie@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150314_045031_389063_F7BB6D8B X-CRM114-Status: GOOD ( 12.19 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.192.179 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.192.179 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: jun.nie@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Add basic code for ZTE ZX296702 platform. Signed-off-by: Jun Nie --- arch/arm/Kconfig | 2 ++ arch/arm/Makefile | 1 + arch/arm/mach-zx/Kconfig | 21 +++++++++++++++++++++ arch/arm/mach-zx/Makefile | 1 + arch/arm/mach-zx/zx296702.c | 20 ++++++++++++++++++++ 5 files changed, 45 insertions(+) create mode 100644 arch/arm/mach-zx/Kconfig create mode 100644 arch/arm/mach-zx/Makefile create mode 100644 arch/arm/mach-zx/zx296702.c diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 9f1f09a..7516833 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -967,6 +967,8 @@ source "arch/arm/mach-vt8500/Kconfig" source "arch/arm/mach-w90x900/Kconfig" +source "arch/arm/mach-zx/Kconfig" + source "arch/arm/mach-zynq/Kconfig" # Definitions to make life easier diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 7f99cd6..33b1588 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -204,6 +204,7 @@ machine-$(CONFIG_ARCH_VERSATILE) += versatile machine-$(CONFIG_ARCH_VEXPRESS) += vexpress machine-$(CONFIG_ARCH_VT8500) += vt8500 machine-$(CONFIG_ARCH_W90X900) += w90x900 +machine-$(CONFIG_ARCH_ZX) += zx machine-$(CONFIG_ARCH_ZYNQ) += zynq machine-$(CONFIG_PLAT_SPEAR) += spear diff --git a/arch/arm/mach-zx/Kconfig b/arch/arm/mach-zx/Kconfig new file mode 100644 index 0000000..6c1628d --- /dev/null +++ b/arch/arm/mach-zx/Kconfig @@ -0,0 +1,21 @@ +config ARCH_ZX + bool "ZTE ZX family" if ARCH_MULTI_V7 + help + Support for ZTE ZX-based family of processors. TV + set-top-box processor is supported. More will be + added soon. + +menu "ZTE ZX options" + depends on ARCH_ZX + +config SOC_ZX296702 + bool "Enable support for ZX296702 SoC" + select ARM_GIC + select ARM_GLOBAL_TIMER + select HAVE_ARM_SCU if SMP + select HAVE_ARM_TWD if SMP + select MIGHT_HAVE_CACHE_L2X0 + help + Support for ZTE ZX296702 SoC which is a dual core CortexA9MP + +endmenu diff --git a/arch/arm/mach-zx/Makefile b/arch/arm/mach-zx/Makefile new file mode 100644 index 0000000..7a541c7 --- /dev/null +++ b/arch/arm/mach-zx/Makefile @@ -0,0 +1 @@ +obj-$(CONFIG_SOC_ZX296702) += zx296702.o diff --git a/arch/arm/mach-zx/zx296702.c b/arch/arm/mach-zx/zx296702.c new file mode 100644 index 0000000..fdd7961 --- /dev/null +++ b/arch/arm/mach-zx/zx296702.c @@ -0,0 +1,20 @@ +/* + * Copyright 2014 Linaro Ltd. + * Copyright (C) 2014 ZTE Corporation. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include +#include + +static const char *zx296702_dt_compat[] __initconst = { + "zte,zx296702", + NULL, +}; + +DT_MACHINE_START(ZX, "ZTE ZX296702 (Device Tree)") + .dt_compat = zx296702_dt_compat, +MACHINE_END