From patchwork Tue Jun 29 02:31:57 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: 468270 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4504647jao; Mon, 28 Jun 2021 18:59:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlPz4/Z1SEdZwRpWV5yHY+6yzPFUtC/8C9dXLWMKd2ieFP78JpNVunRh8lPdhxvEw3p5CT X-Received: by 2002:a50:fe8d:: with SMTP id d13mr36765197edt.14.1624931988385; Mon, 28 Jun 2021 18:59:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1624931988; cv=pass; d=google.com; s=arc-20160816; b=RnN5EXOtcSt9lerzMl7T1FSlZMwyg0xIpLs/57Uoum1+S3LTgSLXoigd3ocDmZVlxq J4jYq0eaxhdi5rRlcfEZ9Nwr2MDIfDp0/1o/3faaYZYwwzQNpLkjK65znXnWEfWpDwsp 0usjpWwkXAUGfARACcQly2kD8jcyrHUeychSNMLyjn2UwKS6XK2KGe4DtaAcpjEbYX26 1KLqWP8EpYdBlpYm7u1mCzNfP5esUJOSBzODjjXGgpjOeBFH1CBqY/zn4g9UjUJyS4oP Y/0g1qAgvcL/ZR3w2wlSZRflq8kpw8wbhXxxunhx7m59xgaDcmVf46GqQy58D1PDkv4x ULVw== 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=JRlwFHx+iocFnyskadUbr79i72eXI4Cy7wOqMnrY++DTUGMtnyHjMX1UV8IBGrl6Tj jK1W7Em4oM3nStqfDG76p6Tf4xJL7g3XLhp0ut4FnXSm4bPLFmAQMOlwAi4oGs44Q23K w+onpmb0Axuy0bud2kTBU/gUzAZ2tM+6QVHVX7+ycpDwfLIBRr2nC6PBzPN5Q1ON2Vi0 K/M8yosZ07da95fjlRYsWJDf5OouA6iuoRxSYz2Zqlv3zZS00DS961cw2EnHt6IDseLy AXMaZQukBhyuXRcpwnG/uOcubZIJKqm0MQqz4EMFBCnTyDuwLHCNN5T/GRnZsLUlurnH 54Kw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=FXx3PAnZ; 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 w23si14917761edx.69.2021.06.28.18.59.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Jun 2021 18:59:48 -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=FXx3PAnZ; 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 1B0EA82E68; Tue, 29 Jun 2021 03:59:27 +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="FXx3PAnZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A16C382E5F; Tue, 29 Jun 2021 03:59:22 +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-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on060d.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0c::60d]) (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 B93A082E54 for ; Tue, 29 Jun 2021 03:59:19 +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=ImlZ3K6yBEwumDW5vvM2o1Zd6dmkU0AWAqhCKEAlEbCraVmeQ8dGAimVDNn+IKOm+zLT9FG4faT4LpPbiv3EOaPpt1bevOQNrjbcl76Fju22Pnk1RrGE/O/KWEgvdKGfC9TYPjcOG3gllsEXzTTqnbv5GMTem7aT24A2mOeU2uhwACtpwsiAMGRJSDPnK8EemW0Qew7KAG/ibOu/Mz+O8gv4RMgcqNv8b7PRkvvpQ2Wa4WvjPpcOVkot9girt/1w74cI7XLrXn9eafCsqW+4DmZZtXUwqQ2PbNRqzdh91lse0pMqaH5WG8GBw8CKZDB6GWVhhpfxTyz7krnd4yDisQ== 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=jTYRKWaLFGu6edTeI+LTArMyT1Tp2OpB+Vq+WY5pKB5Aj2w2iaNecStbOpQ/Zsp4+hkVm19PQCvAqArqrnHNykbOiNfxe7zYrIQ5UNNdNuX/AusHozg/eFzia5eo28FjH3njlDz6YfyjUtRRA0iIlo1HLIER2MJ9QOZ+JieJF8SELAItymshFs7zl9VbeIwFgaXt6fvCL+OuArNIQLlxkchYnsKGe/0nzmq1CoKdCtKu/ftdgky354gdLLwAZIatHwyAdwMuR+kBjv8AZ0ohGTJkc8koICNSXZjG3cdotMNIiiVmgk4U1Ecn1yw+y4Zy27b45QCLI9bzOxqu3d18jQ== 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=FXx3PAnZXLHXyVpU+7AxWBbVWJMyZZ8MEpPFyVwpvHkWdzzIsSCLvozOdzPbozIUilZzUlcqP/WT89YhJdGTf5e4S2jyfceosoiWGXlxYfRa4Rh07TOYdHd8QvEkibYEtQJgo93FYVA30mHZoVxuPeEJuMibcxE4/3E108x6qp0= 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 DB7PR04MB4633.eurprd04.prod.outlook.com (2603:10a6:5:36::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.19; Tue, 29 Jun 2021 01:59:18 +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.4264.026; Tue, 29 Jun 2021 01:59:18 +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 V2 03/46] arm: imx: sys_proto: move boot mode define to common header Date: Tue, 29 Jun 2021 10:31:57 +0800 Message-Id: <20210629023240.22394-4-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210629023240.22394-1-peng.fan@oss.nxp.com> References: <20210629023240.22394-1-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR06CA0088.apcprd06.prod.outlook.com (2603:1096:3:14::14) 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 SG2PR06CA0088.apcprd06.prod.outlook.com (2603:1096:3:14::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.19 via Frontend Transport; Tue, 29 Jun 2021 01:59:16 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 647b395e-b6ae-48b2-f496-08d93aa18127 X-MS-TrafficTypeDiagnostic: DB7PR04MB4633: 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-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ea+bm/sN+6Bz78JQj4op2bvYBsXQGSDap8vl2WkCgNE+lV86CXKrAtZ0hTHrEJUbuyFtxXVkFteuQlw6rs/xNv5nizsuxM0MZNuVplPZOlzZU8RovpJ36m+nDs7rANNPg2sbOqHXrPsyUvEGoM9fUSFkk2WZ063yrHlvPwqQyCVwFjkvBOvtP39B83C8ew/Fo6KSg8MmAPN10OwRMtwRl84r1w7KOBgeJUkA9LyNi7P06G7F8yQaNABFJihxCchvLjlg02B1IefNYpcDtK0dLeVZZm4peu8/j9JzUTfT2uPt+GNbodZL3PqKj7qPos/BmI91/3JOZq1LOhtmJdR548x8P6NnoaZi0SqLR3wmSP4dNMFZGk1f+7gtLC/4yxhcjHWLmTjZNHqhmLHaHJQ3ekfiqUebLFeHa9tfzAEMnNGHqBSNrZBetIHhnQDrU5jh7rvg80H9qpk+m7MYixVkfHuNzghBe83eYMoYEeSLlVAcL8mLgmjpUcQvp+SdAHZoVc30YQPKB9TNVXPEzhsyFZzyXazCn9EzfLB7KMHZT3XeXcIb54p4NloTzIhcDSXb3GERXpyR4b5tzP3gIHXXa0f7atUa8lmtdEf1+y/QOA3faqy2jDwJ3jm3ituRyEOpNEut1tZ18un0HiqqzY31CYHsKWA0VJRBcfeLINM6uWeGQHdtpIS3L0fG49xjtQDKVJVLZPGln4Qm3JLow2pD8g== 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)(346002)(376002)(39860400002)(136003)(366004)(396003)(16526019)(66946007)(38100700002)(38350700002)(8936002)(6666004)(4326008)(26005)(83380400001)(6506007)(1076003)(186003)(8676002)(2906002)(478600001)(6486002)(2616005)(956004)(5660300002)(52116002)(86362001)(66476007)(6512007)(316002)(66556008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: o/jNGiir+Jkpd8p5VXT85CuznSUQI7ZjQucvKz6GMuC4kLXi2nOSBmTm7unOru7JszdggVf/izKomZbNMp1lMXSaPgzRj2oCM2qUH/mBGtw5Ly/rDRzPeSJVJPZtRTi3oA9sYSp8Wz4A2qaVHSSrTDxyV9ieVQBd46t1tWSfy4M0BKSvBC9fO0vwI2PU1K5MR6dXtdm9dEhKMpB+CqqtIfXakgtMjUmMqUjDxcrv9T/hdWuIBpaMb/BAwSeWM/vLLowQWSd9QL+xEjH6SUPxceiDwt508p54F7xPl9ta6sV1u4JLnlSp02VCNWW6s97f6Ese1wUkngEzozy7ZWZJHGI9CN6H2ZVB4oeQnOIMtjaFfbFGJDiueuyfk+ytfHy3mUcL6H3yF8VdDfMLkmKW1SoVEQNyUL48O1hZfVMWhaPuQKR4444V6qiwEALzli4eyz14jtXdbkW8D7AnHZb2qaTzi8mD9ML/FeOuc4qvCGX8WsgEY0qOpFadd5mptIfur1b1akIu3Dp4XLVWlCMTvg6+CO4IfG6F82+7ZzgUkaATIU2s2V7uQ7zusjh+iBmctKQ51LzsPNMzlkETgtNATsnf6BuotWbCWQTDXZ+GkQKTYQ3d7UJRS4fDqrtB2eQYzf6dhuP9BbFkDZJJKzOPSJPPG17TIQ9NcnLoF+o2MNWbbHMCJRjCnu47ol6ZMOhXzoUizzzwlXpNaobpvuTc0lScfyiMl8fk778v9MaPhcQaG/gSKBND2lY6fkXsUdxIQPTFWgZAlmJgiTw8mn8VPJUodnrbAPFenib8ckZTWOn3ZSzbpgLCY4vjmn0GIs3Yiw757aYbtUjcKQgusvpoZG/lho2jHWsfx+YWPF6zrAGC31mQy+ghozFOA1PRv3234slKIGa4PR8DABgfLO7OPLjewMMNtcp9mmEoNlVcrAjxGAPd4x7A0NTYlAw2HDU8i/VRu3bU51QnVwEipG3+W39fJJuiRlrFczC82kGlZ9CGmkXK1cH3jwxNzoBl5j4Jx33Zar2EEiUzJAsdRxd3a9cQq5yFqd26xHEovJwH4tHw7hRhC3IwNae3F8EcNysPo3cNPV4v2Eob1XqS6Qtt6IzSqpl7AAw+t6xwmnGtGQWRzT74SUmg3a/GEiTZH1knjLV1aBsr9YQKW+K+DKPfukEHbbmyxGc1zf1tdUOVutxZBGDYakW1TwhqMIjyhfA1rEy5rN3EFPsHLt7KBXdFKoqUH5Lc/B2A3uLZ2WPhfmH2kwe32NT3mCTbG2fRSzuOZ6gRFMcTmbSD3WFR3sLnEUx7Uz/PbMnexwI15mVRi5lHuey5TnwJlwwkOpLpMA0n X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 647b395e-b6ae-48b2-f496-08d93aa18127 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2021 01:59:18.2580 (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: oELcP2YhDiRyJRkRfuJTzMvBGGTgmmeoxcpBhqyVLMR7vDIGMwqm1P3C56L/dZ3ZIU8g9qhLy7ZHnx52sK3aXQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4633 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);