From patchwork Mon Jul 19 07:46:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 479808 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3866931jao; Mon, 19 Jul 2021 00:14:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHsUWr1RR+wDKT3o5bfH3Jz748YGb3bZqCvOB1Kuw7GSnmodAOp29+ULbQMlHdZPzksgtE X-Received: by 2002:a17:906:3c14:: with SMTP id h20mr26135801ejg.176.1626678855962; Mon, 19 Jul 2021 00:14:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1626678855; cv=pass; d=google.com; s=arc-20160816; b=V5OwzOhstqnrH0j9zA9A7ayYEJBGiR48a0JyJTPOahR/Ej6uMVMVpoz2b6KBykGLM8 IDZ28X2o8qvra4Q6XQ/Z1EsRaxOPbTiwb60I2SwbXnoMbP9fQuIH92E+ZPZDqJGKhFvO YUpcmr9zsdl0pCPB/7NiwvKC/y0b3zlt7n30eBjNxpl5IU9eT+QC/roPJ/6F4F6V0x/W iaampCZsM/rq3+Qvxj5PJCj/Iqf6Hw51EjRNkNQjQhhKgBvih/Qx+QJSsieNbpfhoJVI +c6sF3CZ1gGeQhE8/WAehbuUv0zy2NT2/mIQYELW/MV2y05XN3VpiOJFiQZobbRgXOPI b5ow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=+g0uQfh3e0LkBYcAyp5M2RvHjrJ/skzm9O49D26rU44=; b=ytm4Sar1JfxbZX0B4wkDeegcZgfdq4Ss7zG7jAf6UCn8WXyI84e0Aa7XDM4rpAdJUf lLBzow5fCDaxB8RLKadpJ5fCLzfoVJ0y55BH3c0hmt2K8kZdK/ZE32+FkGFBiHLgzS2t 79AL/fPZLe6TnNcYknoOlahTTTJv3ZAdotIjiWMlfMzZ812jR2POv99pvX9h7lLB/riB VwbRDtppD2//5Flfae9P6EyKlkXR2Y14iWesnTN7CP7rT2GfcKuqPSqnQEMfUbk0BD0w t1ILTHZ0dziIcX+ycE/1OfA2O0qmorX3Oz3nhhRi7U99BMX4rsy3aQouaYa5jEmfRm9B dC0Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=Ezy+LfuX; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id i25si20517159eds.348.2021.07.19.00.14.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jul 2021 00:14:15 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=Ezy+LfuX; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1D1C082BD6; Mon, 19 Jul 2021 09:13:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="Ezy+LfuX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DFABF82AE4; Mon, 19 Jul 2021 09:13:44 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-am5eur02on0601.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe07::601]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 379D582BC4 for ; Mon, 19 Jul 2021 09:13:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@oss.nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MBQfvnOwzQcu1oRn1xuIvIR5lVED7dj+Z36J2hmP8qAoUZs3Tzs76/MPVCyJIkpHbSEue1o15knwt8Onj+JO35wU8tAz55NkDbUWMDG4pxJIhpgOygxmAngJYiQqydKJGQlPvtMsOHs/MYprCe3Kx0KJvhomNyZNdWhYDFPw9CX1ccRIpdj+641z9W5IKlv05yKYXe6UMbUkva5u5B+6eqIQwHMmVBYr4VHILH8FnaRaBQg6SmhH97CEofpuOND1YLEreX/P/svTmNCUeSs1wFkP4MAUAisaydm9yUqaFejNGkgryWY5x6YSnct1Cwaa/+WbgikzTi4QwiGk8B8vBQ== 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=+g0uQfh3e0LkBYcAyp5M2RvHjrJ/skzm9O49D26rU44=; b=VKDnZhpRjvOq6MqddFCSv2BiAZJTVuO6kEXQa65XKrSec2a8SofTgiMypZ38jcbb4KlIjrUOcckxLSyWgv+DmgGCun/JEjWNqjcZ3G8FrJE8CQ2/A6idafwJ6A2+H0opaiFC2MSZkporQsNT0JNrTzFIbkOASNnGGSz0GjQ3vdsCQLrOj3soEPwQ38dWkIguAxqbcE1IJ+7CUzNmXBagCAr4q8ZUxiK6c8Gt7OFFTwAAO/MWuwGD23Wn0SEX54AnpXGDYg72pSNdqyQjOSFh42mgTmUhabBOc1GE1pcqVR19vldsmyEfxqX4TbQVcIzS3/XWnVPtMEubMiXn36rzLA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+g0uQfh3e0LkBYcAyp5M2RvHjrJ/skzm9O49D26rU44=; b=Ezy+LfuXuXY6kIcPgSCl8XYiyxksVThX2Iau0Ju4wuOZgBoVCbZpEbDjHFsumt/x+fWRGQ8vQkbY0gzUTXN0Dx13/WFSWCHM5UHRDtMjSRlFLRNYhm3l0AuXme/cPknA4GNnZ426NDPnmEa9uKV8F6TEmhZvU8qP2KjrRPNij38= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none; denx.de; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB5242.eurprd04.prod.outlook.com (2603:10a6:10:18::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.29; Mon, 19 Jul 2021 07:13:39 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c445:d742:eb76:86dd]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c445:d742:eb76:86dd%9]) with mapi id 15.20.4331.032; Mon, 19 Jul 2021 07:13:39 +0000 From: "Peng Fan (OSS)" To: sbabic@denx.de, festevam@gmail.com Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, Peng Fan Subject: [Patch V3 03/44] arm: imx: sys_proto: move boot mode define to common header Date: Mon, 19 Jul 2021 15:46:53 +0800 Message-Id: <20210719074734.29170-4-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210719074734.29170-1-peng.fan@oss.nxp.com> References: <20210719074734.29170-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SGAP274CA0006.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::18) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SGAP274CA0006.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Mon, 19 Jul 2021 07:13:37 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e0d331de-9760-41a7-8f43-08d94a84bb5b X-MS-TrafficTypeDiagnostic: DB7PR04MB5242: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:378; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yhmspqYv1QXgtFT//38wHKr3oh1MCzskxwu8iwyZdIn9yWrHdtR+xa5nYV98ztQRHMuesOd4oF7TlUELBotyunTnp+vbqMi/BaXqjTFaseIqlj+mUO3dd9ukObzz4OyfeXcGEddyOuR1p7TeWLXlbvoqomtD8zfP38xEQGhdqYkG76WFPLBYgFL+Z7DI1ysNXNjFVemFWbduLM7YfRUB1KVRkGdErdnAoiNJBJFgWumOms1HVUfsvRSWjMFSEmhu4LWzGGsVSN7cU8taLvCrDfKj7rsjdXk8yutvs16AJ7QG7YF8EU1vwPsd5pzszhNzBtogpsyrCYW884xz8lcaXbiljPfmMNK082v0kwBkUHdfsLtIA3UPhEdiIEBvCk6mhzZDTe/LKC/zJgrhb8HGPJGN7IxDlYHoTSCNpIhZIND469mAwGwBbkj8vr5FZ48D6n0uWqTte+S8k3w13ywzV05SCBZ9AwIRc5G08OCfiK4nP60kpgF19VlSHhYF+xRaesgUu2Iq0u8Yh5nCKK6iji59iQ6sAWzWMgtpy+heZIy67soScng94Yj/DGeWc8wW21NOjrAYQpnsnl3XQTQKtfxVOMl5PAravAXMDQ66yRK644vuZx52DlcP5TYa9jt+Rkr5XXfY7VuyoQuGpyfk8ah1iXgcsbbGQA6fKBj1nBiC3kHZCvdoBkx3aIn0bjhwoYdD5AbOQO0VqyzagaTSvA== 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; SFS:(4636009)(366004)(136003)(346002)(39840400004)(396003)(376002)(26005)(6506007)(6666004)(52116002)(4326008)(8936002)(2906002)(478600001)(38350700002)(38100700002)(6512007)(66556008)(66476007)(86362001)(66946007)(8676002)(2616005)(83380400001)(186003)(1076003)(5660300002)(316002)(6486002)(956004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CXKx0CPcTrs6lek3alzRUFeKEQYFPu4WgK9nsAJpDgb7xWltGh61Uzq7UQTnWtxBrR4lnfgo/ThG7GQC8c75AhCvz039PD9YSVU8CENx9HEtMJTtBL83ZKefPW3XhMpDKNE1irEd9rL4uVPh6mzAZRe0y6Dwv4+IHs6riMtXPNUj/ZU1COhyiq7Mod8rlCMpnpZpwp2d0FhjErvuewWQG6cZR7ddTHJhdZ+0P/KwFoM2LNfk62Gg4TuDbXTy31OKpXfMWaxO3zWje2woAwa1S1fu4cjqCj3hUjhqlFNgxzCEGYxuNfmXVQs+2Zoq3qedvDLCxWwwgBBET9F0HT0isZF7P4ViK39IBPt2Yba0ECUhBZLVo8/ALQu7r1gX/552RdAHdoppiI21CahCzn0BGzioHkn4Saor0zH1otxwJ0dScwjrVR9URR4CmeESyrprzBeErbRQZlvztheC91QgZ6o5xvDLmBlyog1P6TuKlwn6fm4d/IDNdm+uf2vdLlH99cTskGo/Qvdm2JGQcb3erm0qI/bIfnjYtRvxwWBRM/mPpcgVjmfowHj9VPD4KLwwac0bvFibogzgF95ylC3RrkHMpw22f5WMrJpOl3YbNAHe2+i2iQYVxhvLQYmxNotOLs4X0NbyQoBkztLeUS6I8kaPiMQRSG2YkwzFeqMcFs3pEmm4ZhpSJnf3cI3B8Alm43Um6jTuZ/8NsnQxtkulHs0NUGVtL1JfvuDuxouF231HA7ZMeOQjtybCzrcQblJw9oAQJY2UYtfua8lgbIjIfbwYshWw8lpmkhDPPEc80NRvIdtDxBUUne3EYK/UHtgXrdO8GalYTsvtinZX20gKQB8jmx70vqN5rRDaGul3pgM4W7a071vCTqJw1qKZgzT3Ut81yB/LPOdLNGXWWz/gQUlQL7qb+G7kxoYyKfx5KzFYwW3kSMSxfu9IGRd2I1dHWPGkbabU4wFGtkw1T6sVI8oMctNOy1gNkdBQ/Ps/FSzO901Z9mFv/5poKjVlqlTJq2renSlfWpCx7uIi78q34I4qCOyVXE6QztUWBsuL+jpeXtlKdehIDjtukMMvwDiE847CRGeGaecUTeI48POjyZtQHVGqL0SJhDKucRkBTmoTaPDjAqccR+z7Zxc521ENSMNerqQhKQoxcieycq30dxtU2Hf0NUfMOhm1bJnUZLZQ7g4oxV/x3roXJu88YNHWuFWNYyuuK+tbHkZMQhefjJWGH/VhGN9queckNbLIgCL8VNMCTx8Wd8bHQzC2wXhBzjuDH5Uqf/9mg1Sdcx4SqVlzZIbRQh6YYYDPk8mT4ip53gQgRJAIK6xpI+CvJNR7 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e0d331de-9760-41a7-8f43-08d94a84bb5b X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2021 07:13:39.1203 (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: dmZp36eC/GEJ5mS/Q8tReQQFLdlUgEEFdmGrtU9Rhv9sr5eEhy8UZM3uzDS3BJq2q1NLQ+i3g5eHXBuVmK2hgg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5242 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: Peng Fan These defines could be reused by i.MX8ULP, so move them to common header. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-mx7ulp/sys_proto.h | 9 --------- arch/arm/include/asm/mach-imx/sys_proto.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) -- 2.30.0 diff --git a/arch/arm/include/asm/arch-mx7ulp/sys_proto.h b/arch/arm/include/asm/arch-mx7ulp/sys_proto.h index 0e4c8ad15d..0daa922fad 100644 --- a/arch/arm/include/asm/arch-mx7ulp/sys_proto.h +++ b/arch/arm/include/asm/arch-mx7ulp/sys_proto.h @@ -8,14 +8,5 @@ #include -#define BT0CFG_LPBOOT_MASK 0x1 -#define BT0CFG_DUALBOOT_MASK 0x2 - -enum bt_mode { - LOW_POWER_BOOT, /* LP_BT = 1 */ - DUAL_BOOT, /* LP_BT = 0, DUAL_BT = 1 */ - SINGLE_BOOT /* LP_BT = 0, DUAL_BT = 0 */ -}; - enum boot_device get_boot_device(void); #endif diff --git a/arch/arm/include/asm/mach-imx/sys_proto.h b/arch/arm/include/asm/mach-imx/sys_proto.h index ad446940ff..e3ee58c9f8 100644 --- a/arch/arm/include/asm/mach-imx/sys_proto.h +++ b/arch/arm/include/asm/mach-imx/sys_proto.h @@ -178,6 +178,16 @@ enum boot_dev_type_e { extern struct rom_api *g_rom_api; #endif +/* For i.MX ULP */ +#define BT0CFG_LPBOOT_MASK 0x1 +#define BT0CFG_DUALBOOT_MASK 0x2 + +enum bt_mode { + LOW_POWER_BOOT, /* LP_BT = 1 */ + DUAL_BOOT, /* LP_BT = 0, DUAL_BT = 1 */ + SINGLE_BOOT /* LP_BT = 0, DUAL_BT = 0 */ +}; + u32 get_nr_cpus(void); u32 get_cpu_rev(void); u32 get_cpu_speed_grade_hz(void);