[U-Boot] [PATCH v2 1/4] Kconfig: Make CMD_SPL_NAND_OFS only available when proper memory is used

This commit makes the CMD_SPL_NAND_OFS only visible when we use NAND memory. Before this change it was present when only CMD_SPL was enabled (and would stay when board with other falcon boot medium is used).
Signed-off-by: Lukasz Majewski lukma@denx.de ---
Changes in v2: None
cmd/Kconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/cmd/Kconfig b/cmd/Kconfig index 0d36da2a5c..7bc275f135 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -327,6 +327,7 @@ config CMD_SPL config CMD_SPL_NAND_OFS hex "Offset of OS command line args for Falcon-mode NAND boot" depends on CMD_SPL + depends on CMD_SPL && (TPL_NAND_SUPPORT || SPL_NAND_SUPPORT) default 0 help This provides the offset of the command line arguments for Linux

The CMD_SPL_NAND_OFS description was a bit misleading, has been updated.
Signed-off-by: Lukasz Majewski lukma@denx.de ---
Changes in v2: None
cmd/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/cmd/Kconfig b/cmd/Kconfig index 7bc275f135..4dec190a38 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -325,8 +325,7 @@ config CMD_SPL command.
config CMD_SPL_NAND_OFS - hex "Offset of OS command line args for Falcon-mode NAND boot" - depends on CMD_SPL + hex "Offset of OS args or dtb for Falcon-mode NAND boot" depends on CMD_SPL && (TPL_NAND_SUPPORT || SPL_NAND_SUPPORT) default 0 help

The CMD_SPL_NAND_OFS description was a bit misleading, has been updated. Signed-off-by: Lukasz Majewski lukma@denx.de
Applied to u-boot-imx, master, thanks !
Best regards, Stefano Babic

This option will provide the offset in the parallel NOR flash memory to, which the falcon boot data is stored.
Signed-off-by: Lukasz Majewski lukma@denx.de ---
Changes in v2: None
cmd/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/cmd/Kconfig b/cmd/Kconfig index 4dec190a38..b4b10cce00 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -334,6 +334,14 @@ config CMD_SPL_NAND_OFS for full information about how to use this option (and also see board/gateworks/gw_ventana/README for an example).
+config CMD_SPL_NOR_OFS + hex "Offset of OS args or dtb for Falcon-mode NOR boot" + depends on CMD_SPL && SPL_NOR_SUPPORT + default 0 + help + This provides the offset of the command line arguments or dtb for + Linux when booting from NOR in Falcon mode. + config CMD_SPL_WRITE_SIZE hex "Size of argument area" depends on CMD_SPL

This option will provide the offset in the parallel NOR flash memory to, which the falcon boot data is stored. Signed-off-by: Lukasz Majewski lukma@denx.de
Applied to u-boot-imx, master, thanks !
Best regards, Stefano Babic

This commit updates the doc/README.falcon regarding Falcon boot on NOR flash memories.
This code is used by MCCMON6 board - so for more details please refer to configs/mccmon6_nor_defconfig.
Signed-off-by: Lukasz Majewski lukma@denx.de
---
Changes in v2: - Fix the description - Update the comit message
doc/README.falcon | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/doc/README.falcon b/doc/README.falcon index 9a7f0bc235..713d7063a1 100644 --- a/doc/README.falcon +++ b/doc/README.falcon @@ -67,6 +67,8 @@ CONFIG_SYS_NAND_SPL_KERNEL_OFFS Offset in NAND where the kernel is stored
CONFIG_CMD_SPL_NAND_OFS Offset in NAND where the parameters area was saved.
+CONFIG_CMD_SPL_NOR_OFS Offset in NOR where the parameters area was saved. + CONFIG_CMD_SPL_WRITE_SIZE Size of the parameters area to be copied
CONFIG_SPL_OS_BOOT Activate Falcon Mode.

This commit updates the doc/README.falcon regarding Falcon boot on NOR flash memories. This code is used by MCCMON6 board - so for more details please refer to configs/mccmon6_nor_defconfig. Signed-off-by: Lukasz Majewski lukma@denx.de
Applied to u-boot-imx, master, thanks !
Best regards, Stefano Babic

This commit makes the CMD_SPL_NAND_OFS only visible when we use NAND memory. Before this change it was present when only CMD_SPL was enabled (and would stay when board with other falcon boot medium is used). Signed-off-by: Lukasz Majewski lukma@denx.de
Applied to u-boot-imx, master, thanks !
Best regards, Stefano Babic
participants (2)
-
Lukasz Majewski
-
sbabic@denx.de