Merge git://git.denx.de/u-boot-riscv
This commit is contained in:
@@ -549,11 +549,6 @@ int cpu_release(u32 nr, int argc, char * const argv[]);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_INIT_CRITICAL
|
||||
#error CONFIG_INIT_CRITICAL is deprecated!
|
||||
#error Read section CONFIG_SKIP_LOWLEVEL_INIT in README.
|
||||
#endif
|
||||
|
||||
#define ROUND(a,b) (((a) + (b) - 1) & ~((b) - 1))
|
||||
|
||||
/*
|
||||
|
||||
@@ -99,9 +99,9 @@
|
||||
#define BOOTEFI_NAME "bootia32.efi"
|
||||
#elif defined(CONFIG_X86_RUN_64BIT)
|
||||
#define BOOTEFI_NAME "bootx64.efi"
|
||||
#elif defined(CONFIG_CPU_RISCV_32)
|
||||
#elif defined(CONFIG_ARCH_RV32I)
|
||||
#define BOOTEFI_NAME "bootriscv32.efi"
|
||||
#elif defined(CONFIG_CPU_RISCV_64)
|
||||
#elif defined(CONFIG_ARCH_RV64I)
|
||||
#define BOOTEFI_NAME "bootriscv64.efi"
|
||||
#endif
|
||||
#endif
|
||||
@@ -242,6 +242,18 @@
|
||||
BOOT_TARGET_DEVICES_references_USB_without_CONFIG_CMD_USB
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CMD_VIRTIO
|
||||
#define BOOTENV_SHARED_VIRTIO BOOTENV_SHARED_BLKDEV(virtio)
|
||||
#define BOOTENV_DEV_VIRTIO BOOTENV_DEV_BLKDEV
|
||||
#define BOOTENV_DEV_NAME_VIRTIO BOOTENV_DEV_NAME_BLKDEV
|
||||
#else
|
||||
#define BOOTENV_SHARED_VIRTIO
|
||||
#define BOOTENV_DEV_VIRTIO \
|
||||
BOOT_TARGET_DEVICES_references_VIRTIO_without_CONFIG_CMD_VIRTIO
|
||||
#define BOOTENV_DEV_NAME_VIRTIO \
|
||||
BOOT_TARGET_DEVICES_references_VIRTIO_without_CONFIG_CMD_VIRTIO
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_CMD_DHCP)
|
||||
#if defined(CONFIG_EFI_LOADER)
|
||||
/* http://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xml */
|
||||
@@ -257,10 +269,10 @@
|
||||
#elif defined(__i386__)
|
||||
#define BOOTENV_EFI_PXE_ARCH "0x6"
|
||||
#define BOOTENV_EFI_PXE_VCI "PXEClient:Arch:00006:UNDI:003000"
|
||||
#elif defined(CONFIG_CPU_RISCV_32) || ((defined(__riscv) && __riscv_xlen == 32))
|
||||
#elif defined(CONFIG_ARCH_RV32I) || ((defined(__riscv) && __riscv_xlen == 32))
|
||||
#define BOOTENV_EFI_PXE_ARCH "0x19"
|
||||
#define BOOTENV_EFI_PXE_VCI "PXEClient:Arch:00025:UNDI:003000"
|
||||
#elif defined(CONFIG_CPU_RISCV_64) || ((defined(__riscv) && __riscv_xlen == 64))
|
||||
#elif defined(CONFIG_ARCH_RV64I) || ((defined(__riscv) && __riscv_xlen == 64))
|
||||
#define BOOTENV_EFI_PXE_ARCH "0x1b"
|
||||
#define BOOTENV_EFI_PXE_VCI "PXEClient:Arch:00027:UNDI:003000"
|
||||
#elif defined(CONFIG_SANDBOX)
|
||||
@@ -350,6 +362,7 @@
|
||||
BOOTENV_SHARED_IDE \
|
||||
BOOTENV_SHARED_UBIFS \
|
||||
BOOTENV_SHARED_EFI \
|
||||
BOOTENV_SHARED_VIRTIO \
|
||||
"boot_prefixes=/ /boot/\0" \
|
||||
"boot_scripts=boot.scr.uimg boot.scr\0" \
|
||||
"boot_script_dhcp=boot.scr.uimg\0" \
|
||||
|
||||
@@ -15,7 +15,35 @@
|
||||
|
||||
#define CONFIG_SYS_MALLOC_LEN SZ_8M
|
||||
|
||||
#define CONFIG_SYS_BOOTM_LEN SZ_16M
|
||||
|
||||
/* Environment options */
|
||||
#define CONFIG_ENV_SIZE SZ_4K
|
||||
|
||||
#define BOOT_TARGET_DEVICES(func) \
|
||||
func(QEMU, qemu, na) \
|
||||
func(VIRTIO, virtio, 0) \
|
||||
func(DHCP, dhcp, na)
|
||||
|
||||
#include <config_distro_bootcmd.h>
|
||||
|
||||
#define BOOTENV_DEV_QEMU(devtypeu, devtypel, instance) \
|
||||
"bootcmd_qemu=" \
|
||||
"if env exists kernel_start; then " \
|
||||
"bootm ${kernel_start} - ${fdtcontroladdr};" \
|
||||
"fi;\0"
|
||||
|
||||
#define BOOTENV_DEV_NAME_QEMU(devtypeu, devtypel, instance) \
|
||||
"qemu "
|
||||
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
"fdt_high=0xffffffffffffffff\0" \
|
||||
"initrd_high=0xffffffffffffffff\0" \
|
||||
"kernel_addr_r=0x81000000\0" \
|
||||
"fdt_addr_r=0x82000000\0" \
|
||||
"scriptaddr=0x82100000\0" \
|
||||
"pxefile_addr_r=0x82200000\0" \
|
||||
"ramdisk_addr_r=0x82300000\0" \
|
||||
BOOTENV
|
||||
|
||||
#endif /* __CONFIG_H */
|
||||
|
||||
@@ -236,6 +236,16 @@ int ofnode_read_u32_default(ofnode ref, const char *propname, u32 def);
|
||||
*/
|
||||
int ofnode_read_s32_default(ofnode node, const char *propname, s32 def);
|
||||
|
||||
/**
|
||||
* ofnode_read_u64() - Read a 64-bit integer from a property
|
||||
*
|
||||
* @node: valid node reference to read property from
|
||||
* @propname: name of the property to read from
|
||||
* @outp: place to put value (if found)
|
||||
* @return 0 if OK, -ve on error
|
||||
*/
|
||||
int ofnode_read_u64(ofnode node, const char *propname, u64 *outp);
|
||||
|
||||
/**
|
||||
* ofnode_read_u64_default() - Read a 64-bit integer from a property
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user