31 #define MBOOT_GOLDEN 0
32 #define MBOOT_RUNTIME 1
33 #define MBOOT_RUNTIME_2 2
34 #define MBOOT_DIAGNOSTIC 3
37 #define MBOOT_STS_VALID BIT(0) // MBoot register valid
38 #define MBOOT_STS_FALLBACK BIT(1) // Fallback used
39 #define MBOOT_STS_IPROG BIT(2) // IProg issued
40 #define MBOOT_STS_WTO_ERROR BIT(3) // Watchdog timeout error
41 #define MBOOT_STS_ID_ERROR BIT(4) // ID error
42 #define MBOOT_STS_CRC_ERROR BIT(5) // CRC error
43 #define MBOOT_STS_WRAP_ERROR BIT(6) // WRAP error
64 return 0xFF & (
MBOOT->BOOTSTS >> (previous ? 8 : 0));
static void mbootWDogFeed()
Feed the watchdog.
Defines the configuration of the LM32 SOC for the CLBv2.
static int mbootBootStatus(bool previous)
Returns the boot status.
void mbootLoad(int imgNo)
Boots a specific image.
static void mbootWDogStop()
Stop the watchdog.
#define MBOOT
Multiboot base pointer.
void mbootWDogStart(uint32_t timer, bool config)
Configures and starts the ICAPE2 watchdog.
static uint32_t mbootIDCode()
Returns the ID-code.
This file assigns all device structures to memory mapped structures.
#define MBOOT_CMD_LTIMER
Reload watchdog.