regs-smc.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * linux/arch/arm/mach-mmp/include/mach/regs-smc.h
  3. *
  4. * Static Memory Controller Registers
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef __ASM_MACH_REGS_SMC_H
  11. #define __ASM_MACH_REGS_SMC_H
  12. #include <mach/addr-map.h>
  13. #define SMC_VIRT_BASE (AXI_VIRT_BASE + 0x83800)
  14. #define SMC_REG(x) (SMC_VIRT_BASE + (x))
  15. #define SMC_MSC0 SMC_REG(0x0020)
  16. #define SMC_MSC1 SMC_REG(0x0024)
  17. #define SMC_SXCNFG0 SMC_REG(0x0030)
  18. #define SMC_SXCNFG1 SMC_REG(0x0034)
  19. #define SMC_MEMCLKCFG SMC_REG(0x0068)
  20. #define SMC_CSDFICFG0 SMC_REG(0x0090)
  21. #define SMC_CSDFICFG1 SMC_REG(0x0094)
  22. #define SMC_CLK_RET_DEL SMC_REG(0x00b0)
  23. #define SMC_ADV_RET_DEL SMC_REG(0x00b4)
  24. #define SMC_CSADRMAP0 SMC_REG(0x00c0)
  25. #define SMC_CSADRMAP1 SMC_REG(0x00c4)
  26. #define SMC_WE_AP0 SMC_REG(0x00e0)
  27. #define SMC_WE_AP1 SMC_REG(0x00e4)
  28. #define SMC_OE_AP0 SMC_REG(0x00f0)
  29. #define SMC_OE_AP1 SMC_REG(0x00f4)
  30. #define SMC_ADV_AP0 SMC_REG(0x0100)
  31. #define SMC_ADV_AP1 SMC_REG(0x0104)
  32. #endif /* __ASM_MACH_REGS_SMC_H */