From patchwork Wed Jun 17 15:39:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 6626861 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 8EEC3C0020 for ; Wed, 17 Jun 2015 15:45:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A4A2520861 for ; Wed, 17 Jun 2015 15:45:17 +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 8CFD020860 for ; Wed, 17 Jun 2015 15:45:16 +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 1Z5FUD-0004ZZ-Th; Wed, 17 Jun 2015 15:42:45 +0000 Received: from mail-by2on0113.outbound.protection.outlook.com ([207.46.100.113] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5FTd-0004Cm-Mn for linux-arm-kernel@lists.infradead.org; Wed, 17 Jun 2015 15:42:10 +0000 Received: from DM2PR03CA0048.namprd03.prod.outlook.com (10.141.96.47) by SN1PR0301MB1645.namprd03.prod.outlook.com (10.162.130.139) with Microsoft SMTP Server (TLS) id 15.1.190.14; Wed, 17 Jun 2015 15:41:46 +0000 Received: from BL2FFO11FD006.protection.gbl (2a01:111:f400:7c09::164) by DM2PR03CA0048.outlook.office365.com (2a01:111:e400:2428::47) with Microsoft SMTP Server (TLS) id 15.1.190.14 via Frontend Transport; Wed, 17 Jun 2015 15:41:46 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD006.mail.protection.outlook.com (10.173.161.2) with Microsoft SMTP Server (TLS) id 15.1.190.9 via Frontend Transport; Wed, 17 Jun 2015 15:41:45 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t5HFfbMC006016; Wed, 17 Jun 2015 08:41:42 -0700 From: To: , , , , Subject: [PATCH 1/8] ARM: imx: add i.mx6ul msl support Date: Wed, 17 Jun 2015 23:39:22 +0800 Message-ID: <1434555569-8237-2-git-send-email-Frank.Li@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1434555569-8237-1-git-send-email-Frank.Li@freescale.com> References: <1434555569-8237-1-git-send-email-Frank.Li@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD006; 1:LMWNAY4GTPc+A9fkOAE4EiJEEup5NMpsYeB3EQO3jq9CX42NWJzO/yUfVtPuydEG4lgJHAQwKvjA38q5sFo/j6qodnDiS0Xes83OdW/Tm9h6E07Rd8X6MDZBUTm/Zlrk9GDXkUCOwa7aNBdy61ZmIq7qu7CUdtj1VrSTaoyHWhtubW35BnGgdB6Sy2Cyin10cATT6b2lOwPwZFLDgiwCcFRSkTe4lkK8iTh74zZJTQtTXeDk1ua44v445IQAMtwe+iwcbOBd+sY/Y7iBEf1E5h1Q/Jw2hBrGoTWGpMU9bLFwYLo/TCURgpPOi//DiUpg6o7aNvM9qAqkBdofWIwP+QuUZi3vtkvSkybSaVlty08= X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(189002)(199003)(5001770100001)(77156002)(62966003)(81156007)(6806004)(189998001)(19580405001)(107886002)(5001960100002)(19580395003)(85426001)(46102003)(105606002)(50226001)(2950100001)(77096005)(87936001)(86362001)(92566002)(86152002)(2201001)(47776003)(76176999)(50986999)(104016003)(229853001)(36756003)(50466002)(106466001)(48376002)(2004002)(2101003)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:SN1PR0301MB1645; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1645; 2:KZQMzDGcpPNSDPh9iKEl4/u7lxxfgRo1nghG86Ta4E/Yt2Gan5L1DaUA2lgxNU5Q; 2:8iNaaP12DvWYZ9IM1fJ8ZmWliNKCVMepMjLe+ndP/3zDiiaz1tuG7oAwwVgCaXQKLelXQpuQs5tySwk/v8mpaazyAycdsNeTCH1KPJtZV4yNRgtgIWa+G+Wkwe0CF26aXfQt69Id26y6RgrBHNzX0zF0pYsZcHR29v3MWywwx5QOLvtjnzJosEwyrGhr6vwpIMLO0PGpulwFgBZ4IuEAAmHLvYnyhdM3Llpyuvm6+YI=; 6:TZ6fX0BwP+d9eevsIUUw51fgS/mHNiCndddPeFpJ0Ve9JgjrhwhPRFUlQp/gXrin6eipt75Yq2bqeDJ+oUThvevh+RRoPyi6DJ64wsjeHM5Fw2MbeGMhUcVSaKsoCIZf04boZJaoXmROQzBUCRSjptNwM03QmJeAuNYDsECEyDdek6xzJduAlDyDHCmap8slhXR1tVD2pQwJtbHuS95OTDsIkhoJcGhCof0SMTDg/HaFnjI6Aq12mLFWaazGWdnh+y7Ejet3WrErimfwwJ4Q9FI+r4+Uqg7qUJ/tWqubBe+I4j2Qbj8uK0DMqDvxlczkIgCnJDQcALVekvnCjhAWRw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0301MB1645; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(520003)(5005006)(3002001); SRVR:SN1PR0301MB1645; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0301MB1645; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1645; 3:dLR1IFatw4VG5UkMs62Dd2zThQ74FYmlh3n8Gb44TKhKj/BTAmAqhl7WPbDoiVUR/r6jEQ9MJwpzfkDRkML2ILtv7SIGNTIkE8409bFMZWa9fLxw0K1vuvb6jW0vH0XeT90tftrt1NH7Qk3xS/CBh5lGvkdLQFZZ2pAUPqCK9LoHm2fCSYw0EtTr2PhcPyvWOJ6kDzRJvExddC/XVuGU7b92rP2csvcwPcGa5NKzDAxLTmZiX4bL4ARjQcCDLILOhc2iqrHlVY5e7SZuUSqcyLU6XFNa2hK3785uZNQlVHjBmOYeOOFeG9TTuiTGHKWG X-Forefront-PRVS: 0610D16BBE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0301MB1645; 9:e27IpcS3j5o2fojPlOa0jlOaMhD6wDOiU2JBKsH9?= =?us-ascii?Q?DxEEAvDllVSZ5HkrdRpYfdO5egoggSpLad04bXgClhMSk5ZVas5lcH7hmok1?= =?us-ascii?Q?zQihuVKzz0WKNIh2Khzyhfnlxn1VOw3TmJdbaLwbdv1i5PBcnx/3/tvXbykI?= =?us-ascii?Q?YEe9hBf3xNG2SGLW3EibkXpHAc2+qBLgswE25uujycgMY7Al3oI+6mL6dxLJ?= =?us-ascii?Q?wggv0Bhb4m819Eubs3JPiAv531HU2CCXYNjxvc0szIrKBEN8Y4zYVtVYawmq?= =?us-ascii?Q?nnSQUJccDfvzdVdSIuNKQMleez463uYZOrbRvJOfvhyj+c5drZuLIiS7l28x?= =?us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GoXLfgSUmiAq/Ux/zdpf684WCsenLKU3EMgg4cbE+My87IkAhhrGP5SBlnICIbY96xPRs=; 6:jxRQspvaciAlWnzOPROjso2Qg6rhfXG0nhpf+ZaDhh+/Qe8mbE6x91YNvyik/osb X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2015 15:41:45.8608 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0301MB1645 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150617_084209_784218_22ACA2AA X-CRM114-Status: GOOD ( 11.15 ) X-Spam-Score: -0.0 (/) Cc: linux-gpio@vger.kernel.org, robh+dt@kernel.org, Frank Li , devicetree@vger.kernel.org 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.8 required=5.0 tests=BAD_ENC_HEADER,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: Frank Li i.MX6UL is a new SOC, add MSL support Signed-off-by: Frank Li --- arch/arm/mach-imx/Kconfig | 8 ++++++++ arch/arm/mach-imx/Makefile | 1 + arch/arm/mach-imx/mach-imx6ul.c | 43 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 arch/arm/mach-imx/mach-imx6ul.c diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 573536f..8ceda28 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -548,6 +548,14 @@ config SOC_IMX6SX help This enables support for Freescale i.MX6 SoloX processor. +config SOC_IMX6UL + bool "i.MX6 UltraLite support" + select PINCTRL_IMX6UL + select SOC_IMX6 + + help + This enables support for Freescale i.MX6 UltraLite processor. + config SOC_IMX7D bool "i.MX7 Dual support" select PINCTRL_IMX7D diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index 37c502a..fb689d8 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile @@ -83,6 +83,7 @@ endif obj-$(CONFIG_SOC_IMX6Q) += mach-imx6q.o obj-$(CONFIG_SOC_IMX6SL) += mach-imx6sl.o obj-$(CONFIG_SOC_IMX6SX) += mach-imx6sx.o +obj-$(CONFIG_SOC_IMX6UL) += mach-imx6ul.o obj-$(CONFIG_SOC_IMX7D) += mach-imx7d.o ifeq ($(CONFIG_SUSPEND),y) diff --git a/arch/arm/mach-imx/mach-imx6ul.c b/arch/arm/mach-imx/mach-imx6ul.c new file mode 100644 index 0000000..706d5f6 --- /dev/null +++ b/arch/arm/mach-imx/mach-imx6ul.c @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2015 Freescale Semiconductor, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ +#include +#include +#include +#include + +#include "common.h" + +static void __init imx6ul_init_machine(void) +{ + struct device *parent; + + parent = imx_soc_device_init(); + if (parent == NULL) + pr_warn("failed to initialize soc device\n"); + + of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); + imx_anatop_init(); +} + +static void __init imx6ul_init_irq(void) +{ + imx_init_revision_from_anatop(); + imx_src_init(); + irqchip_init(); +} + +static const char *imx6ul_dt_compat[] __initconst = { + "fsl,imx6ul", + NULL, +}; + +DT_MACHINE_START(IMX7D, "Freescale i.MX6 Ultralite (Device Tree)") + .init_irq = imx6ul_init_irq, + .init_machine = imx6ul_init_machine, + .dt_compat = imx6ul_dt_compat, +MACHINE_END