2018-04-09 23:34:23 +02:00
|
|
|
#ifndef FUSEE_NX_BOOT_H
|
|
|
|
#define FUSEE_NX_BOOT_H
|
|
|
|
|
|
|
|
#include "utils.h"
|
|
|
|
|
2018-04-11 00:37:58 +02:00
|
|
|
#define MAILBOX_NX_BOOTLOADER_BASE ((void *)(0x40002000))
|
|
|
|
|
2018-05-14 21:17:06 +02:00
|
|
|
#define MAILBOX_NX_BOOTLOADER_SETUP_STATE MAKE_REG32(MAILBOX_NX_BOOTLOADER_BASE + 0xEF8)
|
2018-04-11 00:37:58 +02:00
|
|
|
|
|
|
|
#define NX_BOOTLOADER_STATE_INIT 0
|
|
|
|
#define NX_BOOTLOADER_STATE_MOVED_BOOTCONFIG 1
|
|
|
|
|
|
|
|
#define NX_BOOTLOADER_STATE_LOADED_PACKAGE2 2
|
|
|
|
#define NX_BOOTLOADER_STATE_FINISHED 3
|
|
|
|
|
|
|
|
#define NX_BOOTLOADER_STATE_DRAM_INITIALIZED_4X 2
|
|
|
|
#define NX_BOOTLOADER_STATE_LOADED_PACKAGE2_4X 3
|
|
|
|
#define NX_BOOTLOADER_STATE_FINISHED_4X 4
|
|
|
|
|
|
|
|
/* Physaddr 0x40002EFC */
|
2018-05-14 21:17:06 +02:00
|
|
|
#define MAILBOX_NX_BOOTLOADER_IS_SECMON_AWAKE MAKE_REG32(MAILBOX_NX_BOOTLOADER_BASE + 0xEFC)
|
2018-04-11 00:37:58 +02:00
|
|
|
|
2018-05-14 21:17:06 +02:00
|
|
|
#define MAILBOX_NX_BOOTLOADER_BOOT_REASON (MAILBOX_NX_BOOTLOADER_BASE + 0xE10)
|
2018-04-09 23:34:23 +02:00
|
|
|
|
|
|
|
void nxboot_main(void);
|
|
|
|
|
2018-05-14 21:17:06 +02:00
|
|
|
#endif
|