ddr: fsl: Do not allow for interactive mode in SPL
Subsystems (11)
PATCH 1/3 ddr: fsl: Do not allow for interactive mode in SPL
While the code in question here is used in SPL, it cannot be used in interactive mode in SPL. We need a compile-time guard here in order to be able to not include further bits of code.
--- drivers/ddr/fsl/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ddr/fsl/main.c +1 -1
@@ -633,7 +633,7 @@ phys_size_t __fsl_ddr_sdram(fsl_ddr_info_t *pinfo) last_ctrl = first_ctrl + pinfo->num_ctrls -1 ;/* Compute it once normally. */ -#ifdef CONFIG_FSL_DDR_INTERACTIVE +#if defined(CONFIG_FSL_DDR_INTERACTIVE ) && !defined(CONFIG_SPL_BUILD )if (tstc () && (getc () =='d' )) {/* we got a key press of 'd' */ total_memory =fsl_ddr_interactive (pinfo,0 ); }else if (fsl_ddr_interactive_env_var_exists ()) {
Signature · 1 line
2.7.4
PATCH 2/3 build: Drop CONFIG_SPL_BUILD guards in some cases
Given gcc-6.1 and later we can now safely have strings discarded when the functions are unused. This lets us drop certain cases of not building something so that we don't have the strings brought in when the code was discarded. Simplify the code now by dropping guards we don't need now.
--- arch/arm/cpu/arm1136/mx31/Makefile | 5 +---- arch/arm/cpu/arm1136/mx35/Makefile | 5 +---- arch/arm/cpu/arm926ejs/mx25/Makefile | 6 +----- arch/arm/cpu/arm926ejs/mx27/Makefile | 6 +----- arch/sandbox/lib/Makefile | 2 -- board/atmel/common/Makefile | 2 -- board/samsung/arndale/Makefile | 3 --- board/samsung/espresso7420/Makefile | 2 -- board/spear/spear600/Makefile | 4 +--- 9 files changed, 5 insertions(+), 30 deletions(-)
arch/arm/cpu/arm1136/mx31/Makefile +1 -4
@@ -8,7 +8,4 @@ obj-y += generic.o obj-y += timer.o obj-y += devices.o - -ifndef CONFIG_SPL_BUILD -obj-y += relocate.o -endif +obj-y += relocate.o
arch/arm/cpu/arm1136/mx35/Makefile +1 -4
@@ -10,7 +10,4 @@ obj-y += generic.o obj-y += timer.o obj-y += mx35_sdram.o - -ifndef CONFIG_SPL_BUILD -obj-y += relocate.o -endif +obj-y += relocate.o
arch/arm/cpu/arm926ejs/mx25/Makefile +1 -5
@@ -4,8 +4,4 @@ # # SPDX-License-Identifier: GPL-2.0+ -obj-y = generic.o timer.o reset.o - -ifndef CONFIG_SPL_BUILD -obj-y += relocate.o -endif +obj-y += generic.o timer.o reset.o relocate.o
arch/arm/cpu/arm926ejs/mx27/Makefile +1 -5
@@ -4,8 +4,4 @@ # # SPDX-License-Identifier: GPL-2.0+ -obj-y = generic.o reset.o timer.o - -ifndef CONFIG_SPL_BUILD -obj-y += relocate.o -endif +obj-y += generic.o timer.o reset.o relocate.o
arch/sandbox/lib/Makefile +0 -2
@@ -8,8 +8,6 @@ # obj-y += interrupts.o -ifndef CONFIG_SPL_BUILD obj-$(CONFIG_PCI) += pci_io.o -endif obj-$(CONFIG_CMD_BOOTM) += bootm.o obj-$(CONFIG_CMD_BOOTZ) += bootm.o
board/atmel/common/Makefile +0 -2
@@ -6,7 +6,5 @@ # obj-y += board.o -ifndef CONFIG_SPL_BUILD obj-$(CONFIG_I2C_EEPROM) += mac_eeprom.o obj-$(CONFIG_DM_VIDEO) += video_display.o -endif
board/samsung/arndale/Makefile +0 -3
@@ -5,7 +5,4 @@ # obj-y += arndale_spl.o - -ifndef CONFIG_SPL_BUILD obj-y += arndale.o -endif
board/samsung/espresso7420/Makefile +0 -2
@@ -5,6 +5,4 @@ # SPDX-License-Identifier: GPL-2.0+ # -ifndef CONFIG_SPL_BUILD obj-y += espresso7420.o -endif
board/spear/spear600/Makefile +1 -3
@@ -5,6 +5,4 @@ # SPDX-License-Identifier: GPL-2.0+ # -ifndef CONFIG_SPL_BUILD -obj-y := spear600.o -endif +obj-y += spear600.o
Signature · 1 line
2.7.4
PATCH 2/3 build: Drop CONFIG_SPL_BUILD guards in some cases
Quoted 6 lines · Tom Rini
Given gcc-6.1 and later we can now safely have strings discarded when the functions are unused. This lets us drop certain cases of not building something so that we don't have the strings brought in when the code was discarded. Simplify the code now by dropping guards we don't need now.
Quoted 7 lines
Cc Stefano Babic <[email protected]>Cc Fabio Estevam <[email protected]>Cc Chander Kashyap <[email protected]>Cc Thomas Abraham <[email protected]>Cc Vipin Kumar <[email protected]>Cc Wenyou Yang <[email protected]>Signed-off-by Tom Rini <[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: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180110/2e3f0f7e/attachment.sig>
PATCH 3/3 SPL: Do not include cmd lists
In reply to Tom RiniThere are no CMDs to be run in SPL and no need for any of their lists.
--- arch/arm/cpu/arm1136/u-boot-spl.lds | 3 +++ arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds | 3 +++ arch/arm/cpu/arm926ejs/orion5x/u-boot-spl.lds | 3 +++ arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds | 3 +++ arch/arm/cpu/armv7/sunxi/u-boot-spl.lds | 3 +++ arch/arm/cpu/armv8/u-boot-spl.lds | 3 +++ arch/arm/cpu/u-boot-spl.lds | 3 +++ arch/arm/mach-at91/arm926ejs/u-boot-spl.lds | 3 +++ arch/arm/mach-at91/armv7/u-boot-spl.lds | 3 +++ arch/arm/mach-omap2/u-boot-spl.lds | 3 +++ arch/arm/mach-zynq/u-boot-spl.lds | 3 +++ arch/microblaze/cpu/u-boot-spl.lds | 3 +++ arch/mips/cpu/u-boot-spl.lds | 3 +++ arch/powerpc/cpu/mpc83xx/u-boot-spl.lds | 3 +++ arch/powerpc/cpu/mpc85xx/u-boot-spl.lds | 3 +++ arch/sandbox/cpu/u-boot-spl.lds | 2 ++ arch/x86/cpu/u-boot-spl.lds | 3 +-- 17 files changed, 48 insertions(+), 2 deletions(-)
arch/arm/cpu/arm1136/u-boot-spl.lds +3 -0
@@ -19,6 +19,9 @@ OUTPUT_ARCH(arm) ENTRY(_start) SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } + .text : { __start = .;
arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds +3 -0
@@ -16,6 +16,9 @@ OUTPUT_ARCH(arm) ENTRY(_start) SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } + . = CONFIG_SPL_TEXT_BASE; . = ALIGN(4);
arch/arm/cpu/arm926ejs/orion5x/u-boot-spl.lds +3 -0
@@ -27,6 +27,9 @@ OUTPUT_ARCH(arm) ENTRY(_start) SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } + .text : { __start = .;
arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds +3 -0
@@ -21,6 +21,9 @@ OUTPUT_ARCH(arm) ENTRY(_start) SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } + .text : { __start = .;
arch/arm/cpu/armv7/sunxi/u-boot-spl.lds +3 -0
@@ -24,6 +24,9 @@ OUTPUT_ARCH(arm) ENTRY(_start) SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } + .text : { __start = .;
arch/arm/cpu/armv8/u-boot-spl.lds +3 -0
@@ -22,6 +22,9 @@ OUTPUT_ARCH(aarch64) ENTRY(_start) SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } + .text : { . = ALIGN(8); *(.__image_copy_start)
arch/arm/cpu/u-boot-spl.lds +3 -0
@@ -12,6 +12,9 @@ OUTPUT_ARCH(arm) ENTRY(_start) SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } + . = 0x00000000; . = ALIGN(4);
arch/arm/mach-at91/arm926ejs/u-boot-spl.lds +3 -0
@@ -15,6 +15,9 @@ OUTPUT_ARCH(arm) ENTRY(_start) SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } + .text : { __start = .;
arch/arm/mach-at91/armv7/u-boot-spl.lds +3 -0
@@ -22,6 +22,9 @@ OUTPUT_ARCH(arm) ENTRY(_start) SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } + .text : { __start = .;
arch/arm/mach-omap2/u-boot-spl.lds +3 -0
@@ -19,6 +19,9 @@ OUTPUT_ARCH(arm) ENTRY(_start) SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } + .text : { __start = .;
arch/arm/mach-zynq/u-boot-spl.lds +3 -0
@@ -18,6 +18,9 @@ OUTPUT_ARCH(arm) ENTRY(_start) SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } + . = ALIGN(4); .text : {
arch/microblaze/cpu/u-boot-spl.lds +3 -0
@@ -13,6 +13,9 @@ ENTRY(_start) SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } + .text ALIGN(0x4): { __text_start = .;
arch/mips/cpu/u-boot-spl.lds +3 -0
@@ -11,6 +11,9 @@ OUTPUT_ARCH(mips) ENTRY(_start) SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } + . = 0x00000000; . = ALIGN(4);
arch/powerpc/cpu/mpc83xx/u-boot-spl.lds +3 -0
@@ -10,6 +10,9 @@ OUTPUT_ARCH(powerpc) SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } + . = 0xfff00000; .text : { *(.text*)
arch/powerpc/cpu/mpc85xx/u-boot-spl.lds +3 -0
@@ -19,6 +19,9 @@ PHDRS #endif SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } + . = CONFIG_SPL_TEXT_BASE; .text : { *(.text*)
arch/sandbox/cpu/u-boot-spl.lds +2 -0
@@ -8,6 +8,8 @@ SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } . = ALIGN(4); .u_boot_list : {
arch/x86/cpu/u-boot-spl.lds +1 -2
@@ -12,9 +12,8 @@ ENTRY(_start) SECTIONS { -#ifndef CONFIG_CMDLINE + /* There are no CMDs in SPL */ /DISCARD/ : { *(.u_boot_list_2_cmd_*) } -#endif . = CONFIG_SPL_TEXT_BASE; /* Location of bootcode in flash */ __text_start = .;
Signature · 1 line
2.7.4
PATCH 3/3 SPL: Do not include cmd lists
Hi Tom,
Quoted 37 lines · Tom Rini
There are no CMDs to be run in SPL and no need for any of their lists.
CC Stefano Babic <[email protected]>Cc Fabio Estevam <[email protected]>Cc Jagan Teki <[email protected]>Cc Maxime Ripard <[email protected]>Cc "Andreas Bießmann" <[email protected]>Cc Michal Simek <[email protected]>Cc Daniel Schwierzeck <[email protected]>Cc Mario Six <[email protected]>Cc Wolfgang Denk <[email protected]>Cc York Sun <[email protected]>Cc Simon Glass <[email protected]>Cc Bin Meng <[email protected]>Cc Wenyou Yang <[email protected]>Cc Lokesh Vutla <[email protected]>Signed-off-by Tom Rini <[email protected]>--- arch/arm/cpu/arm1136/u-boot-spl.lds | 3 +++ arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds | 3 +++ arch/arm/cpu/arm926ejs/orion5x/u-boot-spl.lds | 3 +++ arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds | 3 +++ arch/arm/cpu/armv7/sunxi/u-boot-spl.lds | 3 +++ arch/arm/cpu/armv8/u-boot-spl.lds | 3 +++ arch/arm/cpu/u-boot-spl.lds | 3 +++ arch/arm/mach-at91/arm926ejs/u-boot-spl.lds | 3 +++ arch/arm/mach-at91/armv7/u-boot-spl.lds | 3 +++ arch/arm/mach-omap2/u-boot-spl.lds | 3 +++ arch/arm/mach-zynq/u-boot-spl.lds | 3 +++ arch/microblaze/cpu/u-boot-spl.lds | 3 +++ arch/mips/cpu/u-boot-spl.lds | 3 +++ arch/powerpc/cpu/mpc83xx/u-boot-spl.lds | 3 +++ arch/powerpc/cpu/mpc85xx/u-boot-spl.lds | 3 +++ arch/sandbox/cpu/u-boot-spl.lds | 2 ++ arch/x86/cpu/u-boot-spl.lds | 3 +-- 17 files changed, 48 insertions(+), 2 deletions(-)
...
Quoted 5 lines
arch/mips/cpu/u-boot-spl.lds +0
-0
arch/mips/cpu/u-boot-spl.lds OUTPUT_ARCH(mips) · line 19
Quoted 9 lines
arch/mips/cpu/u-boot-spl.lds +3
-0@@ -11,6 +11,9 @@ OUTPUT_ARCH(mips) ENTRY(_start) SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } + . = 0x00000000; . = ALIGN(4);
does a DISCARD() work together with the KEEP() in this block?
#ifdef CONFIG_SPL_DM
. = ALIGN(4);
.u_boot_list : {
KEEP(*(SORT(.u_boot_list*)));
} > .spl_mem#endif
I suggest to do something like this:
KEEP(*(SORT(.u_boot_list_2_uclass*))); KEEP(*(SORT(.u_boot_list_2_driver*)));
Then all u_boot_list_* would be discarded by default except the two lists above when a board selects CONFIG_SPL_DM. Also this would have the benefit of discarding all u_boot_list_2_env* entries.
Signature · 9 lines
- Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171222/5dfff4d2/attachment.sig>
PATCH 3/3 SPL: Do not include cmd lists
Quoted 4 lines · Daniel Schwierzeck
Hi Tom,
Quoted 1 line · Tom Rini
There are no CMDs to be run in SPL and no need for any of their lists.
[snip]
Quoted 17 lines
Quoted 5 lines
arch/mips/cpu/u-boot-spl.lds +0
-0arch/mips/cpu/u-boot-spl.lds OUTPUT_ARCH(mips) · line 19
Quoted 9 lines
arch/mips/cpu/u-boot-spl.lds +3
-0@@ -11,6 +11,9 @@ OUTPUT_ARCH(mips) ENTRY(_start) SECTIONS { + /* There are no CMDs in SPL */ + /DISCARD/ : { *(.u_boot_list_2_cmd_*) } + . = 0x00000000; . = ALIGN(4);does a
DISCARD()work together with theKEEP()in this block?
Quoted 6 lines
#ifdef CONFIG_SPL_DM . = ALIGN(4); .u_boot_list : { KEEP(*(SORT(.u_boot_list*))); } > .spl_mem#endif
Yes, we discard th cmd list, and then keep the rest, given the ordering.
Quoted 8 lines
I suggest to do something like this:
KEEP(*(SORT(.u_boot_list_2_uclass*))); KEEP(*(SORT(.u_boot_list_2_driver*)));Then all u_boot_list_* would be discarded by default except the two lists above when a board selects
CONFIG_SPL_DM. Also this would have the benefit of discarding all u_boot_list_2_env* entries.
Ah, but this shows why we glob in all lists today. We do need env in SPL at times. Now, it shouldn't take up space in SPL if we don't ahve SPL_ENV_SUPPORT. But I haven't checked either...
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171222/e33a8740/attachment.sig>
PATCH 3/3 SPL: Do not include cmd lists
In reply to Tom RiniQuoted 28 lines · Tom Rini
There are no CMDs to be run in SPL and no need for any of their lists.
CC Stefano Babic <[email protected]>Cc Fabio Estevam <[email protected]>Cc Jagan Teki <[email protected]>Cc Maxime Ripard <[email protected]>Cc "Andreas Bießmann" <[email protected]>Cc Michal Simek <[email protected]>Cc Daniel Schwierzeck <[email protected]>Cc Mario Six <[email protected]>Cc Wolfgang Denk <[email protected]>Cc York Sun <[email protected]>Cc Simon Glass <[email protected]>Cc Bin Meng <[email protected]>Cc Wenyou Yang <[email protected]>Cc Lokesh Vutla <[email protected]>Signed-off-by Tom Rini <[email protected]>--- arch/arm/cpu/arm1136/u-boot-spl.lds | 3 +++ arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds | 3 +++ arch/arm/cpu/arm926ejs/orion5x/u-boot-spl.lds | 3 +++ arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds | 3 +++ arch/arm/cpu/armv7/sunxi/u-boot-spl.lds | 3 +++ arch/arm/cpu/armv8/u-boot-spl.lds | 3 +++ arch/arm/cpu/u-boot-spl.lds | 3 +++ arch/arm/mach-at91/arm926ejs/u-boot-spl.lds | 3 +++ arch/arm/mach-at91/armv7/u-boot-spl.lds | 3 +++ arch/arm/mach-omap2/u-boot-spl.lds | 3 +++
Quoted 9 lines
arch/arm/mach-zynq/u-boot-spl.lds | 3 +++ arch/microblaze/cpu/u-boot-spl.lds | 3 +++ arch/mips/cpu/u-boot-spl.lds | 3 +++ arch/powerpc/cpu/mpc83xx/u-boot-spl.lds | 3 +++ arch/powerpc/cpu/mpc85xx/u-boot-spl.lds | 3 +++ arch/sandbox/cpu/u-boot-spl.lds | 2 ++ arch/x86/cpu/u-boot-spl.lds | 3 +-- 17 files changed, 48 insertions(+), 2 deletions(-)
for MIPS
Signature · 9 lines
- Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171222/b43addc7/attachment.sig>
PATCH 3/3 SPL: Do not include cmd lists
In reply to Tom RiniQuoted 17 lines · Tom Rini
There are no CMDs to be run in SPL and no need for any of their lists.
CC Stefano Babic <[email protected]>Cc Fabio Estevam <[email protected]>Cc Jagan Teki <[email protected]>Cc Maxime Ripard <[email protected]>Cc "Andreas Bießmann" <[email protected]>Cc Michal Simek <[email protected]>Cc Daniel Schwierzeck <[email protected]>Cc Mario Six <[email protected]>Cc Wolfgang Denk <[email protected]>Cc York Sun <[email protected]>Cc Simon Glass <[email protected]>Cc Bin Meng <[email protected]>Cc Wenyou Yang <[email protected]>Cc Lokesh Vutla <[email protected]>Signed-off-by Tom Rini <[email protected]>
So, discarding doesn't cause everything that could be garbage collected to be garbage collected in this case (and I don't think that's really a bug). So I'm withdrawing this patch as well, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171222/bb6175da/attachment.sig>
PATCH 1/3 ddr: fsl: Do not allow for interactive mode in SPL
In reply to Tom RiniWhy not? I used it before.
York
Sent from my iPhone
Quoted 28 lines · Tom Rini
While the code in question here is used in SPL, it cannot be used in interactive mode in SPL. We need a compile-time guard here in order to be able to not include further bits of code.
Cc York Sun <[email protected]>Signed-off-by Tom Rini <[email protected]>---
drivers/ddr/fsl/main.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/ddr/fsl/main.c +1
-1@@ -633,7 +633,7 @@ phys_size_t __fsl_ddr_sdram(fsl_ddr_info_t *pinfo) last_ctrl = first_ctrl + pinfo->num_ctrls -1 ;/* Compute it once normally. */ -#ifdef CONFIG_FSL_DDR_INTERACTIVE +#if defined(CONFIG_FSL_DDR_INTERACTIVE ) && !defined(CONFIG_SPL_BUILD )if (tstc () && (getc () =='d' )) {/* we got a key press of 'd' */ total_memory =fsl_ddr_interactive (pinfo,0 ); }else if (fsl_ddr_interactive_env_var_exists ()) {Signature · 1 line
2.7.4
PATCH 1/3 ddr: fsl: Do not allow for interactive mode in SPL
Quoted 1 line · York Sun
Why not? I used it before.
In SPL, rather than full U-Boot?
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171222/0065a5de/attachment.sig>
PATCH 1/3 ddr: fsl: Do not allow for interactive mode in SPL
If SPL is used, the full driver is in SPL. It initializes DDR. It only makes sense to have this feature there, not after relocation. We only disable this feature is the SPL size becomes a problem.
York
Sent from my iPhone
Quoted 10 lines · Tom Rini
Quoted 4 lines · York Sun
Why not? I used it before.
In SPL, rather than full U-Boot?
Signature · 1 line
Tom
PATCH 1/3 ddr: fsl: Do not allow for interactive mode in SPL
Quoted 3 lines · York Sun
If SPL is used, the full driver is in SPL. It initializes DDR. It only makes sense to have this feature there, not after relocation. We only disable this feature is the SPL size becomes a problem.
OK, but I don't understand how you can get into that specific hunk of code. Is someone sending 'd' to the UART and that causes this code to run? Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171222/cabc9323/attachment.sig>
PATCH 1/3 ddr: fsl: Do not allow for interactive mode in SPL
Either sending 'd' through UART, or save a variable ddr_interactive.
York
Sent from my iPhone
Quoted 14 lines · Tom Rini
Quoted 6 lines · York Sun
If SPL is used, the full driver is in SPL. It initializes DDR. It only makes sense to have this feature there, not after relocation. We only disable this feature is the SPL size becomes a problem.
OK, but I don't understand how you can get into that specific hunk of code. Is someone sending 'd' to the UART and that causes this code to run? Thanks!
Signature · 1 line
Tom
PATCH 1/3 ddr: fsl: Do not allow for interactive mode in SPL
Quoted 1 line · York Sun
Either sending 'd' through UART, or save a variable
ddr_interactive.
OK, thanks, withdrawn!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171222/ee6b0f79/attachment.sig>