diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2018-11-30 11:34:17 -0200 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2018-11-30 21:56:45 +0100 |
commit | d3f4bce9c0b938ae02870deac04e754d2e2818cb (patch) | |
tree | 374701b7e76062f9e8de08a42357e87a84c4f025 /include/configs/rv1108_common.h | |
parent | 8177c5c45227c7957a604ed61e7e4ff6f478bb03 (diff) | |
download | u-boot-d3f4bce9c0b938ae02870deac04e754d2e2818cb.tar.gz |
ARM: rockchip: rv1108: Add support for default distro_bootcmd
This allow easier integration of RV1108 based boards on generic
distributions and build systems.
To avoid behavior change, we make evb-rv1108 to use the existing
environment as it boots from its SPI NOR.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'include/configs/rv1108_common.h')
-rw-r--r-- | include/configs/rv1108_common.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/configs/rv1108_common.h b/include/configs/rv1108_common.h index cc0384e2f4..16d4e2e355 100644 --- a/include/configs/rv1108_common.h +++ b/include/configs/rv1108_common.h @@ -28,3 +28,18 @@ #define CONFIG_USB_OHCI_NEW #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1 #endif + +#ifndef CONFIG_SPL_BUILD +#define ENV_MEM_LAYOUT_SETTINGS \ + "scriptaddr=0x60000000\0" \ + "fdt_addr_r=0x61f00000\0" \ + "kernel_addr_r=0x62000000\0" \ + "ramdisk_addr_r=0x64000000\0" + +#include <config_distro_bootcmd.h> +#define CONFIG_EXTRA_ENV_SETTINGS \ + ENV_MEM_LAYOUT_SETTINGS \ + "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ + "partitions=" PARTS_DEFAULT \ + BOOTENV +#endif |