Message ID | 20210807080113.16020-4-peng.fan@oss.nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp1028165jap; Sat, 7 Aug 2021 00:27:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBD4nVFrqrxUfJP/Jk9+yQ1U2sxl2gjn8C5cypuomIn46vVFSjup9Cr6ld5iExFNMa/I1f X-Received: by 2002:a17:906:a445:: with SMTP id cb5mr13947490ejb.320.1628321263964; Sat, 07 Aug 2021 00:27:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1628321263; cv=pass; d=google.com; s=arc-20160816; b=K5CHW7EuOxOPiY7qWZkpq12lmwc1rdxW61RbccrHz7VbPSJsaVLJqE9w6Jrfw/srFJ LnC6ct40bCktnyEYJLd09zSkUiD1V0bJMyVrWpSpnBXohAGO1LUqSh9Nv89J6MANgjx7 3cqN0cbbD2J739JEcFrPR13sqrMlu3eBO5212nFs8wpsApWapz5vlkWhhhezHr+9dTKX lZbrER2mvpnhba5sQW/hpWsVZHiRI5xVlIXNv+zLjiZwyjUU2tKHX8t08takYHP+fNZn UGrlufEEcNo0S6ruOItYUMt+LJvLnLal+/A2u4B+jhlgOrZwMTw6/MrFs/IBkj30oAVH SorA== 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=KU42OBQt9x4kFtAidFBtb7pdgWVlQJbltQUfbT5P2Cx6gXqyQ1jY/drxxaRj6SbRs6 VgzYsUNOjygr/YTr1kRVmQBRFmZ0KSQKC61w2ENMZ7JSEPfS4fQl6rNtJJfARV0zRjIl /PeEV2ncaos4bBitiyxHysW7zSPLjewfu/hB84VzD2cShgATJhWi1FSVG+WYHT+1+lTq Gm+UE5sEN2HtuExCOm6nIibadWVKJXhVdhzdY0Q8B9wHGJIBI/Bd8Jjs35Y43BKRoWHV n4UiED5uhy62yfdyllyMNkb5qSwN0rKEQ2UIekFr45QTGvS14QVPodta3S7HHKtLrxmo gaWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=PN+2AtFz; 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 85.214.62.61 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: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a7si11685354edt.36.2021.08.07.00.27.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Aug 2021 00:27:43 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=PN+2AtFz; 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 85.214.62.61 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 CAE0F80ECB; Sat, 7 Aug 2021 09:27:21 +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="PN+2AtFz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 50D2B831ED; Sat, 7 Aug 2021 09:27:03 +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.9 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 EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on0619.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0e::619]) (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 1337E831BF for <u-boot@lists.denx.de>; Sat, 7 Aug 2021 09:26:50 +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=aZg+dwIGwtrWXIqWOa3tSTXikPbDLO41jtmCBVWxi/BTegIOUiMK/2jVyFV4zYt9PCq4UuRzWPeTIyBKxiqw6C+ZlKXKLt1OvmptCbR4EpVfsz11i6e3owFP8OZE52PE5jE8FNjWJNJJeo5enOkJjtIvBJcktuFujVEokS9ZasaaSf3TeDQHboR4N+MDG1OGUj+WrfhpzK0asC8+7Gje/tr9gu7/TJL+f+Ev/Y2USpIM7TPr+4P7y3VPX0JXyU39BKFZQBAYuSaCEvJX58V8lD+w3mityT/gPCnLt0V0aRDQfIJ++bY6PJ4qVENXxEcHhD8i/rn6RupY/alNwZO64g== 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=jYXUxqjEsuW2dJYXLvB2pkZM9xlBRFc6eTJY8TJNwq2yn9UPK6+SHXCAZ11deoUof8Zjatamm8CqNBho1vA+7taL0JC5rEcwCNH74XAESUEHinN9/V3hyscwYCc7xzGgxlyW6dNBwGT+tGNNlBHMWTIuqHRLWBB6U9Wxv9Uqhonc4+9q3ikdmwpUrrlQa+tLzdnKRT1cxmni5FeZO3iPwo9PltPfvO3s7he18S3PW7zCsojUY/57TzjwRiYjszNyy7TJycXDv3/UWt2Z7/U9oC/iVuUvyE7dkhAXA9okulaUrxSpQyPJsN+Lyg2u/2KtEPAACwIvrQUhNK9DJfSg3w== 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=PN+2AtFzXv/a67winlsGhMYZQojGF0zWL7jY4SYkpSjEiJ7um/A0rI5SAXrb4PoswNKBwdafA5JmOXiAV+GJZRYaYBg0M43Sq7BQcrWN2Bqq1rnc0Qua6aXJjqYLKg/T/yTNiougQGP2+f4bvghkrpmqxwb47FjvUvxSW4eizPA= 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 DB3PR0402MB3658.eurprd04.prod.outlook.com (2603:10a6:8:2::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17; Sat, 7 Aug 2021 07:26:48 +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.4394.019; Sat, 7 Aug 2021 07:26:48 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: sbabic@denx.de, festevam@gmail.com Cc: u-boot@lists.denx.de, uboot-imx@nxp.com, Peng Fan <peng.fan@nxp.com> Subject: [PATCH V5 03/44] arm: imx: sys_proto: move boot mode define to common header Date: Sat, 7 Aug 2021 16:00:32 +0800 Message-Id: <20210807080113.16020-4-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210807080113.16020-1-peng.fan@oss.nxp.com> References: <20210807080113.16020-1-peng.fan@oss.nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0133.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::13) 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 SG2PR01CA0133.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15 via Frontend Transport; Sat, 7 Aug 2021 07:26:46 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0ba0edc2-f43f-4925-e9ee-08d95974b796 X-MS-TrafficTypeDiagnostic: DB3PR0402MB3658: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DB3PR0402MB3658B62E8F96EDF789EDB0CDC9F49@DB3PR0402MB3658.eurprd04.prod.outlook.com> 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: 3VG0/XW2nnmZX5GM0+CySVggxmzlORn5+yS3xM09TaCNI2rVMOuuJUraXlF1o24v1sn75i+T8GOQBLBlwOeKew7WjByezZCZ3Fj1WM8q8Z02uI9hRyKSNQVMoGxLwq7Ses0DSFhwpA1izeM+qz+clz9cvk7cbB7bRxFTYTd2kj1IgDJcK4tdyyDKl2ZGFBv11G48R3SjnESIfTk6rsFDDAj0hUjnB/ovMyaYQZdF0tHRhZ7ne9w1fa1+I/6LPXu6Ml9nh8+pvU/XUTD4V/d2gJhSHQ6ZR+VUpUaeTywfVkDoabm7Oa42AJtlL3EhqBTGW41goVfXu7xQmaHNFgKJ+pgRh0ynGkUHPicgbC57ml0XCOhx9j4USHA2HDv8Xoif+7vDR523hItMiFMJOmC90pnILlL4QH1ONZJSWVsDO3CxG3gSbpKRf+PNrgefIW/pXoPd21EKIEOELnEXoMWMzqpY4e/Gm1NZX4iU6Z0oyN0VHiX+x/tBQxljHowwDm3umRQ7xA2vKLAlggmym2pZsGiGEh6XFnqTknMv98Q+P0Zyde6J/Q/12PdWpP6vBaXhZhZZwWbTPkji5ZTIVHI505HipOdf89KHJNo8K0QnNxF+iMoZMRy2rWXTWnEdgzr4PDhJbDxtQdZCqsBcZcFjHR999qVY6IvSGw6SAoZ1Q8d4FSBtCjxShDju91bFJW+B7oG+Y232Av+/t0ghGHnTjw== 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)(396003)(136003)(39860400002)(346002)(376002)(478600001)(6512007)(8936002)(8676002)(38100700002)(6666004)(316002)(6486002)(6506007)(2616005)(956004)(4326008)(38350700002)(52116002)(86362001)(83380400001)(5660300002)(2906002)(1076003)(26005)(66946007)(66476007)(186003)(66556008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AjhD363FDdT3iqyEzb+vU5HsbeGqzZ7GYkZSezGabx531Kp7vlcog8Pu+ZoVPPmnMT/Rv1Ohr12ABeWo1oPbjgXink0X3aRgqaFGYcyGC7S/9UjQOybDul1MgnJMzDOoQpWYrBao1ab7h6SVDR5x8uSTnkHWhgAyE0nR3kLOhczLLzJTEKVbmhkJCbe/1iQIdxEHDtQNIPlw7DASSKY4n/wvHplzx9dbmKsYw0O/22CFKLBwQkUK0sPJoeWXFC4Y7b1+Ug+mXKUYcdW6JuWGK6rH4V/AxertKaHzdXgi+Vefwa1Je1DTzh7mYEVpg+5W6SHfZBhufcQrHZT4FVFV5DRHxSEau8+XArFfMk8JZOiC1HC4Rxkq4s06f1AVU5Ne8beqeTgouyVyafXTTbX6ljR5/SkYE8fk7YWj3O7Kt8HcHo/MhdUIBkWyyVMrI53T4wqIzhxv1RjPwqURaZbAZK88EScn9crbhLXyiTvpQzG8FTaEmuNEsC56UvvLdvUd+VzMja7eHK1a3+1E5eUpS+JbzP9YEzNVU8VmDRbBoEhQvPjNt52oHhgcopT52gA78vdSD8tDnkYuPtX1HMlfIdd5ujG0cXvAGUQtb3g+oVQVEjHB4B2LvkLOXSpcn3WT0aE4vZ4/2Co2ZbKLsqNYjTXprhrYGp4Nlr2jcJNy96TbDtCbqQh+7XKdDErIAiWbqwIoE7rqc99nGjAD8aFcMeRuVq/3Zqb1uFaIrz81zGEUk5/LYHAhH4q7VyGY6/chfFpKsYFjsmIhol1ZNMZJ5jvSr+t9qqVtA2N0mDpKY4mUAwtgHahNPkPLDp8AClSTYZdVSE+kw2L3581Ds/soU20bCLtkrXfhO0JOozIJCGySJ62odV8s2YcW6BDhtOyWeObnN6FQDSFz+wyD7G5kEHqOZmB6rLLmhf870qysbNeqm9mM7NbQfrWLeBiCgXGfyMnY/X82Qx8CEgawe4xbsPF4JD50ze0/lJrFoxwUiLCqcO1wwx3ztI+VZx/vUFGXCkD/Fw6RIxSfYIxifUUD2/Truqx/rTVRJR6WEa4ByqKK6138dIBUd/GElZFHaiQ7CTtZmEoWrzsV2X/YyqtuQAwfnyFGOMB6c2Zl3NCGp6LpD+k9ys2co7WveiRBUui0ubtfvZEmYGrAnGvURs+OlphL9CNAM5/bjvIN5/PrdfgrY5sjIzNb3QW/7HD7ponOJ2PnCcBOJKSwYh8bzc4htgYdgDfPoRN+MngeRV4DFiTEXimssUD11wIpCQZqzNpmusj0VEWjjWk/Tjgl2nHT4gAZ6Gq+noPjfVsTl3y6KRDgcYpj3+PK/RyZV5Bq3EGl X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ba0edc2-f43f-4925-e9ee-08d95974b796 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2021 07:26:48.2884 (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: ygLsn/VRNnDJye5lCCWqjWVPMqndzOg7SXeJeCHDbrqR5wz8bmfh4lNXyF4r4r5LrjdanjJ3B+Sl98eXmaw9kA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3658 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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: <https://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> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
imx: add i.MX8ULP support
|
expand
|
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 <asm/mach-imx/sys_proto.h> -#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);