From patchwork Tue Feb 3 13:29:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsahee Zidenberg X-Patchwork-Id: 5768371 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 80C979F269 for ; Tue, 3 Feb 2015 13:31:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 95F3E20256 for ; Tue, 3 Feb 2015 13:31:23 +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 D2E6B20251 for ; Tue, 3 Feb 2015 13:31:21 +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 1YIdXm-0007SZ-Ob; Tue, 03 Feb 2015 13:29:30 +0000 Received: from mail-wg0-f41.google.com ([74.125.82.41]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YIdXj-0007Hh-S4 for linux-arm-kernel@lists.infradead.org; Tue, 03 Feb 2015 13:29:28 +0000 Received: by mail-wg0-f41.google.com with SMTP id a1so44604152wgh.0 for ; Tue, 03 Feb 2015 05:29:04 -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=/5erG+I3VBYMCVKycNRiL80qdPSLKARTq3o3ml5l1iQ=; b=XEnu8CczfLlDx71ZBcOn13zBKTIdGaFEZ3MdRZWjVX4vDpVb17xquJVqdhJDHpUZYf 9kf5/z/AkYzP9NGe/wPAu5HiB4Ti/K1UOrw5lPdfyc/n13LykV3KoNEILKN1aNOeZ+6D 0OOcC0rzAKqz7a1vA9qsT1AI+ZpA1TVyFG6Q1ATZKB6BKlFd8u8HMc8p94nFmCSmAcQp KA1NeHvz0LE4ROQb/6xlpuv9SVRGCV8zXkZDZsyXCJsna5RcabEN8g7gZ5N1Lb9xZMaD fMUNBfAFGhMpZeIeq4wl9c1qwzk4gB0AFSoZHVcB1t7rikzrEa/08baFscd7CGYZvFas 3rRg== X-Gm-Message-State: ALoCoQmOaHS/fqMTCg0Kc+IiJ34Hv9aPTiACy1+q6zFn9XiMNiyGT8DGCbL4tfA4cJbG1759hoEN X-Received: by 10.180.74.8 with SMTP id p8mr21331384wiv.61.1422970144603; Tue, 03 Feb 2015 05:29:04 -0800 (PST) Received: from localhost ([82.166.183.244]) by mx.google.com with ESMTPSA id n1sm16685067wib.11.2015.02.03.05.29.03 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 03 Feb 2015 05:29:03 -0800 (PST) Date: Tue, 03 Feb 2015 15:29:00 +0200 From: Tsahee Zidenberg To: arm@kernel.org, linux-arm-kernel@lists.infradead.org, barak@annapurnalabs.com, saeed@annapurnalabs.com Subject: [PATCH v4 1/6] ARM: Alpine: Initial support for Alpine platform Message-ID: <54d0cd1c.JZPcRllcuDW7d5v+%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-20150203_052928_054233_A9AF7333 X-CRM114-Status: GOOD ( 13.21 ) X-Spam-Score: -0.7 (/) Cc: olof@lixom.net, mark.rutland@arm.com, zeev@annapurnalabs.com, rshitrit@annapurnalabs.com, 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 | 5 +++++ arch/arm/mach-alpine/alpine_machine.c | 28 ++++++++++++++++++++++++++++ 5 files changed, 44 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..4548f32 --- /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..8ba9e99 --- /dev/null +++ b/arch/arm/mach-alpine/Makefile @@ -0,0 +1,5 @@ +# +# Makefile for the linux kernel. +# + +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..cf77053 --- /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 *al_match[] __initconst = { + "al,alpine", + NULL, +}; + +DT_MACHINE_START(AL_DT, "Annapurna Labs Alpine") + .dt_compat = al_match, +MACHINE_END