From: Jason Chen Date: Tue, 6 Sep 2011 05:04:03 +0000 (+0800) Subject: ENGR00155147 mx5x mx6x: adjust dma zone max size to 184M X-Git-Tag: v3.0.35-fsl_4.1.0~2253 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c67778aaa79d1a533a4ec854dd8762394dbb7ce0;p=karo-tx-linux.git ENGR00155147 mx5x mx6x: adjust dma zone max size to 184M adjust dma zone max size to 184M. keep default size as 96M. Signed-off-by: Jason Chen --- diff --git a/arch/arm/mach-mx5/Kconfig b/arch/arm/mach-mx5/Kconfig index 36197c6a08af..acac8d329e4a 100755 --- a/arch/arm/mach-mx5/Kconfig +++ b/arch/arm/mach-mx5/Kconfig @@ -260,12 +260,4 @@ config MACH_IMX_BLUETOOTH_RFKILL depends on RFKILL ---help--- Say Y to get the standard rfkill interface of Bluetooth - -config DMA_ZONE_SIZE - int "DMA memory zone size" - range 0 96 - default 24 - help - This is the size in MB for the DMA zone. The DMA zone is used for - dedicated memory for large contiguous video buffers endif diff --git a/arch/arm/mach-mx6/Kconfig b/arch/arm/mach-mx6/Kconfig index d6dc1cb63375..ccd3a3321882 100644 --- a/arch/arm/mach-mx6/Kconfig +++ b/arch/arm/mach-mx6/Kconfig @@ -53,11 +53,4 @@ config MACH_MX6Q_SABREAUTO comment "MX6 Options:" -config DMA_ZONE_SIZE - int "DMA memory zone size" - range 0 184 - default 24 - help - This is the size in MB for the DMA zone. The DMA zone is used for - dedicated memory for large contiguous video buffers endif diff --git a/arch/arm/plat-mxc/Kconfig b/arch/arm/plat-mxc/Kconfig index 3558748ffcca..e708ed448585 100755 --- a/arch/arm/plat-mxc/Kconfig +++ b/arch/arm/plat-mxc/Kconfig @@ -151,4 +151,12 @@ config CLK_DEBUG help export clk debug information to user space +config DMA_ZONE_SIZE + int "DMA memory zone size" + range 0 184 + default 24 + help + This is the size in MB for the DMA zone. The DMA zone is used for + dedicated memory for large contiguous video buffers + endif diff --git a/arch/arm/plat-mxc/include/mach/hardware.h b/arch/arm/plat-mxc/include/mach/hardware.h old mode 100644 new mode 100755 index b40891f92750..ef964551b0ea --- a/arch/arm/plat-mxc/include/mach/hardware.h +++ b/arch/arm/plat-mxc/include/mach/hardware.h @@ -88,7 +88,7 @@ * AIPS2 0x83f00000+0x100000 -> 0xf4300000+0x100000 */ #define IMX_IO_P2V(x) ( \ - 0xf4000000 + \ + 0xf2000000 + \ (((x) & 0x50000000) >> 6) + \ (((x) & 0x0b000000) >> 4) + \ (((x) & 0x000fffff))) diff --git a/arch/arm/plat-mxc/include/mach/memory.h b/arch/arm/plat-mxc/include/mach/memory.h index e33df1969e9e..5a1721592900 100755 --- a/arch/arm/plat-mxc/include/mach/memory.h +++ b/arch/arm/plat-mxc/include/mach/memory.h @@ -63,9 +63,7 @@ #define CONSISTENT_DMA_SIZE SZ_4M #else -#if defined(CONFIG_ARCH_MX5) -#define CONSISTENT_DMA_SIZE (96 * SZ_1M) -#elif defined(CONFIG_ARCH_MX6) +#if defined(CONFIG_ARCH_MX5) || defined(CONFIG_ARCH_MX6) #define CONSISTENT_DMA_SIZE (184 * SZ_1M) #else #define CONSISTENT_DMA_SIZE (32 * SZ_1M) diff --git a/arch/arm/plat-mxc/include/mach/vmalloc.h b/arch/arm/plat-mxc/include/mach/vmalloc.h index ef6379c474be..44ea15a840f2 100644 --- a/arch/arm/plat-mxc/include/mach/vmalloc.h +++ b/arch/arm/plat-mxc/include/mach/vmalloc.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2000 Russell King. - * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright 2004-2011 Freescale Semiconductor, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,6 +17,6 @@ #define __ASM_ARCH_MXC_VMALLOC_H__ /* vmalloc ending address */ -#define VMALLOC_END 0xf4000000UL +#define VMALLOC_END 0xf2000000UL #endif /* __ASM_ARCH_MXC_VMALLOC_H__ */