• Home
  • Raw
  • Download

Lines Matching +full:1 +full:- +full:sdxc

1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2008-2011 Gabor Juhos <juhosg@openwrt.org>
16 #include <asm/mach-ralink/ralink_regs.h>
17 #include <asm/mach-ralink/mt7620.h>
18 #include <asm/mach-ralink/pinmux.h>
53 static struct rt2880_pmx_func i2c_grp[] = { FUNC("i2c", 0, 1, 2) };
64 static struct rt2880_pmx_func wled_grp[] = { FUNC("wled", 0, 72, 1) };
76 FUNC("wdt rst", 0, 17, 1),
77 FUNC("wdt refclk", 0, 17, 1),
80 FUNC("pcie rst", MT7620_GPIO_MODE_PCIE_RST, 36, 1),
81 FUNC("pcie refclk", MT7620_GPIO_MODE_PCIE_REF, 36, 1)
89 GRP("i2c", i2c_grp, 1, MT7620_GPIO_MODE_I2C),
92 GRP("spi", spi_grp, 1, MT7620_GPIO_MODE_SPI),
93 GRP("uartlite", uartlite_grp, 1, MT7620_GPIO_MODE_UART1),
98 GRP("rgmii1", rgmii1_grp, 1, MT7620_GPIO_MODE_RGMII1),
99 GRP("spi refclk", refclk_grp, 1, MT7620_GPIO_MODE_SPI_REF_CLK),
104 GRP("rgmii2", rgmii2_grp, 1, MT7620_GPIO_MODE_RGMII2),
105 GRP("wled", wled_grp, 1, MT7620_GPIO_MODE_WLED),
106 GRP("ephy", ephy_grp, 1, MT7620_GPIO_MODE_EPHY),
107 GRP("pa", pa_grp, 1, MT7620_GPIO_MODE_PA),
112 FUNC("sdxc d6", 3, 19, 1),
113 FUNC("utif", 2, 19, 1),
114 FUNC("gpio", 1, 19, 1),
115 FUNC("pwm1", 0, 19, 1),
119 FUNC("sdxc d7", 3, 18, 1),
120 FUNC("utif", 2, 18, 1),
121 FUNC("gpio", 1, 18, 1),
122 FUNC("pwm0", 0, 18, 1),
126 FUNC("sdxc d5 d4", 3, 20, 2),
128 FUNC("gpio", 1, 20, 2),
135 FUNC("gpio", 1, 45, 2),
140 FUNC("-", 3, 4, 2),
142 FUNC("gpio", 1, 4, 2),
146 static struct rt2880_pmx_func refclk_grp_mt7628[] = { FUNC("refclk", 0, 37, 1) };
147 static struct rt2880_pmx_func perst_grp_mt7628[] = { FUNC("perst", 0, 36, 1) };
148 static struct rt2880_pmx_func wdt_grp_mt7628[] = { FUNC("wdt", 0, 38, 1) };
154 FUNC("gpio", 1, 22, 8),
155 FUNC("sdxc", 0, 22, 8),
159 FUNC("-", 3, 12, 2),
160 FUNC("-", 2, 12, 2),
161 FUNC("gpio", 1, 12, 2),
168 FUNC("gpio", 1, 0, 4),
173 FUNC("-", 3, 6, 1),
174 FUNC("refclk", 2, 6, 1),
175 FUNC("gpio", 1, 6, 1),
176 FUNC("spi cs1", 0, 6, 1),
182 FUNC("gpio", 1, 14, 4),
187 FUNC("pcie", 3, 11, 1),
188 FUNC("refclk", 2, 11, 1),
189 FUNC("gpio", 1, 11, 1),
190 FUNC("gpio", 0, 11, 1),
194 FUNC("jtag", 3, 30, 1),
195 FUNC("utif", 2, 30, 1),
196 FUNC("gpio", 1, 30, 1),
197 FUNC("p4led_kn", 0, 30, 1),
201 FUNC("jtag", 3, 31, 1),
202 FUNC("utif", 2, 31, 1),
203 FUNC("gpio", 1, 31, 1),
204 FUNC("p3led_kn", 0, 31, 1),
208 FUNC("jtag", 3, 32, 1),
209 FUNC("utif", 2, 32, 1),
210 FUNC("gpio", 1, 32, 1),
211 FUNC("p2led_kn", 0, 32, 1),
215 FUNC("jtag", 3, 33, 1),
216 FUNC("utif", 2, 33, 1),
217 FUNC("gpio", 1, 33, 1),
218 FUNC("p1led_kn", 0, 33, 1),
222 FUNC("jtag", 3, 34, 1),
223 FUNC("rsvd", 2, 34, 1),
224 FUNC("gpio", 1, 34, 1),
225 FUNC("p0led_kn", 0, 34, 1),
229 FUNC("rsvd", 3, 35, 1),
230 FUNC("rsvd", 2, 35, 1),
231 FUNC("gpio", 1, 35, 1),
232 FUNC("wled_kn", 0, 35, 1),
236 FUNC("jtag", 3, 39, 1),
237 FUNC("utif", 2, 39, 1),
238 FUNC("gpio", 1, 39, 1),
239 FUNC("p4led_an", 0, 39, 1),
243 FUNC("jtag", 3, 40, 1),
244 FUNC("utif", 2, 40, 1),
245 FUNC("gpio", 1, 40, 1),
246 FUNC("p3led_an", 0, 40, 1),
250 FUNC("jtag", 3, 41, 1),
251 FUNC("utif", 2, 41, 1),
252 FUNC("gpio", 1, 41, 1),
253 FUNC("p2led_an", 0, 41, 1),
257 FUNC("jtag", 3, 42, 1),
258 FUNC("utif", 2, 42, 1),
259 FUNC("gpio", 1, 42, 1),
260 FUNC("p1led_an", 0, 42, 1),
264 FUNC("jtag", 3, 43, 1),
265 FUNC("rsvd", 2, 43, 1),
266 FUNC("gpio", 1, 43, 1),
267 FUNC("p0led_an", 0, 43, 1),
271 FUNC("rsvd", 3, 44, 1),
272 FUNC("rsvd", 2, 44, 1),
273 FUNC("gpio", 1, 44, 1),
274 FUNC("wled_an", 0, 44, 1),
309 1, MT7628_GPIO_MODE_PWM1),
311 1, MT7628_GPIO_MODE_PWM0),
313 1, MT7628_GPIO_MODE_UART2),
315 1, MT7628_GPIO_MODE_UART1),
317 1, MT7628_GPIO_MODE_I2C),
318 GRP("refclk", refclk_grp_mt7628, 1, MT7628_GPIO_MODE_REFCLK),
319 GRP("perst", perst_grp_mt7628, 1, MT7628_GPIO_MODE_PERST),
320 GRP("wdt", wdt_grp_mt7628, 1, MT7628_GPIO_MODE_WDT),
321 GRP("spi", spi_grp_mt7628, 1, MT7628_GPIO_MODE_SPI),
323 1, MT7628_GPIO_MODE_SDMODE),
325 1, MT7628_GPIO_MODE_UART0),
327 1, MT7628_GPIO_MODE_I2S),
329 1, MT7628_GPIO_MODE_CS1),
331 1, MT7628_GPIO_MODE_SPIS),
333 1, MT7628_GPIO_MODE_GPIO),
335 1, MT7628_GPIO_MODE_WLED_AN),
337 1, MT7628_GPIO_MODE_P0LED_AN),
339 1, MT7628_GPIO_MODE_P1LED_AN),
341 1, MT7628_GPIO_MODE_P2LED_AN),
343 1, MT7628_GPIO_MODE_P3LED_AN),
345 1, MT7628_GPIO_MODE_P4LED_AN),
347 1, MT7628_GPIO_MODE_WLED_KN),
349 1, MT7628_GPIO_MODE_P0LED_KN),
351 1, MT7628_GPIO_MODE_P1LED_KN),
353 1, MT7628_GPIO_MODE_P2LED_KN),
355 1, MT7628_GPIO_MODE_P3LED_KN),
357 1, MT7628_GPIO_MODE_P4LED_KN),
589 rt_sysc_membase = plat_of_remap_node("ralink,mt7620a-sysc"); in ralink_of_remap()
590 rt_memc_membase = plat_of_remap_node("ralink,mt7620a-memc"); in ralink_of_remap()
602 soc_info->mem_size_min = MT7620_SDRAM_SIZE_MIN; in mt7620_dram_init()
603 soc_info->mem_size_max = MT7620_SDRAM_SIZE_MAX; in mt7620_dram_init()
608 soc_info->mem_size_min = MT7620_DDR1_SIZE_MIN; in mt7620_dram_init()
609 soc_info->mem_size_max = MT7620_DDR1_SIZE_MAX; in mt7620_dram_init()
614 soc_info->mem_size_min = MT7620_DDR2_SIZE_MIN; in mt7620_dram_init()
615 soc_info->mem_size_max = MT7620_DDR2_SIZE_MAX; in mt7620_dram_init()
628 soc_info->mem_size_min = MT7620_DDR1_SIZE_MIN; in mt7628_dram_init()
629 soc_info->mem_size_max = MT7620_DDR1_SIZE_MAX; in mt7628_dram_init()
634 soc_info->mem_size_min = MT7620_DDR2_SIZE_MIN; in mt7628_dram_init()
635 soc_info->mem_size_max = MT7620_DDR2_SIZE_MAX; in mt7628_dram_init()
663 soc_info->compatible = "ralink,mt7620a-soc"; in prom_soc_init()
667 soc_info->compatible = "ralink,mt7620n-soc"; in prom_soc_init()
679 soc_info->compatible = "ralink,mt7628an-soc"; in prom_soc_init()
684 snprintf(soc_info->sys_type, RAMIPS_SYS_TYPE_LEN, in prom_soc_init()
700 soc_info->mem_base = MT7620_DRAM_BASE; in prom_soc_init()