summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/at91-common/u-boot-spl.lds
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2013-11-15 11:12:38 +0800
committerAndreas Bießmann <andreas.devel@googlemail.com>2013-12-01 22:38:51 +0100
commitc5e8885aab9d282fa480cfa359cf5fd84248abb8 (patch)
treee8b1c1e5ef968b2db060fba21c9b6cc7d27d75e5 /arch/arm/cpu/at91-common/u-boot-spl.lds
parent9d9289cb31d8c0bf4d3708df23a24edb4205165d (diff)
downloadolio-uboot-2014.01-c5e8885aab9d282fa480cfa359cf5fd84248abb8.tar.xz
olio-uboot-2014.01-c5e8885aab9d282fa480cfa359cf5fd84248abb8.zip
arm: atmel: sama5d3: spl boot from fat fs SD card
Enable Atmel sama5d3xek boart spl boot support, which can load u-boot from SD card with FAT file system. Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'arch/arm/cpu/at91-common/u-boot-spl.lds')
-rw-r--r--arch/arm/cpu/at91-common/u-boot-spl.lds50
1 files changed, 50 insertions, 0 deletions
diff --git a/arch/arm/cpu/at91-common/u-boot-spl.lds b/arch/arm/cpu/at91-common/u-boot-spl.lds
new file mode 100644
index 000000000..038335d3d
--- /dev/null
+++ b/arch/arm/cpu/at91-common/u-boot-spl.lds
@@ -0,0 +1,50 @@
+/*
+ * (C) Copyright 2002
+ * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
+ *
+ * (C) Copyright 2010
+ * Texas Instruments, <www.ti.com>
+ * Aneesh V <aneesh@ti.com>
+ *
+ * (C) 2013 Atmel Corporation
+ * Bo Shen <voice.shen@atmel.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE, \
+ LENGTH = CONFIG_SPL_MAX_SIZE }
+MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
+ LENGTH = CONFIG_SPL_BSS_MAX_SIZE }
+
+OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
+OUTPUT_ARCH(arm)
+ENTRY(_start)
+SECTIONS
+{
+ .text :
+ {
+ __start = .;
+ arch/arm/cpu/armv7/start.o (.text*)
+ *(.text*)
+ } >.sram
+
+ . = ALIGN(4);
+ .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
+
+ . = ALIGN(4);
+ .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
+
+ . = ALIGN(4);
+ __image_copy_end = .;
+ _end = .;
+
+ .bss :
+ {
+ . = ALIGN(4);
+ __bss_start = .;
+ *(.bss*)
+ . = ALIGN(4);
+ __bss_end = .;
+ } >.sdram
+}