summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/a9m2410
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/a9m2410
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/a9m2410')
-rw-r--r--arch/arm/boards/a9m2410/a9m2410.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/boards/a9m2410/a9m2410.c b/arch/arm/boards/a9m2410/a9m2410.c
index e2044a9909..fb3f1baf10 100644
--- a/arch/arm/boards/a9m2410/a9m2410.c
+++ b/arch/arm/boards/a9m2410/a9m2410.c
@@ -29,6 +29,7 @@
#include <init.h>
#include <asm/armlinux.h>
#include <generated/mach-types.h>
+#include <asm-generic/sections.h>
#include <partition.h>
#include <nand.h>
#include <io.h>
@@ -139,7 +140,7 @@ device_initcall(a9m2410_devices_init);
#ifdef CONFIG_S3C_NAND_BOOT
void __bare_init nand_boot(void)
{
- s3c24x0_nand_load_image((void *)TEXT_BASE, 256 * 1024, 0);
+ s3c24x0_nand_load_image(_text, 256 * 1024, 0);
}
#endif