diff mbox series

[2/2] board: verdin-imx8mp: add call to ft_common_board_setup

Message ID 20220829175953.249441-2-dev@pschenker.ch
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show
Series [1/2] board: verdin-imx8mm: add call to ft_common_board_setup | expand

Commit Message

Philippe Schenker Aug. 29, 2022, 5:59 p.m. UTC
From: Philippe Schenker <philippe.schenker@toradex.com>

With this call the following attributes get set to the device-tree
and are then accessible from linux in /proc/device-tree/

serial-number: The serial number that is stored in config-block
toradex,board-rev: The version of the module (e.g. V1.1A)
toradex,product-id: The SKU number of the module runnin

Fixes: commit 2bc2f817cea7 ("board: toradex: add verdin imx8m plus support")
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>

---

 board/toradex/verdin-imx8mp/verdin-imx8mp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Marcel Ziswiler Sept. 23, 2022, 2:09 p.m. UTC | #1
On Mon, 2022-08-29 at 19:59 +0200, Philippe Schenker wrote:
> From: Philippe Schenker <philippe.schenker@toradex.com>
> 
> With this call the following attributes get set to the device-tree
> and are then accessible from linux in /proc/device-tree/
> 
> serial-number: The serial number that is stored in config-block
> toradex,board-rev: The version of the module (e.g. V1.1A)
> toradex,product-id: The SKU number of the module runnin
> 
> Fixes: commit 2bc2f817cea7 ("board: toradex: add verdin imx8m plus support")
> Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>

Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>

> ---
> 
>  board/toradex/verdin-imx8mp/verdin-imx8mp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/board/toradex/verdin-imx8mp/verdin-imx8mp.c b/board/toradex/verdin-imx8mp/verdin-imx8mp.c
> index e3c1a1201daa..086de96cf2c7 100644
> --- a/board/toradex/verdin-imx8mp/verdin-imx8mp.c
> +++ b/board/toradex/verdin-imx8mp/verdin-imx8mp.c
> @@ -124,6 +124,6 @@ int board_late_init(void)
>  #if IS_ENABLED(CONFIG_OF_LIBFDT) && IS_ENABLED(CONFIG_OF_BOARD_SETUP)
>  int ft_board_setup(void *blob, struct bd_info *bd)
>  {
> -       return 0;
> +       return ft_common_board_setup(blob, bd);
>  }
>  #endif
Stefano Babic Oct. 21, 2022, 11:41 a.m. UTC | #2
> From: Philippe Schenker <philippe.schenker@toradex.com>
> With this call the following attributes get set to the device-tree
> and are then accessible from linux in /proc/device-tree/
> serial-number: The serial number that is stored in config-block
> toradex,board-rev: The version of the module (e.g. V1.1A)
> toradex,product-id: The SKU number of the module runnin
> Fixes: commit 2bc2f817cea7 ("board: toradex: add verdin imx8m plus support")
> Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/board/toradex/verdin-imx8mp/verdin-imx8mp.c b/board/toradex/verdin-imx8mp/verdin-imx8mp.c
index e3c1a1201daa..086de96cf2c7 100644
--- a/board/toradex/verdin-imx8mp/verdin-imx8mp.c
+++ b/board/toradex/verdin-imx8mp/verdin-imx8mp.c
@@ -124,6 +124,6 @@  int board_late_init(void)
 #if IS_ENABLED(CONFIG_OF_LIBFDT) && IS_ENABLED(CONFIG_OF_BOARD_SETUP)
 int ft_board_setup(void *blob, struct bd_info *bd)
 {
-	return 0;
+	return ft_common_board_setup(blob, bd);
 }
 #endif