diff options
author | Alexander Graf | 2018-04-23 07:59:49 +0200 |
---|---|---|
committer | Andes | 2018-05-29 14:43:12 +0800 |
commit | 0979f7ce1eea73c80e6f858a803106660507d1e3 (patch) | |
tree | 5769d576f135fd5550621a47c29e5f5c15b80441 /include/configs | |
parent | 2c6903fa7b1f8c141f56219b181bee2b7fe1f2f4 (diff) |
riscv: nx25: Enable distro boot
Distro boot allows for a common boot path on systems that allow distributions
to easily boot from a default configuration.
This patch enables distro boot for the nx25-ae250. Hopefully this can serve
as a good example for new boards, so they enable it as well.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/nx25-ae250.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/configs/nx25-ae250.h b/include/configs/nx25-ae250.h index 930cdbd4e40..a5948c43334 100644 --- a/include/configs/nx25-ae250.h +++ b/include/configs/nx25-ae250.h @@ -104,4 +104,21 @@ /* Increase max gunzip size */ #define CONFIG_SYS_BOOTM_LEN (64 << 20) +/* When we use RAM as ENV */ +#define CONFIG_ENV_SIZE 0x2000 + +/* Enable distro boot */ +#define BOOT_TARGET_DEVICES(func) \ + func(MMC, mmc, 0) \ + func(DHCP, dhcp, na) +#include <config_distro_bootcmd.h> + +#define CONFIG_EXTRA_ENV_SETTINGS \ + "kernel_addr_r=0x00080000\0" \ + "pxefile_addr_r=0x01f00000\0" \ + "scriptaddr=0x01f00000\0" \ + "fdt_addr_r=0x02000000\0" \ + "ramdisk_addr_r=0x02800000\0" \ + BOOTENV + #endif /* __CONFIG_H */ |