Message ID | 20191016031909.7614-1-peng.fan@nxp.com |
---|---|
State | Accepted |
Commit | cd7c806f4f58fe66895f4355b1ddd88460925a01 |
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="IgNKXQ5D"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46tHC747cjz9sCJ for <incoming@patchwork.ozlabs.org>; Wed, 16 Oct 2019 14:02:09 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id C529BC21D74; Wed, 16 Oct 2019 03:01:57 +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 82769C21C29; Wed, 16 Oct 2019 03:01:55 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6CD3FC21C29; Wed, 16 Oct 2019 03:01:53 +0000 (UTC) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20055.outbound.protection.outlook.com [40.107.2.55]) by lists.denx.de (Postfix) with ESMTPS id D29EBC21BE5 for <u-boot@lists.denx.de>; Wed, 16 Oct 2019 03:01:52 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H7Bj7DsgkBv1HlBIQyzopz7rPr6G/K2IYBGkAXxyj6XHmhTpoNvUwGRQ7Rv3PsM+34x+q0GrqbH77ufUS12vZ6Fg1cTVgtZyn9sX0EwCoJNktKYqyXy5wXbZqVq59nmokwF6WHk5/gjU34C+YDrmuX/+fWgpS90b++lY9+l3+FhPTv+n7pwj/CzEXV7KEar/MrGJbFrnjriFWiSdFeasZyM4sbXdLI5SVX3CSII9i0v8D8iuS1TorBlfU0lqrZnMwYzaNpV0dZoNMdcv6UVZx+zHY/LA5rfQoCZ2SSb+pDlUx7apJfLxAxwJ/GX9ClOExyArNIhKEYnKfzMNZKN2Fw== 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=aGlHPWE+7VVWY//nlxllAET2SE8aA1SV/AY4yS0r/qY=; b=FNHxeogPh8YM9KOzBn+1wMMDzzg8UqXDVwAwQiwA4lb9S6Ym0F5DdgsqHQWd55hA0SmzHNCE6TOR5T/8ZYXY32XJykc/NQXZLS2F62ekDjh9cmV+ReG9Nez3GQRXILfkAPM+dmeJVy/JaMqExGmOClWMocPwDo6wT+5sWwOY/aSLeXFwKpsRnvp2S8piBF6ZejEHy5Z4KRDZqfplkQZyCTsNHNHKRq51MbKLU+L0TI3GlR0TFQNhGzgFTjRNGMS7oywgojG3kRjC/Ch8kddJogrixkdS9YAMOnr/N2t5Qn2B7KPHEZVTM5dlzWrSFcqpVXnqOVglbbyEoaRyLTEuvg== 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=aGlHPWE+7VVWY//nlxllAET2SE8aA1SV/AY4yS0r/qY=; b=IgNKXQ5Dckef5bnfR/Imy7EIxT9JsmadY2tB5jHUVP8HiyoDVZM0yTMWlQDJooRCVRi0yZxEs02M4YrUwN1AoLysC0u8IedE9MCDL3sG4fy1BbcDoiZgU9Zjtq5S8v3WLGbeKbwWwMcgbEvetNpxr4v6qsnX/D+scXwfejBFhUs= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB6195.eurprd04.prod.outlook.com (20.179.33.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.16; Wed, 16 Oct 2019 03:01:51 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::843c:e722:27cb:74e1]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::843c:e722:27cb:74e1%5]) with mapi id 15.20.2347.021; Wed, 16 Oct 2019 03:01:51 +0000 From: Peng Fan <peng.fan@nxp.com> To: "sbabic@denx.de" <sbabic@denx.de>, "festevam@gmail.com" <festevam@gmail.com> Thread-Topic: [PATCH] imx: imx8m: fix boot when CONFIG_$(SPL_)CLK not defined Thread-Index: AQHVg84PzknV4lzUp0ulog06vVo4zA== Date: Wed, 16 Oct 2019 03:01:51 +0000 Message-ID: <20191016031909.7614-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: HK2PR03CA0057.apcprd03.prod.outlook.com (2603:1096:202:17::27) 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: f614f68b-6287-447a-f9b1-08d751e53153 x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: AM0PR04MB6195:|AM0PR04MB6195: x-ms-exchange-purlcount: 1 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: <AM0PR04MB619507FAB0EBDD2722823A2788920@AM0PR04MB6195.eurprd04.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:2887; x-forefront-prvs: 0192E812EC x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(346002)(366004)(396003)(39860400002)(136003)(189003)(199004)(6306002)(102836004)(305945005)(478600001)(26005)(81156014)(5660300002)(476003)(66476007)(14444005)(66066001)(966005)(66556008)(14454004)(99286004)(6506007)(386003)(71200400001)(71190400001)(66946007)(81166006)(52116002)(1076003)(186003)(486006)(2501003)(256004)(6512007)(64756008)(8676002)(66446008)(2616005)(6436002)(8936002)(50226002)(44832011)(6116002)(2906002)(7736002)(86362001)(4326008)(3846002)(110136005)(25786009)(54906003)(6486002)(36756003)(316002)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB6195; 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: BCL:0; x-microsoft-antispam-message-info: N0d333mq9v8WzeS28h6/aLXT5Sx0MQQ2xIvLe8S0lX/xjyLHI4kDYpVx/1UOtk8co8yaEYv/Rt7QUF44j5dLSJBdJXPPQ1AIWWAyGns6YgWwa6R+zGvdseHvdgc8owhj3IleJctP9uWejdy80hukp6gdlkhYa74GZp1CPbgbm4VcZ97VbhlCzR0sRlzlz6BnxJ1pM4TxL1Mb+qf6DTCfIJGEKscOHjPkAuo+m3ZVKI1BM9Bizrn5QwXV7YcRTiPrGUAYzOHWmcXVbVnec4h3MarGx6IlsLAAQ1nqzJ4OpgL/FAooxl0bFzWq8q1pBA4vof5CmKbj+XIhME+qD2bW/9q4JR6m5FylaDLZc4/I0DNky4u6QD+VUnoFjUUh7XAYiLrWU974Xd55goGe34sGM7VFMw4elHM8zFMqpK7D+76380mELRP3W+t4/pT1oLqWdheZdrDFsjpuQ+ibFkBQRQ== MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f614f68b-6287-447a-f9b1-08d751e53153 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Oct 2019 03:01:51.8099 (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: Cosj3q+wQVcJ54tQ05m/vRNXr3ct8o6IAiXCiN7x/w0v8c+zIuam0OSvLmf3PQQ9PWeAdketGcAQ5aVeYntmvg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6195 Cc: "u-boot@lists.denx.de" <u-boot@lists.denx.de>, dl-uboot-imx <uboot-imx@nxp.com> Subject: [U-Boot] [PATCH] imx: imx8m: fix boot when CONFIG_$(SPL_)CLK not defined 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 |
[U-Boot] imx: imx8m: fix boot when CONFIG_$(SPL_)CLK not defined
|
expand
|
diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index c46031dd12..3e73ca3cca 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -236,12 +236,14 @@ 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; + if (CONFIG_IS_ENABLED(CLK)) { + 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;