summaryrefslogtreecommitdiffstats
path: root/include/environment.h
diff options
context:
space:
mode:
authorunsik Kim <donari75@gmail.com>2009-02-25 11:31:24 +0900
committerWolfgang Denk <wd@denx.de>2009-04-03 23:47:06 +0200
commit75eb82ec7cacb18d059d701b35677b93d2bb7596 (patch)
treed6e29e87ee98e487f40644936900dd4dd38cc5db /include/environment.h
parent8ddfe804c49f7b738eebfdc6a5d0e406581faf49 (diff)
downloadblackbird-obmc-uboot-75eb82ec7cacb18d059d701b35677b93d2bb7596.tar.gz
blackbird-obmc-uboot-75eb82ec7cacb18d059d701b35677b93d2bb7596.zip
mflash: Initial mflash support
Mflash is fusion memory device mainly targeted consumer eletronic and mobile phone. Internally, it have nand flash and other hardware logics and supports some different operation (ATA, IO, XIP) modes. IO mode is custom mode for the host that doesn't have IDE interface. (Many mobile targeted SoC doesn't have IDE bus) This driver support mflash IO mode. Followings are brief descriptions about IO mode. 1. IO mode based on ATA protocol and uses some custom command. (read confirm, write confirm) 2. IO mode uses SRAM bus interface. Signed-off-by: unsik Kim <donari75@gmail.com>
Diffstat (limited to 'include/environment.h')
-rw-r--r--include/environment.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/environment.h b/include/environment.h
index ea6b4d12ec..507e8326a3 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -84,6 +84,18 @@
# endif
#endif /* CONFIG_ENV_IS_IN_NAND */
+#if defined(CONFIG_ENV_IS_IN_MG_DISK)
+# ifndef CONFIG_ENV_ADDR
+# error "Need to define CONFIG_ENV_ADDR when using CONFIG_ENV_IS_IN_MG_DISK"
+# endif
+# ifndef CONFIG_ENV_SIZE
+# error "Need to define CONFIG_ENV_SIZE when using CONFIG_ENV_IS_IN_MG_DISK"
+# endif
+# ifdef CONFIG_ENV_IS_EMBEDDED
+# error "CONFIG_ENV_IS_EMBEDDED not supported when using CONFIG_ENV_IS_IN_MG_DISK"
+# endif
+#endif /* CONFIG_ENV_IS_IN_MG_DISK */
+
#ifdef USE_HOSTCC
# include <stdint.h>
#else
OpenPOWER on IntegriCloud