common.c 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * linux/arch/arm/plat-omap/common.c
  3. *
  4. * Code common to all OMAP machines.
  5. * The file is created by Tony Lindgren <tony@atomide.com>
  6. *
  7. * Copyright (C) 2009 Texas Instruments
  8. * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com>
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as
  12. * published by the Free Software Foundation.
  13. */
  14. #include <linux/kernel.h>
  15. #include <linux/init.h>
  16. #include <linux/io.h>
  17. #include <linux/dma-mapping.h>
  18. #include <plat/common.h>
  19. #include <linux/platform_data/dsp-omap.h>
  20. #include <plat/dma.h>
  21. #include <plat/omap-secure.h>
  22. void __init omap_reserve(void)
  23. {
  24. omap_dsp_reserve_sdram_memblock();
  25. omap_secure_ram_reserve_memblock();
  26. omap_barrier_reserve_memblock();
  27. }
  28. void __init omap_init_consistent_dma_size(void)
  29. {
  30. #ifdef CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE
  31. init_consistent_dma_size(CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE << 20);
  32. #endif
  33. }
  34. /*
  35. * Stub function for OMAP2 so that common files
  36. * continue to build when custom builds are used
  37. */
  38. int __weak omap_secure_ram_reserve_memblock(void)
  39. {
  40. return 0;
  41. }