From patchwork Thu Mar 8 09:34:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Bai X-Patchwork-Id: 10267339 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D34946016D for ; Thu, 8 Mar 2018 09:32:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0F2D260CD for ; Thu, 8 Mar 2018 09:32:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B52A627CEE; Thu, 8 Mar 2018 09:32:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9B8B0260CD for ; Thu, 8 Mar 2018 09:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=P3DxhGTQWg1YtIROxNNx7FL7plZaSVpzulQnCYlKFg0=; b=aMg3LRE8shmw6i 1+Se/72oNfMaWMtGRDWSMhMrsvddbctIto6qAV/2h1aZ0kOc0TXS9Xs98ZwfheALN7G1LUG/7BlUw SMwvk9TAozWSIfui7V1anydzWBsdGhwMG//TFQVy6Ihg+g6ij9IS4hw52CBj7OPK+RiRIynIHg+jU rrxkeszB4KGlRPUq3Cfubu0zGIhL0zdeEq6xBazOQWdrP5T6e/+Dlv6TaD2C61ccw44n+irL1JRyM qO73LvGjajyLnM/zvHbTIFkIQMCnMhhuHsSxGWMcJz/sMAOuW9maTJcOvvFsOaBQewLev8kcWx9SE MpWkJbrl//tQUGO2OdMw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1etrur-00089h-KF; Thu, 08 Mar 2018 09:32:49 +0000 Received: from mail-db5eur01on0047.outbound.protection.outlook.com ([104.47.2.47] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1etrug-0007uu-UM for linux-arm-kernel@lists.infradead.org; Thu, 08 Mar 2018 09:32:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=+tCpW/gwDCeQ95Chjn2hvEdNYA4NFgIz3MibZmMyj8A=; b=fDBjNQAHcHl+jDF2pq4MM7XeEcpnbMSO5hJpjNc/1bkRMorU9M3nZjVThUDbUyEEEWC1UTYhlfn7rBCnUlfq+AyYhDcT+1HqIte+nA0T8Lon1aCCQpl7hquRQXtnwjLttSQ90oqvmwooy9IveemqaPuj3eohM3TRUtvOSdJQ9e0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ping.bai@nxp.com; Received: from localhost.localdomain (92.121.68.129) by HE1PR04MB3113.eurprd04.prod.outlook.com (2603:10a6:7:20::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Thu, 8 Mar 2018 09:32:18 +0000 From: Bai Ping To: shawnguo@kernel.org, kernel@pengutronix.de Subject: [PATCH v4 1/3] ARM: imx: Add basic msl support for imx6sll Date: Thu, 8 Mar 2018 17:34:55 +0800 Message-Id: <1520501697-22202-1-git-send-email-ping.bai@nxp.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [92.121.68.129] X-ClientProxiedBy: PS1P15301CA0016.APCP153.PROD.OUTLOOK.COM (2603:1096:803:2::26) To HE1PR04MB3113.eurprd04.prod.outlook.com (2603:10a6:7:20::31) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c2a56d11-f5d4-425c-12af-08d584d77ebd X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7153060)(7193020); SRVR:HE1PR04MB3113; X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB3113; 3:4n8kqwDbIhe2JN/IzBfC76hVqL/Mo54Y+38D4gIh7cJKD94QI+WNzuG2TXvLesakIuQx1l0SbkcieoTeSe2dx4TdGpe2QxmkM2naDis1CluMgwyZVTUHtFzYfMCeQJBzeT7sH8iTtRKnSYu1Snn29w83nplhqbeWYqZk8hjxMV6jkjvoDejEF/f+MUR2fM+ggoP4Fltr4531LxY+LzHolOil4vsv4jWXBEdH1+XSZPzrfzTYU+89559o3t39rvqd; 25:Q/BSqLm42wn8y0mt12rsaqZU6cUtCIyCaXKMkXOKHGeTgI56lu80k6XMoA5KwNqL2sluBnS1FQIo/PxN6bNOwrdXT0y/F5IKfOg8ARq3oAFsVWM6ZU6sK23r0mqvL4PqeA8gYG35D1exfPg9R5UEz6AIAe+ybdqWYqY2G4ZaDm3gjdTOZGIJ5/ZDuCUT2Pz11njrtpjMxq5HoUOLnt0qt/sMHEiEfhwEY0+hlIVpCILVUk3dzYetLYm7KTd6C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UoV3QSEJ7qdpesKHWFdX9eCc6J8jRezceYQC7tNWfJdfSdhFyXXV9mUSU/pjcJDgL7IAulkCVUsyWO/3wYw1SDnD3QkVNE/nMw3uZHU78nAJ3kNlq6LrhOO95S0dl2rGWGKBZ8O0q6Jq1cardmbJ0gU3l2 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040501)(2401047)(8121501046)(5005006)(3231220)(944501244)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041288)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011); SRVR:HE1PR04MB3113; BCL:0; PCL:0; RULEID:; SRVR:HE1PR04MB3113; X-Forefront-PRVS: 060503E79B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(396003)(376002)(346002)(366004)(39380400002)(39860400002)(189003)(199004)(305945005)(16526019)(51416003)(316002)(52116002)(6486002)(186003)(26005)(39060400002)(7736002)(53936002)(5660300001)(6512007)(97736004)(59450400001)(386003)(68736007)(48376002)(50466002)(6506007)(16586007)(4326008)(47776003)(66066001)(25786009)(105586002)(6666003)(106356001)(478600001)(2906002)(81166006)(6116002)(3846002)(50226002)(36756003)(86362001)(8676002)(8936002)(81156014)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR04MB3113; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR04MB3113; 23:nvRg5gpyg8zMuzJthFNH4KFbZ58Ijup/obDOccxYf?= =?us-ascii?Q?HzKzJUnGGLUfjrPnsbFmZU3AfKq2iHorID7z2njK0evltHpgFEq5k8+Lj5wB?= =?us-ascii?Q?hJH9DkMArc1RE/nItQgFPy+aveebIIY5rtPjF6S/ZhaEgAlGYYod1QjZOKAX?= =?us-ascii?Q?uZi8LP37d1udUj6Gbv3Vo554x6tWLyvnjuFjZHKsrt8z9FSH5kJjAceGiAzo?= =?us-ascii?Q?fiSDsFfugznU5TMhh2z2GllGbxzSpBzZKC3+I0Nz/70/uklhfm+ALON9zl43?= =?us-ascii?Q?pR+OcopOx7Y+OC2e/BE7QdQpI3ZBEngYyzUayLClquhmrbo4J4ZpRlv8BTcO?= =?us-ascii?Q?FNZ3884FryeOqhqZ3tf4m+cYEuD35vk95E3/iMSaNEYvs3YW1hrHPDgkGFYu?= =?us-ascii?Q?zpcU2ZJ5xquROQleN/H5fU75l/WUHretmp4O/l9+HhoBLTs/f1EziEq7EwDq?= =?us-ascii?Q?2Q8awt05SLGsMs6Zgt2XyILONAhZlM0B6iXUehl3vywgvIr50hpZt1W79Phc?= =?us-ascii?Q?jIsqTPAHySFmcgqzOtgC36LoaK/CaAEh7MxBUUz+CwL6Vff5RqxTwtBqexKB?= =?us-ascii?Q?0DxrfzYZXw1dZ2CKJiNqYHFWbdxiGnr+ms1mmOeeNvgvpWm93C9ClBmdojhx?= =?us-ascii?Q?3kubyLSP76VeWusRa1m4MKty5D6uAmeCY3vGrBdbPcBHxRB/Y5AFlB/2rLcf?= =?us-ascii?Q?YjVf3h0X08EKbwipV/sADHAbFNoGOCjAes695CRVHOvyg5WkGLkxUiyKyeFl?= =?us-ascii?Q?eN72ho8kCzl46e70xJ863n1Ljj5F4urXyAqMgggDXunC6gjvIoJcvcxd84Mv?= =?us-ascii?Q?+KNVHDhCYXliCFEKNqeC8//EJaedBbBpKi9hK81qeMd6631gGNMBMx/qcvHH?= =?us-ascii?Q?j2uLxFPOhA7Vks/bNultEvxqGC0HcFa0q3uLDjwUe9OMuulzcxNdc2kqeOOY?= =?us-ascii?Q?P8eN3TG6upliHdreWbuEKndY1RpAyM93WLo9W7vOwVRNEUIMVxeiwO4/C9Y5?= =?us-ascii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CUjV3ghvt6x2yGASL+4IOZxOP/ZsETGAHIrxUq4LHyjOMuamuPMKyZM6frZnakKkRUGtN+r1QBXMOypZMAUZ8mI20Ol8LZKjwBaw54e4WG3fsOmNM0Y3wwsh/ssuIWeBgINnl96EnEX72ob30x18wBtIwrL3QSbBcXnRqOpehXhOO3CNdhq7sNHXKtq9JD3e21vlo8QjwLJs1mekRzo2Grs5YoRyl9jxK4pqwulyDj1Mzuw79JO3b3lwm1 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2018 09:32:18.2104 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c2a56d11-f5d4-425c-12af-08d584d77ebd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB3113 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180308_013239_902552_4E223C41 X-CRM114-Status: GOOD ( 14.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fabio.estevam@nxp.com, aisheng.dong@nxp.com, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, jacky.baip@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add basic MSL support for i.MX6SLL. The i.MX 6SoloLiteLite application processors are NXP's latest additions to a growing family of multimedia-focused products offering high-performance processing optimized for lowest power consumption. The i.MX 6SoloLiteLite processors feature NXP's advanced implementation of the ARM Cortex-A9 core, which can be interfaced with LPDDR3 and LPDDR2 DRAM memory devices. Signed-off-by: Bai Ping --- change from v1->v2: - no change from v2->v3: - no change from v3->v4: - fix build warning --- arch/arm/mach-imx/Kconfig | 7 +++++++ arch/arm/mach-imx/Makefile | 1 + arch/arm/mach-imx/cpu.c | 3 +++ arch/arm/mach-imx/cpuidle-imx6sl.c | 7 +++++-- arch/arm/mach-imx/mach-imx6sl.c | 10 ++++++++-- arch/arm/mach-imx/mxc.h | 6 ++++++ 6 files changed, 30 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 782699e..8e3a618 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -512,6 +512,13 @@ config SOC_IMX6SL help This enables support for Freescale i.MX6 SoloLite processor. +config SOC_IMX6SLL + bool "i.MX6 SoloLiteLite support" + select SOC_IMX6 + + help + This enables support for Freescale i.MX6 SoloLiteLite processor. + config SOC_IMX6SX bool "i.MX6 SoloX support" select PINCTRL_IMX6SX diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index 8ff7105..c5caecb 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile @@ -78,6 +78,7 @@ obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o endif obj-$(CONFIG_SOC_IMX6Q) += mach-imx6q.o obj-$(CONFIG_SOC_IMX6SL) += mach-imx6sl.o +obj-$(CONFIG_SOC_IMX6SLL) += mach-imx6sl.o obj-$(CONFIG_SOC_IMX6SX) += mach-imx6sx.o obj-$(CONFIG_SOC_IMX6UL) += mach-imx6ul.o obj-$(CONFIG_SOC_IMX7D) += mach-imx7d.o diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c index d4e55f2..32969f3 100644 --- a/arch/arm/mach-imx/cpu.c +++ b/arch/arm/mach-imx/cpu.c @@ -135,6 +135,9 @@ struct device * __init imx_soc_device_init(void) case MXC_CPU_IMX6ULL: soc_id = "i.MX6ULL"; break; + case MXC_CPU_IMX6SLL: + soc_id = "i.MX6SLL"; + break; case MXC_CPU_IMX7D: soc_id = "i.MX7D"; break; diff --git a/arch/arm/mach-imx/cpuidle-imx6sl.c b/arch/arm/mach-imx/cpuidle-imx6sl.c index 8d866fb..124f982 100644 --- a/arch/arm/mach-imx/cpuidle-imx6sl.c +++ b/arch/arm/mach-imx/cpuidle-imx6sl.c @@ -11,6 +11,7 @@ #include #include "common.h" +#include "hardware.h" #include "cpuidle.h" static int imx6sl_enter_wait(struct cpuidle_device *dev, @@ -21,9 +22,11 @@ static int imx6sl_enter_wait(struct cpuidle_device *dev, * Software workaround for ERR005311, see function * description for details. */ - imx6sl_set_wait_clk(true); + if (cpu_is_imx6sl()) + imx6sl_set_wait_clk(true); cpu_do_idle(); - imx6sl_set_wait_clk(false); + if (cpu_is_imx6sl()) + imx6sl_set_wait_clk(false); imx6_set_lpm(WAIT_CLOCKED); return index; diff --git a/arch/arm/mach-imx/mach-imx6sl.c b/arch/arm/mach-imx/mach-imx6sl.c index 0408490..462ed9c 100644 --- a/arch/arm/mach-imx/mach-imx6sl.c +++ b/arch/arm/mach-imx/mach-imx6sl.c @@ -17,6 +17,7 @@ #include #include "common.h" +#include "hardware.h" #include "cpuidle.h" static void __init imx6sl_fec_init(void) @@ -54,7 +55,8 @@ static void __init imx6sl_init_machine(void) of_platform_default_populate(NULL, NULL, parent); - imx6sl_fec_init(); + if (cpu_is_imx6sl()) + imx6sl_fec_init(); imx_anatop_init(); imx6sl_pm_init(); } @@ -66,11 +68,15 @@ static void __init imx6sl_init_irq(void) imx_init_l2cache(); imx_src_init(); irqchip_init(); - imx6_pm_ccm_init("fsl,imx6sl-ccm"); + if (cpu_is_imx6sl()) + imx6_pm_ccm_init("fsl,imx6sl-ccm"); + else + imx6_pm_ccm_init("fsl,imx6sll-ccm"); } static const char * const imx6sl_dt_compat[] __initconst = { "fsl,imx6sl", + "fsl,imx6sll", NULL, }; diff --git a/arch/arm/mach-imx/mxc.h b/arch/arm/mach-imx/mxc.h index e00d626..026e2ca 100644 --- a/arch/arm/mach-imx/mxc.h +++ b/arch/arm/mach-imx/mxc.h @@ -40,6 +40,7 @@ #define MXC_CPU_IMX6Q 0x63 #define MXC_CPU_IMX6UL 0x64 #define MXC_CPU_IMX6ULL 0x65 +#define MXC_CPU_IMX6SLL 0x67 #define MXC_CPU_IMX7D 0x72 #define IMX_DDR_TYPE_LPDDR2 1 @@ -79,6 +80,11 @@ static inline bool cpu_is_imx6ull(void) return __mxc_cpu_type == MXC_CPU_IMX6ULL; } +static inline bool cpu_is_imx6sll(void) +{ + return __mxc_cpu_type == MXC_CPU_IMX6SLL; +} + static inline bool cpu_is_imx6q(void) { return __mxc_cpu_type == MXC_CPU_IMX6Q;