]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx:mx6slevk add spi nor boot support
authorPeng Fan <Peng.Fan@freescale.com>
Tue, 30 Dec 2014 03:14:51 +0000 (11:14 +0800)
committerJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Wed, 31 Dec 2014 09:24:01 +0000 (14:54 +0530)
Add spi nor boot support for mx6slevk board.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
board/freescale/mx6slevk/MAINTAINERS
configs/mx6slevk_spinor_defconfig [new file with mode: 0644]
include/configs/mx6slevk.h

index 660af91aeeceefed3fd0c1a288f92c5b482a7848..18d31a8d8b964c066bb5fd85135c7e0b60dfa64e 100644 (file)
@@ -4,3 +4,4 @@ S:      Maintained
 F:     board/freescale/mx6slevk/
 F:     include/configs/mx6slevk.h
 F:     configs/mx6slevk_defconfig
+F:     configs/mx6slevk_spinor_defconfig
diff --git a/configs/mx6slevk_spinor_defconfig b/configs/mx6slevk_spinor_defconfig
new file mode 100644 (file)
index 0000000..93efe73
--- /dev/null
@@ -0,0 +1,3 @@
+CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6slevk/imximage.cfg,MX6SL,SYS_BOOT_SPINOR"
+CONFIG_ARM=y
+CONFIG_TARGET_MX6SLEVK=y
index e3e7f7686b59e289da319fb8f3181bc0160f5835..e6c41306a36001a52ef62e96704253eb283dd376 100644 (file)
 /* FLASH and environment organization */
 #define CONFIG_SYS_NO_FLASH
 
-#define CONFIG_ENV_OFFSET              (6 * SZ_64K)
 #define CONFIG_ENV_SIZE                        SZ_8K
+
+#if defined CONFIG_SYS_BOOT_SPINOR
+#define CONFIG_ENV_IS_IN_SPI_FLASH
+#define CONFIG_ENV_OFFSET               (768 * 1024)
+#define CONFIG_ENV_SECT_SIZE            (64 * 1024)
+#define CONFIG_ENV_SPI_BUS              CONFIG_SF_DEFAULT_BUS
+#define CONFIG_ENV_SPI_CS               CONFIG_SF_DEFAULT_CS
+#define CONFIG_ENV_SPI_MODE             CONFIG_SF_DEFAULT_MODE
+#define CONFIG_ENV_SPI_MAX_HZ           CONFIG_SF_DEFAULT_SPEED
+#else
+#define CONFIG_ENV_OFFSET              (6 * SZ_64K)
 #define CONFIG_ENV_IS_IN_MMC
+#endif
 
 #define CONFIG_OF_LIBFDT
 #define CONFIG_CMD_BOOTZ