tc.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * OMAP Traffic Controller
  4. *
  5. * Copyright (C) 2004 Nokia Corporation
  6. * Author: Imre Deak <[email protected]>
  7. */
  8. #ifndef __ASM_ARCH_TC_H
  9. #define __ASM_ARCH_TC_H
  10. #define TCMIF_BASE 0xfffecc00
  11. #define OMAP_TC_OCPT1_PRIOR (TCMIF_BASE + 0x00)
  12. #define OMAP_TC_EMIFS_PRIOR (TCMIF_BASE + 0x04)
  13. #define OMAP_TC_EMIFF_PRIOR (TCMIF_BASE + 0x08)
  14. #define EMIFS_CONFIG (TCMIF_BASE + 0x0c)
  15. #define EMIFS_CS0_CONFIG (TCMIF_BASE + 0x10)
  16. #define EMIFS_CS1_CONFIG (TCMIF_BASE + 0x14)
  17. #define EMIFS_CS2_CONFIG (TCMIF_BASE + 0x18)
  18. #define EMIFS_CS3_CONFIG (TCMIF_BASE + 0x1c)
  19. #define EMIFF_SDRAM_CONFIG (TCMIF_BASE + 0x20)
  20. #define EMIFF_MRS (TCMIF_BASE + 0x24)
  21. #define TC_TIMEOUT1 (TCMIF_BASE + 0x28)
  22. #define TC_TIMEOUT2 (TCMIF_BASE + 0x2c)
  23. #define TC_TIMEOUT3 (TCMIF_BASE + 0x30)
  24. #define TC_ENDIANISM (TCMIF_BASE + 0x34)
  25. #define EMIFF_SDRAM_CONFIG_2 (TCMIF_BASE + 0x3c)
  26. #define EMIF_CFG_DYNAMIC_WS (TCMIF_BASE + 0x40)
  27. #define EMIFS_ACS0 (TCMIF_BASE + 0x50)
  28. #define EMIFS_ACS1 (TCMIF_BASE + 0x54)
  29. #define EMIFS_ACS2 (TCMIF_BASE + 0x58)
  30. #define EMIFS_ACS3 (TCMIF_BASE + 0x5c)
  31. #define OMAP_TC_OCPT2_PRIOR (TCMIF_BASE + 0xd0)
  32. /* external EMIFS chipselect regions */
  33. #define OMAP_CS0_PHYS 0x00000000
  34. #define OMAP_CS0_SIZE SZ_64M
  35. #define OMAP_CS1_PHYS 0x04000000
  36. #define OMAP_CS1_SIZE SZ_64M
  37. #define OMAP_CS1A_PHYS OMAP_CS1_PHYS
  38. #define OMAP_CS1A_SIZE SZ_32M
  39. #define OMAP_CS1B_PHYS (OMAP_CS1A_PHYS + OMAP_CS1A_SIZE)
  40. #define OMAP_CS1B_SIZE SZ_32M
  41. #define OMAP_CS2_PHYS 0x08000000
  42. #define OMAP_CS2_SIZE SZ_64M
  43. #define OMAP_CS2A_PHYS OMAP_CS2_PHYS
  44. #define OMAP_CS2A_SIZE SZ_32M
  45. #define OMAP_CS2B_PHYS (OMAP_CS2A_PHYS + OMAP_CS2A_SIZE)
  46. #define OMAP_CS2B_SIZE SZ_32M
  47. #define OMAP_CS3_PHYS 0x0c000000
  48. #define OMAP_CS3_SIZE SZ_64M
  49. #ifndef __ASSEMBLER__
  50. /* EMIF Slow Interface Configuration Register */
  51. #define OMAP_EMIFS_CONFIG_FR (1 << 4)
  52. #define OMAP_EMIFS_CONFIG_PDE (1 << 3)
  53. #define OMAP_EMIFS_CONFIG_PWD_EN (1 << 2)
  54. #define OMAP_EMIFS_CONFIG_BM (1 << 1)
  55. #define OMAP_EMIFS_CONFIG_WP (1 << 0)
  56. #define EMIFS_CCS(n) (EMIFS_CS0_CONFIG + (4 * (n)))
  57. #define EMIFS_ACS(n) (EMIFS_ACS0 + (4 * (n)))
  58. #endif /* __ASSEMBLER__ */
  59. #endif /* __ASM_ARCH_TC_H */