All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Marek Vasut <marex@denx.de>
Cc: u-boot@lists.denx.de, Fabio Estevam <festevam@denx.de>,
	Peng Fan <peng.fan@nxp.com>, Stefano Babic <sbabic@denx.de>
Subject: Re: [PATCH] ARM: imx: imx8q: Use LPUART_BASE macro in config files
Date: Mon, 25 Apr 2022 08:56:36 -0400	[thread overview]
Message-ID: <20220425125636.GC6921@bill-the-cat> (raw)
In-Reply-To: <20220424214310.52628-1-marex@denx.de>

[-- Attachment #1: Type: text/plain, Size: 3061 bytes --]

On Sun, Apr 24, 2022 at 11:43:10PM +0200, Marek Vasut wrote:

> Replace ad-hoc value with LPUART_BASE macro, no functional change.
> 
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Fabio Estevam <festevam@denx.de>
> Cc: Peng Fan <peng.fan@nxp.com>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Tom Rini <trini@konsulko.com>
> ---
>  include/configs/cgtqmx8.h     | 2 +-
>  include/configs/imx8qm_mek.h  | 4 ++--
>  include/configs/imx8qxp_mek.h | 2 +-
>  3 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/include/configs/cgtqmx8.h b/include/configs/cgtqmx8.h
> index 6da0483ef09..db2555c23cc 100644
> --- a/include/configs/cgtqmx8.h
> +++ b/include/configs/cgtqmx8.h
> @@ -20,7 +20,7 @@
>  #define CONFIG_SPL_BSS_MAX_SIZE		0x1000	/* 4 KB */
>  #define CONFIG_SYS_SPL_MALLOC_START	0x00120000
>  #define CONFIG_SYS_SPL_MALLOC_SIZE	0x3000	/* 12 KB */
> -#define CONFIG_SERIAL_LPUART_BASE	0x5a060000
> +#define CONFIG_SERIAL_LPUART_BASE	LPUART_BASE
>  #define CONFIG_MALLOC_F_ADDR		0x00120000
>  
>  #define CONFIG_SPL_RAW_IMAGE_ARM_TRUSTED_FIRMWARE
> diff --git a/include/configs/imx8qm_mek.h b/include/configs/imx8qm_mek.h
> index 61d56e269ac..b9ad61ce501 100644
> --- a/include/configs/imx8qm_mek.h
> +++ b/include/configs/imx8qm_mek.h
> @@ -21,7 +21,7 @@
>  #define CONFIG_SPL_BSS_MAX_SIZE		0x1000	/* 4 KB */
>  #define CONFIG_SYS_SPL_MALLOC_START	0x00120000
>  #define CONFIG_SYS_SPL_MALLOC_SIZE	0x3000	/* 12 KB */
> -#define CONFIG_SERIAL_LPUART_BASE	0x5a060000
> +#define CONFIG_SERIAL_LPUART_BASE	LPUART_BASE
>  #define CONFIG_MALLOC_F_ADDR		0x00120000
>  
>  #define CONFIG_SPL_RAW_IMAGE_ARM_TRUSTED_FIRMWARE
> @@ -41,7 +41,7 @@
>  	"script=boot.scr\0" \
>  	"image=Image\0" \
>  	"panel=NULL\0" \
> -	"console=ttyLP0,${baudrate} earlycon=lpuart32,0x5a060000,${baudrate}\0" \
> +	"console=ttyLP0,${baudrate} earlycon=lpuart32," __stringify(LPUART_BASE) ",${baudrate}\0" \
>  	"fdt_addr=0x83000000\0"			\
>  	"fdt_high=0xffffffffffffffff\0"		\
>  	"boot_fdt=try\0" \
> diff --git a/include/configs/imx8qxp_mek.h b/include/configs/imx8qxp_mek.h
> index 26dc4ded030..11a8ac50691 100644
> --- a/include/configs/imx8qxp_mek.h
> +++ b/include/configs/imx8qxp_mek.h
> @@ -19,7 +19,7 @@
>  #define CONFIG_SPL_BSS_MAX_SIZE		0x1000	/* 4 KB */
>  #define CONFIG_SYS_SPL_MALLOC_START	0x00120000
>  #define CONFIG_SYS_SPL_MALLOC_SIZE	0x3000	/* 12 KB */
> -#define CONFIG_SERIAL_LPUART_BASE	0x5a060000
> +#define CONFIG_SERIAL_LPUART_BASE	LPUART_BASE
>  #define CONFIG_MALLOC_F_ADDR		0x00120000
>  
>  #define CONFIG_SPL_RAW_IMAGE_ARM_TRUSTED_FIRMWARE

This kind of change makes Kconfig migration harder for moveconfig.py to
handle.  I don't see CONFIG_SERIAL_LPUART_BASE used in code, so we
should just drop it.  And so far as we're consistent about how to pass
earlycon info, we just put the raw address, but I don't strongly object
to __stringify(LPUART_BASE) as it is clearer, and handling the default
env part of board config.h has its own challenges more broadly.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

      reply	other threads:[~2022-04-25 12:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-24 21:43 [PATCH] ARM: imx: imx8q: Use LPUART_BASE macro in config files Marek Vasut
2022-04-25 12:56 ` Tom Rini [this message]

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=20220425125636.GC6921@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=festevam@denx.de \
    --cc=marex@denx.de \
    --cc=peng.fan@nxp.com \
    --cc=sbabic@denx.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.