mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-02 08:13:44 +09:00
Blackfin: add defines to describe active bootrom behavior
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
2b6fd5c77d
commit
154502fe07
@ -88,6 +88,8 @@
|
|||||||
#define _BOOTROM_REV 0xEF000040
|
#define _BOOTROM_REV 0xEF000040
|
||||||
#define _BOOTROM_SESR 0xEF001000
|
#define _BOOTROM_SESR 0xEF001000
|
||||||
|
|
||||||
|
#define BOOTROM_FOLLOWS_C_ABI 1
|
||||||
|
|
||||||
#define BOOTROM_CAPS_ADI_BOOT_STRUCTS 1
|
#define BOOTROM_CAPS_ADI_BOOT_STRUCTS 1
|
||||||
|
|
||||||
/* Not available on initial BF54x or BF52x */
|
/* Not available on initial BF54x or BF52x */
|
||||||
@ -100,6 +102,9 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef BOOTROM_FOLLOWS_C_ABI
|
||||||
|
#define BOOTROM_FOLLOWS_C_ABI 0
|
||||||
|
#endif
|
||||||
#ifndef BOOTROM_CAPS_ADI_BOOT_STRUCTS
|
#ifndef BOOTROM_CAPS_ADI_BOOT_STRUCTS
|
||||||
#define BOOTROM_CAPS_ADI_BOOT_STRUCTS 0
|
#define BOOTROM_CAPS_ADI_BOOT_STRUCTS 0
|
||||||
#endif
|
#endif
|
||||||
@ -109,6 +114,12 @@
|
|||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
|
#if BOOTROM_FOLLOWS_C_ABI
|
||||||
|
# define BOOTROM_CALLED_FUNC_ATTR
|
||||||
|
#else
|
||||||
|
# define BOOTROM_CALLED_FUNC_ATTR __attribute__((saveall))
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Structures for the syscontrol() function */
|
/* Structures for the syscontrol() function */
|
||||||
typedef struct ADI_SYSCTRL_VALUES {
|
typedef struct ADI_SYSCTRL_VALUES {
|
||||||
uint16_t uwVrCtl;
|
uint16_t uwVrCtl;
|
||||||
|
Loading…
Reference in New Issue
Block a user