mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-16 17:58:23 +00:00
4e5909450e
The rest of the unmigrated CONFIG symbols in the CONFIG_SYS_NAND namespace do not easily transition to Kconfig. In many cases they likely should come from the device tree instead. Move these out of CONFIG namespace and in to CFG namespace. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
49 lines
1.1 KiB
C
49 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright 2021 Collabora Ltd.
|
|
*/
|
|
|
|
#ifndef __IMX8MN_BSH_SMM_S2_H
|
|
#define __IMX8MN_BSH_SMM_S2_H
|
|
|
|
#include <configs/imx8mn_bsh_smm_s2_common.h>
|
|
|
|
#define BOOT_TARGET_DEVICES(func) \
|
|
func(NAND, nand, 0) \
|
|
|
|
#include <config_distro_bootcmd.h>
|
|
|
|
#define NANDARGS \
|
|
"nandargs=setenv bootargs console=${console} " \
|
|
"${optargs} " \
|
|
"mtdparts=${mtdparts} " \
|
|
"root=${nandroot} " \
|
|
"rootfstype=${nandrootfstype}\0" \
|
|
"nandroot=ubi0:root rw ubi.mtd=nandrootfs\0" \
|
|
"nandrootfstype=ubifs rootwait\0" \
|
|
"nandboot=echo Booting from nand ...; " \
|
|
"run nandargs; " \
|
|
"nand read ${fdt_addr_r} nanddtb; " \
|
|
"nand read ${loadaddr} nandkernel; " \
|
|
"booti ${loadaddr} - ${fdt_addr_r}\0"
|
|
|
|
#define BOOTENV_DEV_NAND(devtypeu, devtypel, instance) \
|
|
"bootcmd_" #devtypel #instance "=" \
|
|
"run nandboot\0"
|
|
|
|
#define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
|
|
#devtypel #instance " "
|
|
|
|
/* Initial environment variables */
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
MEM_LAYOUT_ENV_SETTINGS \
|
|
NANDARGS \
|
|
BOOTENV
|
|
|
|
#define PHYS_SDRAM_SIZE SZ_256M
|
|
|
|
/* NAND */
|
|
|
|
#define CFG_SYS_NAND_BASE 0x20000000
|
|
|
|
#endif /* __IMX8MN_BSH_SMM_S2_H */
|