All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] cmd: move CONFIG_SYS_MEMTEST_START/END to cmd/Kconfig
@ 2023-01-27  0:42 Heinrich Schuchardt
  2023-01-27  6:00 ` Heiko Schocher
  0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2023-01-27  0:42 UTC (permalink / raw)
  To: Holger Brunck, Heiko Schocher; +Cc: u-boot, Heinrich Schuchardt

These symbols are not specific to Keymile boards.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 board/keymile/km83xx/Kconfig | 6 ------
 cmd/Kconfig                  | 8 ++++++++
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/board/keymile/km83xx/Kconfig b/board/keymile/km83xx/Kconfig
index f87a2e6416..014dde37cf 100644
--- a/board/keymile/km83xx/Kconfig
+++ b/board/keymile/km83xx/Kconfig
@@ -14,12 +14,6 @@ config KM_ENABLE_FULL_DM_DTS_SUPPORT
 	select PHYLIB
 endmenu
 
-config SYS_MEMTEST_START
-	default 0x00100000
-
-config SYS_MEMTEST_END
-	default 0x00f00000
-
 if TARGET_KMETER1
 
 config SYS_BOARD
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 4fe2c75de2..bffb19924d 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -837,6 +837,14 @@ config CMD_MEMTEST
 
 if CMD_MEMTEST
 
+config SYS_MEMTEST_START
+	default 0x00100000 if SYS_BOARD="km83xx"
+	default TEXT_BASE
+
+config SYS_MEMTEST_END
+	default 0x00f00000 if SYS_BOARD="km83xx"
+	default TEXT_BASE
+
 config SYS_ALT_MEMTEST
 	bool "Alternative test"
 	help
-- 
2.38.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] cmd: move CONFIG_SYS_MEMTEST_START/END to cmd/Kconfig
  2023-01-27  0:42 [PATCH 1/1] cmd: move CONFIG_SYS_MEMTEST_START/END to cmd/Kconfig Heinrich Schuchardt
@ 2023-01-27  6:00 ` Heiko Schocher
  0 siblings, 0 replies; 2+ messages in thread
From: Heiko Schocher @ 2023-01-27  6:00 UTC (permalink / raw)
  To: Heinrich Schuchardt, Holger Brunck; +Cc: u-boot

Hello Heinrich,

On 27.01.23 01:42, Heinrich Schuchardt wrote:
> These symbols are not specific to Keymile boards.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> ---
>  board/keymile/km83xx/Kconfig | 6 ------
>  cmd/Kconfig                  | 8 ++++++++
>  2 files changed, 8 insertions(+), 6 deletions(-)
> 
> diff --git a/board/keymile/km83xx/Kconfig b/board/keymile/km83xx/Kconfig
> index f87a2e6416..014dde37cf 100644
> --- a/board/keymile/km83xx/Kconfig
> +++ b/board/keymile/km83xx/Kconfig
> @@ -14,12 +14,6 @@ config KM_ENABLE_FULL_DM_DTS_SUPPORT
>  	select PHYLIB
>  endmenu
>  
> -config SYS_MEMTEST_START
> -	default 0x00100000
> -
> -config SYS_MEMTEST_END
> -	default 0x00f00000
> -
>  if TARGET_KMETER1
>  
>  config SYS_BOARD
> diff --git a/cmd/Kconfig b/cmd/Kconfig
> index 4fe2c75de2..bffb19924d 100644
> --- a/cmd/Kconfig
> +++ b/cmd/Kconfig
> @@ -837,6 +837,14 @@ config CMD_MEMTEST
>  
>  if CMD_MEMTEST
>  
> +config SYS_MEMTEST_START
> +	default 0x00100000 if SYS_BOARD="km83xx"
> +	default TEXT_BASE
> +
> +config SYS_MEMTEST_END
> +	default 0x00f00000 if SYS_BOARD="km83xx"
> +	default TEXT_BASE
> +
>  config SYS_ALT_MEMTEST
>  	bool "Alternative test"
>  	help

Hmm... for me with current HEAD:
*   b6904cc98a - (HEAD -> master, origin/master, origin/HEAD) Merge
https://source.denx.de/u-boot/custodians/u-boot-spi

This symbols are already in cmd/Kconfig file:

 857 config SYS_MEMTEST_START
 858         hex "default start address for mtest"
 859         default 0x0
 860         help
 861           This is the default start address for mtest for simple read/write
 862           test. If no arguments are given to mtest, default address is used
 863           as start address.
 864
 865 config SYS_MEMTEST_END
 866         hex "default end address for mtest"
 867         default 0x1000
 868         help
 869           This is the default end address for mtest for simple read/write
 870           test. If no arguments are given to mtest, default address is used
 871           as end address.

Please review, if with your patch they are not twice in cmd(Kconfig file,
thanks!

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs@denx.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-27  6:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-27  0:42 [PATCH 1/1] cmd: move CONFIG_SYS_MEMTEST_START/END to cmd/Kconfig Heinrich Schuchardt
2023-01-27  6:00 ` Heiko Schocher

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.