Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp410783ybz; Wed, 29 Apr 2020 02:28:20 -0700 (PDT) X-Google-Smtp-Source: APiQypJGT8rCEphofqftUxLlNzxz5M2Cf3T/wFt/gwHtv2Q0SW0XReJ/3GNG6KerWPuaW0OELEFt X-Received: by 2002:a17:906:9518:: with SMTP id u24mr1734144ejx.320.1588152500095; Wed, 29 Apr 2020 02:28:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1588152500; cv=pass; d=google.com; s=arc-20160816; b=FDCXgk4g+U6/BOVW66AQrMcrzT7lbvqjImcj446dZSzF2bkHjtuMKSXWDtKddRub3g 44Zg2CA4bp+1vQG4Cd3wE+aZ+cLtUchR0WWOL6lH/guynZHCJjd9K+BuMoDE7L2sGeDz SMXUw4X1IPudILu96sfcwQUUmigCbOVn5dKDkTpMGlrdNICByb3cBa8UaaXwOA/L+SAV N89T59Owau1+knAQJGyInvExpaqU5WPJAYgeA1TSGN3K57/nmEpjwfbwBO+RPKSTAUXj 0tHqVMlG3yhh0VS3fzG7fnaKQXUlX0+Q+ra4oT+MVXs4K27Eg765QDchH2J9BEXaiX2n tcvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=NY7kSQGmxluFPiUo5STDSLyGQOSF06FQ9gz0893a0RE=; b=hIVJhVQkscMrbkwn9gwWZJmwqOZNfTHq73WHGs/VMbVuC2wnMZb8oA5Qam+mXKupKq k31nVqyw36QB50flTSB32HWQfXyo3BAH6/C9/9+GLO0fCmShp8deMwKJXQFT+sLNgRk8 KXdhhxWCKtS9Ox/SwTUjN2v2nBCyeq9CxCLRDZj/k2T13kkjHiWnukbvPitPtN4IFWNW L2Co1WNQ049/u6kmlsXOVTutDACT9XZ7L/AjfzRuYnlnmFzNZ66k/hY+/4oGFtKNEpWe zfbxrM2+Ep7AE5EqFE1JwJFiV8Wp+HMUq51wc7VTYjwXfn6GMqlm174axUlv44AjBlVf 3Daw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Mkq9zhwY; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t20si3432334edy.543.2020.04.29.02.27.55; Wed, 29 Apr 2020 02:28:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Mkq9zhwY; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726572AbgD2J0Z (ORCPT + 99 others); Wed, 29 Apr 2020 05:26:25 -0400 Received: from mail-db8eur05on2075.outbound.protection.outlook.com ([40.107.20.75]:16933 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726345AbgD2J0Y (ORCPT ); Wed, 29 Apr 2020 05:26:24 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KtDGmUSXFgpgtAxFQXpA+M/ZyvEr8n6TOtEnzhTABTS/312zM6ECK8xsOVDSjWndp1ne4PzLNZX6Ohk7tpFrO+/8zksjGC9mrQ7yeUP++MSifqCSZWsm0ft+Bz0vZRwHxejlLLtxk0nvsSZ1+H6XXM7bfmwp46DmY4d/9YAU1YZrlxpq0pEdfmWcnEVD+TQrlR1wetSDttomXeMxqdB3noXQX+lD5nVEuJh0xB+izxN7aohhfjhheMJAyK4X9NnOEF+LEaYbjd3p/hjVMvKMRXHTW2eaW5bdsgbt2JhtxIx3tg7eUCHzN77XbRCIFgNlPDR2EYeaf4/BbiXvdKYxoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NY7kSQGmxluFPiUo5STDSLyGQOSF06FQ9gz0893a0RE=; b=A81QrsThzRVK++75XfPXcACZmrXO9tDgojDs1I9I5hyJ0ahu4YRNzKlx2QvS4Nh2Ze352FAGkuVBmAFQNwFzUc1ToXlMpjVl/iUwaxoUr0J8QAkWzGetd+GHJUhMOo9tHcx3OcnPfDYZ3gMLUi6A+KDPza4D1R8AzuU+bXb3dwY2JWb17Mpwak7uMXvE7u15wK2WI/EjUS7zWVDgmqBHkShKO9SJdkZPB/uGyn89WXdIPPRDSiWN7jw/9K8nDba1zhxPDljqCM7BVgDWsyFbDTsF/qeXvemgwXrkzVjC4A6eldxyaCFw4ScMvXINGF7tPIysJkpfeLyho1IMNcTnpQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NY7kSQGmxluFPiUo5STDSLyGQOSF06FQ9gz0893a0RE=; b=Mkq9zhwYTv+m6WdRI42znfiCa0oHTsYff1CfVqRzIXBI0LzZZkoBD5XFpPJZZuyv3FXT7TrTi9lpv4M6AZy7IIsacMeAglU7oumasL9K+JhnBF5WkC49dvRdYrhKewwJjVmCLRgavmksIlXeAFuf2jE7ZH5HsyhfrXNZXFEVwrM= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB6PR0402MB2694.eurprd04.prod.outlook.com (2603:10a6:4:97::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.22; Wed, 29 Apr 2020 09:26:21 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d17b:d767:19c3:b871]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d17b:d767:19c3:b871%6]) with mapi id 15.20.2937.023; Wed, 29 Apr 2020 09:26:21 +0000 From: peng.fan@nxp.com To: shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, allison@lohutok.net, info@metux.net, Anson.Huang@nxp.com, leonard.crestez@nxp.com, git@andred.net, abel.vesa@nxp.com, ard.biesheuvel@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH V2 0/3] ARM: imx: move cpu code to drivers/soc/imx Date: Wed, 29 Apr 2020 17:17:20 +0800 Message-Id: <1588151843-2133-1-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0165.apcprd01.prod.exchangelabs.com (2603:1096:4:28::21) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR01CA0165.apcprd01.prod.exchangelabs.com (2603:1096:4:28::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2958.19 via Frontend Transport; Wed, 29 Apr 2020 09:26:16 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.66] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7dafe83b-1d91-44d4-38c0-08d7ec1f60ae X-MS-TrafficTypeDiagnostic: DB6PR0402MB2694:|DB6PR0402MB2694: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-Forefront-PRVS: 03883BD916 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB6PR0402MB2760.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(366004)(396003)(376002)(346002)(136003)(39860400002)(956004)(2616005)(6666004)(8676002)(4326008)(86362001)(6506007)(69590400007)(5660300002)(66556008)(16526019)(66476007)(186003)(36756003)(52116002)(66946007)(9686003)(6486002)(6512007)(8936002)(478600001)(316002)(7416002)(966005)(2906002)(26005);DIR:OUT;SFP:1101; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jcT/SezOR7ktVxi6fdjUaDREmF6fgnwRL1qGfyB/1Hrli3TQQO7qF4S5Uvk2SH6U48KeOWWz+8+4KXQXmWlryIGrN3uRSQaW5A/060DbWLhURiP3u7H5TJsklounnLN0a6ulyAotHjlG8Q/9Omj4t55P5UGrGWbXS/kuBXQbwOTxNAEiIgx+PW+4Gywrocmc9wkXXEPWt4ti5UFNcR/zS/SAcPHocCcvLqhAxSxj7EkEPxzDB5vRppBq1aqVuhyk68wiIU5EnV3fqnB054ybK2GQNPeLwXYqcSrYszmQD6oER7E6GVVgc941ZWEZG0uyaTRf8PYrtk4yf4+Xicid0F9+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kxmk0stlEVf30g= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7dafe83b-1d91-44d4-38c0-08d7ec1f60ae X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2020 09:26:20.8995 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: L+jgCsH0C6rLSuir8auqYKmaNhq7e0FMq0dbDUTw6fHegmfeT893NZHpC76O7xlyB09amh/VHBX6oK4F5686Dw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2694 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan V2: Keep i.MX1/2/3/5 cpu type for completness Correct return value in patch 1/3 use CONFIG_ARM to guard compile soc-imx.c in patch 3/3 V1: https://patchwork.kernel.org/cover/11433689/ RFC version : https://patchwork.kernel.org/cover/11336433/ Nothing changed in v1, just rename to formal patches Shawn, The original concern has been eliminated in RFC discussion, so this patchset is ready to be in next. Thanks. Follow i.MX8, move the soc device register code to drivers/soc/imx to simplify arch/arm/mach-imx/cpu.c I planned to use similar logic as soc-imx8m.c to restructure soc-imx.c and merged the two files into one. But not sure, so still keep the logic in cpu.c. There is one change is the platform devices are not under /sys/devices/soc0 after patch 1/4. Actually ARM64 platform devices are not under /sys/devices/soc0, such as i.MX8/8M. So it should not hurt to let the platform devices under platform dir. Peng Fan (3): ARM: imx: use device_initcall for imx_soc_device_init ARM: imx: move cpu definitions into a header soc: imx: move cpu code to drivers/soc/imx arch/arm/mach-imx/common.h | 1 - arch/arm/mach-imx/cpu.c | 159 ----------------------------------- arch/arm/mach-imx/mach-imx6q.c | 8 +- arch/arm/mach-imx/mach-imx6sl.c | 8 +- arch/arm/mach-imx/mach-imx6sx.c | 8 +- arch/arm/mach-imx/mach-imx6ul.c | 8 +- arch/arm/mach-imx/mach-imx7d.c | 6 -- arch/arm/mach-imx/mach-imx7ulp.c | 2 +- arch/arm/mach-imx/mxc.h | 22 +---- drivers/soc/imx/Makefile | 3 + drivers/soc/imx/soc-imx.c | 176 +++++++++++++++++++++++++++++++++++++++ include/soc/imx/cpu.h | 30 +++++++ 12 files changed, 215 insertions(+), 216 deletions(-) create mode 100644 drivers/soc/imx/soc-imx.c create mode 100644 include/soc/imx/cpu.h -- 2.16.4