diff options
Diffstat (limited to 'arch/arm/mach-shmobile/include')
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/clock.h | 8 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/common.h | 6 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/head-ap4evb.txt | 93 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/irqs.h | 5 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/memory.h | 7 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/mmc-ap4eb.h | 29 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/mmc.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/r8a7740.h | 491 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/r8a7778.h | 11 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/r8a7779.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/sh7372.h | 393 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/zboot.h | 6 |
12 files changed, 35 insertions, 1021 deletions
diff --git a/arch/arm/mach-shmobile/include/mach/clock.h b/arch/arm/mach-shmobile/include/mach/clock.h index 76ac61292e48..03e56074928c 100644 --- a/arch/arm/mach-shmobile/include/mach/clock.h +++ b/arch/arm/mach-shmobile/include/mach/clock.h | |||
@@ -24,16 +24,16 @@ struct clk name = { \ | |||
24 | } | 24 | } |
25 | 25 | ||
26 | #define SH_FIXED_RATIO_CLK(name, p, r) \ | 26 | #define SH_FIXED_RATIO_CLK(name, p, r) \ |
27 | static SH_FIXED_RATIO_CLKg(name, p, r); | 27 | static SH_FIXED_RATIO_CLKg(name, p, r) |
28 | 28 | ||
29 | #define SH_FIXED_RATIO_CLK_SET(name, p, m, d) \ | 29 | #define SH_FIXED_RATIO_CLK_SET(name, p, m, d) \ |
30 | SH_CLK_RATIO(name, m, d); \ | 30 | SH_CLK_RATIO(name, m, d); \ |
31 | SH_FIXED_RATIO_CLK(name, p, name); | 31 | SH_FIXED_RATIO_CLK(name, p, name) |
32 | 32 | ||
33 | #define SH_CLK_SET_RATIO(p, m, d) \ | 33 | #define SH_CLK_SET_RATIO(p, m, d) \ |
34 | { \ | 34 | do { \ |
35 | (p)->mul = m; \ | 35 | (p)->mul = m; \ |
36 | (p)->div = d; \ | 36 | (p)->div = d; \ |
37 | } | 37 | } while (0) |
38 | 38 | ||
39 | #endif | 39 | #endif |
diff --git a/arch/arm/mach-shmobile/include/mach/common.h b/arch/arm/mach-shmobile/include/mach/common.h index 4634a5d4b63f..e818f029d8e3 100644 --- a/arch/arm/mach-shmobile/include/mach/common.h +++ b/arch/arm/mach-shmobile/include/mach/common.h | |||
@@ -7,8 +7,10 @@ extern void shmobile_setup_delay(unsigned int max_cpu_core_mhz, | |||
7 | unsigned int mult, unsigned int div); | 7 | unsigned int mult, unsigned int div); |
8 | struct twd_local_timer; | 8 | struct twd_local_timer; |
9 | extern void shmobile_setup_console(void); | 9 | extern void shmobile_setup_console(void); |
10 | extern void shmobile_secondary_vector(void); | 10 | extern void shmobile_boot_vector(void); |
11 | extern void shmobile_secondary_vector_scu(void); | 11 | extern unsigned long shmobile_boot_fn; |
12 | extern unsigned long shmobile_boot_arg; | ||
13 | extern void shmobile_boot_scu(void); | ||
12 | struct clk; | 14 | struct clk; |
13 | extern int shmobile_clk_init(void); | 15 | extern int shmobile_clk_init(void); |
14 | extern void shmobile_handle_irq_intc(struct pt_regs *); | 16 | extern void shmobile_handle_irq_intc(struct pt_regs *); |
diff --git a/arch/arm/mach-shmobile/include/mach/head-ap4evb.txt b/arch/arm/mach-shmobile/include/mach/head-ap4evb.txt deleted file mode 100644 index 9f134dfeffdc..000000000000 --- a/arch/arm/mach-shmobile/include/mach/head-ap4evb.txt +++ /dev/null | |||
@@ -1,93 +0,0 @@ | |||
1 | LIST "partner-jet-setup.txt" | ||
2 | LIST "(C) Copyright 2010 Renesas Solutions Corp" | ||
3 | LIST "Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>" | ||
4 | |||
5 | LIST "RWT Setting" | ||
6 | EW 0xE6020004, 0xA500 | ||
7 | EW 0xE6030004, 0xA500 | ||
8 | |||
9 | LIST "GPIO Setting" | ||
10 | EB 0xE6051013, 0xA2 | ||
11 | |||
12 | LIST "CPG" | ||
13 | ED 0xE61500C0, 0x00000002 | ||
14 | |||
15 | WAIT 1, 0xFE40009C | ||
16 | |||
17 | LIST "FRQCR" | ||
18 | ED 0xE6150000, 0x2D1305C3 | ||
19 | ED 0xE61500E0, 0x9E40358E | ||
20 | ED 0xE6150004, 0x80331050 | ||
21 | |||
22 | WAIT 1, 0xFE40009C | ||
23 | |||
24 | ED 0xE61500E4, 0x00002000 | ||
25 | |||
26 | WAIT 1, 0xFE40009C | ||
27 | |||
28 | LIST "PLL" | ||
29 | ED 0xE6150028, 0x00004000 | ||
30 | |||
31 | WAIT 1, 0xFE40009C | ||
32 | |||
33 | ED 0xE615002C, 0x93000040 | ||
34 | |||
35 | WAIT 1, 0xFE40009C | ||
36 | |||
37 | LIST "SUB/USBClk" | ||
38 | ED 0xE6150080, 0x00000180 | ||
39 | |||
40 | LIST "BSC" | ||
41 | ED 0xFEC10000, 0x00E0001B | ||
42 | |||
43 | LIST "SBSC1" | ||
44 | ED 0xFE400354, 0x01AD8000 | ||
45 | ED 0xFE400354, 0x01AD8001 | ||
46 | |||
47 | WAIT 5, 0xFE40009C | ||
48 | |||
49 | ED 0xFE400008, 0xBCC90151 | ||
50 | ED 0xFE400040, 0x41774113 | ||
51 | ED 0xFE400044, 0x2712E229 | ||
52 | ED 0xFE400048, 0x20C18505 | ||
53 | ED 0xFE40004C, 0x00110209 | ||
54 | ED 0xFE400010, 0x00000087 | ||
55 | |||
56 | WAIT 30, 0xFE40009C | ||
57 | |||
58 | ED 0xFE400084, 0x0000003F | ||
59 | EB 0xFE500000, 0x00 | ||
60 | |||
61 | WAIT 5, 0xFE40009C | ||
62 | |||
63 | ED 0xFE400084, 0x0000FF0A | ||
64 | EB 0xFE500000, 0x00 | ||
65 | |||
66 | WAIT 1, 0xFE40009C | ||
67 | |||
68 | ED 0xFE400084, 0x00002201 | ||
69 | EB 0xFE500000, 0x00 | ||
70 | ED 0xFE400084, 0x00000302 | ||
71 | EB 0xFE500000, 0x00 | ||
72 | EB 0xFE5C0000, 0x00 | ||
73 | ED 0xFE400008, 0xBCC90159 | ||
74 | ED 0xFE40008C, 0x88800004 | ||
75 | ED 0xFE400094, 0x00000004 | ||
76 | ED 0xFE400028, 0xA55A0032 | ||
77 | ED 0xFE40002C, 0xA55A000C | ||
78 | ED 0xFE400020, 0xA55A2048 | ||
79 | ED 0xFE400008, 0xBCC90959 | ||
80 | |||
81 | LIST "Change CPGA setting" | ||
82 | ED 0xE61500E0, 0x9E40352E | ||
83 | ED 0xE6150004, 0x80331050 | ||
84 | |||
85 | WAIT 1, 0xFE40009C | ||
86 | |||
87 | ED 0xFE400354, 0x01AD8002 | ||
88 | |||
89 | LIST "SCIF0 - Serial port for earlyprintk" | ||
90 | EB 0xE6053098, 0xe1 | ||
91 | EW 0xE6C40000, 0x0000 | ||
92 | EB 0xE6C40004, 0x19 | ||
93 | EW 0xE6C40008, 0x0030 | ||
diff --git a/arch/arm/mach-shmobile/include/mach/irqs.h b/arch/arm/mach-shmobile/include/mach/irqs.h index b2074e2acb15..d241bfd6926d 100644 --- a/arch/arm/mach-shmobile/include/mach/irqs.h +++ b/arch/arm/mach-shmobile/include/mach/irqs.h | |||
@@ -16,4 +16,9 @@ | |||
16 | #define IRQPIN_BASE 2000 | 16 | #define IRQPIN_BASE 2000 |
17 | #define irq_pin(nr) ((nr) + IRQPIN_BASE) | 17 | #define irq_pin(nr) ((nr) + IRQPIN_BASE) |
18 | 18 | ||
19 | /* GPIO IRQ */ | ||
20 | #define _GPIO_IRQ_BASE 2500 | ||
21 | #define GPIO_IRQ_BASE(x) (_GPIO_IRQ_BASE + (32 * x)) | ||
22 | #define GPIO_IRQ(x, y) (_GPIO_IRQ_BASE + (32 * x) + y) | ||
23 | |||
19 | #endif /* __ASM_MACH_IRQS_H */ | 24 | #endif /* __ASM_MACH_IRQS_H */ |
diff --git a/arch/arm/mach-shmobile/include/mach/memory.h b/arch/arm/mach-shmobile/include/mach/memory.h deleted file mode 100644 index 0ffbe8155c76..000000000000 --- a/arch/arm/mach-shmobile/include/mach/memory.h +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | #ifndef __ASM_MACH_MEMORY_H | ||
2 | #define __ASM_MACH_MEMORY_H | ||
3 | |||
4 | #define PLAT_PHYS_OFFSET UL(CONFIG_MEMORY_START) | ||
5 | #define MEM_SIZE UL(CONFIG_MEMORY_SIZE) | ||
6 | |||
7 | #endif /* __ASM_MACH_MEMORY_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/mmc-ap4eb.h b/arch/arm/mach-shmobile/include/mach/mmc-ap4eb.h deleted file mode 100644 index db59fdbda860..000000000000 --- a/arch/arm/mach-shmobile/include/mach/mmc-ap4eb.h +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | #ifndef MMC_AP4EB_H | ||
2 | #define MMC_AP4EB_H | ||
3 | |||
4 | #define PORT185CR (void __iomem *)0xe60520b9 | ||
5 | #define PORT186CR (void __iomem *)0xe60520ba | ||
6 | #define PORT187CR (void __iomem *)0xe60520bb | ||
7 | #define PORT188CR (void __iomem *)0xe60520bc | ||
8 | |||
9 | #define PORTR191_160DR (void __iomem *)0xe6056014 | ||
10 | |||
11 | static inline void mmc_init_progress(void) | ||
12 | { | ||
13 | /* Initialise LEDS1-4 | ||
14 | * registers: PORT185CR-PORT188CR (LED1-LED4 Control) | ||
15 | * value: 0x10 - enable output | ||
16 | */ | ||
17 | __raw_writeb(0x10, PORT185CR); | ||
18 | __raw_writeb(0x10, PORT186CR); | ||
19 | __raw_writeb(0x10, PORT187CR); | ||
20 | __raw_writeb(0x10, PORT188CR); | ||
21 | } | ||
22 | |||
23 | static inline void mmc_update_progress(int n) | ||
24 | { | ||
25 | __raw_writel((__raw_readl(PORTR191_160DR) & ~(0xf << 25)) | | ||
26 | (1 << (25 + n)), PORTR191_160DR); | ||
27 | } | ||
28 | |||
29 | #endif /* MMC_AP4EB_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/mmc.h b/arch/arm/mach-shmobile/include/mach/mmc.h index 21a59db638bb..e979b8fc1da2 100644 --- a/arch/arm/mach-shmobile/include/mach/mmc.h +++ b/arch/arm/mach-shmobile/include/mach/mmc.h | |||
@@ -7,9 +7,7 @@ | |||
7 | * | 7 | * |
8 | **************************************************/ | 8 | **************************************************/ |
9 | 9 | ||
10 | #ifdef CONFIG_MACH_AP4EVB | 10 | #ifdef CONFIG_MACH_MACKEREL |
11 | #include "mach/mmc-ap4eb.h" | ||
12 | #elif defined(CONFIG_MACH_MACKEREL) | ||
13 | #include "mach/mmc-mackerel.h" | 11 | #include "mach/mmc-mackerel.h" |
14 | #else | 12 | #else |
15 | #error "unsupported board." | 13 | #error "unsupported board." |
diff --git a/arch/arm/mach-shmobile/include/mach/r8a7740.h b/arch/arm/mach-shmobile/include/mach/r8a7740.h index abdc4d4efa28..b34d19b5ca5c 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7740.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7740.h | |||
@@ -28,494 +28,6 @@ | |||
28 | #define MD_CK1 (1 << 1) | 28 | #define MD_CK1 (1 << 1) |
29 | #define MD_CK0 (1 << 0) | 29 | #define MD_CK0 (1 << 0) |
30 | 30 | ||
31 | /* | ||
32 | * Pin Function Controller: | ||
33 | * GPIO_FN_xx - GPIO used to select pin function | ||
34 | * GPIO_PORTxx - GPIO mapped to real I/O pin on CPU | ||
35 | */ | ||
36 | enum { | ||
37 | /* PORT */ | ||
38 | GPIO_PORT0, GPIO_PORT1, GPIO_PORT2, GPIO_PORT3, GPIO_PORT4, | ||
39 | GPIO_PORT5, GPIO_PORT6, GPIO_PORT7, GPIO_PORT8, GPIO_PORT9, | ||
40 | |||
41 | GPIO_PORT10, GPIO_PORT11, GPIO_PORT12, GPIO_PORT13, GPIO_PORT14, | ||
42 | GPIO_PORT15, GPIO_PORT16, GPIO_PORT17, GPIO_PORT18, GPIO_PORT19, | ||
43 | |||
44 | GPIO_PORT20, GPIO_PORT21, GPIO_PORT22, GPIO_PORT23, GPIO_PORT24, | ||
45 | GPIO_PORT25, GPIO_PORT26, GPIO_PORT27, GPIO_PORT28, GPIO_PORT29, | ||
46 | |||
47 | GPIO_PORT30, GPIO_PORT31, GPIO_PORT32, GPIO_PORT33, GPIO_PORT34, | ||
48 | GPIO_PORT35, GPIO_PORT36, GPIO_PORT37, GPIO_PORT38, GPIO_PORT39, | ||
49 | |||
50 | GPIO_PORT40, GPIO_PORT41, GPIO_PORT42, GPIO_PORT43, GPIO_PORT44, | ||
51 | GPIO_PORT45, GPIO_PORT46, GPIO_PORT47, GPIO_PORT48, GPIO_PORT49, | ||
52 | |||
53 | GPIO_PORT50, GPIO_PORT51, GPIO_PORT52, GPIO_PORT53, GPIO_PORT54, | ||
54 | GPIO_PORT55, GPIO_PORT56, GPIO_PORT57, GPIO_PORT58, GPIO_PORT59, | ||
55 | |||
56 | GPIO_PORT60, GPIO_PORT61, GPIO_PORT62, GPIO_PORT63, GPIO_PORT64, | ||
57 | GPIO_PORT65, GPIO_PORT66, GPIO_PORT67, GPIO_PORT68, GPIO_PORT69, | ||
58 | |||
59 | GPIO_PORT70, GPIO_PORT71, GPIO_PORT72, GPIO_PORT73, GPIO_PORT74, | ||
60 | GPIO_PORT75, GPIO_PORT76, GPIO_PORT77, GPIO_PORT78, GPIO_PORT79, | ||
61 | |||
62 | GPIO_PORT80, GPIO_PORT81, GPIO_PORT82, GPIO_PORT83, GPIO_PORT84, | ||
63 | GPIO_PORT85, GPIO_PORT86, GPIO_PORT87, GPIO_PORT88, GPIO_PORT89, | ||
64 | |||
65 | GPIO_PORT90, GPIO_PORT91, GPIO_PORT92, GPIO_PORT93, GPIO_PORT94, | ||
66 | GPIO_PORT95, GPIO_PORT96, GPIO_PORT97, GPIO_PORT98, GPIO_PORT99, | ||
67 | |||
68 | GPIO_PORT100, GPIO_PORT101, GPIO_PORT102, GPIO_PORT103, GPIO_PORT104, | ||
69 | GPIO_PORT105, GPIO_PORT106, GPIO_PORT107, GPIO_PORT108, GPIO_PORT109, | ||
70 | |||
71 | GPIO_PORT110, GPIO_PORT111, GPIO_PORT112, GPIO_PORT113, GPIO_PORT114, | ||
72 | GPIO_PORT115, GPIO_PORT116, GPIO_PORT117, GPIO_PORT118, GPIO_PORT119, | ||
73 | |||
74 | GPIO_PORT120, GPIO_PORT121, GPIO_PORT122, GPIO_PORT123, GPIO_PORT124, | ||
75 | GPIO_PORT125, GPIO_PORT126, GPIO_PORT127, GPIO_PORT128, GPIO_PORT129, | ||
76 | |||
77 | GPIO_PORT130, GPIO_PORT131, GPIO_PORT132, GPIO_PORT133, GPIO_PORT134, | ||
78 | GPIO_PORT135, GPIO_PORT136, GPIO_PORT137, GPIO_PORT138, GPIO_PORT139, | ||
79 | |||
80 | GPIO_PORT140, GPIO_PORT141, GPIO_PORT142, GPIO_PORT143, GPIO_PORT144, | ||
81 | GPIO_PORT145, GPIO_PORT146, GPIO_PORT147, GPIO_PORT148, GPIO_PORT149, | ||
82 | |||
83 | GPIO_PORT150, GPIO_PORT151, GPIO_PORT152, GPIO_PORT153, GPIO_PORT154, | ||
84 | GPIO_PORT155, GPIO_PORT156, GPIO_PORT157, GPIO_PORT158, GPIO_PORT159, | ||
85 | |||
86 | GPIO_PORT160, GPIO_PORT161, GPIO_PORT162, GPIO_PORT163, GPIO_PORT164, | ||
87 | GPIO_PORT165, GPIO_PORT166, GPIO_PORT167, GPIO_PORT168, GPIO_PORT169, | ||
88 | |||
89 | GPIO_PORT170, GPIO_PORT171, GPIO_PORT172, GPIO_PORT173, GPIO_PORT174, | ||
90 | GPIO_PORT175, GPIO_PORT176, GPIO_PORT177, GPIO_PORT178, GPIO_PORT179, | ||
91 | |||
92 | GPIO_PORT180, GPIO_PORT181, GPIO_PORT182, GPIO_PORT183, GPIO_PORT184, | ||
93 | GPIO_PORT185, GPIO_PORT186, GPIO_PORT187, GPIO_PORT188, GPIO_PORT189, | ||
94 | |||
95 | GPIO_PORT190, GPIO_PORT191, GPIO_PORT192, GPIO_PORT193, GPIO_PORT194, | ||
96 | GPIO_PORT195, GPIO_PORT196, GPIO_PORT197, GPIO_PORT198, GPIO_PORT199, | ||
97 | |||
98 | GPIO_PORT200, GPIO_PORT201, GPIO_PORT202, GPIO_PORT203, GPIO_PORT204, | ||
99 | GPIO_PORT205, GPIO_PORT206, GPIO_PORT207, GPIO_PORT208, GPIO_PORT209, | ||
100 | |||
101 | GPIO_PORT210, GPIO_PORT211, | ||
102 | |||
103 | /* IRQ */ | ||
104 | GPIO_FN_IRQ0_PORT2, GPIO_FN_IRQ0_PORT13, | ||
105 | GPIO_FN_IRQ1, | ||
106 | GPIO_FN_IRQ2_PORT11, GPIO_FN_IRQ2_PORT12, | ||
107 | GPIO_FN_IRQ3_PORT10, GPIO_FN_IRQ3_PORT14, | ||
108 | GPIO_FN_IRQ4_PORT15, GPIO_FN_IRQ4_PORT172, | ||
109 | GPIO_FN_IRQ5_PORT0, GPIO_FN_IRQ5_PORT1, | ||
110 | GPIO_FN_IRQ6_PORT121, GPIO_FN_IRQ6_PORT173, | ||
111 | GPIO_FN_IRQ7_PORT120, GPIO_FN_IRQ7_PORT209, | ||
112 | GPIO_FN_IRQ8, | ||
113 | GPIO_FN_IRQ9_PORT118, GPIO_FN_IRQ9_PORT210, | ||
114 | GPIO_FN_IRQ10, | ||
115 | GPIO_FN_IRQ11, | ||
116 | GPIO_FN_IRQ12_PORT42, GPIO_FN_IRQ12_PORT97, | ||
117 | GPIO_FN_IRQ13_PORT64, GPIO_FN_IRQ13_PORT98, | ||
118 | GPIO_FN_IRQ14_PORT63, GPIO_FN_IRQ14_PORT99, | ||
119 | GPIO_FN_IRQ15_PORT62, GPIO_FN_IRQ15_PORT100, | ||
120 | GPIO_FN_IRQ16_PORT68, GPIO_FN_IRQ16_PORT211, | ||
121 | GPIO_FN_IRQ17, | ||
122 | GPIO_FN_IRQ18, | ||
123 | GPIO_FN_IRQ19, | ||
124 | GPIO_FN_IRQ20, | ||
125 | GPIO_FN_IRQ21, | ||
126 | GPIO_FN_IRQ22, | ||
127 | GPIO_FN_IRQ23, | ||
128 | GPIO_FN_IRQ24, | ||
129 | GPIO_FN_IRQ25, | ||
130 | GPIO_FN_IRQ26_PORT58, GPIO_FN_IRQ26_PORT81, | ||
131 | GPIO_FN_IRQ27_PORT57, GPIO_FN_IRQ27_PORT168, | ||
132 | GPIO_FN_IRQ28_PORT56, GPIO_FN_IRQ28_PORT169, | ||
133 | GPIO_FN_IRQ29_PORT50, GPIO_FN_IRQ29_PORT170, | ||
134 | GPIO_FN_IRQ30_PORT49, GPIO_FN_IRQ30_PORT171, | ||
135 | GPIO_FN_IRQ31_PORT41, GPIO_FN_IRQ31_PORT167, | ||
136 | |||
137 | /* Function */ | ||
138 | |||
139 | /* DBGT */ | ||
140 | GPIO_FN_DBGMDT2, GPIO_FN_DBGMDT1, GPIO_FN_DBGMDT0, | ||
141 | GPIO_FN_DBGMD10, GPIO_FN_DBGMD11, GPIO_FN_DBGMD20, | ||
142 | GPIO_FN_DBGMD21, | ||
143 | |||
144 | /* FSI-A */ | ||
145 | GPIO_FN_FSIAISLD_PORT0, /* FSIAISLD Port 0/5 */ | ||
146 | GPIO_FN_FSIAISLD_PORT5, | ||
147 | GPIO_FN_FSIASPDIF_PORT9, /* FSIASPDIF Port 9/18 */ | ||
148 | GPIO_FN_FSIASPDIF_PORT18, | ||
149 | GPIO_FN_FSIAOSLD1, GPIO_FN_FSIAOSLD2, | ||
150 | GPIO_FN_FSIAOLR, GPIO_FN_FSIAOBT, | ||
151 | GPIO_FN_FSIAOSLD, GPIO_FN_FSIAOMC, | ||
152 | GPIO_FN_FSIACK, GPIO_FN_FSIAILR, | ||
153 | GPIO_FN_FSIAIBT, | ||
154 | |||
155 | /* FSI-B */ | ||
156 | GPIO_FN_FSIBCK, | ||
157 | |||
158 | /* FMSI */ | ||
159 | GPIO_FN_FMSISLD_PORT1, /* FMSISLD Port 1/6 */ | ||
160 | GPIO_FN_FMSISLD_PORT6, | ||
161 | GPIO_FN_FMSIILR, GPIO_FN_FMSIIBT, | ||
162 | GPIO_FN_FMSIOLR, GPIO_FN_FMSIOBT, | ||
163 | GPIO_FN_FMSICK, GPIO_FN_FMSOILR, | ||
164 | GPIO_FN_FMSOIBT, GPIO_FN_FMSOOLR, | ||
165 | GPIO_FN_FMSOOBT, GPIO_FN_FMSOSLD, | ||
166 | GPIO_FN_FMSOCK, | ||
167 | |||
168 | /* SCIFA0 */ | ||
169 | GPIO_FN_SCIFA0_SCK, GPIO_FN_SCIFA0_CTS, | ||
170 | GPIO_FN_SCIFA0_RTS, GPIO_FN_SCIFA0_RXD, | ||
171 | GPIO_FN_SCIFA0_TXD, | ||
172 | |||
173 | /* SCIFA1 */ | ||
174 | GPIO_FN_SCIFA1_CTS, GPIO_FN_SCIFA1_SCK, | ||
175 | GPIO_FN_SCIFA1_RXD, GPIO_FN_SCIFA1_TXD, | ||
176 | GPIO_FN_SCIFA1_RTS, | ||
177 | |||
178 | /* SCIFA2 */ | ||
179 | GPIO_FN_SCIFA2_SCK_PORT22, /* SCIFA2_SCK Port 22/199 */ | ||
180 | GPIO_FN_SCIFA2_SCK_PORT199, | ||
181 | GPIO_FN_SCIFA2_RXD, GPIO_FN_SCIFA2_TXD, | ||
182 | GPIO_FN_SCIFA2_CTS, GPIO_FN_SCIFA2_RTS, | ||
183 | |||
184 | /* SCIFA3 */ | ||
185 | GPIO_FN_SCIFA3_RTS_PORT105, /* MSEL5CR_8_0 */ | ||
186 | GPIO_FN_SCIFA3_SCK_PORT116, | ||
187 | GPIO_FN_SCIFA3_CTS_PORT117, | ||
188 | GPIO_FN_SCIFA3_RXD_PORT174, | ||
189 | GPIO_FN_SCIFA3_TXD_PORT175, | ||
190 | |||
191 | GPIO_FN_SCIFA3_RTS_PORT161, /* MSEL5CR_8_1 */ | ||
192 | GPIO_FN_SCIFA3_SCK_PORT158, | ||
193 | GPIO_FN_SCIFA3_CTS_PORT162, | ||
194 | GPIO_FN_SCIFA3_RXD_PORT159, | ||
195 | GPIO_FN_SCIFA3_TXD_PORT160, | ||
196 | |||
197 | /* SCIFA4 */ | ||
198 | GPIO_FN_SCIFA4_RXD_PORT12, /* MSEL5CR[12:11] = 00 */ | ||
199 | GPIO_FN_SCIFA4_TXD_PORT13, | ||
200 | |||
201 | GPIO_FN_SCIFA4_RXD_PORT204, /* MSEL5CR[12:11] = 01 */ | ||
202 | GPIO_FN_SCIFA4_TXD_PORT203, | ||
203 | |||
204 | GPIO_FN_SCIFA4_RXD_PORT94, /* MSEL5CR[12:11] = 10 */ | ||
205 | GPIO_FN_SCIFA4_TXD_PORT93, | ||
206 | |||
207 | GPIO_FN_SCIFA4_SCK_PORT21, /* SCIFA4_SCK Port 21/205 */ | ||
208 | GPIO_FN_SCIFA4_SCK_PORT205, | ||
209 | |||
210 | /* SCIFA5 */ | ||
211 | GPIO_FN_SCIFA5_TXD_PORT20, /* MSEL5CR[15:14] = 00 */ | ||
212 | GPIO_FN_SCIFA5_RXD_PORT10, | ||
213 | |||
214 | GPIO_FN_SCIFA5_RXD_PORT207, /* MSEL5CR[15:14] = 01 */ | ||
215 | GPIO_FN_SCIFA5_TXD_PORT208, | ||
216 | |||
217 | GPIO_FN_SCIFA5_TXD_PORT91, /* MSEL5CR[15:14] = 10 */ | ||
218 | GPIO_FN_SCIFA5_RXD_PORT92, | ||
219 | |||
220 | GPIO_FN_SCIFA5_SCK_PORT23, /* SCIFA5_SCK Port 23/206 */ | ||
221 | GPIO_FN_SCIFA5_SCK_PORT206, | ||
222 | |||
223 | /* SCIFA6 */ | ||
224 | GPIO_FN_SCIFA6_SCK, GPIO_FN_SCIFA6_RXD, GPIO_FN_SCIFA6_TXD, | ||
225 | |||
226 | /* SCIFA7 */ | ||
227 | GPIO_FN_SCIFA7_TXD, GPIO_FN_SCIFA7_RXD, | ||
228 | |||
229 | /* SCIFAB */ | ||
230 | GPIO_FN_SCIFB_SCK_PORT190, /* MSEL5CR_17_0 */ | ||
231 | GPIO_FN_SCIFB_RXD_PORT191, | ||
232 | GPIO_FN_SCIFB_TXD_PORT192, | ||
233 | GPIO_FN_SCIFB_RTS_PORT186, | ||
234 | GPIO_FN_SCIFB_CTS_PORT187, | ||
235 | |||
236 | GPIO_FN_SCIFB_SCK_PORT2, /* MSEL5CR_17_1 */ | ||
237 | GPIO_FN_SCIFB_RXD_PORT3, | ||
238 | GPIO_FN_SCIFB_TXD_PORT4, | ||
239 | GPIO_FN_SCIFB_RTS_PORT172, | ||
240 | GPIO_FN_SCIFB_CTS_PORT173, | ||
241 | |||
242 | /* LCD0 */ | ||
243 | GPIO_FN_LCDC0_SELECT, | ||
244 | |||
245 | /* LCD1 */ | ||
246 | GPIO_FN_LCDC1_SELECT, | ||
247 | |||
248 | /* RSPI */ | ||
249 | GPIO_FN_RSPI_SSL0_A, GPIO_FN_RSPI_SSL1_A, | ||
250 | GPIO_FN_RSPI_SSL2_A, GPIO_FN_RSPI_SSL3_A, | ||
251 | GPIO_FN_RSPI_MOSI_A, GPIO_FN_RSPI_MISO_A, | ||
252 | GPIO_FN_RSPI_CK_A, | ||
253 | |||
254 | /* VIO CKO */ | ||
255 | GPIO_FN_VIO_CKO1, | ||
256 | GPIO_FN_VIO_CKO2, | ||
257 | GPIO_FN_VIO_CKO_1, | ||
258 | GPIO_FN_VIO_CKO, | ||
259 | |||
260 | /* VIO0 */ | ||
261 | GPIO_FN_VIO0_D0, GPIO_FN_VIO0_D1, GPIO_FN_VIO0_D2, | ||
262 | GPIO_FN_VIO0_D3, GPIO_FN_VIO0_D4, GPIO_FN_VIO0_D5, | ||
263 | GPIO_FN_VIO0_D6, GPIO_FN_VIO0_D7, GPIO_FN_VIO0_D8, | ||
264 | GPIO_FN_VIO0_D9, GPIO_FN_VIO0_D10, GPIO_FN_VIO0_D11, | ||
265 | GPIO_FN_VIO0_D12, GPIO_FN_VIO0_VD, GPIO_FN_VIO0_HD, | ||
266 | GPIO_FN_VIO0_CLK, GPIO_FN_VIO0_FIELD, | ||
267 | |||
268 | GPIO_FN_VIO0_D13_PORT26, /* MSEL5CR_27_0 */ | ||
269 | GPIO_FN_VIO0_D14_PORT25, | ||
270 | GPIO_FN_VIO0_D15_PORT24, | ||
271 | |||
272 | GPIO_FN_VIO0_D13_PORT22, /* MSEL5CR_27_1 */ | ||
273 | GPIO_FN_VIO0_D14_PORT95, | ||
274 | GPIO_FN_VIO0_D15_PORT96, | ||
275 | |||
276 | /* VIO1 */ | ||
277 | GPIO_FN_VIO1_D0, GPIO_FN_VIO1_D1, GPIO_FN_VIO1_D2, | ||
278 | GPIO_FN_VIO1_D3, GPIO_FN_VIO1_D4, GPIO_FN_VIO1_D5, | ||
279 | GPIO_FN_VIO1_D6, GPIO_FN_VIO1_D7, GPIO_FN_VIO1_VD, | ||
280 | GPIO_FN_VIO1_HD, GPIO_FN_VIO1_CLK, GPIO_FN_VIO1_FIELD, | ||
281 | |||
282 | /* TPU0 */ | ||
283 | GPIO_FN_TPU0TO0, GPIO_FN_TPU0TO1, | ||
284 | GPIO_FN_TPU0TO3, | ||
285 | GPIO_FN_TPU0TO2_PORT66, /* TPU0TO2 Port 66/202 */ | ||
286 | GPIO_FN_TPU0TO2_PORT202, | ||
287 | |||
288 | /* SSP1 0 */ | ||
289 | GPIO_FN_STP0_IPD0, GPIO_FN_STP0_IPD1, GPIO_FN_STP0_IPD2, | ||
290 | GPIO_FN_STP0_IPD3, GPIO_FN_STP0_IPD4, GPIO_FN_STP0_IPD5, | ||
291 | GPIO_FN_STP0_IPD6, GPIO_FN_STP0_IPD7, GPIO_FN_STP0_IPEN, | ||
292 | GPIO_FN_STP0_IPCLK, GPIO_FN_STP0_IPSYNC, | ||
293 | |||
294 | /* SSP1 1 */ | ||
295 | GPIO_FN_STP1_IPD1, GPIO_FN_STP1_IPD2, GPIO_FN_STP1_IPD3, | ||
296 | GPIO_FN_STP1_IPD4, GPIO_FN_STP1_IPD5, GPIO_FN_STP1_IPD6, | ||
297 | GPIO_FN_STP1_IPD7, GPIO_FN_STP1_IPCLK, GPIO_FN_STP1_IPSYNC, | ||
298 | |||
299 | GPIO_FN_STP1_IPD0_PORT186, /* MSEL5CR_23_0 */ | ||
300 | GPIO_FN_STP1_IPEN_PORT187, | ||
301 | |||
302 | GPIO_FN_STP1_IPD0_PORT194, /* MSEL5CR_23_1 */ | ||
303 | GPIO_FN_STP1_IPEN_PORT193, | ||
304 | |||
305 | /* SIM */ | ||
306 | GPIO_FN_SIM_RST, GPIO_FN_SIM_CLK, | ||
307 | GPIO_FN_SIM_D_PORT22, /* SIM_D Port 22/199 */ | ||
308 | GPIO_FN_SIM_D_PORT199, | ||
309 | |||
310 | /* MSIOF2 */ | ||
311 | GPIO_FN_MSIOF2_TXD, GPIO_FN_MSIOF2_RXD, GPIO_FN_MSIOF2_TSCK, | ||
312 | GPIO_FN_MSIOF2_SS2, GPIO_FN_MSIOF2_TSYNC, GPIO_FN_MSIOF2_SS1, | ||
313 | GPIO_FN_MSIOF2_MCK1, GPIO_FN_MSIOF2_MCK0, GPIO_FN_MSIOF2_RSYNC, | ||
314 | GPIO_FN_MSIOF2_RSCK, | ||
315 | |||
316 | /* KEYSC */ | ||
317 | GPIO_FN_KEYIN4, GPIO_FN_KEYIN5, | ||
318 | GPIO_FN_KEYIN6, GPIO_FN_KEYIN7, | ||
319 | GPIO_FN_KEYOUT0, GPIO_FN_KEYOUT1, GPIO_FN_KEYOUT2, | ||
320 | GPIO_FN_KEYOUT3, GPIO_FN_KEYOUT4, GPIO_FN_KEYOUT5, | ||
321 | GPIO_FN_KEYOUT6, GPIO_FN_KEYOUT7, | ||
322 | |||
323 | GPIO_FN_KEYIN0_PORT43, /* MSEL4CR_18_0 */ | ||
324 | GPIO_FN_KEYIN1_PORT44, | ||
325 | GPIO_FN_KEYIN2_PORT45, | ||
326 | GPIO_FN_KEYIN3_PORT46, | ||
327 | |||
328 | GPIO_FN_KEYIN0_PORT58, /* MSEL4CR_18_1 */ | ||
329 | GPIO_FN_KEYIN1_PORT57, | ||
330 | GPIO_FN_KEYIN2_PORT56, | ||
331 | GPIO_FN_KEYIN3_PORT55, | ||
332 | |||
333 | /* VOU */ | ||
334 | GPIO_FN_DV_D0, GPIO_FN_DV_D1, GPIO_FN_DV_D2, GPIO_FN_DV_D3, | ||
335 | GPIO_FN_DV_D4, GPIO_FN_DV_D5, GPIO_FN_DV_D6, GPIO_FN_DV_D7, | ||
336 | GPIO_FN_DV_D8, GPIO_FN_DV_D9, GPIO_FN_DV_D10, GPIO_FN_DV_D11, | ||
337 | GPIO_FN_DV_D12, GPIO_FN_DV_D13, GPIO_FN_DV_D14, GPIO_FN_DV_D15, | ||
338 | GPIO_FN_DV_CLK, | ||
339 | GPIO_FN_DV_VSYNC, | ||
340 | GPIO_FN_DV_HSYNC, | ||
341 | |||
342 | /* MEMC */ | ||
343 | GPIO_FN_MEMC_AD0, GPIO_FN_MEMC_AD1, GPIO_FN_MEMC_AD2, | ||
344 | GPIO_FN_MEMC_AD3, GPIO_FN_MEMC_AD4, GPIO_FN_MEMC_AD5, | ||
345 | GPIO_FN_MEMC_AD6, GPIO_FN_MEMC_AD7, GPIO_FN_MEMC_AD8, | ||
346 | GPIO_FN_MEMC_AD9, GPIO_FN_MEMC_AD10, GPIO_FN_MEMC_AD11, | ||
347 | GPIO_FN_MEMC_AD12, GPIO_FN_MEMC_AD13, GPIO_FN_MEMC_AD14, | ||
348 | GPIO_FN_MEMC_AD15, GPIO_FN_MEMC_CS0, GPIO_FN_MEMC_INT, | ||
349 | GPIO_FN_MEMC_NWE, GPIO_FN_MEMC_NOE, | ||
350 | |||
351 | GPIO_FN_MEMC_CS1, /* MSEL4CR_6_0 */ | ||
352 | GPIO_FN_MEMC_ADV, | ||
353 | GPIO_FN_MEMC_WAIT, | ||
354 | GPIO_FN_MEMC_BUSCLK, | ||
355 | |||
356 | GPIO_FN_MEMC_A1, /* MSEL4CR_6_1 */ | ||
357 | GPIO_FN_MEMC_DREQ0, | ||
358 | GPIO_FN_MEMC_DREQ1, | ||
359 | GPIO_FN_MEMC_A0, | ||
360 | |||
361 | /* MSIOF0 */ | ||
362 | GPIO_FN_MSIOF0_SS1, GPIO_FN_MSIOF0_SS2, | ||
363 | GPIO_FN_MSIOF0_RXD, GPIO_FN_MSIOF0_TXD, | ||
364 | GPIO_FN_MSIOF0_MCK0, GPIO_FN_MSIOF0_MCK1, | ||
365 | GPIO_FN_MSIOF0_RSYNC, GPIO_FN_MSIOF0_RSCK, | ||
366 | GPIO_FN_MSIOF0_TSCK, GPIO_FN_MSIOF0_TSYNC, | ||
367 | |||
368 | /* MSIOF1 */ | ||
369 | GPIO_FN_MSIOF1_RSCK, GPIO_FN_MSIOF1_RSYNC, | ||
370 | GPIO_FN_MSIOF1_MCK0, GPIO_FN_MSIOF1_MCK1, | ||
371 | |||
372 | GPIO_FN_MSIOF1_SS2_PORT116, GPIO_FN_MSIOF1_SS1_PORT117, | ||
373 | GPIO_FN_MSIOF1_RXD_PORT118, GPIO_FN_MSIOF1_TXD_PORT119, | ||
374 | GPIO_FN_MSIOF1_TSYNC_PORT120, | ||
375 | GPIO_FN_MSIOF1_TSCK_PORT121, /* MSEL4CR_10_0 */ | ||
376 | |||
377 | GPIO_FN_MSIOF1_SS1_PORT67, GPIO_FN_MSIOF1_TSCK_PORT72, | ||
378 | GPIO_FN_MSIOF1_TSYNC_PORT73, GPIO_FN_MSIOF1_TXD_PORT74, | ||
379 | GPIO_FN_MSIOF1_RXD_PORT75, | ||
380 | GPIO_FN_MSIOF1_SS2_PORT202, /* MSEL4CR_10_1 */ | ||
381 | |||
382 | /* GPIO */ | ||
383 | GPIO_FN_GPO0, GPIO_FN_GPI0, | ||
384 | GPIO_FN_GPO1, GPIO_FN_GPI1, | ||
385 | |||
386 | /* USB0 */ | ||
387 | GPIO_FN_USB0_OCI, GPIO_FN_USB0_PPON, GPIO_FN_VBUS, | ||
388 | |||
389 | /* USB1 */ | ||
390 | GPIO_FN_USB1_OCI, GPIO_FN_USB1_PPON, | ||
391 | |||
392 | /* BBIF1 */ | ||
393 | GPIO_FN_BBIF1_RXD, GPIO_FN_BBIF1_TXD, GPIO_FN_BBIF1_TSYNC, | ||
394 | GPIO_FN_BBIF1_TSCK, GPIO_FN_BBIF1_RSCK, GPIO_FN_BBIF1_RSYNC, | ||
395 | GPIO_FN_BBIF1_FLOW, GPIO_FN_BBIF1_RX_FLOW_N, | ||
396 | |||
397 | /* BBIF2 */ | ||
398 | GPIO_FN_BBIF2_TXD2_PORT5, /* MSEL5CR_0_0 */ | ||
399 | GPIO_FN_BBIF2_RXD2_PORT60, | ||
400 | GPIO_FN_BBIF2_TSYNC2_PORT6, | ||
401 | GPIO_FN_BBIF2_TSCK2_PORT59, | ||
402 | |||
403 | GPIO_FN_BBIF2_RXD2_PORT90, /* MSEL5CR_0_1 */ | ||
404 | GPIO_FN_BBIF2_TXD2_PORT183, | ||
405 | GPIO_FN_BBIF2_TSCK2_PORT89, | ||
406 | GPIO_FN_BBIF2_TSYNC2_PORT184, | ||
407 | |||
408 | /* BSC / FLCTL / PCMCIA */ | ||
409 | GPIO_FN_CS0, GPIO_FN_CS2, GPIO_FN_CS4, | ||
410 | GPIO_FN_CS5B, GPIO_FN_CS6A, | ||
411 | GPIO_FN_CS5A_PORT105, /* CS5A PORT 19/105 */ | ||
412 | GPIO_FN_CS5A_PORT19, | ||
413 | GPIO_FN_IOIS16, /* ? */ | ||
414 | |||
415 | GPIO_FN_A0, GPIO_FN_A1, GPIO_FN_A2, GPIO_FN_A3, | ||
416 | GPIO_FN_A4_FOE, /* share with FLCTL */ | ||
417 | GPIO_FN_A5_FCDE, /* share with FLCTL */ | ||
418 | GPIO_FN_A6, GPIO_FN_A7, GPIO_FN_A8, GPIO_FN_A9, | ||
419 | GPIO_FN_A10, GPIO_FN_A11, GPIO_FN_A12, GPIO_FN_A13, | ||
420 | GPIO_FN_A14, GPIO_FN_A15, GPIO_FN_A16, GPIO_FN_A17, | ||
421 | GPIO_FN_A18, GPIO_FN_A19, GPIO_FN_A20, GPIO_FN_A21, | ||
422 | GPIO_FN_A22, GPIO_FN_A23, GPIO_FN_A24, GPIO_FN_A25, | ||
423 | GPIO_FN_A26, | ||
424 | |||
425 | GPIO_FN_D0_NAF0, GPIO_FN_D1_NAF1, /* share with FLCTL */ | ||
426 | GPIO_FN_D2_NAF2, GPIO_FN_D3_NAF3, /* share with FLCTL */ | ||
427 | GPIO_FN_D4_NAF4, GPIO_FN_D5_NAF5, /* share with FLCTL */ | ||
428 | GPIO_FN_D6_NAF6, GPIO_FN_D7_NAF7, /* share with FLCTL */ | ||
429 | GPIO_FN_D8_NAF8, GPIO_FN_D9_NAF9, /* share with FLCTL */ | ||
430 | GPIO_FN_D10_NAF10, GPIO_FN_D11_NAF11, /* share with FLCTL */ | ||
431 | GPIO_FN_D12_NAF12, GPIO_FN_D13_NAF13, /* share with FLCTL */ | ||
432 | GPIO_FN_D14_NAF14, GPIO_FN_D15_NAF15, /* share with FLCTL */ | ||
433 | |||
434 | GPIO_FN_D16, GPIO_FN_D17, GPIO_FN_D18, GPIO_FN_D19, | ||
435 | GPIO_FN_D20, GPIO_FN_D21, GPIO_FN_D22, GPIO_FN_D23, | ||
436 | GPIO_FN_D24, GPIO_FN_D25, GPIO_FN_D26, GPIO_FN_D27, | ||
437 | GPIO_FN_D28, GPIO_FN_D29, GPIO_FN_D30, GPIO_FN_D31, | ||
438 | |||
439 | GPIO_FN_WE0_FWE, /* share with FLCTL */ | ||
440 | GPIO_FN_WE1, | ||
441 | GPIO_FN_WE2_ICIORD, /* share with PCMCIA */ | ||
442 | GPIO_FN_WE3_ICIOWR, /* share with PCMCIA */ | ||
443 | GPIO_FN_CKO, GPIO_FN_BS, GPIO_FN_RDWR, | ||
444 | GPIO_FN_RD_FSC, /* share with FLCTL */ | ||
445 | GPIO_FN_WAIT_PORT177, /* WAIT Port 90/177 */ | ||
446 | GPIO_FN_WAIT_PORT90, | ||
447 | |||
448 | GPIO_FN_FCE0, GPIO_FN_FCE1, GPIO_FN_FRB, /* FLCTL */ | ||
449 | |||
450 | /* IRDA */ | ||
451 | GPIO_FN_IRDA_FIRSEL, GPIO_FN_IRDA_IN, GPIO_FN_IRDA_OUT, | ||
452 | |||
453 | /* ATAPI */ | ||
454 | GPIO_FN_IDE_D0, GPIO_FN_IDE_D1, GPIO_FN_IDE_D2, | ||
455 | GPIO_FN_IDE_D3, GPIO_FN_IDE_D4, GPIO_FN_IDE_D5, | ||
456 | GPIO_FN_IDE_D6, GPIO_FN_IDE_D7, GPIO_FN_IDE_D8, | ||
457 | GPIO_FN_IDE_D9, GPIO_FN_IDE_D10, GPIO_FN_IDE_D11, | ||
458 | GPIO_FN_IDE_D12, GPIO_FN_IDE_D13, GPIO_FN_IDE_D14, | ||
459 | GPIO_FN_IDE_D15, GPIO_FN_IDE_A0, GPIO_FN_IDE_A1, | ||
460 | GPIO_FN_IDE_A2, GPIO_FN_IDE_CS0, GPIO_FN_IDE_CS1, | ||
461 | GPIO_FN_IDE_IOWR, GPIO_FN_IDE_IORD, GPIO_FN_IDE_IORDY, | ||
462 | GPIO_FN_IDE_INT, GPIO_FN_IDE_RST, GPIO_FN_IDE_DIRECTION, | ||
463 | GPIO_FN_IDE_EXBUF_ENB, GPIO_FN_IDE_IODACK, GPIO_FN_IDE_IODREQ, | ||
464 | |||
465 | /* RMII */ | ||
466 | GPIO_FN_RMII_CRS_DV, GPIO_FN_RMII_RX_ER, GPIO_FN_RMII_RXD0, | ||
467 | GPIO_FN_RMII_RXD1, GPIO_FN_RMII_TX_EN, GPIO_FN_RMII_TXD0, | ||
468 | GPIO_FN_RMII_MDC, GPIO_FN_RMII_TXD1, GPIO_FN_RMII_MDIO, | ||
469 | GPIO_FN_RMII_REF50CK, /* for RMII */ | ||
470 | GPIO_FN_RMII_REF125CK, /* for GMII */ | ||
471 | |||
472 | /* GEther */ | ||
473 | GPIO_FN_ET_TX_CLK, GPIO_FN_ET_TX_EN, GPIO_FN_ET_ETXD0, | ||
474 | GPIO_FN_ET_ETXD1, GPIO_FN_ET_ETXD2, GPIO_FN_ET_ETXD3, | ||
475 | GPIO_FN_ET_ETXD4, GPIO_FN_ET_ETXD5, /* for GEther */ | ||
476 | GPIO_FN_ET_ETXD6, GPIO_FN_ET_ETXD7, /* for GEther */ | ||
477 | GPIO_FN_ET_COL, GPIO_FN_ET_TX_ER, | ||
478 | GPIO_FN_ET_RX_CLK, GPIO_FN_ET_RX_DV, | ||
479 | GPIO_FN_ET_ERXD0, GPIO_FN_ET_ERXD1, | ||
480 | GPIO_FN_ET_ERXD2, GPIO_FN_ET_ERXD3, | ||
481 | GPIO_FN_ET_ERXD4, GPIO_FN_ET_ERXD5, /* for GEther */ | ||
482 | GPIO_FN_ET_ERXD6, GPIO_FN_ET_ERXD7, /* for GEther */ | ||
483 | GPIO_FN_ET_RX_ER, GPIO_FN_ET_CRS, | ||
484 | GPIO_FN_ET_MDC, GPIO_FN_ET_MDIO, | ||
485 | GPIO_FN_ET_LINK, GPIO_FN_ET_PHY_INT, | ||
486 | GPIO_FN_ET_WOL, GPIO_FN_ET_GTX_CLK, | ||
487 | |||
488 | /* DMA0 */ | ||
489 | GPIO_FN_DREQ0, GPIO_FN_DACK0, | ||
490 | |||
491 | /* DMA1 */ | ||
492 | GPIO_FN_DREQ1, GPIO_FN_DACK1, | ||
493 | |||
494 | /* SYSC */ | ||
495 | GPIO_FN_RESETOUTS, | ||
496 | GPIO_FN_RESETP_PULLUP, | ||
497 | GPIO_FN_RESETP_PLAIN, | ||
498 | |||
499 | /* HDMI */ | ||
500 | GPIO_FN_HDMI_HPD, | ||
501 | GPIO_FN_HDMI_CEC, | ||
502 | |||
503 | /* SDENC */ | ||
504 | GPIO_FN_SDENC_CPG, | ||
505 | GPIO_FN_SDENC_DV_CLKI, | ||
506 | |||
507 | /* IRREM */ | ||
508 | GPIO_FN_IROUT, | ||
509 | |||
510 | /* DEBUG */ | ||
511 | GPIO_FN_EDEBGREQ_PULLDOWN, | ||
512 | GPIO_FN_EDEBGREQ_PULLUP, | ||
513 | |||
514 | GPIO_FN_TRACEAUD_FROM_VIO, | ||
515 | GPIO_FN_TRACEAUD_FROM_LCDC0, | ||
516 | GPIO_FN_TRACEAUD_FROM_MEMC, | ||
517 | }; | ||
518 | |||
519 | /* DMA slave IDs */ | 31 | /* DMA slave IDs */ |
520 | enum { | 32 | enum { |
521 | SHDMA_SLAVE_INVALID, | 33 | SHDMA_SLAVE_INVALID, |
@@ -533,10 +45,13 @@ enum { | |||
533 | }; | 45 | }; |
534 | 46 | ||
535 | extern void r8a7740_meram_workaround(void); | 47 | extern void r8a7740_meram_workaround(void); |
48 | extern void r8a7740_init_delay(void); | ||
536 | extern void r8a7740_init_irq(void); | 49 | extern void r8a7740_init_irq(void); |
50 | extern void r8a7740_init_irq_of(void); | ||
537 | extern void r8a7740_map_io(void); | 51 | extern void r8a7740_map_io(void); |
538 | extern void r8a7740_add_early_devices(void); | 52 | extern void r8a7740_add_early_devices(void); |
539 | extern void r8a7740_add_standard_devices(void); | 53 | extern void r8a7740_add_standard_devices(void); |
54 | extern void r8a7740_add_standard_devices_dt(void); | ||
540 | extern void r8a7740_clock_init(u8 md_ck); | 55 | extern void r8a7740_clock_init(u8 md_ck); |
541 | extern void r8a7740_pinmux_init(void); | 56 | extern void r8a7740_pinmux_init(void); |
542 | extern void r8a7740_pm_init(void); | 57 | extern void r8a7740_pm_init(void); |
diff --git a/arch/arm/mach-shmobile/include/mach/r8a7778.h b/arch/arm/mach-shmobile/include/mach/r8a7778.h index 951149e6bcca..851d027a2f06 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7778.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7778.h | |||
@@ -18,15 +18,26 @@ | |||
18 | #ifndef __ASM_R8A7778_H__ | 18 | #ifndef __ASM_R8A7778_H__ |
19 | #define __ASM_R8A7778_H__ | 19 | #define __ASM_R8A7778_H__ |
20 | 20 | ||
21 | #include <linux/mmc/sh_mmcif.h> | ||
22 | #include <linux/mmc/sh_mobile_sdhi.h> | ||
21 | #include <linux/sh_eth.h> | 23 | #include <linux/sh_eth.h> |
24 | #include <linux/platform_data/usb-rcar-phy.h> | ||
22 | 25 | ||
23 | extern void r8a7778_add_standard_devices(void); | 26 | extern void r8a7778_add_standard_devices(void); |
24 | extern void r8a7778_add_standard_devices_dt(void); | 27 | extern void r8a7778_add_standard_devices_dt(void); |
25 | extern void r8a7778_add_ether_device(struct sh_eth_plat_data *pdata); | 28 | extern void r8a7778_add_ether_device(struct sh_eth_plat_data *pdata); |
29 | extern void r8a7778_add_usb_phy_device(struct rcar_phy_platform_data *pdata); | ||
30 | extern void r8a7778_add_i2c_device(int id); | ||
31 | extern void r8a7778_add_hspi_device(int id); | ||
32 | extern void r8a7778_add_mmc_device(struct sh_mmcif_plat_data *info); | ||
33 | |||
34 | extern void r8a7778_init_late(void); | ||
26 | extern void r8a7778_init_delay(void); | 35 | extern void r8a7778_init_delay(void); |
27 | extern void r8a7778_init_irq(void); | 36 | extern void r8a7778_init_irq(void); |
28 | extern void r8a7778_init_irq_dt(void); | 37 | extern void r8a7778_init_irq_dt(void); |
29 | extern void r8a7778_clock_init(void); | 38 | extern void r8a7778_clock_init(void); |
30 | extern void r8a7778_init_irq_extpin(int irlm); | 39 | extern void r8a7778_init_irq_extpin(int irlm); |
40 | extern void r8a7778_pinmux_init(void); | ||
41 | extern void r8a7778_sdhi_init(int id, struct sh_mobile_sdhi_info *info); | ||
31 | 42 | ||
32 | #endif /* __ASM_R8A7778_H__ */ | 43 | #endif /* __ASM_R8A7778_H__ */ |
diff --git a/arch/arm/mach-shmobile/include/mach/r8a7779.h b/arch/arm/mach-shmobile/include/mach/r8a7779.h index 188b295938a5..fc47073c7ba9 100644 --- a/arch/arm/mach-shmobile/include/mach/r8a7779.h +++ b/arch/arm/mach-shmobile/include/mach/r8a7779.h | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <linux/sh_clk.h> | 4 | #include <linux/sh_clk.h> |
5 | #include <linux/pm_domain.h> | 5 | #include <linux/pm_domain.h> |
6 | #include <linux/sh_eth.h> | 6 | #include <linux/sh_eth.h> |
7 | #include <linux/platform_data/usb-rcar-phy.h> | ||
7 | 8 | ||
8 | struct platform_device; | 9 | struct platform_device; |
9 | 10 | ||
@@ -33,6 +34,8 @@ extern void r8a7779_add_early_devices(void); | |||
33 | extern void r8a7779_add_standard_devices(void); | 34 | extern void r8a7779_add_standard_devices(void); |
34 | extern void r8a7779_add_standard_devices_dt(void); | 35 | extern void r8a7779_add_standard_devices_dt(void); |
35 | extern void r8a7779_add_ether_device(struct sh_eth_plat_data *pdata); | 36 | extern void r8a7779_add_ether_device(struct sh_eth_plat_data *pdata); |
37 | extern void r8a7779_add_usb_phy_device(struct rcar_phy_platform_data *pdata); | ||
38 | extern void r8a7779_init_late(void); | ||
36 | extern void r8a7779_clock_init(void); | 39 | extern void r8a7779_clock_init(void); |
37 | extern void r8a7779_pinmux_init(void); | 40 | extern void r8a7779_pinmux_init(void); |
38 | extern void r8a7779_pm_init(void); | 41 | extern void r8a7779_pm_init(void); |
diff --git a/arch/arm/mach-shmobile/include/mach/sh7372.h b/arch/arm/mach-shmobile/include/mach/sh7372.h index fd7cba024c39..854a9f0ca040 100644 --- a/arch/arm/mach-shmobile/include/mach/sh7372.h +++ b/arch/arm/mach-shmobile/include/mach/sh7372.h | |||
@@ -15,397 +15,6 @@ | |||
15 | #include <linux/pm_domain.h> | 15 | #include <linux/pm_domain.h> |
16 | #include <mach/pm-rmobile.h> | 16 | #include <mach/pm-rmobile.h> |
17 | 17 | ||
18 | /* | ||
19 | * Pin Function Controller: | ||
20 | * GPIO_FN_xx - GPIO used to select pin function | ||
21 | * GPIO_PORTxx - GPIO mapped to real I/O pin on CPU | ||
22 | */ | ||
23 | enum { | ||
24 | /* PORT */ | ||
25 | GPIO_PORT0, GPIO_PORT1, GPIO_PORT2, GPIO_PORT3, GPIO_PORT4, | ||
26 | GPIO_PORT5, GPIO_PORT6, GPIO_PORT7, GPIO_PORT8, GPIO_PORT9, | ||
27 | |||
28 | GPIO_PORT10, GPIO_PORT11, GPIO_PORT12, GPIO_PORT13, GPIO_PORT14, | ||
29 | GPIO_PORT15, GPIO_PORT16, GPIO_PORT17, GPIO_PORT18, GPIO_PORT19, | ||
30 | |||
31 | GPIO_PORT20, GPIO_PORT21, GPIO_PORT22, GPIO_PORT23, GPIO_PORT24, | ||
32 | GPIO_PORT25, GPIO_PORT26, GPIO_PORT27, GPIO_PORT28, GPIO_PORT29, | ||
33 | |||
34 | GPIO_PORT30, GPIO_PORT31, GPIO_PORT32, GPIO_PORT33, GPIO_PORT34, | ||
35 | GPIO_PORT35, GPIO_PORT36, GPIO_PORT37, GPIO_PORT38, GPIO_PORT39, | ||
36 | |||
37 | GPIO_PORT40, GPIO_PORT41, GPIO_PORT42, GPIO_PORT43, GPIO_PORT44, | ||
38 | GPIO_PORT45, GPIO_PORT46, GPIO_PORT47, GPIO_PORT48, GPIO_PORT49, | ||
39 | |||
40 | GPIO_PORT50, GPIO_PORT51, GPIO_PORT52, GPIO_PORT53, GPIO_PORT54, | ||
41 | GPIO_PORT55, GPIO_PORT56, GPIO_PORT57, GPIO_PORT58, GPIO_PORT59, | ||
42 | |||
43 | GPIO_PORT60, GPIO_PORT61, GPIO_PORT62, GPIO_PORT63, GPIO_PORT64, | ||
44 | GPIO_PORT65, GPIO_PORT66, GPIO_PORT67, GPIO_PORT68, GPIO_PORT69, | ||
45 | |||
46 | GPIO_PORT70, GPIO_PORT71, GPIO_PORT72, GPIO_PORT73, GPIO_PORT74, | ||
47 | GPIO_PORT75, GPIO_PORT76, GPIO_PORT77, GPIO_PORT78, GPIO_PORT79, | ||
48 | |||
49 | GPIO_PORT80, GPIO_PORT81, GPIO_PORT82, GPIO_PORT83, GPIO_PORT84, | ||
50 | GPIO_PORT85, GPIO_PORT86, GPIO_PORT87, GPIO_PORT88, GPIO_PORT89, | ||
51 | |||
52 | GPIO_PORT90, GPIO_PORT91, GPIO_PORT92, GPIO_PORT93, GPIO_PORT94, | ||
53 | GPIO_PORT95, GPIO_PORT96, GPIO_PORT97, GPIO_PORT98, GPIO_PORT99, | ||
54 | |||
55 | GPIO_PORT100, GPIO_PORT101, GPIO_PORT102, GPIO_PORT103, GPIO_PORT104, | ||
56 | GPIO_PORT105, GPIO_PORT106, GPIO_PORT107, GPIO_PORT108, GPIO_PORT109, | ||
57 | |||
58 | GPIO_PORT110, GPIO_PORT111, GPIO_PORT112, GPIO_PORT113, GPIO_PORT114, | ||
59 | GPIO_PORT115, GPIO_PORT116, GPIO_PORT117, GPIO_PORT118, GPIO_PORT119, | ||
60 | |||
61 | GPIO_PORT120, GPIO_PORT121, GPIO_PORT122, GPIO_PORT123, GPIO_PORT124, | ||
62 | GPIO_PORT125, GPIO_PORT126, GPIO_PORT127, GPIO_PORT128, GPIO_PORT129, | ||
63 | |||
64 | GPIO_PORT130, GPIO_PORT131, GPIO_PORT132, GPIO_PORT133, GPIO_PORT134, | ||
65 | GPIO_PORT135, GPIO_PORT136, GPIO_PORT137, GPIO_PORT138, GPIO_PORT139, | ||
66 | |||
67 | GPIO_PORT140, GPIO_PORT141, GPIO_PORT142, GPIO_PORT143, GPIO_PORT144, | ||
68 | GPIO_PORT145, GPIO_PORT146, GPIO_PORT147, GPIO_PORT148, GPIO_PORT149, | ||
69 | |||
70 | GPIO_PORT150, GPIO_PORT151, GPIO_PORT152, GPIO_PORT153, GPIO_PORT154, | ||
71 | GPIO_PORT155, GPIO_PORT156, GPIO_PORT157, GPIO_PORT158, GPIO_PORT159, | ||
72 | |||
73 | GPIO_PORT160, GPIO_PORT161, GPIO_PORT162, GPIO_PORT163, GPIO_PORT164, | ||
74 | GPIO_PORT165, GPIO_PORT166, GPIO_PORT167, GPIO_PORT168, GPIO_PORT169, | ||
75 | |||
76 | GPIO_PORT170, GPIO_PORT171, GPIO_PORT172, GPIO_PORT173, GPIO_PORT174, | ||
77 | GPIO_PORT175, GPIO_PORT176, GPIO_PORT177, GPIO_PORT178, GPIO_PORT179, | ||
78 | |||
79 | GPIO_PORT180, GPIO_PORT181, GPIO_PORT182, GPIO_PORT183, GPIO_PORT184, | ||
80 | GPIO_PORT185, GPIO_PORT186, GPIO_PORT187, GPIO_PORT188, GPIO_PORT189, | ||
81 | |||
82 | GPIO_PORT190, | ||
83 | |||
84 | /* IRQ */ | ||
85 | GPIO_FN_IRQ0_6, /* PORT 6 */ | ||
86 | GPIO_FN_IRQ0_162, /* PORT 162 */ | ||
87 | GPIO_FN_IRQ1, /* PORT 12 */ | ||
88 | GPIO_FN_IRQ2_4, /* PORT 4 */ | ||
89 | GPIO_FN_IRQ2_5, /* PORT 5 */ | ||
90 | GPIO_FN_IRQ3_8, /* PORT 8 */ | ||
91 | GPIO_FN_IRQ3_16, /* PORT 16 */ | ||
92 | GPIO_FN_IRQ4_17, /* PORT 17 */ | ||
93 | GPIO_FN_IRQ4_163, /* PORT 163 */ | ||
94 | GPIO_FN_IRQ5, /* PORT 18 */ | ||
95 | GPIO_FN_IRQ6_39, /* PORT 39 */ | ||
96 | GPIO_FN_IRQ6_164, /* PORT 164 */ | ||
97 | GPIO_FN_IRQ7_40, /* PORT 40 */ | ||
98 | GPIO_FN_IRQ7_167, /* PORT 167 */ | ||
99 | GPIO_FN_IRQ8_41, /* PORT 41 */ | ||
100 | GPIO_FN_IRQ8_168, /* PORT 168 */ | ||
101 | GPIO_FN_IRQ9_42, /* PORT 42 */ | ||
102 | GPIO_FN_IRQ9_169, /* PORT 169 */ | ||
103 | GPIO_FN_IRQ10, /* PORT 65 */ | ||
104 | GPIO_FN_IRQ11, /* PORT 67 */ | ||
105 | GPIO_FN_IRQ12_80, /* PORT 80 */ | ||
106 | GPIO_FN_IRQ12_137, /* PORT 137 */ | ||
107 | GPIO_FN_IRQ13_81, /* PORT 81 */ | ||
108 | GPIO_FN_IRQ13_145, /* PORT 145 */ | ||
109 | GPIO_FN_IRQ14_82, /* PORT 82 */ | ||
110 | GPIO_FN_IRQ14_146, /* PORT 146 */ | ||
111 | GPIO_FN_IRQ15_83, /* PORT 83 */ | ||
112 | GPIO_FN_IRQ15_147, /* PORT 147 */ | ||
113 | GPIO_FN_IRQ16_84, /* PORT 84 */ | ||
114 | GPIO_FN_IRQ16_170, /* PORT 170 */ | ||
115 | GPIO_FN_IRQ17, /* PORT 85 */ | ||
116 | GPIO_FN_IRQ18, /* PORT 86 */ | ||
117 | GPIO_FN_IRQ19, /* PORT 87 */ | ||
118 | GPIO_FN_IRQ20, /* PORT 92 */ | ||
119 | GPIO_FN_IRQ21, /* PORT 93 */ | ||
120 | GPIO_FN_IRQ22, /* PORT 94 */ | ||
121 | GPIO_FN_IRQ23, /* PORT 95 */ | ||
122 | GPIO_FN_IRQ24, /* PORT 112 */ | ||
123 | GPIO_FN_IRQ25, /* PORT 119 */ | ||
124 | GPIO_FN_IRQ26_121, /* PORT 121 */ | ||
125 | GPIO_FN_IRQ26_172, /* PORT 172 */ | ||
126 | GPIO_FN_IRQ27_122, /* PORT 122 */ | ||
127 | GPIO_FN_IRQ27_180, /* PORT 180 */ | ||
128 | GPIO_FN_IRQ28_123, /* PORT 123 */ | ||
129 | GPIO_FN_IRQ28_181, /* PORT 181 */ | ||
130 | GPIO_FN_IRQ29_129, /* PORT 129 */ | ||
131 | GPIO_FN_IRQ29_182, /* PORT 182 */ | ||
132 | GPIO_FN_IRQ30_130, /* PORT 130 */ | ||
133 | GPIO_FN_IRQ30_183, /* PORT 183 */ | ||
134 | GPIO_FN_IRQ31_138, /* PORT 138 */ | ||
135 | GPIO_FN_IRQ31_184, /* PORT 184 */ | ||
136 | |||
137 | /* | ||
138 | * MSIOF0 (PORT 36, 37, 38, 39 | ||
139 | * 40, 41, 42, 43, 44, 45) | ||
140 | */ | ||
141 | GPIO_FN_MSIOF0_TSYNC, GPIO_FN_MSIOF0_TSCK, | ||
142 | GPIO_FN_MSIOF0_RXD, GPIO_FN_MSIOF0_RSCK, | ||
143 | GPIO_FN_MSIOF0_RSYNC, GPIO_FN_MSIOF0_MCK0, | ||
144 | GPIO_FN_MSIOF0_MCK1, GPIO_FN_MSIOF0_SS1, | ||
145 | GPIO_FN_MSIOF0_SS2, GPIO_FN_MSIOF0_TXD, | ||
146 | |||
147 | /* | ||
148 | * MSIOF1 (PORT 39, 40, 41, 42, 43, 44 | ||
149 | * 84, 85, 86, 87, 88, 89, 90, 91, 92, 93) | ||
150 | */ | ||
151 | GPIO_FN_MSIOF1_TSCK_39, GPIO_FN_MSIOF1_TSYNC_40, | ||
152 | GPIO_FN_MSIOF1_TSCK_88, GPIO_FN_MSIOF1_TSYNC_89, | ||
153 | GPIO_FN_MSIOF1_TXD_41, GPIO_FN_MSIOF1_RXD_42, | ||
154 | GPIO_FN_MSIOF1_TXD_90, GPIO_FN_MSIOF1_RXD_91, | ||
155 | GPIO_FN_MSIOF1_SS1_43, GPIO_FN_MSIOF1_SS2_44, | ||
156 | GPIO_FN_MSIOF1_SS1_92, GPIO_FN_MSIOF1_SS2_93, | ||
157 | GPIO_FN_MSIOF1_RSCK, GPIO_FN_MSIOF1_RSYNC, | ||
158 | GPIO_FN_MSIOF1_MCK0, GPIO_FN_MSIOF1_MCK1, | ||
159 | |||
160 | /* | ||
161 | * MSIOF2 (PORT 134, 135, 136, 137, 138, 139 | ||
162 | * 148, 149, 150, 151) | ||
163 | */ | ||
164 | GPIO_FN_MSIOF2_RSCK, GPIO_FN_MSIOF2_RSYNC, | ||
165 | GPIO_FN_MSIOF2_MCK0, GPIO_FN_MSIOF2_MCK1, | ||
166 | GPIO_FN_MSIOF2_SS1, GPIO_FN_MSIOF2_SS2, | ||
167 | GPIO_FN_MSIOF2_TSYNC, GPIO_FN_MSIOF2_TSCK, | ||
168 | GPIO_FN_MSIOF2_RXD, GPIO_FN_MSIOF2_TXD, | ||
169 | |||
170 | /* MSIOF3 (PORT 76, 77, 78, 79, 80, 81, 82, 83) */ | ||
171 | GPIO_FN_BBIF1_RXD, GPIO_FN_BBIF1_TSYNC, | ||
172 | GPIO_FN_BBIF1_TSCK, GPIO_FN_BBIF1_TXD, | ||
173 | GPIO_FN_BBIF1_RSCK, GPIO_FN_BBIF1_RSYNC, | ||
174 | GPIO_FN_BBIF1_FLOW, GPIO_FN_BB_RX_FLOW_N, | ||
175 | |||
176 | /* MSIOF4 (PORT 0, 1, 2, 3) */ | ||
177 | GPIO_FN_BBIF2_TSCK1, GPIO_FN_BBIF2_TSYNC1, | ||
178 | GPIO_FN_BBIF2_TXD1, GPIO_FN_BBIF2_RXD, | ||
179 | |||
180 | /* FSI (PORT 4, 5, 6, 7, 8, 9, 10, 11, 15) */ | ||
181 | GPIO_FN_FSIACK, GPIO_FN_FSIBCK, | ||
182 | GPIO_FN_FSIAILR, GPIO_FN_FSIAIBT, | ||
183 | GPIO_FN_FSIAISLD, GPIO_FN_FSIAOMC, | ||
184 | GPIO_FN_FSIAOLR, GPIO_FN_FSIAOBT, | ||
185 | GPIO_FN_FSIAOSLD, GPIO_FN_FSIASPDIF_11, | ||
186 | GPIO_FN_FSIASPDIF_15, | ||
187 | |||
188 | /* FMSI (PORT 12, 13, 14, 15, 16, 17, 18, 65) */ | ||
189 | GPIO_FN_FMSOCK, GPIO_FN_FMSOOLR, | ||
190 | GPIO_FN_FMSIOLR, GPIO_FN_FMSOOBT, | ||
191 | GPIO_FN_FMSIOBT, GPIO_FN_FMSOSLD, | ||
192 | GPIO_FN_FMSOILR, GPIO_FN_FMSIILR, | ||
193 | GPIO_FN_FMSOIBT, GPIO_FN_FMSIIBT, | ||
194 | GPIO_FN_FMSISLD, GPIO_FN_FMSICK, | ||
195 | |||
196 | /* SCIFA0 (PORT 152, 153, 156, 157, 158) */ | ||
197 | GPIO_FN_SCIFA0_TXD, GPIO_FN_SCIFA0_RXD, | ||
198 | GPIO_FN_SCIFA0_SCK, GPIO_FN_SCIFA0_RTS, | ||
199 | GPIO_FN_SCIFA0_CTS, | ||
200 | |||
201 | /* SCIFA1 (PORT 154, 155, 159, 160, 161) */ | ||
202 | GPIO_FN_SCIFA1_TXD, GPIO_FN_SCIFA1_RXD, | ||
203 | GPIO_FN_SCIFA1_SCK, GPIO_FN_SCIFA1_RTS, | ||
204 | GPIO_FN_SCIFA1_CTS, | ||
205 | |||
206 | /* SCIFA2 (PORT 94, 95, 96, 97, 98) */ | ||
207 | GPIO_FN_SCIFA2_CTS1, GPIO_FN_SCIFA2_RTS1, | ||
208 | GPIO_FN_SCIFA2_TXD1, GPIO_FN_SCIFA2_RXD1, | ||
209 | GPIO_FN_SCIFA2_SCK1, | ||
210 | |||
211 | /* SCIFA3 (PORT 43, 44, | ||
212 | 140, 141, 142, 143, 144) */ | ||
213 | GPIO_FN_SCIFA3_CTS_43, GPIO_FN_SCIFA3_CTS_140, | ||
214 | GPIO_FN_SCIFA3_RTS_44, GPIO_FN_SCIFA3_RTS_141, | ||
215 | GPIO_FN_SCIFA3_SCK, GPIO_FN_SCIFA3_TXD, | ||
216 | GPIO_FN_SCIFA3_RXD, | ||
217 | |||
218 | /* SCIFA4 (PORT 5, 6) */ | ||
219 | GPIO_FN_SCIFA4_RXD, GPIO_FN_SCIFA4_TXD, | ||
220 | |||
221 | /* SCIFA5 (PORT 8, 12) */ | ||
222 | GPIO_FN_SCIFA5_RXD, GPIO_FN_SCIFA5_TXD, | ||
223 | |||
224 | /* SCIFB (PORT 162, 163, 164, 165, 166) */ | ||
225 | GPIO_FN_SCIFB_SCK, GPIO_FN_SCIFB_RTS, | ||
226 | GPIO_FN_SCIFB_CTS, GPIO_FN_SCIFB_TXD, | ||
227 | GPIO_FN_SCIFB_RXD, | ||
228 | |||
229 | /* | ||
230 | * CEU (PORT 16, 17, | ||
231 | * 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, | ||
232 | * 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, | ||
233 | * 120) | ||
234 | */ | ||
235 | GPIO_FN_VIO_HD, GPIO_FN_VIO_CKO1, GPIO_FN_VIO_CKO2, | ||
236 | GPIO_FN_VIO_VD, GPIO_FN_VIO_CLK, GPIO_FN_VIO_FIELD, | ||
237 | GPIO_FN_VIO_CKO, | ||
238 | GPIO_FN_VIO_D0, GPIO_FN_VIO_D1, GPIO_FN_VIO_D2, | ||
239 | GPIO_FN_VIO_D3, GPIO_FN_VIO_D4, GPIO_FN_VIO_D5, | ||
240 | GPIO_FN_VIO_D6, GPIO_FN_VIO_D7, GPIO_FN_VIO_D8, | ||
241 | GPIO_FN_VIO_D9, GPIO_FN_VIO_D10, GPIO_FN_VIO_D11, | ||
242 | GPIO_FN_VIO_D12, GPIO_FN_VIO_D13, GPIO_FN_VIO_D14, | ||
243 | GPIO_FN_VIO_D15, | ||
244 | |||
245 | /* USB0 (PORT 113, 114, 115, 116, 117, 167) */ | ||
246 | GPIO_FN_IDIN_0, GPIO_FN_EXTLP_0, | ||
247 | GPIO_FN_OVCN2_0, GPIO_FN_PWEN_0, | ||
248 | GPIO_FN_OVCN_0, GPIO_FN_VBUS0_0, | ||
249 | |||
250 | /* USB1 (PORT 18, 113, 114, 115, 116, 117, 138, 162, 168) */ | ||
251 | GPIO_FN_IDIN_1_18, GPIO_FN_IDIN_1_113, | ||
252 | GPIO_FN_PWEN_1_115, GPIO_FN_PWEN_1_138, | ||
253 | GPIO_FN_OVCN_1_114, GPIO_FN_OVCN_1_162, | ||
254 | GPIO_FN_EXTLP_1, GPIO_FN_OVCN2_1, | ||
255 | GPIO_FN_VBUS0_1, | ||
256 | |||
257 | /* GPIO (PORT 41, 42, 43, 44) */ | ||
258 | GPIO_FN_GPI0, GPIO_FN_GPI1, GPIO_FN_GPO0, GPIO_FN_GPO1, | ||
259 | |||
260 | /* | ||
261 | * BSC (PORT 19, | ||
262 | * 20, 21, 22, 25, 26, 27, 28, 29, | ||
263 | * 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, | ||
264 | * 40, 41, 42, 43, 44, 45, | ||
265 | * 62, 63, 64, 65, 66, 67, | ||
266 | * 71, 72, 74, 75) | ||
267 | */ | ||
268 | GPIO_FN_BS, GPIO_FN_WE1, | ||
269 | GPIO_FN_CKO, GPIO_FN_WAIT, GPIO_FN_RDWR, | ||
270 | |||
271 | GPIO_FN_A0, GPIO_FN_A1, GPIO_FN_A2, GPIO_FN_A3, | ||
272 | GPIO_FN_A6, GPIO_FN_A7, GPIO_FN_A8, GPIO_FN_A9, | ||
273 | GPIO_FN_A10, GPIO_FN_A11, GPIO_FN_A12, GPIO_FN_A13, | ||
274 | GPIO_FN_A14, GPIO_FN_A15, GPIO_FN_A16, GPIO_FN_A17, | ||
275 | GPIO_FN_A18, GPIO_FN_A19, GPIO_FN_A20, GPIO_FN_A21, | ||
276 | GPIO_FN_A22, GPIO_FN_A23, GPIO_FN_A24, GPIO_FN_A25, | ||
277 | GPIO_FN_A26, | ||
278 | |||
279 | GPIO_FN_CS0, GPIO_FN_CS2, GPIO_FN_CS4, | ||
280 | GPIO_FN_CS5A, GPIO_FN_CS5B, GPIO_FN_CS6A, | ||
281 | |||
282 | /* | ||
283 | * BSC/FLCTL (PORT 23, 24, | ||
284 | * 46, 47, 48, 49, | ||
285 | * 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, | ||
286 | * 60, 61, 69, 70) | ||
287 | */ | ||
288 | GPIO_FN_RD_FSC, GPIO_FN_WE0_FWE, | ||
289 | GPIO_FN_A4_FOE, GPIO_FN_A5_FCDE, | ||
290 | GPIO_FN_D0_NAF0, GPIO_FN_D1_NAF1, GPIO_FN_D2_NAF2, | ||
291 | GPIO_FN_D3_NAF3, GPIO_FN_D4_NAF4, GPIO_FN_D5_NAF5, | ||
292 | GPIO_FN_D6_NAF6, GPIO_FN_D7_NAF7, GPIO_FN_D8_NAF8, | ||
293 | GPIO_FN_D9_NAF9, GPIO_FN_D10_NAF10, GPIO_FN_D11_NAF11, | ||
294 | GPIO_FN_D12_NAF12, GPIO_FN_D13_NAF13, GPIO_FN_D14_NAF14, | ||
295 | GPIO_FN_D15_NAF15, | ||
296 | |||
297 | /* SPU2 (PORT 65) */ | ||
298 | GPIO_FN_VINT_I, | ||
299 | |||
300 | /* FLCTL (PORT 66, 68, 73) */ | ||
301 | GPIO_FN_FCE1, GPIO_FN_FCE0, GPIO_FN_FRB, | ||
302 | |||
303 | /* HSI (PORT 76, 77, 78, 79, 80, 81, 82, 83) */ | ||
304 | GPIO_FN_GP_RX_FLAG, GPIO_FN_GP_RX_DATA, GPIO_FN_GP_TX_READY, | ||
305 | GPIO_FN_GP_RX_WAKE, GPIO_FN_MP_TX_FLAG, GPIO_FN_MP_TX_DATA, | ||
306 | GPIO_FN_MP_RX_READY, GPIO_FN_MP_TX_WAKE, | ||
307 | |||
308 | /* | ||
309 | * MFI (PORT 76, 77, 78, 79, | ||
310 | * 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, | ||
311 | * 90, 91, 92, 93, 94, 95, 96, 97, 98, 99) | ||
312 | */ | ||
313 | GPIO_FN_MFIv6, /* see MSEL4CR 6 */ | ||
314 | GPIO_FN_MFIv4, /* see MSEL4CR 6 */ | ||
315 | |||
316 | GPIO_FN_MEMC_CS0, GPIO_FN_MEMC_BUSCLK_MEMC_A0, | ||
317 | GPIO_FN_MEMC_CS1_MEMC_A1, GPIO_FN_MEMC_ADV_MEMC_DREQ0, | ||
318 | GPIO_FN_MEMC_WAIT_MEMC_DREQ1, GPIO_FN_MEMC_NOE, | ||
319 | GPIO_FN_MEMC_NWE, GPIO_FN_MEMC_INT, | ||
320 | |||
321 | GPIO_FN_MEMC_AD0, GPIO_FN_MEMC_AD1, GPIO_FN_MEMC_AD2, | ||
322 | GPIO_FN_MEMC_AD3, GPIO_FN_MEMC_AD4, GPIO_FN_MEMC_AD5, | ||
323 | GPIO_FN_MEMC_AD6, GPIO_FN_MEMC_AD7, GPIO_FN_MEMC_AD8, | ||
324 | GPIO_FN_MEMC_AD9, GPIO_FN_MEMC_AD10, GPIO_FN_MEMC_AD11, | ||
325 | GPIO_FN_MEMC_AD12, GPIO_FN_MEMC_AD13, GPIO_FN_MEMC_AD14, | ||
326 | GPIO_FN_MEMC_AD15, | ||
327 | |||
328 | /* SIM (PORT 94, 95, 98) */ | ||
329 | GPIO_FN_SIM_RST, GPIO_FN_SIM_CLK, GPIO_FN_SIM_D, | ||
330 | |||
331 | /* TPU (PORT 93, 99, 112, 160, 161) */ | ||
332 | GPIO_FN_TPU0TO0, GPIO_FN_TPU0TO1, | ||
333 | GPIO_FN_TPU0TO2_93, GPIO_FN_TPU0TO2_99, | ||
334 | GPIO_FN_TPU0TO3, | ||
335 | |||
336 | /* I2C2 (PORT 110, 111) */ | ||
337 | GPIO_FN_I2C_SCL2, GPIO_FN_I2C_SDA2, | ||
338 | |||
339 | /* I2C3(1) (PORT 114, 115) */ | ||
340 | GPIO_FN_I2C_SCL3, GPIO_FN_I2C_SDA3, | ||
341 | |||
342 | /* I2C3(2) (PORT 137, 145) */ | ||
343 | GPIO_FN_I2C_SCL3S, GPIO_FN_I2C_SDA3S, | ||
344 | |||
345 | /* I2C4(2) (PORT 116, 117) */ | ||
346 | GPIO_FN_I2C_SCL4, GPIO_FN_I2C_SDA4, | ||
347 | |||
348 | /* I2C4(2) (PORT 146, 147) */ | ||
349 | GPIO_FN_I2C_SCL4S, GPIO_FN_I2C_SDA4S, | ||
350 | |||
351 | /* | ||
352 | * KEYSC (PORT 121, 122, 123, 124, 125, 126, 127, 128, 129, | ||
353 | * 130, 131, 132, 133, 134, 135, 136) | ||
354 | */ | ||
355 | GPIO_FN_KEYOUT0, GPIO_FN_KEYIN0_121, GPIO_FN_KEYIN0_136, | ||
356 | GPIO_FN_KEYOUT1, GPIO_FN_KEYIN1_122, GPIO_FN_KEYIN1_135, | ||
357 | GPIO_FN_KEYOUT2, GPIO_FN_KEYIN2_123, GPIO_FN_KEYIN2_134, | ||
358 | GPIO_FN_KEYOUT3, GPIO_FN_KEYIN3_124, GPIO_FN_KEYIN3_133, | ||
359 | GPIO_FN_KEYOUT4, GPIO_FN_KEYIN4, | ||
360 | GPIO_FN_KEYOUT5, GPIO_FN_KEYIN5, | ||
361 | GPIO_FN_KEYOUT6, GPIO_FN_KEYIN6, | ||
362 | GPIO_FN_KEYOUT7, GPIO_FN_KEYIN7, | ||
363 | |||
364 | /* | ||
365 | * LCDC (PORT 121, 122, 123, 124, 125, 126, 127, 128, 129, | ||
366 | * 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, | ||
367 | * 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, | ||
368 | * 150, 151) | ||
369 | */ | ||
370 | GPIO_FN_LCDC0_SELECT, /* LCDC 0 */ | ||
371 | GPIO_FN_LCDC1_SELECT, /* LCDC 1 */ | ||
372 | GPIO_FN_LCDHSYN, GPIO_FN_LCDCS, GPIO_FN_LCDVSYN, | ||
373 | GPIO_FN_LCDDCK, GPIO_FN_LCDWR, GPIO_FN_LCDRD, | ||
374 | GPIO_FN_LCDDISP, GPIO_FN_LCDRS, GPIO_FN_LCDLCLK, | ||
375 | GPIO_FN_LCDDON, | ||
376 | |||
377 | GPIO_FN_LCDD0, GPIO_FN_LCDD1, GPIO_FN_LCDD2, GPIO_FN_LCDD3, | ||
378 | GPIO_FN_LCDD4, GPIO_FN_LCDD5, GPIO_FN_LCDD6, GPIO_FN_LCDD7, | ||
379 | GPIO_FN_LCDD8, GPIO_FN_LCDD9, GPIO_FN_LCDD10, GPIO_FN_LCDD11, | ||
380 | GPIO_FN_LCDD12, GPIO_FN_LCDD13, GPIO_FN_LCDD14, GPIO_FN_LCDD15, | ||
381 | GPIO_FN_LCDD16, GPIO_FN_LCDD17, GPIO_FN_LCDD18, GPIO_FN_LCDD19, | ||
382 | GPIO_FN_LCDD20, GPIO_FN_LCDD21, GPIO_FN_LCDD22, GPIO_FN_LCDD23, | ||
383 | |||
384 | /* IRDA (PORT 139, 140, 141, 142) */ | ||
385 | GPIO_FN_IRDA_OUT, GPIO_FN_IRDA_IN, GPIO_FN_IRDA_FIRSEL, | ||
386 | GPIO_FN_IROUT_139, GPIO_FN_IROUT_140, | ||
387 | |||
388 | /* TSIF1 (PORT 156, 157, 158, 159) */ | ||
389 | GPIO_FN_TS0_1SELECT, /* TSIF0 - 1 select */ | ||
390 | GPIO_FN_TS0_2SELECT, /* TSIF0 - 2 select */ | ||
391 | GPIO_FN_TS1_1SELECT, /* TSIF1 - 1 select */ | ||
392 | GPIO_FN_TS1_2SELECT, /* TSIF1 - 2 select */ | ||
393 | |||
394 | GPIO_FN_TS_SPSYNC1, GPIO_FN_TS_SDAT1, | ||
395 | GPIO_FN_TS_SDEN1, GPIO_FN_TS_SCK1, | ||
396 | |||
397 | /* TSIF2 (PORT 137, 145, 146, 147) */ | ||
398 | GPIO_FN_TS_SPSYNC2, GPIO_FN_TS_SDAT2, | ||
399 | GPIO_FN_TS_SDEN2, GPIO_FN_TS_SCK2, | ||
400 | |||
401 | /* HDMI (PORT 169, 170) */ | ||
402 | GPIO_FN_HDMI_HPD, GPIO_FN_HDMI_CEC, | ||
403 | |||
404 | /* SDENC see MSEL4CR 19 */ | ||
405 | GPIO_FN_SDENC_CPG, | ||
406 | GPIO_FN_SDENC_DV_CLKI, | ||
407 | }; | ||
408 | |||
409 | /* DMA slave IDs */ | 18 | /* DMA slave IDs */ |
410 | enum { | 19 | enum { |
411 | SHDMA_SLAVE_INVALID, | 20 | SHDMA_SLAVE_INVALID, |
@@ -466,6 +75,8 @@ extern void sh7372_intcs_resume(void); | |||
466 | extern void sh7372_intca_suspend(void); | 75 | extern void sh7372_intca_suspend(void); |
467 | extern void sh7372_intca_resume(void); | 76 | extern void sh7372_intca_resume(void); |
468 | 77 | ||
78 | extern unsigned long sh7372_cpu_resume; | ||
79 | |||
469 | #ifdef CONFIG_PM | 80 | #ifdef CONFIG_PM |
470 | extern void __init sh7372_init_pm_domains(void); | 81 | extern void __init sh7372_init_pm_domains(void); |
471 | #else | 82 | #else |
diff --git a/arch/arm/mach-shmobile/include/mach/zboot.h b/arch/arm/mach-shmobile/include/mach/zboot.h index 9320aff0a20f..f2d8744c1f14 100644 --- a/arch/arm/mach-shmobile/include/mach/zboot.h +++ b/arch/arm/mach-shmobile/include/mach/zboot.h | |||
@@ -10,11 +10,9 @@ | |||
10 | * | 10 | * |
11 | **************************************************/ | 11 | **************************************************/ |
12 | 12 | ||
13 | #ifdef CONFIG_MACH_AP4EVB | 13 | #ifdef CONFIG_MACH_MACKEREL |
14 | #define MACH_TYPE MACH_TYPE_AP4EVB | ||
15 | #include "mach/head-ap4evb.txt" | ||
16 | #elif defined(CONFIG_MACH_MACKEREL) | ||
17 | #define MACH_TYPE MACH_TYPE_MACKEREL | 14 | #define MACH_TYPE MACH_TYPE_MACKEREL |
15 | #define MEMORY_START 0x40000000 | ||
18 | #include "mach/head-mackerel.txt" | 16 | #include "mach/head-mackerel.txt" |
19 | #else | 17 | #else |
20 | #error "unsupported board." | 18 | #error "unsupported board." |