summaryrefslogtreecommitdiff
path: root/tools/imximage.h
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2015-01-30 16:17:36 +0800
committerYe Li <ye.li@nxp.com>2017-04-05 14:04:43 +0800
commitf8b95c085f80e4179d23188e505c67d555ada973 (patch)
treec1e9cd3ebca35998231453015f0ae8808b62b7d1 /tools/imximage.h
parent7feb7fcd7ca2e5b6801c9dbee1fcbda1b706e1b6 (diff)
downloadu-boot-imx-f8b95c085f80e4179d23188e505c67d555ada973.zip
u-boot-imx-f8b95c085f80e4179d23188e505c67d555ada973.tar.gz
u-boot-imx-f8b95c085f80e4179d23188e505c67d555ada973.tar.bz2
MLK-10186-1 imximage: add fixed IVT offset support
Since from mx7, we use fixed IVT offset for all boot devices. Introduce a new configuration CONFIG_IMX_FIXED_IVT_OFFSET for this. Signed-off-by: Peng Fan <Peng.Fan@freescale.com> Signed-off-by: Ye.Li <B37916@freescale.com> (cherry picked from commit 88e0a3552b08627b18d98380a32dbafacb18854b) (cherry picked from commit 3d52e221ed444dab96038a2417d1dcb2217ad593) (cherry picked from commit 13d39c51bbaabbcf3b72516d8ac3f1853f686ace)
Diffstat (limited to 'tools/imximage.h')
-rw-r--r--tools/imximage.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/imximage.h b/tools/imximage.h
index db8b9a3..a56462d 100644
--- a/tools/imximage.h
+++ b/tools/imximage.h
@@ -27,10 +27,17 @@
#define FLASH_OFFSET_NAND FLASH_OFFSET_STANDARD
#define FLASH_OFFSET_SD FLASH_OFFSET_STANDARD
#define FLASH_OFFSET_SPI FLASH_OFFSET_STANDARD
+#define FLASH_OFFSET_SATA FLASH_OFFSET_STANDARD
+
+#ifdef CONFIG_IMX_FIXED_IVT_OFFSET
+#define FLASH_OFFSET_ONENAND FLASH_OFFSET_STANDARD
+#define FLASH_OFFSET_NOR FLASH_OFFSET_STANDARD
+#define FLASH_OFFSET_QSPI FLASH_OFFSET_STANDARD
+#else
#define FLASH_OFFSET_ONENAND 0x100
#define FLASH_OFFSET_NOR 0x1000
-#define FLASH_OFFSET_SATA FLASH_OFFSET_STANDARD
#define FLASH_OFFSET_QSPI 0x1000
+#endif
/* Initial Load Region Size */
#define FLASH_LOADSIZE_UNDEFINED 0xFFFFFFFF