1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
9 #include <linux/sizes.h>
13 #define CONFIG_SYS_SPL_MALLOC_START 0x84100000
14 #define CONFIG_SYS_SPL_MALLOC_SIZE 0x00100000
18 #define CONFIG_SYS_SDRAM_BASE 0x80000000
20 #define CONFIG_SYS_BOOTM_LEN SZ_64M
22 #define CONFIG_STANDALONE_LOAD_ADDR 0x80200000
24 #define RISCV_MMODE_TIMERBASE 0x2000000
25 #define RISCV_MMODE_TIMER_FREQ 1000000
27 #define RISCV_SMODE_TIMER_FREQ 1000000
29 /* Environment options */
31 #ifndef CONFIG_SPL_BUILD
32 #define BOOT_TARGET_DEVICES(func) \
33 func(QEMU, qemu, na) \
34 func(VIRTIO, virtio, 0) \
38 #include <config_distro_bootcmd.h>
40 #define BOOTENV_DEV_QEMU(devtypeu, devtypel, instance) \
42 "if env exists kernel_start; then " \
43 "bootm ${kernel_start} - ${fdtcontroladdr};" \
46 #define BOOTENV_DEV_NAME_QEMU(devtypeu, devtypel, instance) \
49 #define CONFIG_EXTRA_ENV_SETTINGS \
50 "fdt_high=0xffffffffffffffff\0" \
51 "initrd_high=0xffffffffffffffff\0" \
52 "kernel_addr_r=0x84000000\0" \
53 "kernel_comp_addr_r=0x88000000\0" \
54 "kernel_comp_size=0x4000000\0" \
55 "fdt_addr_r=0x8c000000\0" \
56 "scriptaddr=0x8c100000\0" \
57 "pxefile_addr_r=0x8c200000\0" \
58 "ramdisk_addr_r=0x8c300000\0" \
62 #endif /* __CONFIG_H */