]> code.ossystems Code Review - meta-freescale.git/blob
cdbb0061a3ba0cec7cb83615f0c169b5a7d367eb
[meta-freescale.git] /
1 From 690f2f35563a1f7a89b796f9b0e7996627dbda21 Mon Sep 17 00:00:00 2001
2 From: Robin Gong <B38343@freescale.com>
3 Date: Fri, 18 Nov 2011 10:52:32 +0800
4 Subject: [PATCH] ENGR00162578 DMA mx5: increase DMA Zone size to 112
5
6 Increase DMA zone size from 96 to 112 size, and default size is 112,
7 change imx5_defconfig, change SPBA0_BASE_ADDR_VIRT from 0xFB100000 to
8 0xF7C00000 , so that it can't overlap with DMA zone
9 Signed-off-by: Robin Gong <B38343@freescale.com>
10 (cherry picked from commit 2d04dcb9b717a7c46358987f41a03141eccc42b0)
11 ---
12  arch/arm/configs/imx5_defconfig         |    7 ++++---
13  arch/arm/plat-mxc/Kconfig               |    4 ++--
14  arch/arm/plat-mxc/include/mach/memory.h |    4 ++--
15  arch/arm/plat-mxc/include/mach/mx5x.h   |    2 +-
16  4 files changed, 9 insertions(+), 8 deletions(-)
17
18 diff --git a/arch/arm/configs/imx5_defconfig b/arch/arm/configs/imx5_defconfig
19 index 419adde..3a0cc96 100644
20 --- a/arch/arm/configs/imx5_defconfig
21 +++ b/arch/arm/configs/imx5_defconfig
22 @@ -1,7 +1,7 @@
23  #
24  # Automatically generated make config: don't edit
25  # Linux kernel version: 2.6.35.3
26 -# Wed Jun  1 20:11:44 2011
27 +# Fri Nov 18 10:24:37 2011
28  #
29  CONFIG_ARM=y
30  CONFIG_HAVE_PWM=y
31 @@ -266,7 +266,7 @@ CONFIG_ARCH_MXC_HAS_NFC_V3=y
32  CONFIG_ARCH_MXC_HAS_NFC_V3_2=y
33  CONFIG_MXC_BLUETOOTH_RFKILL=y
34  CONFIG_IRAM_ALLOC=y
35 -CONFIG_DMA_ZONE_SIZE=96
36 +CONFIG_DMA_ZONE_SIZE=112
37  CONFIG_ISP1504_MXC=y
38  CONFIG_UTMI_MXC=y
39  # CONFIG_MXC_IRQ_PRIOR is not set
40 @@ -1230,9 +1230,9 @@ CONFIG_SENSORS_MAX17135=y
41  # CONFIG_SENSORS_W83627EHF is not set
42  # CONFIG_SENSORS_LIS3_SPI is not set
43  # CONFIG_SENSORS_LIS3_I2C is not set
44 +CONFIG_SENSORS_IMX_AHCI=y
45  CONFIG_SENSORS_MAG3110=y
46  CONFIG_SENSORS_ISL29003=y
47 -CONFIG_SENSORS_IMX_AHCI=y
48  CONFIG_MXC_MMA8450=y
49  CONFIG_MXC_MMA8451=y
50  # CONFIG_THERMAL is not set
51 @@ -2112,6 +2112,7 @@ CONFIG_MXC_MC13892_POWER=y
52  CONFIG_MXC_MC34708_ADC=y
53  CONFIG_MXC_MC34708_RTC=y
54  CONFIG_MXC_MC34708_BATTERY=m
55 +# CONFIG_MXC_MC34708_PWM is not set
56  # CONFIG_MXC_PMIC_MC9S08DZ60 is not set
57  
58  #
59 diff --git a/arch/arm/plat-mxc/Kconfig b/arch/arm/plat-mxc/Kconfig
60 index 926379f..7a4412a 100644
61 --- a/arch/arm/plat-mxc/Kconfig
62 +++ b/arch/arm/plat-mxc/Kconfig
63 @@ -87,8 +87,8 @@ config MXC_FB_IRAM
64  
65  config DMA_ZONE_SIZE
66         int "DMA memory zone size"
67 -       range 0 96
68 -       default 24
69 +       range 0 112
70 +       default 112
71         help
72           This is the size in MB for the DMA zone. The DMA zone is used for
73           dedicated memory for large contiguous video buffers
74 diff --git a/arch/arm/plat-mxc/include/mach/memory.h b/arch/arm/plat-mxc/include/mach/memory.h
75 index 83532f6..2e66516 100644
76 --- a/arch/arm/plat-mxc/include/mach/memory.h
77 +++ b/arch/arm/plat-mxc/include/mach/memory.h
78 @@ -1,5 +1,5 @@
79  /*
80 - * Copyright (C) 2004-2010 Freescale Semiconductor, Inc. All Rights Reserved.
81 + * Copyright (C) 2004-2011 Freescale Semiconductor, Inc. All Rights Reserved.
82   */
83  
84  /*
85 @@ -63,7 +63,7 @@
86  #else
87  
88  #ifdef CONFIG_ARCH_MX5
89 -#define CONSISTENT_DMA_SIZE    (96 * SZ_1M)
90 +#define CONSISTENT_DMA_SIZE    (112 * SZ_1M)
91  #else
92  #define CONSISTENT_DMA_SIZE    (32 * SZ_1M)
93  #endif
94 diff --git a/arch/arm/plat-mxc/include/mach/mx5x.h b/arch/arm/plat-mxc/include/mach/mx5x.h
95 index 5c16710..96f6686 100644
96 --- a/arch/arm/plat-mxc/include/mach/mx5x.h
97 +++ b/arch/arm/plat-mxc/include/mach/mx5x.h
98 @@ -194,7 +194,7 @@
99   * SPBA global module enabled #0
100   */
101  #define SPBA0_BASE_ADDR        0x70000000
102 -#define SPBA0_BASE_ADDR_VIRT   0xFB100000
103 +#define SPBA0_BASE_ADDR_VIRT   0xF7C00000
104  #define SPBA0_SIZE             SZ_1M
105  
106  #define MMC_SDHC1_BASE_ADDR    (SPBA0_BASE_ADDR + 0x00004000)
107 -- 
108 1.5.4.4
109