summaryrefslogtreecommitdiffstats
path: root/drivers/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-02-26 11:28:55 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2008-02-26 11:28:55 +0100
commit3d3c13d8f8238d0ed6e3e23841737de53b2c424f (patch)
tree7a4a9c8a53a2996778c284a85493beb1da3575eb /drivers/Kconfig
parent51c840cd18acd8a9f656b1491bc8ff100acccbd0 (diff)
downloadbarebox-3d3c13d8f8238d0ed6e3e23841737de53b2c424f.tar.gz
barebox-3d3c13d8f8238d0ed6e3e23841737de53b2c424f.tar.xz
[CFI Driver] - Update Kconfig help texts
- Turn switch/case into if/else to be able to optimize out unused code when not all bankwidths are needed
Diffstat (limited to 'drivers/Kconfig')
-rw-r--r--drivers/Kconfig54
1 files changed, 54 insertions, 0 deletions
diff --git a/drivers/Kconfig b/drivers/Kconfig
index e4a488da5c..eeb582b8f9 100644
--- a/drivers/Kconfig
+++ b/drivers/Kconfig
@@ -10,14 +10,68 @@ config HAS_CFI
config DRIVER_CFI
bool "cfi flash driver"
+ help
+ If you have NOR Flash devices connected to your system and wish
+ to use them say yes here.
+
config DRIVER_CFI_NEW
+ depends on DRIVER_CFI
+ default y
bool "new cfi flash driver"
+ help
+ The old cfi flash driver is mainly an adopted version from U-Boot v1
+ whereas the new driver contains some more experimental features such
+ as selecting the supported chiptypes and bus widths making the driver
+ smaller.
+ Normally you should stick with the new driver, but if you experience
+ troubles you could try the old driver. Please report if the new driver
+ breaks something.
+
+config DRIVER_CFI_OLD
+ bool
+ default y
+ depends on !DRIVER_CFI_NEW
+
config DRIVER_CFI_INTEL
depends on DRIVER_CFI_NEW
bool "Support Intel flash chips"
+
config DRIVER_CFI_AMD
depends on DRIVER_CFI_NEW
bool "support AMD flash chips"
+
+config DRIVER_CFI_BANK_WIDTH_1
+ bool "Support 8-bit buswidth"
+ depends on DRIVER_CFI_NEW
+ default y
+ help
+ If you wish to support CFI devices on a physical bus which is
+ 8 bits wide, say 'Y'.
+
+config DRIVER_CFI_BANK_WIDTH_2
+ bool "Support 16-bit buswidth"
+ depends on DRIVER_CFI_NEW
+ default y
+ help
+ If you wish to support CFI devices on a physical bus which is
+ 16 bits wide, say 'Y'.
+
+config DRIVER_CFI_BANK_WIDTH_4
+ bool "Support 32-bit buswidth"
+ depends on DRIVER_CFI_NEW
+ default y
+ help
+ If you wish to support CFI devices on a physical bus which is
+ 32 bits wide, say 'Y'.
+
+config DRIVER_CFI_BANK_WIDTH_8
+ bool "Support 64-bit buswidth"
+ depends on DRIVER_CFI_NEW
+ default n
+ help
+ If you wish to support CFI devices on a physical bus which is
+ 64 bits wide, say 'Y'.
+
config CFI_BUFFER_WRITE
bool "use cfi driver with buffer write"
depends on DRIVER_CFI || DRIVER_CFI_NEW