Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270037
b: refs/heads/master
c: 009426a
h: refs/heads/master
i:
  270035: a3d813a
v: v3
  • Loading branch information
Jon Medhurst committed Aug 22, 2011
1 parent 3f13ff7 commit 38f2888
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99d1717dd7fecf2b10195b0d864323b952b4eba0
refs/heads/master: 009426a0ebd0fc4a230ab2c2295dbc8f7ba7e8dd
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-omap1/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ void __init omap1_map_common_io(void)
#endif

omap_sram_init();
omap_init_consistent_dma_size();
}

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
Expand Down Expand Up @@ -250,6 +249,7 @@ static void __init _omap2_map_common_io(void)

omap2_check_revision();
omap_sram_init();
omap_init_consistent_dma_size();
}

#ifdef CONFIG_SOC_OMAP2420
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/plat-omap/include/plat/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ extern void omap2_init_common_devices(struct omap_sdrc_params *sdrc_cs0,
void __iomem *omap_ioremap(unsigned long phys, size_t size, unsigned int type);
void omap_iounmap(volatile void __iomem *addr);

extern void __init omap_init_consistent_dma_size(void);

#endif

#endif
13 changes: 0 additions & 13 deletions trunk/arch/arm/plat-omap/include/plat/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,5 @@

#endif /* CONFIG_ARCH_OMAP15XX */

/* Override the ARM default */
#ifdef CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE

#if (CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE == 0)
#undef CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE
#define CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE 2
#endif

#define CONSISTENT_DMA_SIZE \
(((CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE + 1) & ~1) * 1024 * 1024)

#endif

#endif

8 changes: 8 additions & 0 deletions trunk/arch/arm/plat-omap/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <linux/module.h>
#include <linux/io.h>
#include <linux/mm.h>
#include <linux/dma-mapping.h>

#include <plat/omap7xx.h>
#include <plat/omap1510.h>
Expand Down Expand Up @@ -139,3 +140,10 @@ void omap_iounmap(volatile void __iomem *addr)
__iounmap(addr);
}
EXPORT_SYMBOL(omap_iounmap);

void __init omap_init_consistent_dma_size(void)
{
#ifdef CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE
init_consistent_dma_size(CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE << 20);
#endif
}

0 comments on commit 38f2888

Please sign in to comment.