summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2015-01-30 16:17:36 +0800
committerMax Krummenacher <max.krummenacher@toradex.com>2016-03-09 14:42:10 +0100
commit83429ea6af4094a05e87d3f00661db6918bafcb2 (patch)
tree6b3b23b7e02083f7e1c6a04518dca00ad28f6d71 /tools
parent5b58770673a9c16466814a93176e4c71d8e9c81b (diff)
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) Conflicts: tools/imximage.h
Diffstat (limited to 'tools')
-rw-r--r--tools/imximage.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/imximage.h b/tools/imximage.h
index 434ffbde369..c05426035ae 100644
--- a/tools/imximage.h
+++ b/tools/imximage.h
@@ -2,6 +2,8 @@
* (C) Copyright 2009
* Stefano Babic, DENX Software Engineering, sbabic@denx.de.
*
+ * Copyright (C) 2014-2015 Freescale Semiconductor, Inc.
+ *
* SPDX-License-Identifier: GPL-2.0+
*/
@@ -28,10 +30,18 @@
#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