regs-srom.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* linux/arch/arm/plat-samsung/include/plat/regs-srom.h
  2. *
  3. * Copyright (c) 2010 Samsung Electronics Co., Ltd.
  4. * http://www.samsung.com
  5. *
  6. * S5P SROMC register definitions
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef __PLAT_SAMSUNG_REGS_SROM_H
  13. #define __PLAT_SAMSUNG_REGS_SROM_H __FILE__
  14. #include <mach/map.h>
  15. #define S5P_SROMREG(x) (S5P_VA_SROMC + (x))
  16. #define S5P_SROM_BW S5P_SROMREG(0x0)
  17. #define S5P_SROM_BC0 S5P_SROMREG(0x4)
  18. #define S5P_SROM_BC1 S5P_SROMREG(0x8)
  19. #define S5P_SROM_BC2 S5P_SROMREG(0xc)
  20. #define S5P_SROM_BC3 S5P_SROMREG(0x10)
  21. #define S5P_SROM_BC4 S5P_SROMREG(0x14)
  22. #define S5P_SROM_BC5 S5P_SROMREG(0x18)
  23. /* one register BW holds 4 x 4-bit packed settings for NCS0 - NCS3 */
  24. #define S5P_SROM_BW__DATAWIDTH__SHIFT 0
  25. #define S5P_SROM_BW__ADDRMODE__SHIFT 1
  26. #define S5P_SROM_BW__WAITENABLE__SHIFT 2
  27. #define S5P_SROM_BW__BYTEENABLE__SHIFT 3
  28. #define S5P_SROM_BW__CS_MASK 0xf
  29. #define S5P_SROM_BW__NCS0__SHIFT 0
  30. #define S5P_SROM_BW__NCS1__SHIFT 4
  31. #define S5P_SROM_BW__NCS2__SHIFT 8
  32. #define S5P_SROM_BW__NCS3__SHIFT 12
  33. #define S5P_SROM_BW__NCS4__SHIFT 16
  34. #define S5P_SROM_BW__NCS5__SHIFT 20
  35. /* applies to same to BCS0 - BCS3 */
  36. #define S5P_SROM_BCX__PMC__SHIFT 0
  37. #define S5P_SROM_BCX__TACP__SHIFT 4
  38. #define S5P_SROM_BCX__TCAH__SHIFT 8
  39. #define S5P_SROM_BCX__TCOH__SHIFT 12
  40. #define S5P_SROM_BCX__TACC__SHIFT 16
  41. #define S5P_SROM_BCX__TCOS__SHIFT 24
  42. #define S5P_SROM_BCX__TACS__SHIFT 28
  43. #endif /* __PLAT_SAMSUNG_REGS_SROM_H */