blob: 90011d435f304ee57891b2487ecf8ceb4e4065c3 [file] [log] [blame]
Yoshihiro Shimodacbe9da02008-07-16 20:21:09 +09001#ifndef __ASM_SH_RENESAS_SH7785LCR_H
2#define __ASM_SH_RENESAS_SH7785LCR_H
3
4/*
5 * This board has 2 physical memory maps.
6 * It can be changed with DIP switch(S2-5).
7 *
8 * phys address | S2-5 = OFF | S2-5 = ON
9 * -----------------------------+---------------+---------------
10 * 0x00000000 - 0x03ffffff(CS0) | NOR Flash | NOR Flash
11 * 0x04000000 - 0x05ffffff(CS1) | PLD | PLD
Yoshihiro Shimoda7bce6c22009-05-11 06:51:28 +000012 * 0x06000000 - 0x07ffffff(CS1) | I2C | I2C
Yoshihiro Shimodacbe9da02008-07-16 20:21:09 +090013 * 0x08000000 - 0x0bffffff(CS2) | USB | DDR SDRAM
14 * 0x0c000000 - 0x0fffffff(CS3) | SD | DDR SDRAM
15 * 0x10000000 - 0x13ffffff(CS4) | SM107 | SM107
Yoshihiro Shimoda7bce6c22009-05-11 06:51:28 +000016 * 0x14000000 - 0x17ffffff(CS5) | reserved | USB
Yoshihiro Shimodacbe9da02008-07-16 20:21:09 +090017 * 0x18000000 - 0x1bffffff(CS6) | reserved | SD
18 * 0x40000000 - 0x5fffffff | DDR SDRAM | (cannot use)
19 *
20 */
21
22#define NOR_FLASH_ADDR 0x00000000
23#define NOR_FLASH_SIZE 0x04000000
24
25#define PLD_BASE_ADDR 0x04000000
26#define PLD_PCICR (PLD_BASE_ADDR + 0x00)
27#define PLD_LCD_BK_CONTR (PLD_BASE_ADDR + 0x02)
28#define PLD_LOCALCR (PLD_BASE_ADDR + 0x04)
29#define PLD_POFCR (PLD_BASE_ADDR + 0x06)
30#define PLD_LEDCR (PLD_BASE_ADDR + 0x08)
31#define PLD_SWSR (PLD_BASE_ADDR + 0x0a)
32#define PLD_VERSR (PLD_BASE_ADDR + 0x0c)
33#define PLD_MMSR (PLD_BASE_ADDR + 0x0e)
34
Yoshihiro Shimoda7bce6c22009-05-11 06:51:28 +000035#define PCA9564_ADDR 0x06000000 /* I2C */
36#define PCA9564_SIZE 0x00000100
37
Yoshihiro Shimodacbe9da02008-07-16 20:21:09 +090038#define SM107_MEM_ADDR 0x10000000
39#define SM107_MEM_SIZE 0x00e00000
40#define SM107_REG_ADDR 0x13e00000
41#define SM107_REG_SIZE 0x00200000
42
43#if defined(CONFIG_SH_SH7785LCR_29BIT_PHYSMAPS)
44#define R8A66597_ADDR 0x14000000 /* USB */
45#define CG200_ADDR 0x18000000 /* SD */
Yoshihiro Shimodacbe9da02008-07-16 20:21:09 +090046#else
47#define R8A66597_ADDR 0x08000000
48#define CG200_ADDR 0x0c000000
Yoshihiro Shimodacbe9da02008-07-16 20:21:09 +090049#endif
50
51#define R8A66597_SIZE 0x00000100
52#define CG200_SIZE 0x00010000
Yoshihiro Shimodacbe9da02008-07-16 20:21:09 +090053
54#endif /* __ASM_SH_RENESAS_SH7785LCR_H */
55