summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2010-09-16 16:35:44 -0500
committerAnatolij Gustschin <agust@denx.de>2010-09-25 14:42:11 +0200
commit55b05237b972e5bed8b9d29804bbfcbc9c5d4a55 (patch)
tree929484f8d81f1ed76267247e8b40f818a34b9246 /include/configs
parentd5e01e49f85daf7ad0a504288ccff534f44098a0 (diff)
downloadu-boot-imx-55b05237b972e5bed8b9d29804bbfcbc9c5d4a55.zip
u-boot-imx-55b05237b972e5bed8b9d29804bbfcbc9c5d4a55.tar.gz
u-boot-imx-55b05237b972e5bed8b9d29804bbfcbc9c5d4a55.tar.bz2
p1022ds: use weak CFI flash accessors when DIU is enabled
On the Freescale P1022, the DIU and the LBC share address pins, which means that when the DIU is active (e.g. the console is on the DVI display), NOR flash cannot be accessed. So we use the weak accessor function feature of the CFI flash code to temporarily switch the pin mux from DIU to LBC whenever we want to read or write flash. This has a significant performance penalty, but it's the only way to make it work. This change allows the 'saveenv' command to work when the video display is enabled. Erasing flash and writing to flash (with the 'cp' command) works, but reading from flash (with the 'md' and 'cp' commands) does not. Also, while flash is being written, the video display will be blank. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/P1022DS.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/configs/P1022DS.h b/include/configs/P1022DS.h
index 8e0117f..2306e7f 100644
--- a/include/configs/P1022DS.h
+++ b/include/configs/P1022DS.h
@@ -188,6 +188,12 @@
#define CONFIG_VGA_AS_SINGLE_DEVICE
#define CONFIG_VIDEO_LOGO
#define CONFIG_VIDEO_BMP_LOGO
+#define CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS
+/*
+ * With CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS, flash I/O is really slow, so
+ * disable empty flash sector detection, which is I/O-intensive.
+ */
+#undef CONFIG_SYS_FLASH_EMPTY_INFO
#endif
/*