diff options
author | Teresa Gámez <t.gamez@phytec.de> | 2012-12-20 15:22:30 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-12-21 08:28:05 +0100 |
commit | eb68d9a51bfdf5b159a78c65ad6fbebd80f8a0ff (patch) | |
tree | 7068833d143a1ceb085f71284846c60449b070f6 /arch/arm/mach-omap/omap_devices.c | |
parent | 145fe7c167139f71aef6202ce000a6dead586d67 (diff) | |
download | barebox-eb68d9a51bfdf5b159a78c65ad6fbebd80f8a0ff.tar.gz barebox-eb68d9a51bfdf5b159a78c65ad6fbebd80f8a0ff.tar.xz |
ARM OMAP: Add SRAM and DRAM to device register functions
Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-omap/omap_devices.c')
-rw-r--r-- | arch/arm/mach-omap/omap_devices.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-omap/omap_devices.c b/arch/arm/mach-omap/omap_devices.c index acf029d9c1..e83ac85179 100644 --- a/arch/arm/mach-omap/omap_devices.c +++ b/arch/arm/mach-omap/omap_devices.c @@ -1,7 +1,19 @@ #include <driver.h> #include <ns16550.h> +#include <asm/armlinux.h> + #include <mach/omap3-devices.h> +void omap_add_ram0(resource_size_t size) +{ + arm_add_mem_device("ram0", 0x80000000, size); +} + +void omap_add_sram0(resource_size_t base, resource_size_t size) +{ + add_mem_device("sram0", base, size, IORESOURCE_MEM_WRITEABLE); +} + static struct NS16550_plat serial_plat = { .clock = 48000000, /* 48MHz (APLL96/2) */ .shift = 2, |