From patchwork Fri Oct 18 06:04:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Ungerer X-Patchwork-Id: 3064971 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5BC66BF924 for ; Fri, 18 Oct 2013 06:07:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7CC13204E1 for ; Fri, 18 Oct 2013 06:07:37 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4697F204E0 for ; Fri, 18 Oct 2013 06:07:36 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VX3Ci-0000pW-BU; Fri, 18 Oct 2013 06:06:32 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VX3CW-0001Wa-Qx; Fri, 18 Oct 2013 06:06:20 +0000 Received: from nschwmtas02p.mx.bigpond.com ([61.9.189.140]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VX3Bw-0001RU-0Y for linux-arm-kernel@lists.infradead.org; Fri, 18 Oct 2013 06:05:50 +0000 Received: from nschwcmgw05p ([61.9.190.165]) by nschwmtas02p.mx.bigpond.com with ESMTP id <20131018060521.XYBY2047.nschwmtas02p.mx.bigpond.com@nschwcmgw05p>; Fri, 18 Oct 2013 06:05:21 +0000 Received: from goober.accelecon.com ([149.135.16.88]) by nschwcmgw05p with BigPond Outbound id eW4m1m00R1u0AeD01W5M4s; Fri, 18 Oct 2013 06:05:21 +0000 X-Authority-Analysis: v=2.0 cv=etRdP/VX c=1 sm=1 a=tpHzvNDyw14p4wpd1xf5Bw==:17 a=jCFH4uAiga0A:10 a=aFTPlZ8mLXYA:10 a=abLpnCq0AAAA:8 a=z14n4PKJNzwA:10 a=93Ubh6UdAAAA:8 a=mDV3o1hIAAAA:8 a=UMS89Rir8oPzv8S3iJ8A:9 a=mzwkXjRx4sEA:10 a=zcvfvmk1Zg4A:10 a=8itaGvuMXGQA:10 a=tpHzvNDyw14p4wpd1xf5Bw==:117 From: gerg@uclinux.org To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/8] ARM: imx: add support code for IMX50 based machines Date: Fri, 18 Oct 2013 16:04:16 +1000 Message-Id: <1382076260-6422-5-git-send-email-gerg@uclinux.org> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1382076260-6422-1-git-send-email-gerg@uclinux.org> References: <1382076260-6422-1-git-send-email-gerg@uclinux.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131018_020544_308150_E0E125D7 X-CRM114-Status: GOOD ( 11.66 ) X-Spam-Score: -1.9 (-) Cc: Greg Ungerer X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 From: Greg Ungerer Add machine support code for the Freescale IMX50 SoC. It is very similar to the Freescale IMX53, it contains many of the same periperhal hardware modules, at the same address offsets as the IMX53. (Notable exceptions are that the IMX50 contains no CAN bus hardware, less GPIO, no VPU, it does contain an Electrophoretic display controller though). So this support code just uses the IMX53 definitions as they are today. We can add the extra IMX50 definitions in the future when required. Signed-off-by: Greg Ungerer --- arch/arm/mach-imx/Makefile | 1 + arch/arm/mach-imx/mach-imx50.c | 52 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 arch/arm/mach-imx/mach-imx50.c diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index 5383c58..9d94f47 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile @@ -110,6 +110,7 @@ obj-$(CONFIG_MACH_EUKREA_CPUIMX51SD) += mach-cpuimx51sd.o obj-$(CONFIG_MACH_EUKREA_MBIMXSD51_BASEBOARD) += eukrea_mbimxsd51-baseboard.o obj-$(CONFIG_MACH_IMX51_DT) += imx51-dt.o +obj-$(CONFIG_SOC_IMX50) += mach-imx50.o obj-$(CONFIG_SOC_IMX53) += mach-imx53.o obj-$(CONFIG_SOC_VF610) += clk-vf610.o mach-vf610.o diff --git a/arch/arm/mach-imx/mach-imx50.c b/arch/arm/mach-imx/mach-imx50.c new file mode 100644 index 0000000..4ac1b91 --- /dev/null +++ b/arch/arm/mach-imx/mach-imx50.c @@ -0,0 +1,52 @@ +/* + * Copyright 2013 Greg Ungerer + * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright 2011 Linaro Ltd. + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "common.h" +#include "mx53.h" + +static void __init imx50_dt_init(void) +{ + of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); +} + +static const char *imx50_dt_board_compat[] __initdata = { + "fsl,imx50", + NULL +}; + +static void __init imx50_timer_init(void) +{ + mx50_clocks_init_dt(); +} + +DT_MACHINE_START(IMX50_DT, "Freescale i.MX50 (Device Tree Support)") + .map_io = mx53_map_io, + .init_early = imx53_init_early, + .init_irq = mx53_init_irq, + .handle_irq = imx53_handle_irq, + .init_time = imx50_timer_init, + .init_machine = imx50_dt_init, + .init_late = imx53_init_late, + .dt_compat = imx50_dt_board_compat, + .restart = mxc_restart, +MACHINE_END