]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: add dma_zone_size to the machine_desc structure
authorNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 6 Jul 2011 02:28:08 +0000 (22:28 -0400)
committerNicolas Pitre <nico@fluxnic.net>
Mon, 18 Jul 2011 19:29:57 +0000 (15:29 -0400)
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
arch/arm/include/asm/mach/arch.h
arch/arm/kernel/setup.c

index 946f4d778f71648249e99588db97cbeb4c9ca941..3281fb4b12e3342a6dd45af7c17bcf5d16aec4fe 100644 (file)
@@ -23,6 +23,10 @@ struct machine_desc {
 
        unsigned int            nr_irqs;        /* number of IRQs */
 
+#ifdef CONFIG_ZONE_DMA
+       unsigned long           dma_zone_size;  /* size of DMA-able area */
+#endif
+
        unsigned int            video_start;    /* start of video RAM   */
        unsigned int            video_end;      /* end of video RAM     */
 
index ed11fb08b05a5b2d3fd022d981970c01c9fdc088..e0db84d7e38482df8f55db88aeeb9168b89129c2 100644 (file)
@@ -916,6 +916,12 @@ void __init setup_arch(char **cmdline_p)
        cpu_init();
        tcm_init();
 
+#ifdef CONFIG_ZONE_DMA
+       if (mdesc->dma_zone_size) {
+               extern unsigned long arm_dma_zone_size;
+               arm_dma_zone_size = mdesc->dma_zone_size;
+       }
+#endif
 #ifdef CONFIG_MULTI_IRQ_HANDLER
        handle_arch_irq = mdesc->handle_irq;
 #endif