Message ID | 20190819095817.22107-18-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="ZfySUBBz"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46Bq7c0fL9z9sMr for <incoming@patchwork.ozlabs.org>; Mon, 19 Aug 2019 19:56:11 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 453ABC21F84; Mon, 19 Aug 2019 09:54:59 +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 69353C21F22; Mon, 19 Aug 2019 09:50:19 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2CFB5C21F58; Mon, 19 Aug 2019 09:43:23 +0000 (UTC) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140088.outbound.protection.outlook.com [40.107.14.88]) by lists.denx.de (Postfix) with ESMTPS id 44244C21DA1 for <u-boot@lists.denx.de>; Mon, 19 Aug 2019 09:43:21 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kYxf5PRq5CdtwB73lTenC8xp1GkTybUS9nwA3JAjmOr1UUdrc4rfCHSbU57o/1azzHpurfVwct8JphRfDELsTqxdelfJ2kqI4IwwdUbie3LLeXPN09fldJxINbZHpEX7K1Qqnb+ZA5IuykFEb+IsKMxkgHgXfZTebDcs8A43qov1nhCCexqbMCRhoWdjpz7y7iQdH1HFySsJMR6h/Shsf+AO7FlAuXI99Tz+QY8K0gvUGzFCoGy5u+kReB2XnhDMqwyjzWhAV5u9W+4/uGrNT5gw7BjfLBB6HFHAC/iJiTdtPM011lb78XccMH3Tq7UkNDHIyxpPqWiJH+iwoDLqCw== 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=GK4rSiXYnzDTFuDeMV3si4FwTbQiqmtlnJvz5Wml63k=; b=XGHqr2243u2CDo2kTgthGnoZkgWyfNKYYlJeJD4M95j2Vo8qsqJ3OsRyhTS0wPob6u9a6ntXvVT4bWaBoxHSvfkOrA8Fl1wXaK1doalhUQwwZZd3bC2s7KbfdMNIZVuEvht3nD+LlJsDDNWN9qNmCsEIh3XaEQog4+VoKr5wnGXP25PJz49gCZ6IDFnHN7VznvmGYEE1djWnDVFb9YmPr5Sg8WU//LdSpeQyYZ4HqwObXCJ31qdxO4NpN6420u87ku5bTx35PHaM0kvHyCBZ+EoDmIb6OlzhWyQpnNGfV6if+QRLAyDhRIgBfNpTJrrGSxPf3Xiek6kXFGmTrkoWww== 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=GK4rSiXYnzDTFuDeMV3si4FwTbQiqmtlnJvz5Wml63k=; b=ZfySUBBzNVogTu1IkAcKh0ON3X8XUPpQrZvSXncE4ghJ0Xv1qWaWFEQigbXu29Qajd3DlA3ZAOKraUGUHhePm7/Ge9eFsgHqxfMcUPU0IKEpOxT2k6zgmkz2wn8Avyn+1wVjG7oKaN3jI69DnXaHXXi/DLmYmDCZDWCMGYvc0d4= 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:20 +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:20 +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 17/26] imx8m: soc: enable SCTR clock before timer init Thread-Index: AQHVVnKJPvKkAU3aS0GIWUGM+SQlBA== Date: Mon, 19 Aug 2019 09:43:20 +0000 Message-ID: <20190819095817.22107-18-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: e259a9c0-e6bf-47f2-3151-08d72489ab61 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: <AM0PR04MB4354675F0609AA5420ED935F88A80@AM0PR04MB4354.eurprd04.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:3513; 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)(14444005)(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: kogL6QAvrazYvPA3vLg74MrijqJw2AQ7dXnEUzn5Vh0CeBiztKHJPuj6gydMYpEWpnpSnb1jxNKj3sl+2EEQLzhNgg8hGDd4Ju2KoV4PmGOfKiVBw5YLewg7nD6gO/e/lbpe+YesjavcuwM+RLxknp2BbUnnpuAPZoyQFhj7aG9W3zHCgamydMlLicjh/tyKf5PH1ZyESEGeS/L9+ame3HKkw7qwrkUDEifeiEZ5mlFu+gm2pf725fwtaS3UO2XI7NewqpP7GY8p/clmdqC+eD7AWIbyMu246vJvJ41kNFIEfHxC2dy4921rlr/6Ez3GVetlpQ8vPXWJf4X394SM+zqcZSr4Th4fDRQBcpK5kN5KwCz0H3TaGZ5iTYHQrv+lozEUo0/G/fYd07JDO/q0deWY/5W0lT25Wp5MsfmY8eA= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e259a9c0-e6bf-47f2-3151-08d72489ab61 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Aug 2019 09:43:20.4425 (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: X5HclRSdqSVm80voWABVU6X178VlKt/2dz7+j4CPC+Z+ks4blIFP5WoAf4SkautHNeODOB7t5Utj1HJh/nr2xw== 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 17/26] imx8m: soc: enable SCTR clock before timer init 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 a33ca35653..ac80266010 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -231,6 +231,12 @@ static void imx_set_wdog_powerdown(bool enable) int arch_cpu_init(void) { struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; + /* + * ROM might disable clock for SCTR, + * enable the clock before timer_init. + */ + if (IS_ENABLED(CONFIG_SPL_BUILD)) + clock_enable(CCGR_SCTR, 1); /* * Init timer at very early state, because sscg pll setting * will use it
To i.MX8MM SCTR clock is disabled by ROM, so before timer init need to enable it. To i.MX8MQ, it does not hurt the clock is enabled again. Signed-off-by: Peng Fan <peng.fan@nxp.com> --- arch/arm/mach-imx/imx8m/soc.c | 6 ++++++ 1 file changed, 6 insertions(+)