summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/a9m2410
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2012-07-13 20:46:19 +0200
committerJuergen Beisert <jbe@pengutronix.de>2012-07-20 08:41:34 +0200
commit0d22e37ff8f28f87600da7d9692b56db622ed956 (patch)
treed6bcfde15838a4728ffbd6170353e7ed3c06c929 /arch/arm/boards/a9m2410
parentc0cf41f958064d86a3ac40cfb74657232838d6c7 (diff)
downloadbarebox-0d22e37ff8f28f87600da7d9692b56db622ed956.tar.gz
barebox-0d22e37ff8f28f87600da7d9692b56db622ed956.tar.xz
ARM/Samsung: unify device registration for the S3C24XX SoCs
Barebox crashes since it has trouble with a resource size of 0. Most of the S3C24XX based platforms crashes at runtime and can't use devices with resource sizes of 0 anymore. This patch fix it by unifying the device registration for all current Barebox's S3C24XX based platforms. - A9M2410 and A9M2440 compile time tested only. - Mini2440 also runtime tested. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/a9m2410')
-rw-r--r--arch/arm/boards/a9m2410/a9m2410.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/boards/a9m2410/a9m2410.c b/arch/arm/boards/a9m2410/a9m2410.c
index eaafdbdd71..e2044a9909 100644
--- a/arch/arm/boards/a9m2410/a9m2410.c
+++ b/arch/arm/boards/a9m2410/a9m2410.c
@@ -32,6 +32,7 @@
#include <partition.h>
#include <nand.h>
#include <io.h>
+#include <mach/devices-s3c24xx.h>
#include <mach/s3c-iomap.h>
#include <mach/s3c24xx-nand.h>
#include <mach/s3c-generic.h>
@@ -109,8 +110,7 @@ static int a9m2410_devices_init(void)
writel(reg, S3C_MISCCR);
/* ----------- the devices the boot loader should work with -------- */
- add_generic_device("s3c24x0_nand", DEVICE_ID_DYNAMIC, NULL, S3C24X0_NAND_BASE,
- 0, IORESOURCE_MEM, &nand_info);
+ s3c24xx_add_nand(&nand_info);
/*
* SMSC 91C111 network controller on the baseboard
* connected to CS line 1 and interrupt line
@@ -145,8 +145,7 @@ void __bare_init nand_boot(void)
static int a9m2410_console_init(void)
{
- add_generic_device("s3c_serial", DEVICE_ID_DYNAMIC, NULL, S3C_UART1_BASE,
- S3C_UART1_SIZE, IORESOURCE_MEM, NULL);
+ s3c24xx_add_uart1();
return 0;
}