diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-11-16 04:42:46 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-11-16 04:42:46 -0500 |
commit | dcca5cf07bcd355e4e1bd51609efe7b7d5d0a7b8 (patch) | |
tree | fb198f6a52f4790ea2468a421fc8c91a3b3648c8 /arch/arm/plat-omap | |
parent | 3c3dd225819112e56554162c6b37e61a31924e0c (diff) | |
parent | 966458f89d84ef5792893a01e2b7a5218c7b311d (diff) |
Merge branch '3.8/vram-conversion' of git://gitorious.org/linux-omap-dss2/linux
Conflicts:
drivers/video/omap2/dss/Kconfig
drivers/video/omap2/omapfb/omapfb-ioctl.c
drivers/video/omap2/omapfb/omapfb-main.c
Merge changes to make omapfb use common dma_alloc, and remove omap's
custom vram allocator.
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/common.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/fb.c | 5 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/vram.h | 43 |
3 files changed, 3 insertions, 47 deletions
diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c index 111315a69354..d21ed18355ae 100644 --- a/arch/arm/plat-omap/common.c +++ b/arch/arm/plat-omap/common.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <linux/dma-mapping.h> | 17 | #include <linux/dma-mapping.h> |
18 | 18 | ||
19 | #include <plat/common.h> | 19 | #include <plat/common.h> |
20 | #include <plat/vram.h> | ||
21 | #include <linux/platform_data/dsp-omap.h> | 20 | #include <linux/platform_data/dsp-omap.h> |
22 | #include <plat/dma.h> | 21 | #include <plat/dma.h> |
23 | 22 | ||
@@ -25,7 +24,6 @@ | |||
25 | 24 | ||
26 | void __init omap_reserve(void) | 25 | void __init omap_reserve(void) |
27 | { | 26 | { |
28 | omap_vram_reserve_sdram_memblock(); | ||
29 | omap_dsp_reserve_sdram_memblock(); | 27 | omap_dsp_reserve_sdram_memblock(); |
30 | omap_secure_ram_reserve_memblock(); | 28 | omap_secure_ram_reserve_memblock(); |
31 | omap_barrier_reserve_memblock(); | 29 | omap_barrier_reserve_memblock(); |
diff --git a/arch/arm/plat-omap/fb.c b/arch/arm/plat-omap/fb.c index f868caeedfd6..6df0c215fdb4 100644 --- a/arch/arm/plat-omap/fb.c +++ b/arch/arm/plat-omap/fb.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/memblock.h> | 29 | #include <linux/memblock.h> |
30 | #include <linux/io.h> | 30 | #include <linux/io.h> |
31 | #include <linux/omapfb.h> | 31 | #include <linux/omapfb.h> |
32 | #include <linux/dma-mapping.h> | ||
32 | 33 | ||
33 | #include <mach/hardware.h> | 34 | #include <mach/hardware.h> |
34 | #include <asm/mach/map.h> | 35 | #include <asm/mach/map.h> |
@@ -106,7 +107,7 @@ static struct platform_device omap_fb_device = { | |||
106 | .id = -1, | 107 | .id = -1, |
107 | .dev = { | 108 | .dev = { |
108 | .dma_mask = &omap_fb_dma_mask, | 109 | .dma_mask = &omap_fb_dma_mask, |
109 | .coherent_dma_mask = ~(u32)0, | 110 | .coherent_dma_mask = DMA_BIT_MASK(32), |
110 | .platform_data = &omapfb_config, | 111 | .platform_data = &omapfb_config, |
111 | }, | 112 | }, |
112 | .num_resources = 0, | 113 | .num_resources = 0, |
@@ -142,7 +143,7 @@ static struct platform_device omap_fb_device = { | |||
142 | .id = -1, | 143 | .id = -1, |
143 | .dev = { | 144 | .dev = { |
144 | .dma_mask = &omap_fb_dma_mask, | 145 | .dma_mask = &omap_fb_dma_mask, |
145 | .coherent_dma_mask = ~(u32)0, | 146 | .coherent_dma_mask = DMA_BIT_MASK(32), |
146 | .platform_data = &omapfb_config, | 147 | .platform_data = &omapfb_config, |
147 | }, | 148 | }, |
148 | .num_resources = 0, | 149 | .num_resources = 0, |
diff --git a/arch/arm/plat-omap/include/plat/vram.h b/arch/arm/plat-omap/include/plat/vram.h deleted file mode 100644 index 4d65b7d06e6c..000000000000 --- a/arch/arm/plat-omap/include/plat/vram.h +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | /* | ||
2 | * VRAM manager for OMAP | ||
3 | * | ||
4 | * Copyright (C) 2009 Nokia Corporation | ||
5 | * Author: Tomi Valkeinen <tomi.valkeinen@nokia.com> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, but | ||
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | * General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License along | ||
17 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
19 | */ | ||
20 | |||
21 | #ifndef __OMAP_VRAM_H__ | ||
22 | #define __OMAP_VRAM_H__ | ||
23 | |||
24 | #include <linux/types.h> | ||
25 | |||
26 | extern int omap_vram_add_region(unsigned long paddr, size_t size); | ||
27 | extern int omap_vram_free(unsigned long paddr, size_t size); | ||
28 | extern int omap_vram_alloc(size_t size, unsigned long *paddr); | ||
29 | extern int omap_vram_reserve(unsigned long paddr, size_t size); | ||
30 | extern void omap_vram_get_info(unsigned long *vram, unsigned long *free_vram, | ||
31 | unsigned long *largest_free_block); | ||
32 | |||
33 | #ifdef CONFIG_OMAP2_VRAM | ||
34 | extern void omap_vram_set_sdram_vram(u32 size, u32 start); | ||
35 | |||
36 | extern void omap_vram_reserve_sdram_memblock(void); | ||
37 | #else | ||
38 | static inline void omap_vram_set_sdram_vram(u32 size, u32 start) { } | ||
39 | |||
40 | static inline void omap_vram_reserve_sdram_memblock(void) { } | ||
41 | #endif | ||
42 | |||
43 | #endif | ||