moveconfig: prepare moving CONFIG_SYS_SPI_U_BOOT_OFFS to Kconfig step 1
authorHannes Schmelzer <hannes.schmelzer@br-automation.com>
Thu, 22 Aug 2019 13:41:42 +0000 (15:41 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 26 Aug 2019 00:58:58 +0000 (20:58 -0400)
Some boards have coded this offset with formula or bitshifts in their
board-config. Manually convert these things into hex-values to be able
using moveconfig.py afterwards.

Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
13 files changed:
doc/README.rockchip
include/configs/cgtqmx6eval.h
include/configs/cl-som-imx7.h
include/configs/cm_fx6.h
include/configs/cm_t43.h
include/configs/el6x_common.h
include/configs/ot1200.h
include/configs/pcm058.h
include/configs/pfla02.h
include/configs/rk3128_common.h
include/configs/rk3288_common.h
include/configs/rk3328_common.h
include/configs/rk3399_common.h

index ab3361a..531a062 100644 (file)
@@ -559,7 +559,7 @@ header and skipping every second 2KB block. Then the U-Boot image is written at
 offset 128KB and the whole image is padded to 4MB which is the SPI flash size.
 The position of U-Boot is controlled with this setting in U-Boot:
 
-   #define CONFIG_SYS_SPI_U_BOOT_OFFS  (128 << 10)
+   #define CONFIG_SYS_SPI_U_BOOT_OFFS  0x20000
 
 If you have a Dediprog em100pro connected then you can write the image with:
 
index 07c6409..eedf0dd 100644 (file)
@@ -17,7 +17,7 @@
 #define CONFIG_MACH_TYPE       4122
 
 #ifdef CONFIG_SPL
-#define CONFIG_SYS_SPI_U_BOOT_OFFS     (64 * 1024)
+#define CONFIG_SYS_SPI_U_BOOT_OFFS     0x10000
 #include "imx6_spl.h"
 #endif
 
index 8ae9eb5..7809c4c 100644 (file)
 /* SPL */
 #include "imx7_spl.h"
 #ifdef CONFIG_SPL_BUILD
-#define CONFIG_SYS_SPI_U_BOOT_OFFS     (64 * 1024)
+#define CONFIG_SYS_SPI_U_BOOT_OFFS     0x10000
 #endif /* CONFIG_SPL_BUILD */
 
 #endif /* __CONFIG_H */
index 60bac9a..b2fae87 100644 (file)
 
 /* SPL */
 #include "imx6_spl.h"
-#define CONFIG_SYS_SPI_U_BOOT_OFFS     (64 * 1024)
+#define CONFIG_SYS_SPI_U_BOOT_OFFS     0x10000
 
 /* Display */
 #define CONFIG_IMX_HDMI
index 96b2ad8..d7fafcd 100644 (file)
 
 /* SPL defines. */
 #define CONFIG_SYS_SPL_ARGS_ADDR       (CONFIG_SYS_SDRAM_BASE + (128 << 20))
-#define CONFIG_SYS_SPI_U_BOOT_OFFS     (256 * 1024)
+#define CONFIG_SYS_SPI_U_BOOT_OFFS     0x40000
 #define CONFIG_SYS_MONITOR_LEN         (512 * 1024)
 
 /* EEPROM */
index bf70ea0..bd46a34 100644 (file)
@@ -20,7 +20,7 @@
 #define CONFIG_MXC_UART
 
 #ifdef CONFIG_SPL
-#define CONFIG_SYS_SPI_U_BOOT_OFFS     (64 * 1024)
+#define CONFIG_SYS_SPI_U_BOOT_OFFS     0x10000
 #include "imx6_spl.h"
 #endif
 
index 7dfcccb..17ccf8b 100644 (file)
@@ -59,7 +59,7 @@
 /* SPL */
 #ifdef CONFIG_SPL
 #include "imx6_spl.h"
-#define CONFIG_SYS_SPI_U_BOOT_OFFS     (64 * 1024)
+#define CONFIG_SYS_SPI_U_BOOT_OFFS     0x10000
 #endif
 
 #define CONFIG_FEC_MXC
index f0c82b8..02c9214 100644 (file)
@@ -8,7 +8,7 @@
 #define __PCM058_CONFIG_H
 
 #ifdef CONFIG_SPL
-#define CONFIG_SYS_SPI_U_BOOT_OFFS     (64 * 1024)
+#define CONFIG_SYS_SPI_U_BOOT_OFFS     0x10000
 #include "imx6_spl.h"
 #endif
 
index 3a9b85a..ed7e4fb 100644 (file)
@@ -8,7 +8,7 @@
 #define __PCM058_CONFIG_H
 
 #ifdef CONFIG_SPL
-#define CONFIG_SYS_SPI_U_BOOT_OFFS     (64 * 1024)
+#define CONFIG_SYS_SPI_U_BOOT_OFFS     0x10000
 #include "imx6_spl.h"
 #endif
 
index be55fb7..9ba516f 100644 (file)
@@ -26,7 +26,7 @@
 #define CONFIG_SYS_BOOTM_LEN   (64 << 20)      /* 64M */
 
 /* RAW SD card / eMMC locations. */
-#define CONFIG_SYS_SPI_U_BOOT_OFFS     (128 << 10)
+#define CONFIG_SYS_SPI_U_BOOT_OFFS     0x20000
 
 #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION     1
 #define CONFIG_SYS_SDRAM_BASE          0x60000000
index 4a62da3..ad367ed 100644 (file)
@@ -29,7 +29,7 @@
 #define CONFIG_IRAM_BASE               0xff700000
 
 /* RAW SD card / eMMC locations. */
-#define CONFIG_SYS_SPI_U_BOOT_OFFS     (128 << 10)
+#define CONFIG_SYS_SPI_U_BOOT_OFFS     0x20000
 
 /* FAT sd card locations. */
 #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION     1
index f8b56ba..2dfd952 100644 (file)
@@ -24,7 +24,7 @@
 
 #define CONFIG_SYS_BOOTM_LEN   (64 << 20)      /* 64M */
 
-#define CONFIG_SYS_SPI_U_BOOT_OFFS     (128 << 10)
+#define CONFIG_SYS_SPI_U_BOOT_OFFS     0x20000
 
 /* FAT sd card locations. */
 #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION     1
index a5e69b2..355850e 100644 (file)
@@ -38,7 +38,7 @@
 #define CONFIG_ROCKCHIP_SDHCI_MAX_FREQ 200000000
 
 /* RAW SD card / eMMC locations. */
-#define CONFIG_SYS_SPI_U_BOOT_OFFS     (128 << 10)
+#define CONFIG_SYS_SPI_U_BOOT_OFFS     0x20000
 
 /* FAT sd card locations. */
 #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION     1