sh7785lcr.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #ifndef __ASM_SH_RENESAS_SH7785LCR_H
  2. #define __ASM_SH_RENESAS_SH7785LCR_H
  3. /*
  4. * This board has 2 physical memory maps.
  5. * It can be changed with DIP switch(S2-5).
  6. *
  7. * phys address | S2-5 = OFF | S2-5 = ON
  8. * -----------------------------+---------------+---------------
  9. * 0x00000000 - 0x03ffffff(CS0) | NOR Flash | NOR Flash
  10. * 0x04000000 - 0x05ffffff(CS1) | PLD | PLD
  11. * 0x06000000 - 0x07ffffff(CS1) | I2C | I2C
  12. * 0x08000000 - 0x0bffffff(CS2) | USB | DDR SDRAM
  13. * 0x0c000000 - 0x0fffffff(CS3) | SD | DDR SDRAM
  14. * 0x10000000 - 0x13ffffff(CS4) | SM107 | SM107
  15. * 0x14000000 - 0x17ffffff(CS5) | reserved | USB
  16. * 0x18000000 - 0x1bffffff(CS6) | reserved | SD
  17. * 0x40000000 - 0x5fffffff | DDR SDRAM | (cannot use)
  18. *
  19. */
  20. #define NOR_FLASH_ADDR 0x00000000
  21. #define NOR_FLASH_SIZE 0x04000000
  22. #define PLD_BASE_ADDR 0x04000000
  23. #define PLD_PCICR (PLD_BASE_ADDR + 0x00)
  24. #define PLD_LCD_BK_CONTR (PLD_BASE_ADDR + 0x02)
  25. #define PLD_LOCALCR (PLD_BASE_ADDR + 0x04)
  26. #define PLD_POFCR (PLD_BASE_ADDR + 0x06)
  27. #define PLD_LEDCR (PLD_BASE_ADDR + 0x08)
  28. #define PLD_SWSR (PLD_BASE_ADDR + 0x0a)
  29. #define PLD_VERSR (PLD_BASE_ADDR + 0x0c)
  30. #define PLD_MMSR (PLD_BASE_ADDR + 0x0e)
  31. #define PCA9564_ADDR 0x06000000 /* I2C */
  32. #define PCA9564_SIZE 0x00000100
  33. #define PCA9564_PROTO_32BIT_ADDR 0x14000000
  34. #define SM107_MEM_ADDR 0x10000000
  35. #define SM107_MEM_SIZE 0x00e00000
  36. #define SM107_REG_ADDR 0x13e00000
  37. #define SM107_REG_SIZE 0x00200000
  38. #if defined(CONFIG_SH_SH7785LCR_29BIT_PHYSMAPS)
  39. #define R8A66597_ADDR 0x14000000 /* USB */
  40. #define CG200_ADDR 0x18000000 /* SD */
  41. #else
  42. #define R8A66597_ADDR 0x08000000
  43. #define CG200_ADDR 0x0c000000
  44. #endif
  45. #define R8A66597_SIZE 0x00000100
  46. #define CG200_SIZE 0x00010000
  47. #endif /* __ASM_SH_RENESAS_SH7785LCR_H */