summaryrefslogtreecommitdiff
path: root/include/configs/mx6q_sabreauto.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/configs/mx6q_sabreauto.h')
-rw-r--r--include/configs/mx6q_sabreauto.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/configs/mx6q_sabreauto.h b/include/configs/mx6q_sabreauto.h
index a04529e..195b7e8 100644
--- a/include/configs/mx6q_sabreauto.h
+++ b/include/configs/mx6q_sabreauto.h
@@ -90,8 +90,6 @@
#define CONFIG_BOOTP_GATEWAY
#define CONFIG_BOOTP_DNS
-#define CONFIG_CMD_SPI
-#define CONFIG_CMD_I2C
#define CONFIG_CMD_IMXOTP
/*Uncomment if wish to view Parallel NOR as device.
*If you want to use it as Boot device you need
@@ -99,8 +97,13 @@
*/
/*#define CONFIG_CMD_WEIMNOR*/
-/* Enable below configure when supporting nand */
+
+#ifndef CONFIG_CMD_WEIMNOR
+#define CONFIG_CMD_SPI
+#define CONFIG_CMD_I2C
#define CONFIG_CMD_SF
+#endif
+
#define CONFIG_CMD_MMC
#define CONFIG_CMD_ENV
#define CONFIG_CMD_REGUL
@@ -201,8 +204,6 @@
#define CONFIG_SYS_I2C_SLAVE 0x30
#endif
-
-
/*
* SPI Configs
* SPI NOR AND WEIM NOR share PINs, so cannot be enabled both at sametime
@@ -223,16 +224,15 @@
#define CONFIG_SYS_FLASH_CFI /* use the Common Flash Interface */
#define CONFIG_FLASH_CFI_DRIVER /* use the CFI driver */
#define CONFIG_SYS_FLASH_BASE 0x08000000 /* start of FLASH */
- #define CONFIG_SYS_FLASH_SIZE 0x08000000 /* max flash size in bytes */
- #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
+ #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1
#define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT
#define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE}
#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* number of banks */
#define CONFIG_SYS_MAX_FLASH_SECT 256 /* max sectors per device */
- #define CONFIG_SYS_FLASH_PROTECTION
+ #define CONFIG_SYS_FLASH_PROTECTION 1
+ #define CONFIG_SYS_FLASH_EMPTY_INFO
#endif
-
/* Regulator Configs */
#ifdef CONFIG_CMD_REGUL
#define CONFIG_ANATOP_REGULATOR