memory.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. *
  3. * arch/arm/mach-u300/include/mach/memory.h
  4. *
  5. *
  6. * Copyright (C) 2007-2009 ST-Ericsson AB
  7. * License terms: GNU General Public License (GPL) version 2
  8. * Memory virtual/physical mapping constants.
  9. * Author: Linus Walleij <linus.walleij@stericsson.com>
  10. * Author: Jonas Aaberg <jonas.aberg@stericsson.com>
  11. */
  12. #ifndef __MACH_MEMORY_H
  13. #define __MACH_MEMORY_H
  14. #ifdef CONFIG_MACH_U300_DUAL_RAM
  15. #define PHYS_OFFSET UL(0x48000000)
  16. #define BOOT_PARAMS_OFFSET (PHYS_OFFSET + 0x100)
  17. #else
  18. #ifdef CONFIG_MACH_U300_2MB_ALIGNMENT_FIX
  19. #define PHYS_OFFSET (0x28000000 + \
  20. (CONFIG_MACH_U300_ACCESS_MEM_SIZE - \
  21. (CONFIG_MACH_U300_ACCESS_MEM_SIZE & 1))*1024*1024)
  22. #else
  23. #define PHYS_OFFSET (0x28000000 + \
  24. (CONFIG_MACH_U300_ACCESS_MEM_SIZE + \
  25. (CONFIG_MACH_U300_ACCESS_MEM_SIZE & 1))*1024*1024)
  26. #endif
  27. #define BOOT_PARAMS_OFFSET (0x28000000 + \
  28. (CONFIG_MACH_U300_ACCESS_MEM_SIZE + \
  29. (CONFIG_MACH_U300_ACCESS_MEM_SIZE & 1))*1024*1024 + 0x100)
  30. #endif
  31. /*
  32. * TCM memory whereabouts
  33. */
  34. #define ITCM_OFFSET 0xffff2000
  35. #define ITCM_END 0xffff3fff
  36. #define DTCM_OFFSET 0xffff4000
  37. #define DTCM_END 0xffff5fff
  38. /*
  39. * We enable a real big DMA buffer if need be.
  40. */
  41. #define CONSISTENT_DMA_SIZE SZ_4M
  42. #endif