From patchwork Thu Mar 3 11:40:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 8491801 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 36CD9C0553 for ; Thu, 3 Mar 2016 11:48:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4BC3E20260 for ; Thu, 3 Mar 2016 11:48:33 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 54EFD2011B for ; Thu, 3 Mar 2016 11:48:32 +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 1abRhN-0003Ro-0M; Thu, 03 Mar 2016 11:45:41 +0000 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1abRcs-0006ym-EI for linux-arm-kernel@lists.infradead.org; Thu, 03 Mar 2016 11:41:06 +0000 Received: by mail-wm0-x234.google.com with SMTP id l68so30783501wml.0 for ; Thu, 03 Mar 2016 03:40:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/oghAjIXgEh6kP4V3Jby4dDCGrDbMIAUCZBVFvbj9Mo=; b=WRFndzzRQOmsyAabLt5Txv+qDj+vuJMvLMVb3IelSxf6vRZjEu63zDAmATD6rfvcfB KVnDkvnNj7fhCAh2u8d2QTVd2x222Uuj/t4ttyvjatBAECQWtkF3CwIU8f0u+78HrKLl pVpUzAZPL4ddDfm8wGFr2nz1JaSZDYOdRAcJunwKTzJh0r3uiwoTL2hSr+2ptYrRshqV nCX4V/szr2ruBiXhHE4LSuwXRddEzJuPNLHQRcoRlUvX7vkUCs9awOU3dU5ofwyvoEmI vgPU1ZJKhrawXI94tiuA1c52tcJwoRdYS0qFGN/3BXl2qa+3jbLa6KlOAvLYGs8Kjn4K w5SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/oghAjIXgEh6kP4V3Jby4dDCGrDbMIAUCZBVFvbj9Mo=; b=dl03d6w8hQQfPngoyKGI1UqpDtZ5QqDC/6nIueJqUY1w1WyF+dG+423ZivUrdsZ3CX Z70NBNsLpfPdRFVt1ogxQOdl5n+fhr+Ra6huv4xBMfjAj08sLfHZGS/ufItwW8AQ+QDm rDkw7JCNb2XjtlY0ESBn9yCoBV00Tp7M5SAsb8EL7t8IEvzOM3x74sNyX+hADAkGNSzV 5fppSxsluJnw1PK0FgL7MgMW855bzaTaX9kysACo+nctK3Vp07OGGg9QttMmlTQglTcB 4J97hrHPdAnMWaKX14DfApixpc7PfnL34msxd6raqrEG7blqri70D2wfxWyOBLkVYWnm FUmA== X-Gm-Message-State: AD7BkJIMeW2BCedSTSpzyTENenFf8tlt8TbCT5OTWtainyVKqX7rJrT2XtFHLpSmz4HkYanK X-Received: by 10.194.21.197 with SMTP id x5mr1503113wje.90.1457005240885; Thu, 03 Mar 2016 03:40:40 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id j18sm8559725wmd.2.2016.03.03.03.40.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Mar 2016 03:40:40 -0800 (PST) From: Neil Armstrong To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk Subject: [PATCH 12/17] arm: Add new mach-oxnas Date: Thu, 3 Mar 2016 12:40:05 +0100 Message-Id: <1457005210-18485-13-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1457005210-18485-1-git-send-email-narmstrong@baylibre.com> References: <1457005210-18485-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160303_034102_913875_F7A832FF X-CRM114-Status: GOOD ( 15.58 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong 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=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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 Add mach-oxnas directory containing Kconfig and generic oxnas handling for future SoC specific features like system reset. Signed-off-by: Neil Armstrong --- arch/arm/mach-oxnas/Kconfig | 24 ++++++++++++++++++++++++ arch/arm/mach-oxnas/Makefile | 1 + arch/arm/mach-oxnas/oxnas.c | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 arch/arm/mach-oxnas/Kconfig create mode 100644 arch/arm/mach-oxnas/Makefile create mode 100644 arch/arm/mach-oxnas/oxnas.c diff --git a/arch/arm/mach-oxnas/Kconfig b/arch/arm/mach-oxnas/Kconfig new file mode 100644 index 0000000..6a1f24c --- /dev/null +++ b/arch/arm/mach-oxnas/Kconfig @@ -0,0 +1,24 @@ +menuconfig ARCH_OXNAS + bool "PLX Technology OXNAS Family SoCs" + select ARCH_REQUIRE_GPIOLIB + select ARCH_HAS_RESET_CONTROLLER + select PINCTRL + depends on ARCH_MULTI_V5 + help + Support for OxNas SoC family developed by PLX Technology. + (Formely Oxford Semiconductor) + +if ARCH_OXNAS + +config MACH_OX810SE + bool "Support OX810SE Based Products" + select CPU_ARM926T + select PLXTECH_RPS + select CLKSRC_RPS_TIMER + select RESET_OXNAS + select COMMON_CLK_OXNAS + select PINCTRL_OXNAS + help + Include Support for the PLX Technology OX810SE SoC Based Products. + +endif diff --git a/arch/arm/mach-oxnas/Makefile b/arch/arm/mach-oxnas/Makefile new file mode 100644 index 0000000..c54bec7 --- /dev/null +++ b/arch/arm/mach-oxnas/Makefile @@ -0,0 +1 @@ +obj-y := oxnas.o diff --git a/arch/arm/mach-oxnas/oxnas.c b/arch/arm/mach-oxnas/oxnas.c new file mode 100644 index 0000000..ebdcd9d --- /dev/null +++ b/arch/arm/mach-oxnas/oxnas.c @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2016 Neil Armstrong + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include +#include +#include + +static const char * const oxnas_dt_compat[] __initconst = { + "plxtech,ox810se", + NULL, +}; + +static void __init oxnas_init(void) +{ + pr_info("OXNAS Device Tree boot\n"); + + of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); +} + +DT_MACHINE_START(OXNAS, "PLX Technology OXNAS Family") + .dt_compat = oxnas_dt_compat, + .init_machine = oxnas_init, +MACHINE_END