0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef __ASM_ARCH_TC_H
0010 #define __ASM_ARCH_TC_H
0011
0012 #define TCMIF_BASE 0xfffecc00
0013 #define OMAP_TC_OCPT1_PRIOR (TCMIF_BASE + 0x00)
0014 #define OMAP_TC_EMIFS_PRIOR (TCMIF_BASE + 0x04)
0015 #define OMAP_TC_EMIFF_PRIOR (TCMIF_BASE + 0x08)
0016 #define EMIFS_CONFIG (TCMIF_BASE + 0x0c)
0017 #define EMIFS_CS0_CONFIG (TCMIF_BASE + 0x10)
0018 #define EMIFS_CS1_CONFIG (TCMIF_BASE + 0x14)
0019 #define EMIFS_CS2_CONFIG (TCMIF_BASE + 0x18)
0020 #define EMIFS_CS3_CONFIG (TCMIF_BASE + 0x1c)
0021 #define EMIFF_SDRAM_CONFIG (TCMIF_BASE + 0x20)
0022 #define EMIFF_MRS (TCMIF_BASE + 0x24)
0023 #define TC_TIMEOUT1 (TCMIF_BASE + 0x28)
0024 #define TC_TIMEOUT2 (TCMIF_BASE + 0x2c)
0025 #define TC_TIMEOUT3 (TCMIF_BASE + 0x30)
0026 #define TC_ENDIANISM (TCMIF_BASE + 0x34)
0027 #define EMIFF_SDRAM_CONFIG_2 (TCMIF_BASE + 0x3c)
0028 #define EMIF_CFG_DYNAMIC_WS (TCMIF_BASE + 0x40)
0029 #define EMIFS_ACS0 (TCMIF_BASE + 0x50)
0030 #define EMIFS_ACS1 (TCMIF_BASE + 0x54)
0031 #define EMIFS_ACS2 (TCMIF_BASE + 0x58)
0032 #define EMIFS_ACS3 (TCMIF_BASE + 0x5c)
0033 #define OMAP_TC_OCPT2_PRIOR (TCMIF_BASE + 0xd0)
0034
0035
0036 #define OMAP_CS0_PHYS 0x00000000
0037 #define OMAP_CS0_SIZE SZ_64M
0038
0039 #define OMAP_CS1_PHYS 0x04000000
0040 #define OMAP_CS1_SIZE SZ_64M
0041
0042 #define OMAP_CS1A_PHYS OMAP_CS1_PHYS
0043 #define OMAP_CS1A_SIZE SZ_32M
0044
0045 #define OMAP_CS1B_PHYS (OMAP_CS1A_PHYS + OMAP_CS1A_SIZE)
0046 #define OMAP_CS1B_SIZE SZ_32M
0047
0048 #define OMAP_CS2_PHYS 0x08000000
0049 #define OMAP_CS2_SIZE SZ_64M
0050
0051 #define OMAP_CS2A_PHYS OMAP_CS2_PHYS
0052 #define OMAP_CS2A_SIZE SZ_32M
0053
0054 #define OMAP_CS2B_PHYS (OMAP_CS2A_PHYS + OMAP_CS2A_SIZE)
0055 #define OMAP_CS2B_SIZE SZ_32M
0056
0057 #define OMAP_CS3_PHYS 0x0c000000
0058 #define OMAP_CS3_SIZE SZ_64M
0059
0060 #ifndef __ASSEMBLER__
0061
0062
0063 #define OMAP_EMIFS_CONFIG_FR (1 << 4)
0064 #define OMAP_EMIFS_CONFIG_PDE (1 << 3)
0065 #define OMAP_EMIFS_CONFIG_PWD_EN (1 << 2)
0066 #define OMAP_EMIFS_CONFIG_BM (1 << 1)
0067 #define OMAP_EMIFS_CONFIG_WP (1 << 0)
0068
0069 #define EMIFS_CCS(n) (EMIFS_CS0_CONFIG + (4 * (n)))
0070 #define EMIFS_ACS(n) (EMIFS_ACS0 + (4 * (n)))
0071
0072 #endif
0073
0074 #endif