rockchip: rk3399: Add ROCKCHIP_DEVICE_SETTINGS to set env
authorSimon Glass <sjg@chromium.org>
Mon, 21 Jan 2019 21:53:32 +0000 (14:53 -0700)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 1 Feb 2019 15:59:13 +0000 (16:59 +0100)
Some boards use different stdio environment variables from the default.
Provide a #define for this which can be set before including the header
file.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
include/configs/rk3399_common.h

index 9a4da395f928a4edc32fe1c89246be52bf9e295b..b977b1faa731cf970288a68b35bee872b0a5541d 100644 (file)
        "kernel_addr_r=0x02080000\0" \
        "ramdisk_addr_r=0x04000000\0"
 
+#ifndef ROCKCHIP_DEVICE_SETTINGS
+#define ROCKCHIP_DEVICE_SETTINGS
+#endif
+
 #include <config_distro_bootcmd.h>
 #define CONFIG_EXTRA_ENV_SETTINGS \
        ENV_MEM_LAYOUT_SETTINGS \
        "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
        "partitions=" PARTS_DEFAULT \
+       ROCKCHIP_DEVICE_SETTINGS \
        BOOTENV
 
 #endif