diff mbox

[U-Boot,RFC,v1] README: Describe CONFIG_SYS_NO_FLASH

Message ID 1433930781-5358-1-git-send-email-judge.packham@gmail.com
State Superseded
Delegated to: Tom Rini
Headers show

Commit Message

Chris Packham June 10, 2015, 10:06 a.m. UTC
Unlike most configuration options defining this actually disables
support for a feature (parallel flash). Eventually the logic behind this
should probably be flipped so that '#ifndef CONFIG_SYS_NO_FLASH' becomes
'#ifdef CONFIG_HAS_PARALLEL_FLASH' but for now lets document the
existing behaviour.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
---
So this is my attempt to describe (my understanding of) how this option
should be used. Any suggestions for improvement are most welcome.

 README | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Stefan Roese June 10, 2015, 1:59 p.m. UTC | #1
On 10.06.2015 12:06, Chris Packham wrote:
> Unlike most configuration options defining this actually disables
> support for a feature (parallel flash). Eventually the logic behind this
> should probably be flipped so that '#ifndef CONFIG_SYS_NO_FLASH' becomes
> '#ifdef CONFIG_HAS_PARALLEL_FLASH'

Yes, this should be the ultimate goal. But definitely a quite complex task.

> but for now lets document the
> existing behaviour.

Ack.

> Signed-off-by: Chris Packham <judge.packham@gmail.com>

Reviewed-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan
diff mbox

Patch

diff --git a/README b/README
index 3b406c2..c3fa549 100644
--- a/README
+++ b/README
@@ -3037,6 +3037,19 @@  CBFS (Coreboot Filesystem) support
 		this is instead controlled by the value of
 		/config/load-environment.
 
+- Parallel Flash support:
+		CONFIG_SYS_NO_FLASH
+
+		Traditionally U-boot was run on systems with parallel NOR
+		flash. This option is used to disable support for parallel NOR
+		flash. This option should be defined if the board does not have
+		parallel flash.
+
+		If this option is not defined one of the generic flash drivers
+		(e.g.  CONFIG_FLASH_CFI_DRIVER or CONFIG_ST_SMI) must be
+		selected or the board must provide an implementation of the
+		flash API (see include/flash.h).
+
 - DataFlash Support:
 		CONFIG_HAS_DATAFLASH