Convert CONFIG_SPL_RAM_DEVICE to defconfig
Subsystems (2)
PATCH v3 1/2 Convert CONFIG_SPL_RAM_DEVICE to defconfig
From: Stefan Agner <[email protected]>
This converts the following to Kconfig:
CONFIG_SPL_RAM_DEVICE
---
Changes in v3: None
Changes in v2: None
common/spl/Kconfig | 9 +++++++++ include/configs/microblaze-generic.h | 1 - include/configs/socfpga_common.h | 1 - include/configs/tegra-common.h | 1 - include/configs/xilinx_zynqmp.h | 1 - include/configs/zynq-common.h | 1 - 6 files changed, 9 insertions(+), 5 deletions(-)
common/spl/Kconfig +9 -0
@@ -449,6 +449,15 @@ config SPL_POWER_SUPPORT in drivers/power, drivers/power/pmic and drivers/power/regulator as part of an SPL build. +config SPL_RAM_DEVICE + bool "Support booting from preloaded image in RAM" + depends on SPL + default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ + help + Enable booting of an image already loaded in RAM. The image has to + be already in memory when SPL takes over, e.g. loaded by the boot + ROM. + config SPL_SATA_SUPPORT bool "Support loading from SATA" depends on SPL
include/configs/microblaze-generic.h +0 -1
@@ -284,7 +284,6 @@#define CONFIG_SPL_LDSCRIPT "arch/microblaze/cpu/u-boot-spl.lds" -#define CONFIG_SPL_RAM_DEVICE #ifdef CONFIG_SYS_FLASH_BASE # define CONFIG_SYS_UBOOT_BASE CONFIG_SYS_FLASH_BASE#endif
include/configs/socfpga_common.h +0 -1
@@ -309,7 +309,6 @@ unsigned int cm_get_qspi_controller_clk_hz(void);* 0xFFFF_FF00 ...... End of SRAM */ #define CONFIG_SPL_FRAMEWORK -#define CONFIG_SPL_RAM_DEVICE #define CONFIG_SPL_TEXT_BASE CONFIG_SYS_INIT_RAM_ADDR#define CONFIG_SPL_MAX_SIZE (64 * 1024)
include/configs/tegra-common.h +0 -1
@@ -98,7 +98,6 @@/* Defines for SPL */ #define CONFIG_SPL_FRAMEWORK -#define CONFIG_SPL_RAM_DEVICE #define CONFIG_SPL_BOARD_INIT #define CONFIG_SPL_NAND_SIMPLE #define CONFIG_SPL_MAX_FOOTPRINT (CONFIG_SYS_TEXT_BASE - \
include/configs/xilinx_zynqmp.h +0 -1
@@ -260,7 +260,6 @@#define CONFIG_SPL_FRAMEWORK #define CONFIG_SPL_BOARD_INIT -#define CONFIG_SPL_RAM_DEVICE /* u-boot is like dtb */ #define CONFIG_SPL_FS_LOAD_ARGS_NAME "u-boot.bin"
include/configs/zynq-common.h +0 -1
@@ -296,7 +296,6 @@#define CONFIG_CMD_SPL #define CONFIG_SPL_FRAMEWORK #define CONFIG_SPL_BOARD_INIT -#define CONFIG_SPL_RAM_DEVICE #define CONFIG_SPL_LDSCRIPT "arch/arm/mach-zynq/u-boot-spl.lds"
Signature · 1 line
2.11.0
PATCH v3 1/2 Convert CONFIG_SPL_RAM_DEVICE to defconfig
Hi Tom,
I think this did not get applied yet?
--
Stefan
Quoted 99 lines · Stefan Agner
From: Stefan Agner <[email protected]>
This converts the following to
Kconfig:
CONFIG_SPL_RAM_DEVICESigned-off-by Stefan Agner <[email protected]>---
Changes in v3: None
Changes in v2: Nonecommon/spl/Kconfig | 9 +++++++++ include/configs/microblaze-generic.h | 1 - include/configs/socfpga_common.h | 1 - include/configs/tegra-common.h | 1 - include/configs/xilinx_zynqmp.h | 1 - include/configs/zynq-common.h | 1 - 6 files changed, 9 insertions(+), 5 deletions(-)common/spl/Kconfig +9
-0@@ -449,6 +449,15 @@ config SPL_POWER_SUPPORT in drivers/power, drivers/power/pmic and drivers/power/regulator as part of an SPL build. +config SPL_RAM_DEVICE + bool "Support booting from preloaded image in RAM" + depends on SPL + default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ + help + Enable booting of an image already loaded in RAM. The image has to + be already in memory when SPL takes over, e.g. loaded by the boot + ROM. + config SPL_SATA_SUPPORT bool "Support loading from SATA" depends on SPLinclude/configs/microblaze-generic.h +0
-1@@ -284,7 +284,6 @@#define CONFIG_SPL_LDSCRIPT "arch/microblaze/cpu/u-boot-spl.lds" -#define CONFIG_SPL_RAM_DEVICE #ifdef CONFIG_SYS_FLASH_BASE # define CONFIG_SYS_UBOOT_BASE CONFIG_SYS_FLASH_BASE#endif include/configs/socfpga_common.h +0
-1@@ -309,7 +309,6 @@ unsigned int cm_get_qspi_controller_clk_hz(void);* 0xFFFF_FF00 ...... End of SRAM */ #define CONFIG_SPL_FRAMEWORK -#define CONFIG_SPL_RAM_DEVICE #define CONFIG_SPL_TEXT_BASE CONFIG_SYS_INIT_RAM_ADDR#define CONFIG_SPL_MAX_SIZE (64 * 1024)include/configs/tegra-common.h +0
-1@@ -98,7 +98,6 @@/* Defines for SPL */ #define CONFIG_SPL_FRAMEWORK -#define CONFIG_SPL_RAM_DEVICE #define CONFIG_SPL_BOARD_INIT #define CONFIG_SPL_NAND_SIMPLE #define CONFIG_SPL_MAX_FOOTPRINT (CONFIG_SYS_TEXT_BASE - \include/configs/xilinx_zynqmp.h +0
-1@@ -260,7 +260,6 @@#define CONFIG_SPL_FRAMEWORK #define CONFIG_SPL_BOARD_INIT -#define CONFIG_SPL_RAM_DEVICE /* u-boot is like dtb */ #define CONFIG_SPL_FS_LOAD_ARGS_NAME "u-boot.bin"include/configs/zynq-common.h +0
-1@@ -296,7 +296,6 @@#define CONFIG_CMD_SPL #define CONFIG_SPL_FRAMEWORK #define CONFIG_SPL_BOARD_INIT -#define CONFIG_SPL_RAM_DEVICE #define CONFIG_SPL_LDSCRIPT "arch/arm/mach-zynq/u-boot-spl.lds"
PATCH v3 1/2 Convert CONFIG_SPL_RAM_DEVICE to defconfig
Quoted 3 lines · Stefan Agner
Hi Tom,
I think this did not get applied yet?
Thanks for the reminder, testing this now.
Quoted 104 lines
--
StefanQuoted 99 lines · Stefan Agner
From: Stefan Agner <[email protected]>
This converts the following to
Kconfig:
CONFIG_SPL_RAM_DEVICESigned-off-by Stefan Agner <[email protected]>---
Changes in v3: None
Changes in v2: Nonecommon/spl/Kconfig | 9 +++++++++ include/configs/microblaze-generic.h | 1 - include/configs/socfpga_common.h | 1 - include/configs/tegra-common.h | 1 - include/configs/xilinx_zynqmp.h | 1 - include/configs/zynq-common.h | 1 - 6 files changed, 9 insertions(+), 5 deletions(-)common/spl/Kconfig +9
-0@@ -449,6 +449,15 @@ config SPL_POWER_SUPPORT in drivers/power, drivers/power/pmic and drivers/power/regulator as part of an SPL build. +config SPL_RAM_DEVICE + bool "Support booting from preloaded image in RAM" + depends on SPL + default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ + help + Enable booting of an image already loaded in RAM. The image has to + be already in memory when SPL takes over, e.g. loaded by the boot + ROM. + config SPL_SATA_SUPPORT bool "Support loading from SATA" depends on SPLinclude/configs/microblaze-generic.h +0
-1@@ -284,7 +284,6 @@#define CONFIG_SPL_LDSCRIPT "arch/microblaze/cpu/u-boot-spl.lds" -#define CONFIG_SPL_RAM_DEVICE #ifdef CONFIG_SYS_FLASH_BASE # define CONFIG_SYS_UBOOT_BASE CONFIG_SYS_FLASH_BASE#endif include/configs/socfpga_common.h +0
-1@@ -309,7 +309,6 @@ unsigned int cm_get_qspi_controller_clk_hz(void);* 0xFFFF_FF00 ...... End of SRAM */ #define CONFIG_SPL_FRAMEWORK -#define CONFIG_SPL_RAM_DEVICE #define CONFIG_SPL_TEXT_BASE CONFIG_SYS_INIT_RAM_ADDR#define CONFIG_SPL_MAX_SIZE (64 * 1024)include/configs/tegra-common.h +0
-1@@ -98,7 +98,6 @@/* Defines for SPL */ #define CONFIG_SPL_FRAMEWORK -#define CONFIG_SPL_RAM_DEVICE #define CONFIG_SPL_BOARD_INIT #define CONFIG_SPL_NAND_SIMPLE #define CONFIG_SPL_MAX_FOOTPRINT (CONFIG_SYS_TEXT_BASE - \include/configs/xilinx_zynqmp.h +0
-1@@ -260,7 +260,6 @@#define CONFIG_SPL_FRAMEWORK #define CONFIG_SPL_BOARD_INIT -#define CONFIG_SPL_RAM_DEVICE /* u-boot is like dtb */ #define CONFIG_SPL_FS_LOAD_ARGS_NAME "u-boot.bin"include/configs/zynq-common.h +0
-1@@ -296,7 +296,6 @@#define CONFIG_CMD_SPL #define CONFIG_SPL_FRAMEWORK #define CONFIG_SPL_BOARD_INIT -#define CONFIG_SPL_RAM_DEVICE #define CONFIG_SPL_LDSCRIPT "arch/arm/mach-zynq/u-boot-spl.lds"
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170114/92f41e2f/attachment.sig>
PATCH v3 2/2 spl: move RAM boot support in separate file
In reply to Stefan AgnerFrom: Stefan Agner <[email protected]>
Add a new top-level config option so support booting an image stored in RAM. This allows to move the RAM boot support into a sparate file and having a single condition to compile that file.
---
The series has been build tested using buildman.
$ ./tools/buildman/buildman ... Building current source for 1245 boards (8 threads, 1 job per thread) 1034 0 211 /1245 0:00:03 : P1022DS_NAND
--
Stefan
Changes in v3:
- Use default y in ...
Changes in v2:
- Added missing new file spl_ram.c
- Add new config also to defconfig file
common/spl/Kconfig | 12 +++++++-- common/spl/Makefile | 1 + common/spl/spl.c | 58 ----------------------------------------- common/spl/spl_ram.c | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 84 insertions(+), 60 deletions(-) create mode 100644 common/spl/spl_ram.c
common/spl/Kconfig +10 -2
@@ -449,9 +449,17 @@ config SPL_POWER_SUPPORT in drivers/power, drivers/power/pmic and drivers/power/regulator as part of an SPL build. +config SPL_RAM_SUPPORT + bool "Support booting from RAM" + depends on SPL + default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ + help + Enable booting of an image in RAM. The image can be preloaded or + it can be loaded by SPL directly into RAM (e.g. using USB). + config SPL_RAM_DEVICE bool "Support booting from preloaded image in RAM" - depends on SPL + depends on SPL_RAM_SUPPORT default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ help Enable booting of an image already loaded in RAM. The image has to
@@ -558,7 +566,7 @@ choice config SPL_DFU_RAM bool "RAM device" - depends on SPL_DFU_SUPPORT + depends on SPL_DFU_SUPPORT && SPL_RAM_SUPPORT help select RAM/DDR memory device for loading binary images (u-boot/kernel) to the selected device partition using
common/spl/Makefile +1 -0
@@ -26,4 +26,5 @@ obj-$(CONFIG_SPL_EXT_SUPPORT) += spl_ext.o obj-$(CONFIG_SPL_SATA_SUPPORT) += spl_sata.o obj-$(CONFIG_SPL_DFU_SUPPORT) += spl_dfu.o obj-$(CONFIG_SPL_SPI_LOAD) += spl_spi.o +obj-$(CONFIG_SPL_RAM_SUPPORT) += spl_ram.o endif
common/spl/spl.c +0 -58
64 lines not on this page · raw message
common/spl/spl_ram.c new file +73 -0
73 lines not on this page · raw message
Signature · 1 line
2.11.0
PATCH v3 2/2 spl: move RAM boot support in separate file
Quoted 7 lines · Stefan Agner
From: Stefan Agner <[email protected]>
Add a new top-level config option so support booting an image stored in RAM. This allows to move the RAM boot support into a sparate file and having a single condition to compile that file.
Signed-off-by Stefan Agner <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170115/d88aba78/attachment.sig>
PATCH v3 1/2 Convert CONFIG_SPL_RAM_DEVICE to defconfig
In reply to Stefan AgnerQuoted 6 lines · Stefan Agner
From: Stefan Agner <[email protected]>
This converts the following to
Kconfig:
CONFIG_SPL_RAM_DEVICESigned-off-by Stefan Agner <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170115/6c66f1a0/attachment.sig>