summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/phycard-i.MX27
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-07-08 18:30:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-07-23 23:57:44 +0200
commit244198ea8bdf592799ebfd430fe9ab165284e480 (patch)
treee25ec0f971ca0bf0c474e1144d3eb0155bca5c4a /arch/arm/boards/phycard-i.MX27
parent218dffea800754dcbda323da1c99c7d90c9b9062 (diff)
downloadbarebox-244198ea8bdf592799ebfd430fe9ab165284e480.tar.gz
barebox-244198ea8bdf592799ebfd430fe9ab165284e480.tar.xz
ARM boards: Use _text rather than TEXT_BASE
With compressed image support TEXT_BASE will become the base address of the uncompressed image. What the boards want instead is the base address of the decompressor code or, if not compressed, the base address of the uncompressed image. Use _text which is the correct one for both cases. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/phycard-i.MX27')
-rw-r--r--arch/arm/boards/phycard-i.MX27/lowlevel_init.S8
-rw-r--r--arch/arm/boards/phycard-i.MX27/pca100.c2
2 files changed, 3 insertions, 7 deletions
diff --git a/arch/arm/boards/phycard-i.MX27/lowlevel_init.S b/arch/arm/boards/phycard-i.MX27/lowlevel_init.S
index 3ef2c543e6..c24edd49da 100644
--- a/arch/arm/boards/phycard-i.MX27/lowlevel_init.S
+++ b/arch/arm/boards/phycard-i.MX27/lowlevel_init.S
@@ -106,7 +106,7 @@ board_init_lowlevel:
bhi ret
/* Move ourselves out of NFC SRAM */
- ldr r1, =TEXT_BASE
+ ldr r1, =_text
copy_loop:
ldmia r0!, {r3-r9} /* copy from source address [r0] */
@@ -116,11 +116,7 @@ copy_loop:
ldr pc, =1f /* Jump to SDRAM */
1:
- bl nand_boot /* Load barebox from NAND Flash */
-
- ldr r1, =IMX_NFC_BASE - TEXT_BASE
- sub r10, r10, r1 /* adjust return address from NFC SRAM */
- /* to SDRAM */
+ b nand_boot /* Load barebox from NAND Flash */
#endif /* CONFIG_NAND_IMX_BOOT */
diff --git a/arch/arm/boards/phycard-i.MX27/pca100.c b/arch/arm/boards/phycard-i.MX27/pca100.c
index 6fdcf6ea62..126f9efbac 100644
--- a/arch/arm/boards/phycard-i.MX27/pca100.c
+++ b/arch/arm/boards/phycard-i.MX27/pca100.c
@@ -328,7 +328,7 @@ console_initcall(pca100_console_init);
#ifdef CONFIG_NAND_IMX_BOOT
void __bare_init nand_boot(void)
{
- imx_nand_load_image((void *)TEXT_BASE, barebox_image_size);
+ imx_nand_load_image(_text, barebox_image_size);
}
#endif