summaryrefslogtreecommitdiff
path: root/board/bf561-ezkit/u-boot.lds.S
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-04-24 23:39:41 -0400
committerMike Frysinger <vapier@gentoo.org>2009-05-06 08:47:21 -0400
commit02778f2f1b4b1a28b492367477db27c58d45ae35 (patch)
treef7f5b18e011460da48e86b93d808052e945c7433 /board/bf561-ezkit/u-boot.lds.S
parentaf2c37378f203857d5e6c957e77a14c2da5b59d2 (diff)
downloadu-boot-imx-02778f2f1b4b1a28b492367477db27c58d45ae35.zip
u-boot-imx-02778f2f1b4b1a28b492367477db27c58d45ae35.tar.gz
u-boot-imx-02778f2f1b4b1a28b492367477db27c58d45ae35.tar.bz2
Blackfin: fix booting with older bootroms (no EVT1)
When dropping jump block support, the assumption was that all bootroms supported entry point redirection via the EVT1 register. Unfortunately, this turned out to be incorrect for the oldest Blackfin parts (BF533-0.2 and older and BF561). No one really noticed earlier because these parts usually are booted by bypassing the bootrom entirely, and older BF533 parts are not supported at all (too many anomalies). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board/bf561-ezkit/u-boot.lds.S')
-rw-r--r--board/bf561-ezkit/u-boot.lds.S9
1 files changed, 8 insertions, 1 deletions
diff --git a/board/bf561-ezkit/u-boot.lds.S b/board/bf561-ezkit/u-boot.lds.S
index 4220e81..e6d3ddc 100644
--- a/board/bf561-ezkit/u-boot.lds.S
+++ b/board/bf561-ezkit/u-boot.lds.S
@@ -42,12 +42,19 @@
# define L1_DATA_B_SRAM_SIZE 0
#endif
+/* The 0xC offset is so we don't clobber the tiny LDR jump block. */
+#ifdef CONFIG_BFIN_BOOTROM_USES_EVT1
+# define L1_CODE_ORIGIN L1_INST_SRAM
+#else
+# define L1_CODE_ORIGIN L1_INST_SRAM + 0xC
+#endif
+
OUTPUT_ARCH(bfin)
MEMORY
{
ram : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
- l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
+ l1_code : ORIGIN = L1_CODE_ORIGIN, LENGTH = L1_INST_SRAM_SIZE
l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE
}