mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-25 07:41:40 +02:00
arm: imx: sys_proto: move boot mode define to common header
These defines could be reused by i.MX8ULP, so move them to common header. Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
331d40d701
commit
5f17fef893
@ -8,14 +8,5 @@
|
|||||||
|
|
||||||
#include <asm/mach-imx/sys_proto.h>
|
#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);
|
enum boot_device get_boot_device(void);
|
||||||
#endif
|
#endif
|
||||||
|
@ -178,6 +178,16 @@ enum boot_dev_type_e {
|
|||||||
extern struct rom_api *g_rom_api;
|
extern struct rom_api *g_rom_api;
|
||||||
#endif
|
#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_nr_cpus(void);
|
||||||
u32 get_cpu_rev(void);
|
u32 get_cpu_rev(void);
|
||||||
u32 get_cpu_speed_grade_hz(void);
|
u32 get_cpu_speed_grade_hz(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user