summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel@ziswiler.com>2015-03-01 00:53:15 +0100
committerMarek Vasut <marex@denx.de>2015-03-02 10:59:51 +0100
commit7c49b523e799fe2c46bfb3ad312c9faf02e2f47e (patch)
tree3fba32508984bc9f10014cb63b21c017b5a324fe /include
parentfe488a85282f9bad0ec036cad19440f8b9489efa (diff)
downloadu-boot-imx-7c49b523e799fe2c46bfb3ad312c9faf02e2f47e.zip
u-boot-imx-7c49b523e799fe2c46bfb3ad312c9faf02e2f47e.tar.gz
u-boot-imx-7c49b523e799fe2c46bfb3ad312c9faf02e2f47e.tar.bz2
pxa: colibri_pxa270: avoid overwriting factory configuration block
Specify a CONFIG_BOARD_SIZE_LIMIT of 256 KB in order to avoid overwriting the factory configuration block located at offset 0x40000 in NOR flash. Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/colibri_pxa270.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/configs/colibri_pxa270.h b/include/configs/colibri_pxa270.h
index c2714f7..1b1816a 100644
--- a/include/configs/colibri_pxa270.h
+++ b/include/configs/colibri_pxa270.h
@@ -7,8 +7,8 @@
* SPDX-License-Identifier: GPL-2.0+
*/
-#ifndef __CONFIG_H
-#define __CONFIG_H
+#ifndef __CONFIG_H
+#define __CONFIG_H
/*
* High Level Board Configuration Options
@@ -16,6 +16,8 @@
#define CONFIG_CPU_PXA27X 1 /* Marvell PXA270 CPU */
#define CONFIG_SYS_GENERIC_BOARD
#define CONFIG_SYS_TEXT_BASE 0x0
+/* Avoid overwriting factory configuration block */
+#define CONFIG_BOARD_SIZE_LIMIT 0x40000
/*
* Environment settings
@@ -100,7 +102,6 @@
#define CONFIG_CMDLINE_EDITING 1
#define CONFIG_AUTO_COMPLETE 1
-
/*
* Clock Configuration
*/
@@ -150,10 +151,11 @@
#endif
#define CONFIG_SYS_MONITOR_BASE 0x0
-#define CONFIG_SYS_MONITOR_LEN 0x80000
+#define CONFIG_SYS_MONITOR_LEN 0x40000
+/* Skip factory configuration block */
#define CONFIG_ENV_ADDR \
- (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
+ (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN + 0x40000)
#define CONFIG_ENV_SIZE 0x40000
#define CONFIG_ENV_SECT_SIZE 0x40000
#define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE)
@@ -219,4 +221,4 @@
#include "pxa-common.h"
-#endif /* __CONFIG_H */
+#endif /* __CONFIG_H */