]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: imx: sys_proto: move boot mode define to common header
authorPeng Fan <peng.fan@nxp.com>
Sat, 7 Aug 2021 08:00:32 +0000 (16:00 +0800)
committerStefano Babic <sbabic@denx.de>
Mon, 9 Aug 2021 12:46:50 +0000 (14:46 +0200)
These defines could be reused by i.MX8ULP, so move them
to common header.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/include/asm/arch-mx7ulp/sys_proto.h
arch/arm/include/asm/mach-imx/sys_proto.h

index 0e4c8ad15d34ac33be050e5ed81f0a1aa085cb0a..0daa922fad91e5503b15be9d41e1c05b129aba78 100644 (file)
@@ -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
index ad446940ff3a5f8ac444d4fee14b5e2f2923b808..e3ee58c9f887462eeb3543866598ba5cfb115859 100644 (file)
@@ -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);