From patchwork Fri Jun 19 15:32:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 6645781 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 E3C319F326 for ; Fri, 19 Jun 2015 15:37:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 021C42095F for ; Fri, 19 Jun 2015 15:37:46 +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 125F120958 for ; Fri, 19 Jun 2015 15:37:45 +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 1Z5yKB-000203-70; Fri, 19 Jun 2015 15:35:23 +0000 Received: from mail-bl2on0119.outbound.protection.outlook.com ([65.55.169.119] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5yK7-0000nK-Nc for linux-arm-kernel@lists.infradead.org; Fri, 19 Jun 2015 15:35:20 +0000 Received: from BN3PR0301CA0038.namprd03.prod.outlook.com (10.160.180.176) by SN1PR0301MB1645.namprd03.prod.outlook.com (10.162.130.139) with Microsoft SMTP Server (TLS) id 15.1.190.14; Fri, 19 Jun 2015 15:34:55 +0000 Received: from BY2FFO11FD020.protection.gbl (2a01:111:f400:7c0c::142) by BN3PR0301CA0038.outlook.office365.com (2a01:111:e400:4000::48) with Microsoft SMTP Server (TLS) id 15.1.195.15 via Frontend Transport; Fri, 19 Jun 2015 15:34:55 +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 BY2FFO11FD020.mail.protection.outlook.com (10.1.14.137) with Microsoft SMTP Server (TLS) id 15.1.190.9 via Frontend Transport; Fri, 19 Jun 2015 15:34:54 +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 t5JFYjgA009385; Fri, 19 Jun 2015 08:34:51 -0700 From: To: , , , , Subject: [PATCH v2 1/8] ARM: imx: add i.mx6ul msl support Date: Fri, 19 Jun 2015 23:32:24 +0800 Message-ID: <1434727951-4852-2-git-send-email-Frank.Li@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1434727951-4852-1-git-send-email-Frank.Li@freescale.com> References: <1434727951-4852-1-git-send-email-Frank.Li@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD020; 1:SKbECsPLH3HnXEs2Hl7e0mSMirGykLgrGZROhIAvl/JrUKk56nLowYEXPG1jY0tn4FidfW7LEw09vsdgbmA37r8T4M7kA63ZZy/wC5Z3pPpLuTJHJk/QzyrMHC2BIeQZetK/QcIKG6lgq9io2mZUDrrmRBr1bikpzZzyoZQbae/yK6JeUISkCiVZeiH0cMPdgCty7AszXRYskA51mis/L1G4b3YTDXrkwXnCNtPQ3B4nWRuOaL9L7ZJwTzBHGu7fUmYbcWCdCdevoJm+Px/MjBSn6BAZ1xkNo22DMzfwfOmNN68VQPQhzZ2z3zbZpHFbzOSaUKde3p5toNL1VT4+ZyStBgl3ODEfcMT+XE4AV6A= X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(189002)(199003)(5001960100002)(6806004)(85426001)(5001770100001)(19580405001)(107886002)(19580395003)(105606002)(86152002)(189998001)(2201001)(87936001)(77096005)(86362001)(50226001)(2950100001)(46102003)(92566002)(47776003)(76176999)(77156002)(62966003)(106466001)(50986999)(104016003)(50466002)(229853001)(36756003)(48376002)(2004002)(4001430100001)(2101003); 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:fNMpuNPetClwmbkaUosYIrZdrrdk4/LpqbEGJmm5QpqrKUJojF5J2rgok2b1/9ru; 2:I6B2FpM0POKe1wczk1GmhryqyHAwJovfoNDE1Df6zA3ImeECygzMeT2t1Wj8c33OIaoX1HWsDXmgcAZd7fWcbfkHjZHStSjKTkXgD3/gdekeWQdOdQ7ptRB1OpBig8R0Y1x66T1Z2bcMKDk/WVosnAQ3C+ovpQvY3w+3hQH1i/zgbMC45iQL0Jmt3anccuAbcNOtRzHmDe6d39mxFiJSMBNtiOMxd6aGimWAd28IXsc=; 6:Pe+F1XhnHsfoJjBz/YRBmRYmv0XS8HO0IhgkzVGsvirTFyhAB/Mv/n2tIWwhhXPVY9hq+cLj1QUYoZDg9zgDcP6aIVMfYaB3NCAt48t2aWserCnU/YyE+9r3WDMBtdjbQ4i+oIL22jMtSgH+vf93/YfO7VzOzibzvUqYK2Eu9SSXeZJkJmnNi+jd/PIbcMsElxyyx3S3KknIOAuhjqs7qYAngyIbVvHY0aOYhRdL9ne6qEe3f8V+aO0ZNURulCz9W0rEE3eHMBRl21EmW1cCGMGimHnnl51VzMs++yF4qWl4KZvRmXtKtooZs2DjMQUYRL+qFGbpvyMrDFgJIsqZkQ==; 3:vjWwkx3UrpzKAcIqK1GoCE5td8cAgFJ8Kgmz28u9dlQ2aSm+BTZvEa1+/atH3iz4tftJODPKClcQI/JbvSFw3K1oN7y/0EUOCSjsvntwrs6+kfZCXjn3yZdUYP/G6Nj3NpzaWWS/I89NwnvdBlbZcBQMhtt3FC5qXYtaMcV3lGWeRl7Vj6fqpIid2WEXDretAHGbpEzsnTkyCEvnAT9AYOoOS0uug53S58Cqb1rSoTdcW26P2MTs0Vr7yJqdCUF2+y8R1dwN04A00C9RvZh5lS1Ts9i9IzI47fNdm54ReIE= 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)(5005006)(3002001); SRVR:SN1PR0301MB1645; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0301MB1645; X-Forefront-PRVS: 0612E553B4 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0301MB1645; 9:WqGwkUCsRUX5Vywc5JaVlNfQFlsHAyMr8Rm0L0wl?= =?us-ascii?Q?TVCdBGbwNlz5LX4+HPton4Ih4OEzL3Y9QVcekEuGjV+WdKPNEMtRh4t+bUlm?= =?us-ascii?Q?RXL+yWw3Lj7c0HNGn6W/qIwWYsZbGrNVeRTSGiBN/BN/HJmauAmss0HyILFT?= =?us-ascii?Q?coudPW5B3zuPKXwUdc0ElObrD1p+GT55Iu1WS2el0e+0GGNCCORqO4p7IrIO?= =?us-ascii?Q?wtgH1Jv8Y3lTIYGjnntJCcZ0SId01Yh1uk/l9CSyDJKx0Lb0G8yu5EG24n4R?= =?us-ascii?Q?ndVIsE9WV2/UacUt50X7A9wKPR/7cD0sJiknwcUBXDDMkW2IlqA5M4b8dGk0?= =?us-ascii?Q?wuipB7wQ8ciuq5G8S99GairAcRvSkcP4qY8Lec00n8oJUkZoPTHaah0s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ti+znqp8IG+pbD2BvrOSlrBQJsH X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2015 15:34:54.3420 (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-20150619_083519_963399_EBE843B8 X-CRM114-Status: GOOD ( 11.57 ) 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.5 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