From patchwork Sun Jan 25 18:30:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsahee Zidenberg X-Patchwork-Id: 5703111 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 12BFE9F302 for ; Sun, 25 Jan 2015 18:33:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3BC3120165 for ; Sun, 25 Jan 2015 18:33:18 +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 158BD20125 for ; Sun, 25 Jan 2015 18:33:17 +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 1YFRxc-0004E0-Lb; Sun, 25 Jan 2015 18:31:00 +0000 Received: from mail-wi0-f179.google.com ([209.85.212.179]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YFRxX-00048W-RQ for linux-arm-kernel@lists.infradead.org; Sun, 25 Jan 2015 18:30:57 +0000 Received: by mail-wi0-f179.google.com with SMTP id l15so5948014wiw.0 for ; Sun, 25 Jan 2015 10:30:32 -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:subject:message-id:user-agent :mime-version:content-type:content-transfer-encoding; bh=PymtQjX2yuzF6TCzNLNj7eMzR/E3EegEjVPqDYXEGB8=; b=JVJmtMQO2ILotiZ8cngcCs+cHhy3fG5RUJaD493uX1Ntog4v8TwjT3QWJIQIiwRpMt 9SP3B3CRK9+mz7dDF76VkafhJw7ZiznBfqnxJ6bM7+z98OR+bcmObBnZ0EyNlyjJC7bM rIE2yxL5h0Rq78uc6C2nuyaBhgvezPKOoIb0RNgTnGnSQD3eokPYsT0+2dFXWhUtfYNU 8QBvsKFWLb13yluTGu4+4P7QAnGRL5OEuD+BWVtPtqdvXiOdRCTNMdGoCSKtqfQDVZsF Jy6nvwHumzmaNd66bekjcUJRuADNFRJ+a9grENm+nctKz/vjtAVjp/cF/+oRd/Rqa5Z0 eLBw== X-Gm-Message-State: ALoCoQmxxImvAPG8kTdFzF7DaUYkNQiA/HruHnUqkoEqF0IyxDeSfqdx2F9r7XdlukDAWTeljZqj X-Received: by 10.194.189.77 with SMTP id gg13mr33254065wjc.81.1422210632856; Sun, 25 Jan 2015 10:30:32 -0800 (PST) Received: from localhost ([82.166.183.244]) by mx.google.com with ESMTPSA id da2sm11108958wjb.21.2015.01.25.10.30.31 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 25 Jan 2015 10:30:32 -0800 (PST) Date: Sun, 25 Jan 2015 20:30:30 +0200 From: Tsahee Zidenberg To: Saeed Bishara , Barak Wasserstrom , linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/4] ARM: Alpine: Initial support for Alpine platform Message-ID: <54c53646.iNC1Dzn7F2OiXCRg%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-20150125_103056_062372_A9EC91C2 X-CRM114-Status: GOOD ( 12.81 ) X-Spam-Score: -0.7 (/) 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 --- 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 97d07ed..deda99f 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..937cad2 --- /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 GENERIC_IRQ_CHIP + select HAVE_ARM_ARCH_TIMER + select ARM_GIC + 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..4f13d62 --- /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 = { + "annapurna-labs,alpine", + NULL, +}; + +DT_MACHINE_START(AL_DT, "Annapurna Labs Alpine") + .dt_compat = al_match, +MACHINE_END