mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
rockchip: configs: move env offset to common header
To reduce redundant code. Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f568ac219c
commit
3d1bf166bf
7 changed files with 14 additions and 84 deletions
|
@ -13,20 +13,6 @@
|
|||
#define CONFIG_ENV_IS_IN_MMC
|
||||
#define CONFIG_SYS_MMC_ENV_DEV 1
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_SPL_BACK_TO_BROM
|
||||
/* SPL @ 32k for 34k
|
||||
* u-boot directly after @ 68k for 400k or so
|
||||
* ENV @ 992k
|
||||
*/
|
||||
#define CONFIG_ENV_OFFSET ((1024-32) * 1024)
|
||||
#else
|
||||
/* SPL @ 32k for ~36k
|
||||
* ENV @ 96k
|
||||
* u-boot @ 128K
|
||||
*/
|
||||
#define CONFIG_ENV_OFFSET (96 * 1024)
|
||||
#endif
|
||||
|
||||
#define CONFIG_SYS_WHITE_ON_BLACK
|
||||
|
||||
#endif
|
||||
|
|
|
@ -13,20 +13,6 @@
|
|||
#define CONFIG_ENV_IS_IN_MMC
|
||||
#define CONFIG_SYS_MMC_ENV_DEV 1
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_SPL_BACK_TO_BROM
|
||||
/* SPL @ 32k for 34k
|
||||
* u-boot directly after @ 68k for 400k or so
|
||||
* ENV @ 992k
|
||||
*/
|
||||
#define CONFIG_ENV_OFFSET ((1024-32) * 1024)
|
||||
#else
|
||||
/* SPL @ 32k for ~36k
|
||||
* ENV @ 96k
|
||||
* u-boot @ 128K
|
||||
*/
|
||||
#define CONFIG_ENV_OFFSET (96 * 1024)
|
||||
#endif
|
||||
|
||||
#define CONFIG_SYS_WHITE_ON_BLACK
|
||||
|
||||
#endif
|
||||
|
|
|
@ -20,20 +20,6 @@
|
|||
#define CONFIG_SYS_MMC_ENV_DEV 0 /* emmc */
|
||||
#define CONFIG_SYS_MMC_ENV_PART 0 /* user area */
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_SPL_BACK_TO_BROM
|
||||
/* SPL @ 32k for 34k
|
||||
* u-boot directly after @ 68k for 400k or so
|
||||
* ENV @ 992k
|
||||
*/
|
||||
#define CONFIG_ENV_OFFSET ((1024-32) * 1024)
|
||||
#else
|
||||
/* SPL @ 32k for ~36k
|
||||
* ENV @ 96k
|
||||
* u-boot @ 128K
|
||||
*/
|
||||
#define CONFIG_ENV_OFFSET (96 * 1024)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -18,20 +18,6 @@
|
|||
#define CONFIG_ENV_IS_IN_MMC
|
||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_SPL_BACK_TO_BROM
|
||||
/* SPL @ 32k for 34k
|
||||
* u-boot directly after @ 68k for 400k or so
|
||||
* ENV @ 992k
|
||||
*/
|
||||
#define CONFIG_ENV_OFFSET ((1024-32) * 1024)
|
||||
#else
|
||||
/* SPL @ 32k for ~36k
|
||||
* ENV @ 96k
|
||||
* u-boot @ 128K
|
||||
*/
|
||||
#define CONFIG_ENV_OFFSET (96 * 1024)
|
||||
#endif
|
||||
|
||||
#define CONFIG_SYS_WHITE_ON_BLACK
|
||||
|
||||
#endif
|
||||
|
|
|
@ -13,20 +13,6 @@
|
|||
#define CONFIG_ENV_IS_IN_MMC
|
||||
#define CONFIG_SYS_MMC_ENV_DEV 1
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_SPL_BACK_TO_BROM
|
||||
/* SPL @ 32k for 34k
|
||||
* u-boot directly after @ 68k for 400k or so
|
||||
* ENV @ 992k
|
||||
*/
|
||||
#define CONFIG_ENV_OFFSET ((1024-32) * 1024)
|
||||
#else
|
||||
/* SPL @ 32k for ~36k
|
||||
* ENV @ 96k
|
||||
* u-boot @ 128K
|
||||
*/
|
||||
#define CONFIG_ENV_OFFSET (96 * 1024)
|
||||
#endif
|
||||
|
||||
#define CONFIG_SYS_WHITE_ON_BLACK
|
||||
|
||||
#endif
|
||||
|
|
|
@ -17,20 +17,6 @@
|
|||
#define CONFIG_ENV_IS_IN_MMC
|
||||
#define CONFIG_SYS_MMC_ENV_DEV 0
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_SPL_BACK_TO_BROM
|
||||
/* SPL @ 32k for 34k
|
||||
* u-boot directly after @ 68k for 400k or so
|
||||
* ENV @ 992k
|
||||
*/
|
||||
#define CONFIG_ENV_OFFSET ((1024-32) * 1024)
|
||||
#else
|
||||
/* SPL @ 32k for ~36k
|
||||
* ENV @ 96k
|
||||
* u-boot @ 128K
|
||||
*/
|
||||
#define CONFIG_ENV_OFFSET (96 * 1024)
|
||||
#endif
|
||||
|
||||
#define CONFIG_SYS_WHITE_ON_BLACK
|
||||
|
||||
#endif
|
||||
|
|
|
@ -31,4 +31,18 @@
|
|||
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_SPL_BACK_TO_BROM
|
||||
/* SPL @ 32k for 34k
|
||||
* u-boot directly after @ 68k for 400k or so
|
||||
* ENV @ 992k
|
||||
*/
|
||||
#define CONFIG_ENV_OFFSET ((1024-32) * 1024)
|
||||
#else
|
||||
/* SPL @ 32k for ~36k
|
||||
* ENV @ 96k
|
||||
* u-boot @ 128K
|
||||
*/
|
||||
#define CONFIG_ENV_OFFSET (96 * 1024)
|
||||
#endif
|
||||
|
||||
#endif /* _ROCKCHIP_COMMON_H_ */
|
||||
|
|
Loading…
Reference in a new issue