Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1659315imu; Sun, 18 Nov 2018 06:21:40 -0800 (PST) X-Google-Smtp-Source: AJdET5fE0Zbx2TPj0BCK2h05KAYecxgAtaUa4i9wgKJbdKWWKf+fMyM88q3gXEyuaHTb+Le56TA0 X-Received: by 2002:a17:902:4324:: with SMTP id i33-v6mr18898234pld.253.1542550900581; Sun, 18 Nov 2018 06:21:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542550900; cv=none; d=google.com; s=arc-20160816; b=AYz4tCvdadL1keMOQQRU24qasboO+h5o2b00y9rlKaD0BUvjgytBXDbweo4SkLD/zJ d0YHuYEc3+Qsh4BftEGFddLb/U3L6TKR3o0rEkBP3BODpsG22ZN+GuGtaW/S0d2JmSKG omqmqqucBi69eVyylotPZSlFs95DeGT2KVLRR4cFZea6t6ZDC+U2Qb+M0eF3xljO440z t7v+hVIw0Bu/BxamMvLquTcNHS51ddnqcpqne9RTeSoKykBlATu5zixQVxIyBaVDRxtX VN2aAGdGBGO4BwBJ6IEBGVri/GODLyGsc3pqv8W5xi2avyRHA4HaRPnhrMxsc9u8hz3j yftQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=eVxn2S5b8Rm3xMwzLp61fPQf3In884gsXDLPlcLdD0U=; b=KQosTLPN4evfI1roafD0GfNf0LeW+ciGOvwFZXs/ga1JTOmODE5tUPDFFSHrhO8aRX zGUNGYfuvlxHKQIvtGUxr5LeKxc6BXjgL4WDk3I62y7ysRV4G7AztmxIsct2vVq74Zvo PtrW5gm5jfyPXWYE1y1JtVB+HPHWE8wO4u5BIFuf9to7VGcDRhgcxj5vlLFS6z6O/rVK Ue4M9+95G7JCGziARab5UEmE8iZYpFwhga+nFnmKINJELOjPBIbpABc3FQio8M3A3z/7 dE8cTIJwy543n/WWiCGo8NPSzpp2KwI4lgnwYls2tBBtX/UnV8nShGgnixH6WGiE/yp2 GHAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mapB0eIs; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8si28420081pfa.11.2018.11.18.06.21.26; Sun, 18 Nov 2018 06:21:40 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mapB0eIs; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727611AbeKSAiw (ORCPT + 99 others); Sun, 18 Nov 2018 19:38:52 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:34426 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727551AbeKSAiv (ORCPT ); Sun, 18 Nov 2018 19:38:51 -0500 Received: by mail-wr1-f65.google.com with SMTP id j2so940398wrw.1; Sun, 18 Nov 2018 06:18:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eVxn2S5b8Rm3xMwzLp61fPQf3In884gsXDLPlcLdD0U=; b=mapB0eIshpyPJBIcKqfWpIppTUTzzrt2o93NGkabJwAHi0DAL9tFKrCXmO3d2t8qL1 9VhqidfEZgFtXIkZvgMA851WBbrfkJfYF2I+wLc/hIK3kieyuIhVeB/emJYXzPNI5IvV R3UwKhZsGeewp5Pk4dnfL8oIIdO7GTsnOVtqZd8MxxR2ceSG9bUiIGeQxNnAyRxiiume 8Hstbq3cbY8FAFQ36qQ2/d5vhA8YqEfRmKfMR6kGsWE5WonewutTskKU5Kwj+BxFvcTz FZzFLA5MTb4EsShYX/43RrjcXt9xeJH62sS+tFFXSFCMpgv/QzZqhdnW4b/+itopPQqd sFKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eVxn2S5b8Rm3xMwzLp61fPQf3In884gsXDLPlcLdD0U=; b=UvsbePLMr/gYPlpjF5r8Bh0aagkRAj7y+vYhQy2kWPsZOsNggOVWTLB3yg29yQvuJO VnHE7VqZyb7tyzneKYUi2CgULKZAuAfUAT8y4/cSA3+23LgT0B4Z2CpJ+kdb71JD+vnr SULHu6hStRnuoLgSCs33sk2+nYVzBnulqAvQImmklY4j4gCjfJySEzirmzDt/WVnGj2A UVn7tc0Cbjghm0mZ99gw4N/Zp/v0q0SU1oIfqqIHlH2HGqlK88Jutb9IaboFa4J7aiHh I9cy5/OB0jGnW14WV0k85x+u/sW6A5QUd2g2BH+n2Su2eZi00cQ5gclXwN2ldVYuIJ8R XoUQ== X-Gm-Message-State: AA+aEWZbC/WB1ID4lq/+k5zl4yNDu/j43lh6znBVpf11L1WXwPvGu9T6 c0DPEUfLaUGVbB6zZbGDpFHgNCfOASw= X-Received: by 2002:a05:6000:104b:: with SMTP id c11mr2525088wrx.303.1542550702542; Sun, 18 Nov 2018 06:18:22 -0800 (PST) Received: from ThinkPad.home ([185.219.176.209]) by smtp.gmail.com with ESMTPSA id d4sm29814412wrp.89.2018.11.18.06.18.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Nov 2018 06:18:22 -0800 (PST) From: Mesih Kilinc To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com Cc: Mesih Kilinc , Maxime Ripard , Chen-Yu Tsai , Russell King , Daniel Lezcano , Marc Zyngier , Linus Walleij , Icenowy Zheng , Rob Herring , Julian Calaby Subject: [RFC PATCH v2 03/14] ARM: sunxi: add Allwinner ARMv5 SoCs Date: Sun, 18 Nov 2018 17:17:02 +0300 Message-Id: <8f07fac854eaaea63e199fe0e80cf20004dffbdf.1542546735.git.mesihkilinc@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add option for Allwinner ARMv5 SoCs and SoC F1C100s (which has a die used for many new F-series products, including F1C100A, F1C100s, F1C200s, F1C500, F1C600). Signed-off-by: Icenowy Zheng Signed-off-by: Mesih Kilinc --- arch/arm/mach-sunxi/Kconfig | 14 +++++++++++++- arch/arm/mach-sunxi/Makefile | 1 + arch/arm/mach-sunxi/sunxi_v5.c | 22 ++++++++++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 arch/arm/mach-sunxi/sunxi_v5.c diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 5db17ec..066644c 100644 --- a/arch/arm/mach-sunxi/Kconfig +++ b/arch/arm/mach-sunxi/Kconfig @@ -1,6 +1,6 @@ menuconfig ARCH_SUNXI bool "Allwinner SoCs" - depends on ARCH_MULTI_V7 + depends on ARCH_MULTI_V5 || ARCH_MULTI_V7 select ARCH_HAS_RESET_CONTROLLER select CLKSRC_MMIO select GENERIC_IRQ_CHIP @@ -64,4 +64,16 @@ config ARCH_SUNXI_MC_SMP endif +if ARCH_MULTI_V5 + +config ARCH_SUNXI_V5 + bool + select SUN4I_TIMER + +config MACH_SUNIV + bool "Allwinner new F-series (suniv) SoCs support" + select ARCH_SUNXI_V5 + +endif + endif diff --git a/arch/arm/mach-sunxi/Makefile b/arch/arm/mach-sunxi/Makefile index c9a83ab..fd17fdd 100644 --- a/arch/arm/mach-sunxi/Makefile +++ b/arch/arm/mach-sunxi/Makefile @@ -1,5 +1,6 @@ CFLAGS_mc_smp.o += -march=armv7-a obj-$(CONFIG_ARCH_SUNXI_V7) += sunxi.o +obj-$(CONFIG_ARCH_SUNXI_V5) += sunxi_v5.o obj-$(CONFIG_ARCH_SUNXI_MC_SMP) += mc_smp.o headsmp.o obj-$(CONFIG_SMP) += platsmp.o diff --git a/arch/arm/mach-sunxi/sunxi_v5.c b/arch/arm/mach-sunxi/sunxi_v5.c new file mode 100644 index 0000000..15f2d7a --- /dev/null +++ b/arch/arm/mach-sunxi/sunxi_v5.c @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree support for Allwinner F series SoCs + * + * Copyright (C) 2017 Icenowy Zheng + * Copyright (C) 2018 Mesih Kilinc + * + * This file is licensed under the terms of the GNU General Public + * License version 2. This program is licensed "as is" without any + * warranty of any kind, whether express or implied. + */ + +#include + +static const char * const suniv_board_dt_compat[] = { + "allwinner,suniv-f1c100s", + NULL, +}; + +DT_MACHINE_START(SUNXI_DT, "Allwinner suniv Family") + .dt_compat = suniv_board_dt_compat, +MACHINE_END -- 2.7.4