From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Yan Date: Tue, 27 Nov 2018 09:55:17 +0800 Subject: [U-Boot] [PATCH v2 5/5] rv1108: Add support for default distro_bootcmd In-Reply-To: <20181120185535.11822-6-otavio@ossystems.com.br> References: <20181120185535.11822-1-otavio@ossystems.com.br> <20181120185535.11822-6-otavio@ossystems.com.br> Message-ID: <750c5289-8e2c-fda8-2794-6324c5eb5f3a@rock-chips.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de Hi: On 2018/11/21 上午2:55, Otavio Salvador wrote: > This allow easier integration of RV1108 based boards on generic > distributions and build systems. > > Signed-off-by: Otavio Salvador > --- > > Changes in v2: None > > include/configs/rv1108_common.h | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > 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 > +#define CONFIG_EXTRA_ENV_SETTINGS \ > + ENV_MEM_LAYOUT_SETTINGS \ > + "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ > + "partitions=" PARTS_DEFAULT \ > + BOOTENV > +#endif Reviewed-by: Andy Yan