public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jaehoon Chung <jh80.chung@gmail.com>
To: Tom Rini <trini@konsulko.com>, u-boot@lists.denx.de
Cc: Jaehoon Chung <jh80.chung@samsung.com>,
	Minkyu Kang <mk7.kang@samsung.com>
Subject: Re: [PATCH 06/25] s5p_goni, smdkc100: Move some environment settings out of CONFIG
Date: Fri, 22 Apr 2022 21:04:29 +0900	[thread overview]
Message-ID: <bee7454c-992c-2e6c-8a48-6491b035bd6c@gmail.com> (raw)
In-Reply-To: <20220330220735.908616-6-trini@konsulko.com>



On 3/31/22 07:07, Tom Rini wrote:
> A number of CONFIG options are used on these platforms as part of the
> default environment.  Set some of these more directly and in other
> cases, just reference them directly.
> 
> Cc: Jaehoon Chung <jh80.chung@samsung.com>
> Cc: Minkyu Kang <mk7.kang@samsung.com>
> Signed-off-by: Tom Rini <trini@konsulko.com>

Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>

Best Regards,
Jaehoon Chung


> ---
>  include/configs/s5p_goni.h | 23 ++++++++++-------------
>  include/configs/smdkc100.h | 24 ++++++++++--------------
>  2 files changed, 20 insertions(+), 27 deletions(-)
> 
> diff --git a/include/configs/s5p_goni.h b/include/configs/s5p_goni.h
> index 0ec60cadb49e..3b4347dd00bd 100644
> --- a/include/configs/s5p_goni.h
> +++ b/include/configs/s5p_goni.h
> @@ -67,18 +67,14 @@
>  	"name="PARTS_CSC",size=150MiB,uuid=${uuid_gpt_"PARTS_CSC"};" \
>  	"name="PARTS_UMS",size=-,uuid=${uuid_gpt_"PARTS_UMS"}\0" \
>  
> -#define CONFIG_RAMDISK_BOOT	"root=/dev/ram0 rw rootfstype=ext4" \
> -		" ${console} ${meminfo}"
> -
> -#define CONFIG_COMMON_BOOT	"${console} ${meminfo} ${mtdparts}"
> -
> -#define CONFIG_UPDATEB	"updateb=onenand erase 0x0 0x100000;" \
> -			" onenand write 0x32008000 0x0 0x100000\0"
> +#define COMMON_BOOT	"${console} ${meminfo} ${mtdparts}"
>  
>  #define CONFIG_MISC_COMMON
>  
>  #define CONFIG_EXTRA_ENV_SETTINGS					\
> -	CONFIG_UPDATEB \
> +	"updateb=" \
> +		"onenand erase 0x0 0x100000;" \
> +		"onenand write 0x32008000 0x0 0x100000\0" \
>  	"updatek=" \
>  		"onenand erase 0xc00000 0x600000;" \
>  		"onenand write 0x31008000 0xc00000 0x600000\0" \
> @@ -91,22 +87,23 @@
>  	"flashboot=" \
>  		"set bootargs root=/dev/mtdblock${bootblock} " \
>  		"rootfstype=${rootfstype} ${opts} " \
> -		"${lcdinfo} " CONFIG_COMMON_BOOT "; run bootk\0" \
> +		"${lcdinfo} " COMMON_BOOT "; run bootk\0" \
>  	"ubifsboot=" \
>  		"set bootargs root=ubi0!rootfs rootfstype=ubifs " \
>  		"${opts} ${lcdinfo} " \
> -		CONFIG_COMMON_BOOT "; run bootk\0" \
> +		COMMON_BOOT "; run bootk\0" \
>  	"tftpboot=" \
>  		"set bootargs root=ubi0!rootfs rootfstype=ubifs " \
> -		"${opts} ${lcdinfo} " CONFIG_COMMON_BOOT \
> +		"${opts} ${lcdinfo} " COMMON_BOOT \
>  		"; tftp 0x30007FC0 uImage; bootm 0x30007FC0\0" \
>  	"ramboot=" \
> -		"set bootargs " CONFIG_RAMDISK_BOOT \
> +		"set bootargs root=/dev/ram0 rw rootfstype=ext4" \
> +		" ${console} ${meminfo} " \
>  		"initrd=0x33000000,8M ramdisk=8192\0" \
>  	"mmcboot=" \
>  		"set bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart} " \
>  		"rootfstype=${rootfstype} ${opts} ${lcdinfo} " \
> -		CONFIG_COMMON_BOOT "; run bootk\0" \
> +		COMMON_BOOT "; run bootk\0" \
>  	"boottrace=setenv opts initcall_debug; run bootcmd\0" \
>  	"bootchart=set opts init=/sbin/bootchartd; run bootcmd\0" \
>  	"verify=n\0" \
> diff --git a/include/configs/smdkc100.h b/include/configs/smdkc100.h
> index 4401094ee39c..8eea45450b5c 100644
> --- a/include/configs/smdkc100.h
> +++ b/include/configs/smdkc100.h
> @@ -35,19 +35,14 @@
>  /* PWM */
>  #define CONFIG_PWM			1
>  
> -#define CONFIG_RAMDISK_BOOT	"root=/dev/ram0 rw rootfstype=ext2" \
> -				" console=ttySAC0,115200n8" \
> -				" mem=128M"
> -
> -#define CONFIG_COMMON_BOOT	"console=ttySAC0,115200n8" \
> +#define COMMON_BOOT	"console=ttySAC0,115200n8" \
>  				" mem=128M " \
>  				" " CONFIG_MTDPARTS_DEFAULT
>  
> -#define CONFIG_UPDATEB	"updateb=onenand erase 0x0 0x40000;" \
> -			" onenand write 0x32008000 0x0 0x40000\0"
> -
>  #define CONFIG_EXTRA_ENV_SETTINGS					\
> -	CONFIG_UPDATEB \
> +	"updateb=" \
> +		"onenand erase 0x0 0x40000;" \
> +		"onenand write 0x32008000 0x0 0x40000\0" \
>  	"updatek=" \
>  		"onenand erase 0x60000 0x300000;" \
>  		"onenand write 0x31008000 0x60000 0x300000\0" \
> @@ -60,25 +55,26 @@
>  	"flashboot=" \
>  		"set bootargs root=/dev/mtdblock${bootblock} " \
>  		"rootfstype=${rootfstype} " \
> -		"ubi.mtd=${ubiblock} ${opts} " CONFIG_COMMON_BOOT ";" \
> +		"ubi.mtd=${ubiblock} ${opts} " COMMON_BOOT ";" \
>  		"run bootk\0" \
>  	"ubifsboot=" \
>  		"set bootargs root=ubi0!rootfs rootfstype=ubifs " \
> -		" ubi.mtd=${ubiblock} ${opts} " CONFIG_COMMON_BOOT "; " \
> +		" ubi.mtd=${ubiblock} ${opts} " COMMON_BOOT "; " \
>  		"run bootk\0" \
>  	"boottrace=setenv opts initcall_debug; run bootcmd\0" \
>  	"android=" \
>  		"set bootargs root=ubi0!ramdisk ubi.mtd=${ubiblock} " \
> -		"rootfstype=ubifs init=/init.sh " CONFIG_COMMON_BOOT "; " \
> +		"rootfstype=ubifs init=/init.sh " COMMON_BOOT "; " \
>  		"run bootk\0" \
>  	"nfsboot=" \
>  		"set bootargs root=/dev/nfs ubi.mtd=${ubiblock} " \
>  		"nfsroot=${nfsroot},nolock " \
>  		"ip=${ipaddr}:${serverip}:${gatewayip}:" \
> -		"${netmask}:nowplus:usb0:off " CONFIG_COMMON_BOOT "; " \
> +		"${netmask}:nowplus:usb0:off " COMMON_BOOT "; " \
>  		"run bootk\0" \
>  	"ramboot=" \
> -		"set bootargs " CONFIG_RAMDISK_BOOT \
> +		"set bootargs root=/dev/ram0 rw rootfstype=ext2" \
> +		" console=ttySAC0,115200n8 mem=128M" \
>  		" initrd=0x33000000,8M ramdisk=8192\0" \
>  	"rootfstype=cramfs\0" \
>  	"mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \

  parent reply	other threads:[~2022-04-22 12:04 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-30 22:07 [PATCH 01/25] Convert CONFIG_BOARD_SIZE_LIMIT to Kconfig Tom Rini
2022-03-30 22:07 ` [PATCH 02/25] mvebu: Move BOOTROM_ERR_REG out of CONFIG namespace Tom Rini
2022-03-31  8:58   ` Stefan Roese
2022-04-08 18:02   ` Tom Rini
2022-03-30 22:07 ` [PATCH 03/25] tegra: Migrate CI_UDC_HAS_HOSTPC to Kconfig Tom Rini
2022-04-01 16:21   ` Peter Robinson
2022-04-08 18:02   ` Tom Rini
2022-03-30 22:07 ` [PATCH 04/25] Convert CONFIG_CMDLINE_PS_SUPPORT " Tom Rini
2022-04-08 18:02   ` Tom Rini
2022-03-30 22:07 ` [PATCH 05/25] arm: integrator: Migrate platform-specific options and cleanup armcoremodule.h Tom Rini
2022-04-08 18:02   ` Tom Rini
2022-03-30 22:07 ` [PATCH 06/25] s5p_goni, smdkc100: Move some environment settings out of CONFIG Tom Rini
2022-04-04  4:19   ` Minkyu Kang
2022-04-08 18:02   ` Tom Rini
2022-04-22 12:04   ` Jaehoon Chung [this message]
2022-03-30 22:07 ` [PATCH 07/25] MPC837XERDB: Stop using CONFIG_RAMDISKFILE Tom Rini
2022-04-08 18:03   ` Tom Rini
2022-03-30 22:07 ` [PATCH 08/25] corvus: Migrate CONFIG_*_LED out of CONFIG namespace Tom Rini
2022-03-31  4:19   ` Heiko Schocher
2022-04-08 18:03   ` Tom Rini
2022-03-30 22:07 ` [PATCH 09/25] stm32f429-discovery: " Tom Rini
2022-03-31  7:20   ` Patrice CHOTARD
2022-04-08 18:03   ` Tom Rini
2022-03-30 22:07 ` [PATCH 10/25] at91: Remove unused LED code Tom Rini
2022-04-08 18:03   ` Tom Rini
2022-03-30 22:07 ` [PATCH 11/25] Convert CONFIG_CONS_SCIF0 et al to Kconfig Tom Rini
2022-04-08 18:03   ` Tom Rini
2022-03-30 22:07 ` [PATCH 12/25] Convert CONFIG_SH_SCIF_CLK_FREQ " Tom Rini
2022-04-08 18:03   ` Tom Rini
2022-03-30 22:07 ` [PATCH 13/25] spi: cadence_qspi: Migrate CONFIG_CQSPI_REF_CLK " Tom Rini
2022-03-31 16:30   ` Pratyush Yadav
2022-03-31 17:41     ` Tom Rini
2022-03-31 18:54       ` Pratyush Yadav
2022-03-31 19:35   ` [v2 " Tom Rini
2022-03-31 19:43     ` Pratyush Yadav
2022-04-08 14:47     ` Tom Rini
2022-04-11 19:05       ` Pratyush Yadav
2022-04-11 19:30         ` Tom Rini
2022-04-08 18:05   ` [PATCH " Tom Rini
2022-03-30 22:07 ` [PATCH 14/25] controlcenterdc: Migrate CUSTOMER_BOARD_SUPPORT " Tom Rini
2022-03-31  9:00   ` Stefan Roese
2022-04-08 18:03   ` Tom Rini
2022-03-30 22:07 ` [PATCH 15/25] tegra: Drop CONFIG_CHROMEOS_EXTRA_ENV_SETTINGS Tom Rini
2022-04-08 18:03   ` Tom Rini
2022-03-30 22:07 ` [PATCH 16/25] microblaze: Migrate DCACHE/ICACHE to Kconfig Tom Rini
2022-03-31  5:42   ` Michal Simek
2022-04-08 18:03   ` Tom Rini
2022-03-30 22:07 ` [PATCH 17/25] ls1021atwr: Use DEBUG and not CONFIG_DEBUG Tom Rini
2022-04-08 18:03   ` Tom Rini
2022-03-30 22:07 ` [PATCH 18/25] nds32: Migrate CONFIG_DEBUG_LED to Kconfig Tom Rini
2022-04-08 18:03   ` Tom Rini
2022-03-30 22:07 ` [PATCH 19/25] powerpc: mpc83xx: Migrate DEFAULT_IMMR " Tom Rini
2022-04-08 18:04   ` Tom Rini
2022-03-30 22:07 ` [PATCH 20/25] galileo: Remove CONFIG_DESIGNWARE_ETH reference Tom Rini
2022-04-08 18:04   ` Tom Rini
2022-03-30 22:07 ` [PATCH 21/25] Convert CONFIG_DIMM_SLOTS_PER_CTLR to Kconfig Tom Rini
2022-04-08 18:04   ` Tom Rini
2022-03-30 22:07 ` [PATCH 22/25] Convert CONFIG_FSL_QIXIS et al " Tom Rini
2022-04-08 18:04   ` Tom Rini
2022-03-30 22:07 ` [PATCH 23/25] m53menlo: Drop CONFIG_DISCOVER_PHY Tom Rini
2022-04-08 18:04   ` Tom Rini
2022-03-30 22:07 ` [PATCH 24/25] siemens-am33x-common: Drop CONFIG_DMA_COHERENT* Tom Rini
2022-04-08 18:04   ` Tom Rini
2022-03-30 22:07 ` [PATCH 25/25] arm: fsl-layerscape: Migrate more DP-DDR options to Kconfig Tom Rini
2022-04-08 18:04   ` Tom Rini
2022-04-08 18:02 ` [PATCH 01/25] Convert CONFIG_BOARD_SIZE_LIMIT " Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bee7454c-992c-2e6c-8a48-6491b035bd6c@gmail.com \
    --to=jh80.chung@gmail.com \
    --cc=jh80.chung@samsung.com \
    --cc=mk7.kang@samsung.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox