From patchwork Thu Feb 5 17:15:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsahee Zidenberg X-Patchwork-Id: 5785841 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 C8BB8BF440 for ; Thu, 5 Feb 2015 17:18:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DA2CE20225 for ; Thu, 5 Feb 2015 17:18:31 +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 F2850200DF for ; Thu, 5 Feb 2015 17:18:30 +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 1YJQ2Z-00062Y-CH; Thu, 05 Feb 2015 17:16:31 +0000 Received: from mail-wi0-f181.google.com ([209.85.212.181]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YJQ2N-0005on-8a for linux-arm-kernel@lists.infradead.org; Thu, 05 Feb 2015 17:16:19 +0000 Received: by mail-wi0-f181.google.com with SMTP id fb4so12042221wid.2 for ; Thu, 05 Feb 2015 09:15:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:user-agent :mime-version:content-type:content-transfer-encoding; bh=7MRcBysqaIjM5uG/6Nm5hW78kNLXD6bIbkySrYkVegM=; b=aqIo4KrTTyueHxujgWCTTogYNLwKrqyB9CpJbPmuDXmqh+Sup1PLOVume6pQsrkm+e IukEmLoEi5Efcr+hHhx/j60DbnFwm12BNX3Ct7Hc+cWsb2OiWm5eal+d7inx1c8gAyhi RfrKj+5f932Kqsr78K3FdCVJOnfN3uNrPmexVSsJjRJDj0kAc0sm3gYGSKAETkPiuyxn 3pYRTmPAans4ceiEi54cKYP1NwqGaNrpOU73Pn0vj2wHil6sWaIb9R1w19vpuXX5hFtg Zu3UB5+BGeW1Tbh1t6RTCvtmjg3Uygb/Ide9mSye/9Bp6g0WbyZ6UzvH6Y+Mqq5ajSZv iTbg== X-Gm-Message-State: ALoCoQl8sW5RDREShlhz85KuhnJz31AsAhDzS1mPVq6l2XFwOEBaolZvHNY2/xdreTs8ZThyp7Un X-Received: by 10.180.228.72 with SMTP id sg8mr58637511wic.48.1423156557351; Thu, 05 Feb 2015 09:15:57 -0800 (PST) Received: from localhost ([82.166.183.244]) by mx.google.com with ESMTPSA id v7sm8210540wju.22.2015.02.05.09.15.55 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 05 Feb 2015 09:15:56 -0800 (PST) Date: Thu, 05 Feb 2015 19:15:53 +0200 From: Tsahee Zidenberg To: arm@kernel.org, linux-arm-kernel@lists.infradead.org, barak@annapurnalabs.com, saeed@annapurnalabs.com Subject: [PATCH v5 1/6] ARM: Alpine: Initial support for Alpine platform Message-ID: <54d3a549.0GyD9wARyHVLV8QC%tsahee@annapurnalabs.com> User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150205_091619_452820_A6224F27 X-CRM114-Status: GOOD ( 12.41 ) X-Spam-Score: -0.7 (/) Cc: mark.rutland@arm.com, sboyd@codeaurora.org, zeev@annapurnalabs.com, rshitrit@annapurnalabs.com, olof@lixom.net, maxime.coquelin@st.com 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: , 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.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, 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 This patch introduces initial architecture and device-tree support. Signed-off-by: Saeed Bishara Signed-off-by: Tsahee Zidenberg Acked-by: Arnd Bergmann --- arch/arm/Kconfig | 2 ++ arch/arm/Makefile | 1 + arch/arm/mach-alpine/Kconfig | 8 ++++++++ arch/arm/mach-alpine/Makefile | 1 + arch/arm/mach-alpine/alpine_machine.c | 28 ++++++++++++++++++++++++++++ 5 files changed, 40 insertions(+) create mode 100644 arch/arm/mach-alpine/Kconfig create mode 100644 arch/arm/mach-alpine/Makefile create mode 100644 arch/arm/mach-alpine/alpine_machine.c diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f5dd6e9..c74441b 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -842,6 +842,8 @@ config ARCH_VIRT # source "arch/arm/mach-mvebu/Kconfig" +source "arch/arm/mach-alpine/Kconfig" + source "arch/arm/mach-asm9260/Kconfig" source "arch/arm/mach-at91/Kconfig" diff --git a/arch/arm/Makefile b/arch/arm/Makefile index c1785ee..bcc4113 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -143,6 +143,7 @@ textofs-$(CONFIG_ARCH_AXXIA) := 0x00308000 # Machine directory name. This list is sorted alphanumerically # by CONFIG_* macro name. +machine-$(CONFIG_ARCH_ALPINE) += alpine machine-$(CONFIG_ARCH_AT91) += at91 machine-$(CONFIG_ARCH_AXXIA) += axxia machine-$(CONFIG_ARCH_BCM) += bcm diff --git a/arch/arm/mach-alpine/Kconfig b/arch/arm/mach-alpine/Kconfig new file mode 100644 index 0000000..44b9a8f --- /dev/null +++ b/arch/arm/mach-alpine/Kconfig @@ -0,0 +1,8 @@ +config ARCH_ALPINE + bool "Annapurna Labs Alpine platform" if ARCH_MULTI_V7 + select ARM_AMBA + select ARM_GIC + select GENERIC_IRQ_CHIP + select HAVE_ARM_ARCH_TIMER + help + This enables support for the Annapurna Labs Alpine V1 boards. diff --git a/arch/arm/mach-alpine/Makefile b/arch/arm/mach-alpine/Makefile new file mode 100644 index 0000000..b7dbb12 --- /dev/null +++ b/arch/arm/mach-alpine/Makefile @@ -0,0 +1 @@ +obj-y += alpine_machine.o diff --git a/arch/arm/mach-alpine/alpine_machine.c b/arch/arm/mach-alpine/alpine_machine.c new file mode 100644 index 0000000..b8e2145 --- /dev/null +++ b/arch/arm/mach-alpine/alpine_machine.c @@ -0,0 +1,28 @@ +/* + * Machine declaration for Alpine platforms. + * + * Copyright (C) 2015 Annapurna Labs Ltd. + * + * 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 + +static const char * const al_match[] __initconst = { + "al,alpine", + NULL, +}; + +DT_MACHINE_START(AL_DT, "Annapurna Labs Alpine") + .dt_compat = al_match, +MACHINE_END