#include <linux/reboot.h>
#include <linux/i2c-tegra.h>
#include <linux/spi/cpcap.h>
-#include <linux/bootmem.h>
+#include <linux/memblock.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
void __init stingray_map_io(void)
{
- if (reserve_bootmem(0x0, 4096, BOOTMEM_EXCLUSIVE) != 0) {
- printk(KERN_WARNING "Cannot reserve first 4K of memory for safety\n");
- }
-
tegra_map_common_io();
stingray_fb_alloc();
}
+void __init stingray_reserve(void)
+{
+ if (memblock_reserve(0x0, 4096) < 0)
+ pr_warn("Cannot reserve first 4K of memory for safety\n");
+}
+
MACHINE_START(STINGRAY, "stingray")
.boot_params = 0x00000100,
.phys_io = IO_APB_PHYS,
.init_irq = tegra_init_irq,
.init_machine = tegra_stingray_init,
.map_io = stingray_map_io,
+ .reserve = stingray_reserve,
.timer = &tegra_timer,
MACHINE_END