Update dependencies for CONFIG_BOOT_SDRAM_DATA. This should not be available if the system boots from SDRAM (via a bootloader)

This commit is contained in:
Gregory Nutt
2014-01-29 09:08:58 -06:00
parent e5bb99bfb9
commit ca807a4ed3
+11 -5
View File
@@ -441,11 +441,17 @@ config ARCH_HAVE_SDRAM
config BOOT_SDRAM_DATA config BOOT_SDRAM_DATA
bool "Data in SDRAM" bool "Data in SDRAM"
default n default n
depends on ARCH_HAVE_SDRAM depends on ARCH_HAVE_SDRAM && !BOOT_RUNFROMSDRAM
---help--- ---help---
This selection should be set if data lies in SDRAM (vs. SRAM). In This selection should be set if data lies in SDRAM (vs. SRAM) and if
that case, the initialization sequence is a little different: SDRAM SDRAM was not previously initialized by a loader. Obviously, this
must be configured before before the .data and .bss sections can be does not apply if we booting from SDRAM because SDRAM must have been
initialized. initialized priority to loading NuttX into SDRAM.
In the case where SDRAM must be initialized by NuttX, the
initialization sequence is a little different: Normally, .data and
.bss must be initialized before starting the system. But in this
case SDRAM must be configured by board-specific logic before the
.data and .bss sections can be initialized.
endmenu # Boot Memory Configuration endmenu # Boot Memory Configuration