From 2cd13113ed94fd90c0cafe255f732c61c13ce2b0 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Fri, 20 Sep 2013 00:28:17 +0300 Subject: [PATCH] pandora: reserve CMA area for c64_tools hopefully this doesn't have to be removed half a year later.. --- arch/arm/mach-omap2/board-omap3pandora.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index d1b950cb3fae..6f98ba0835c4 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c @@ -37,6 +37,8 @@ #include #include #include +#include +#include #include #include @@ -793,6 +795,13 @@ static struct platform_device pandora_ram_console = { .id = -1, }; +static struct platform_device pandora_c64_tools = { + .name = "c64_tools", + .dev = { + .coherent_dma_mask = DMA_BIT_MASK(32), + }, +}; + static struct platform_device *omap3pandora_devices[] __initdata = { &pandora_leds_gpio, &pandora_leds_pwm, @@ -800,6 +809,7 @@ static struct platform_device *omap3pandora_devices[] __initdata = { &pandora_keys_gpio, &pandora_vwlan_device, &pandora_ram_console, + &pandora_c64_tools, }; static const struct usbhs_omap_board_data usbhs_bdata __initconst = { @@ -939,6 +949,7 @@ struct persistent_ram ram_console_ram = { void __init pandora_reserve(void) { omap_reserve(); + dma_declare_contiguous(&pandora_c64_tools.dev, 4 * SZ_1M, 0x86000000, 0); #ifdef CONFIG_ANDROID_PERSISTENT_RAM persistent_ram_early_init(&ram_console_ram); #endif -- 2.39.2