Message ID | 20190819095817.22107-24-peng.fan@nxp.com |
---|---|
State | Superseded |
Delegated to: | Stefano Babic |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="QLN7r9fs"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46Bq8x4CXxz9s7T for <incoming@patchwork.ozlabs.org>; Mon, 19 Aug 2019 19:57:21 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 53F99C21F91; Mon, 19 Aug 2019 09:54:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 676E7C21F2F; Mon, 19 Aug 2019 09:48:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6BB21C21F27; Mon, 19 Aug 2019 09:43:56 +0000 (UTC) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10062.outbound.protection.outlook.com [40.107.1.62]) by lists.denx.de (Postfix) with ESMTPS id 30904C21DA1 for <u-boot@lists.denx.de>; Mon, 19 Aug 2019 09:43:41 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kAL/Z+6/2XJpFlFulDsbh5OFQdVZXfAyB0N08I0h1qR2/yCgNZQUWPGLecZWaWNc2JboiYzrhE4j2HRYjk44dk8Ixv2Qy6fFbtUSwq4N2w6XOcP45wHPV+ofcLD2J8P3+xQD9UTtXLFwFAF4siKAFr7uPCQLAQbgBKUTtSYGXPml5w12tD8nh3OIb4uH6wAqANgfvkUTqubCb6WTEVfegdX0v94b6YzbZl9ailzNJxAEgQZOL/AKCFVz+eS++6wEqCI4ooF9RLHD/9awKeCmN0o0uNu1Q71FMWsoHlwh2AV6DVLV0rvq8eOzUf6b4jFhcVNSlXZiYbhL/8i8Sglc3w== 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=aIecgvUooG9k1xRstJt2cPEb2vwx1Eh1JEJYelKJzDI=; b=DlEOUGPSOxjMP/QuNaywGYFe/XOomPkbteycHnHmN3vVvyBeatmdI9zwuZXg0yHhqDSxy8ZFYGQWIfcnaQZ6ntGB51gCTIFeDq8E4sEFiwkmj5H2VaJDH/EWmxkIxEHiF2jKuQNR4V2Uv7K304H75vej7495XJln/gtOy+ycnciHWJSVEJ0y4y+uJgzyoZTMH7MOCSlXZTnWLOVBazwYoTSS7T4IGOrmXc2nikxqLVyihMJvqz1a+T0rkbFU89IbCHI3fUjKE2xFH8M1ebgUVSXIm91xYIk1MgOx9gcwjL7ooAWeDtqC/wlV12MKnXUPhExhMtgS/axrmKzFL84NsA== 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=aIecgvUooG9k1xRstJt2cPEb2vwx1Eh1JEJYelKJzDI=; b=QLN7r9fsXS/jACaTyStUalNErAEENQM9UekFW+CTpbq/Bq/VkiKz8GrtKIKSMWtM221Ft7nZcqZuijPTV90/xW7iPjbcJTraOG4caLU9cmwywz9vyu6CoozZ+FUuxAEjZS5icpdzaHCmLGsEe9sJg8ybB6Vrw/hxEecd5D2msR0= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB4354.eurprd04.prod.outlook.com (52.134.90.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.18; Mon, 19 Aug 2019 09:43:40 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::5d98:e1f4:aa72:16b4]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::5d98:e1f4:aa72:16b4%4]) with mapi id 15.20.2178.018; Mon, 19 Aug 2019 09:43:40 +0000 From: Peng Fan <peng.fan@nxp.com> To: "sbabic@denx.de" <sbabic@denx.de>, "festevam@gmail.com" <festevam@gmail.com>, "lukma@denx.de" <lukma@denx.de> Thread-Topic: [PATCH v2 23/26] imx8m: soc: probe clock device in arch_cpu_init_dm Thread-Index: AQHVVnKU3mjF71i9OUSgl4hwT8eJow== Date: Mon, 19 Aug 2019 09:43:40 +0000 Message-ID: <20190819095817.22107-24-peng.fan@nxp.com> References: <20190819095817.22107-1-peng.fan@nxp.com> In-Reply-To: <20190819095817.22107-1-peng.fan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.16.4 x-clientproxiedby: HK2PR02CA0205.apcprd02.prod.outlook.com (2603:1096:201:20::17) To AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:70::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 20ef8a37-291d-498b-52a5-08d72489b734 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:AM0PR04MB4354; x-ms-traffictypediagnostic: AM0PR04MB4354: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: <AM0PR04MB43549DE48B5F1D8EB7413D1988A80@AM0PR04MB4354.eurprd04.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 0134AD334F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(39860400002)(376002)(346002)(366004)(136003)(189003)(199004)(50226002)(2201001)(81156014)(8936002)(102836004)(86362001)(6506007)(14454004)(66556008)(64756008)(66946007)(316002)(66446008)(81166006)(5660300002)(66066001)(36756003)(71200400001)(478600001)(71190400001)(11346002)(446003)(476003)(186003)(52116002)(26005)(44832011)(6116002)(3846002)(76176011)(2616005)(2501003)(486006)(4744005)(2906002)(386003)(25786009)(4326008)(6436002)(256004)(99286004)(8676002)(6512007)(6486002)(1076003)(7736002)(53936002)(54906003)(110136005)(305945005)(66476007)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4354; H:AM0PR04MB4481.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: GnP4D78LJkNb053petWiqHk2yDwnmsfgIkJ/VgZ0+1MUUy7giuQSxfMgODrdtky7POsKabcfcIGlZ+1euyElK05FHixMMwpJuZcHVIibfjaIVM7oj9WHw5xb3x2rUZRJxKp+GeaEpe0gUEzFTMufmbtZqL9XBsGqcXq0HVIv1Srjf7AbZRjlq9K+dOUyMkzXAF/YBaSppPr0cuBFNe8D7SMAFy6pHL8R77ygMSm/EOObpZDBy9a6TwNuE9uOpjG0+cyY0xqcIFIjWbSTEzHD4QZ95J0pmf/Srr1OLplO/8Zs8Oxo5ZqBeQ18TxCR6ueTvMfiZe0FFKmpLkrT6Vi+o3O3BNBsZ2nwrU0dMOcgfWctwDlhcDzx01WejKOg5mafXM8FYtw2qy7yOyVb1w30qb4AQOPkOWVzcy2x1tR8JqY= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 20ef8a37-291d-498b-52a5-08d72489b734 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Aug 2019 09:43:40.2651 (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: nYCL7PZc4nIvUc05wlYs+7F4HAWf8ryJFMnQz7waLdJ5aVLaogtyITZrrT5AXPP1cDpJJc9xoCAsIWSNaLp47w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4354 Cc: "u-boot@lists.denx.de" <u-boot@lists.denx.de>, dl-uboot-imx <uboot-imx@nxp.com> Subject: [U-Boot] [PATCH v2 23/26] imx8m: soc: probe clock device in arch_cpu_init_dm X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
i.MX8MM support
|
expand
|
diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 3a54db4898..f904049120 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -14,6 +14,7 @@ #include <asm/mach-imx/boot_mode.h> #include <asm/mach-imx/syscounter.h> #include <asm/armv8/mmu.h> +#include <dm/uclass.h> #include <errno.h> #include <fdt_support.h> #include <fsl_wdog.h> @@ -228,6 +229,22 @@ static void imx_set_wdog_powerdown(bool enable) writew(enable, &wdog3->wmcr); } +int arch_cpu_init_dm(void) +{ + struct udevice *dev; + int ret; + + ret = uclass_get_device_by_name(UCLASS_CLK, + "clock-controller@30380000", + &dev); + if (ret < 0) { + printf("Failed to find clock node. Check device tree\n"); + return ret; + } + + return 0; +} + int arch_cpu_init(void) { struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR;
Because we need to get cpu freq in print_cpuinfo at very early stage, so we need to make sure the ccm be probed. Signed-off-by: Peng Fan <peng.fan@nxp.com> --- arch/arm/mach-imx/imx8m/soc.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)