Lines Matching full:static

102 static const u32 jz4740_pull_ups[4] = {
106 static const u32 jz4740_pull_downs[4] = {
110 static int jz4740_mmc_1bit_pins[] = { 0x69, 0x68, 0x6a, };
111 static int jz4740_mmc_4bit_pins[] = { 0x6b, 0x6c, 0x6d, };
112 static int jz4740_uart0_data_pins[] = { 0x7a, 0x79, };
113 static int jz4740_uart0_hwflow_pins[] = { 0x7e, 0x7f, };
114 static int jz4740_uart1_data_pins[] = { 0x7e, 0x7f, };
115 static int jz4740_lcd_8bit_pins[] = {
118 static int jz4740_lcd_16bit_pins[] = {
121 static int jz4740_lcd_18bit_pins[] = { 0x50, 0x51, };
122 static int jz4740_lcd_18bit_tft_pins[] = { 0x56, 0x57, 0x31, 0x32, };
123 static int jz4740_nand_cs1_pins[] = { 0x39, };
124 static int jz4740_nand_cs2_pins[] = { 0x3a, };
125 static int jz4740_nand_cs3_pins[] = { 0x3b, };
126 static int jz4740_nand_cs4_pins[] = { 0x3c, };
127 static int jz4740_nand_fre_fwe_pins[] = { 0x5c, 0x5d, };
128 static int jz4740_pwm_pwm0_pins[] = { 0x77, };
129 static int jz4740_pwm_pwm1_pins[] = { 0x78, };
130 static int jz4740_pwm_pwm2_pins[] = { 0x79, };
131 static int jz4740_pwm_pwm3_pins[] = { 0x7a, };
132 static int jz4740_pwm_pwm4_pins[] = { 0x7b, };
133 static int jz4740_pwm_pwm5_pins[] = { 0x7c, };
134 static int jz4740_pwm_pwm6_pins[] = { 0x7e, };
135 static int jz4740_pwm_pwm7_pins[] = { 0x7f, };
137 static int jz4740_mmc_1bit_funcs[] = { 0, 0, 0, };
138 static int jz4740_mmc_4bit_funcs[] = { 0, 0, 0, };
139 static int jz4740_uart0_data_funcs[] = { 1, 1, };
140 static int jz4740_uart0_hwflow_funcs[] = { 1, 1, };
141 static int jz4740_uart1_data_funcs[] = { 2, 2, };
142 static int jz4740_lcd_8bit_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, };
143 static int jz4740_lcd_16bit_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, };
144 static int jz4740_lcd_18bit_funcs[] = { 0, 0, };
145 static int jz4740_lcd_18bit_tft_funcs[] = { 0, 0, 0, 0, };
146 static int jz4740_nand_cs1_funcs[] = { 0, };
147 static int jz4740_nand_cs2_funcs[] = { 0, };
148 static int jz4740_nand_cs3_funcs[] = { 0, };
149 static int jz4740_nand_cs4_funcs[] = { 0, };
150 static int jz4740_nand_fre_fwe_funcs[] = { 0, 0, };
151 static int jz4740_pwm_pwm0_funcs[] = { 0, };
152 static int jz4740_pwm_pwm1_funcs[] = { 0, };
153 static int jz4740_pwm_pwm2_funcs[] = { 0, };
154 static int jz4740_pwm_pwm3_funcs[] = { 0, };
155 static int jz4740_pwm_pwm4_funcs[] = { 0, };
156 static int jz4740_pwm_pwm5_funcs[] = { 0, };
157 static int jz4740_pwm_pwm6_funcs[] = { 0, };
158 static int jz4740_pwm_pwm7_funcs[] = { 0, };
168 static const struct group_desc jz4740_groups[] = {
194 static const char *jz4740_mmc_groups[] = { "mmc-1bit", "mmc-4bit", };
195 static const char *jz4740_uart0_groups[] = { "uart0-data", "uart0-hwflow", };
196 static const char *jz4740_uart1_groups[] = { "uart1-data", };
197 static const char *jz4740_lcd_groups[] = {
200 static const char *jz4740_nand_groups[] = {
203 static const char *jz4740_pwm0_groups[] = { "pwm0", };
204 static const char *jz4740_pwm1_groups[] = { "pwm1", };
205 static const char *jz4740_pwm2_groups[] = { "pwm2", };
206 static const char *jz4740_pwm3_groups[] = { "pwm3", };
207 static const char *jz4740_pwm4_groups[] = { "pwm4", };
208 static const char *jz4740_pwm5_groups[] = { "pwm5", };
209 static const char *jz4740_pwm6_groups[] = { "pwm6", };
210 static const char *jz4740_pwm7_groups[] = { "pwm7", };
212 static const struct function_desc jz4740_functions[] = {
228 static const struct ingenic_chip_info jz4740_chip_info = {
240 static int jz4725b_mmc0_1bit_pins[] = { 0x48, 0x49, 0x5c, };
241 static int jz4725b_mmc0_4bit_pins[] = { 0x5d, 0x5b, 0x56, };
242 static int jz4725b_mmc1_1bit_pins[] = { 0x7a, 0x7b, 0x7c, };
243 static int jz4725b_mmc1_4bit_pins[] = { 0x7d, 0x7e, 0x7f, };
244 static int jz4725b_uart_data_pins[] = { 0x4c, 0x4d, };
245 static int jz4725b_nand_cs1_pins[] = { 0x55, };
246 static int jz4725b_nand_cs2_pins[] = { 0x56, };
247 static int jz4725b_nand_cs3_pins[] = { 0x57, };
248 static int jz4725b_nand_cs4_pins[] = { 0x58, };
249 static int jz4725b_nand_cle_ale_pins[] = { 0x48, 0x49 };
250 static int jz4725b_nand_fre_fwe_pins[] = { 0x5c, 0x5d };
251 static int jz4725b_pwm_pwm0_pins[] = { 0x4a, };
252 static int jz4725b_pwm_pwm1_pins[] = { 0x4b, };
253 static int jz4725b_pwm_pwm2_pins[] = { 0x4c, };
254 static int jz4725b_pwm_pwm3_pins[] = { 0x4d, };
255 static int jz4725b_pwm_pwm4_pins[] = { 0x4e, };
256 static int jz4725b_pwm_pwm5_pins[] = { 0x4f, };
257 static int jz4725b_lcd_8bit_pins[] = {
262 static int jz4725b_lcd_16bit_pins[] = {
266 static int jz4725b_lcd_18bit_pins[] = { 0x70, 0x71, };
267 static int jz4725b_lcd_24bit_pins[] = { 0x76, 0x77, 0x78, 0x79, };
268 static int jz4725b_lcd_special_pins[] = { 0x76, 0x77, 0x78, 0x79, };
269 static int jz4725b_lcd_generic_pins[] = { 0x75, };
271 static int jz4725b_mmc0_1bit_funcs[] = { 1, 1, 1, };
272 static int jz4725b_mmc0_4bit_funcs[] = { 1, 0, 1, };
273 static int jz4725b_mmc1_1bit_funcs[] = { 0, 0, 0, };
274 static int jz4725b_mmc1_4bit_funcs[] = { 0, 0, 0, };
275 static int jz4725b_uart_data_funcs[] = { 1, 1, };
276 static int jz4725b_nand_cs1_funcs[] = { 0, };
277 static int jz4725b_nand_cs2_funcs[] = { 0, };
278 static int jz4725b_nand_cs3_funcs[] = { 0, };
279 static int jz4725b_nand_cs4_funcs[] = { 0, };
280 static int jz4725b_nand_cle_ale_funcs[] = { 0, 0, };
281 static int jz4725b_nand_fre_fwe_funcs[] = { 0, 0, };
282 static int jz4725b_pwm_pwm0_funcs[] = { 0, };
283 static int jz4725b_pwm_pwm1_funcs[] = { 0, };
284 static int jz4725b_pwm_pwm2_funcs[] = { 0, };
285 static int jz4725b_pwm_pwm3_funcs[] = { 0, };
286 static int jz4725b_pwm_pwm4_funcs[] = { 0, };
287 static int jz4725b_pwm_pwm5_funcs[] = { 0, };
288 static int jz4725b_lcd_8bit_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, };
289 static int jz4725b_lcd_16bit_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, };
290 static int jz4725b_lcd_18bit_funcs[] = { 0, 0, };
291 static int jz4725b_lcd_24bit_funcs[] = { 1, 1, 1, 1, };
292 static int jz4725b_lcd_special_funcs[] = { 0, 0, 0, 0, };
293 static int jz4725b_lcd_generic_funcs[] = { 0, };
295 static const struct group_desc jz4725b_groups[] = {
321 static const char *jz4725b_mmc0_groups[] = { "mmc0-1bit", "mmc0-4bit", };
322 static const char *jz4725b_mmc1_groups[] = { "mmc1-1bit", "mmc1-4bit", };
323 static const char *jz4725b_uart_groups[] = { "uart-data", };
324 static const char *jz4725b_nand_groups[] = {
328 static const char *jz4725b_pwm0_groups[] = { "pwm0", };
329 static const char *jz4725b_pwm1_groups[] = { "pwm1", };
330 static const char *jz4725b_pwm2_groups[] = { "pwm2", };
331 static const char *jz4725b_pwm3_groups[] = { "pwm3", };
332 static const char *jz4725b_pwm4_groups[] = { "pwm4", };
333 static const char *jz4725b_pwm5_groups[] = { "pwm5", };
334 static const char *jz4725b_lcd_groups[] = {
339 static const struct function_desc jz4725b_functions[] = {
353 static const struct ingenic_chip_info jz4725b_chip_info = {
365 static const u32 jz4760_pull_ups[6] = {
369 static const u32 jz4760_pull_downs[6] = {
373 static int jz4760_uart0_data_pins[] = { 0xa0, 0xa3, };
374 static int jz4760_uart0_hwflow_pins[] = { 0xa1, 0xa2, };
375 static int jz4760_uart1_data_pins[] = { 0x7a, 0x7c, };
376 static int jz4760_uart1_hwflow_pins[] = { 0x7b, 0x7d, };
377 static int jz4760_uart2_data_pins[] = { 0x5c, 0x5e, };
378 static int jz4760_uart2_hwflow_pins[] = { 0x5d, 0x5f, };
379 static int jz4760_uart3_data_pins[] = { 0x6c, 0x85, };
380 static int jz4760_uart3_hwflow_pins[] = { 0x88, 0x89, };
381 static int jz4760_mmc0_1bit_a_pins[] = { 0x12, 0x13, 0x14, };
382 static int jz4760_mmc0_4bit_a_pins[] = { 0x15, 0x16, 0x17, };
383 static int jz4760_mmc0_1bit_e_pins[] = { 0x9c, 0x9d, 0x94, };
384 static int jz4760_mmc0_4bit_e_pins[] = { 0x95, 0x96, 0x97, };
385 static int jz4760_mmc0_8bit_e_pins[] = { 0x98, 0x99, 0x9a, 0x9b, };
386 static int jz4760_mmc1_1bit_d_pins[] = { 0x78, 0x79, 0x74, };
387 static int jz4760_mmc1_4bit_d_pins[] = { 0x75, 0x76, 0x77, };
388 static int jz4760_mmc1_1bit_e_pins[] = { 0x9c, 0x9d, 0x94, };
389 static int jz4760_mmc1_4bit_e_pins[] = { 0x95, 0x96, 0x97, };
390 static int jz4760_mmc1_8bit_e_pins[] = { 0x98, 0x99, 0x9a, 0x9b, };
391 static int jz4760_mmc2_1bit_b_pins[] = { 0x3c, 0x3d, 0x34, };
392 static int jz4760_mmc2_4bit_b_pins[] = { 0x35, 0x3e, 0x3f, };
393 static int jz4760_mmc2_1bit_e_pins[] = { 0x9c, 0x9d, 0x94, };
394 static int jz4760_mmc2_4bit_e_pins[] = { 0x95, 0x96, 0x97, };
395 static int jz4760_mmc2_8bit_e_pins[] = { 0x98, 0x99, 0x9a, 0x9b, };
396 static int jz4760_nemc_8bit_data_pins[] = {
399 static int jz4760_nemc_16bit_data_pins[] = {
402 static int jz4760_nemc_cle_ale_pins[] = { 0x20, 0x21, };
403 static int jz4760_nemc_addr_pins[] = { 0x22, 0x23, 0x24, 0x25, };
404 static int jz4760_nemc_rd_we_pins[] = { 0x10, 0x11, };
405 static int jz4760_nemc_frd_fwe_pins[] = { 0x12, 0x13, };
406 static int jz4760_nemc_wait_pins[] = { 0x1b, };
407 static int jz4760_nemc_cs1_pins[] = { 0x15, };
408 static int jz4760_nemc_cs2_pins[] = { 0x16, };
409 static int jz4760_nemc_cs3_pins[] = { 0x17, };
410 static int jz4760_nemc_cs4_pins[] = { 0x18, };
411 static int jz4760_nemc_cs5_pins[] = { 0x19, };
412 static int jz4760_nemc_cs6_pins[] = { 0x1a, };
413 static int jz4760_i2c0_pins[] = { 0x7e, 0x7f, };
414 static int jz4760_i2c1_pins[] = { 0x9e, 0x9f, };
415 static int jz4760_cim_pins[] = {
419 static int jz4760_lcd_24bit_pins[] = {
425 static int jz4760_pwm_pwm0_pins[] = { 0x80, };
426 static int jz4760_pwm_pwm1_pins[] = { 0x81, };
427 static int jz4760_pwm_pwm2_pins[] = { 0x82, };
428 static int jz4760_pwm_pwm3_pins[] = { 0x83, };
429 static int jz4760_pwm_pwm4_pins[] = { 0x84, };
430 static int jz4760_pwm_pwm5_pins[] = { 0x85, };
431 static int jz4760_pwm_pwm6_pins[] = { 0x6a, };
432 static int jz4760_pwm_pwm7_pins[] = { 0x6b, };
434 static int jz4760_uart0_data_funcs[] = { 0, 0, };
435 static int jz4760_uart0_hwflow_funcs[] = { 0, 0, };
436 static int jz4760_uart1_data_funcs[] = { 0, 0, };
437 static int jz4760_uart1_hwflow_funcs[] = { 0, 0, };
438 static int jz4760_uart2_data_funcs[] = { 0, 0, };
439 static int jz4760_uart2_hwflow_funcs[] = { 0, 0, };
440 static int jz4760_uart3_data_funcs[] = { 0, 1, };
441 static int jz4760_uart3_hwflow_funcs[] = { 0, 0, };
442 static int jz4760_mmc0_1bit_a_funcs[] = { 1, 1, 0, };
443 static int jz4760_mmc0_4bit_a_funcs[] = { 1, 1, 1, };
444 static int jz4760_mmc0_1bit_e_funcs[] = { 0, 0, 0, };
445 static int jz4760_mmc0_4bit_e_funcs[] = { 0, 0, 0, };
446 static int jz4760_mmc0_8bit_e_funcs[] = { 0, 0, 0, 0, };
447 static int jz4760_mmc1_1bit_d_funcs[] = { 0, 0, 0, };
448 static int jz4760_mmc1_4bit_d_funcs[] = { 0, 0, 0, };
449 static int jz4760_mmc1_1bit_e_funcs[] = { 1, 1, 1, };
450 static int jz4760_mmc1_4bit_e_funcs[] = { 1, 1, 1, };
451 static int jz4760_mmc1_8bit_e_funcs[] = { 1, 1, 1, 1, };
452 static int jz4760_mmc2_1bit_b_funcs[] = { 0, 0, 0, };
453 static int jz4760_mmc2_4bit_b_funcs[] = { 0, 0, 0, };
454 static int jz4760_mmc2_1bit_e_funcs[] = { 2, 2, 2, };
455 static int jz4760_mmc2_4bit_e_funcs[] = { 2, 2, 2, };
456 static int jz4760_mmc2_8bit_e_funcs[] = { 2, 2, 2, 2, };
457 static int jz4760_nemc_8bit_data_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, };
458 static int jz4760_nemc_16bit_data_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, };
459 static int jz4760_nemc_cle_ale_funcs[] = { 0, 0, };
460 static int jz4760_nemc_addr_funcs[] = { 0, 0, 0, 0, };
461 static int jz4760_nemc_rd_we_funcs[] = { 0, 0, };
462 static int jz4760_nemc_frd_fwe_funcs[] = { 0, 0, };
463 static int jz4760_nemc_wait_funcs[] = { 0, };
464 static int jz4760_nemc_cs1_funcs[] = { 0, };
465 static int jz4760_nemc_cs2_funcs[] = { 0, };
466 static int jz4760_nemc_cs3_funcs[] = { 0, };
467 static int jz4760_nemc_cs4_funcs[] = { 0, };
468 static int jz4760_nemc_cs5_funcs[] = { 0, };
469 static int jz4760_nemc_cs6_funcs[] = { 0, };
470 static int jz4760_i2c0_funcs[] = { 0, 0, };
471 static int jz4760_i2c1_funcs[] = { 0, 0, };
472 static int jz4760_cim_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, };
473 static int jz4760_lcd_24bit_funcs[] = {
479 static int jz4760_pwm_pwm0_funcs[] = { 0, };
480 static int jz4760_pwm_pwm1_funcs[] = { 0, };
481 static int jz4760_pwm_pwm2_funcs[] = { 0, };
482 static int jz4760_pwm_pwm3_funcs[] = { 0, };
483 static int jz4760_pwm_pwm4_funcs[] = { 0, };
484 static int jz4760_pwm_pwm5_funcs[] = { 0, };
485 static int jz4760_pwm_pwm6_funcs[] = { 0, };
486 static int jz4760_pwm_pwm7_funcs[] = { 0, };
488 static const struct group_desc jz4760_groups[] = {
540 static const char *jz4760_uart0_groups[] = { "uart0-data", "uart0-hwflow", };
541 static const char *jz4760_uart1_groups[] = { "uart1-data", "uart1-hwflow", };
542 static const char *jz4760_uart2_groups[] = { "uart2-data", "uart2-hwflow", };
543 static const char *jz4760_uart3_groups[] = { "uart3-data", "uart3-hwflow", };
544 static const char *jz4760_mmc0_groups[] = {
548 static const char *jz4760_mmc1_groups[] = {
552 static const char *jz4760_mmc2_groups[] = {
556 static const char *jz4760_nemc_groups[] = {
560 static const char *jz4760_cs1_groups[] = { "nemc-cs1", };
561 static const char *jz4760_cs2_groups[] = { "nemc-cs2", };
562 static const char *jz4760_cs3_groups[] = { "nemc-cs3", };
563 static const char *jz4760_cs4_groups[] = { "nemc-cs4", };
564 static const char *jz4760_cs5_groups[] = { "nemc-cs5", };
565 static const char *jz4760_cs6_groups[] = { "nemc-cs6", };
566 static const char *jz4760_i2c0_groups[] = { "i2c0-data", };
567 static const char *jz4760_i2c1_groups[] = { "i2c1-data", };
568 static const char *jz4760_cim_groups[] = { "cim-data", };
569 static const char *jz4760_lcd_groups[] = { "lcd-24bit", "lcd-no-pins", };
570 static const char *jz4760_pwm0_groups[] = { "pwm0", };
571 static const char *jz4760_pwm1_groups[] = { "pwm1", };
572 static const char *jz4760_pwm2_groups[] = { "pwm2", };
573 static const char *jz4760_pwm3_groups[] = { "pwm3", };
574 static const char *jz4760_pwm4_groups[] = { "pwm4", };
575 static const char *jz4760_pwm5_groups[] = { "pwm5", };
576 static const char *jz4760_pwm6_groups[] = { "pwm6", };
577 static const char *jz4760_pwm7_groups[] = { "pwm7", };
579 static const struct function_desc jz4760_functions[] = {
608 static const struct ingenic_chip_info jz4760_chip_info = {
620 static const u32 jz4770_pull_ups[6] = {
624 static const u32 jz4770_pull_downs[6] = {
628 static int jz4770_uart0_data_pins[] = { 0xa0, 0xa3, };
629 static int jz4770_uart0_hwflow_pins[] = { 0xa1, 0xa2, };
630 static int jz4770_uart1_data_pins[] = { 0x7a, 0x7c, };
631 static int jz4770_uart1_hwflow_pins[] = { 0x7b, 0x7d, };
632 static int jz4770_uart2_data_pins[] = { 0x5c, 0x5e, };
633 static int jz4770_uart2_hwflow_pins[] = { 0x5d, 0x5f, };
634 static int jz4770_uart3_data_pins[] = { 0x6c, 0x85, };
635 static int jz4770_uart3_hwflow_pins[] = { 0x88, 0x89, };
636 static int jz4770_ssi0_dt_a_pins[] = { 0x15, };
637 static int jz4770_ssi0_dt_b_pins[] = { 0x35, };
638 static int jz4770_ssi0_dt_d_pins[] = { 0x75, };
639 static int jz4770_ssi0_dt_e_pins[] = { 0x91, };
640 static int jz4770_ssi0_dr_a_pins[] = { 0x14, };
641 static int jz4770_ssi0_dr_b_pins[] = { 0x34, };
642 static int jz4770_ssi0_dr_d_pins[] = { 0x74, };
643 static int jz4770_ssi0_dr_e_pins[] = { 0x8e, };
644 static int jz4770_ssi0_clk_a_pins[] = { 0x12, };
645 static int jz4770_ssi0_clk_b_pins[] = { 0x3c, };
646 static int jz4770_ssi0_clk_d_pins[] = { 0x78, };
647 static int jz4770_ssi0_clk_e_pins[] = { 0x8f, };
648 static int jz4770_ssi0_gpc_b_pins[] = { 0x3e, };
649 static int jz4770_ssi0_gpc_d_pins[] = { 0x76, };
650 static int jz4770_ssi0_gpc_e_pins[] = { 0x93, };
651 static int jz4770_ssi0_ce0_a_pins[] = { 0x13, };
652 static int jz4770_ssi0_ce0_b_pins[] = { 0x3d, };
653 static int jz4770_ssi0_ce0_d_pins[] = { 0x79, };
654 static int jz4770_ssi0_ce0_e_pins[] = { 0x90, };
655 static int jz4770_ssi0_ce1_b_pins[] = { 0x3f, };
656 static int jz4770_ssi0_ce1_d_pins[] = { 0x77, };
657 static int jz4770_ssi0_ce1_e_pins[] = { 0x92, };
658 static int jz4770_ssi1_dt_b_pins[] = { 0x35, };
659 static int jz4770_ssi1_dt_d_pins[] = { 0x75, };
660 static int jz4770_ssi1_dt_e_pins[] = { 0x91, };
661 static int jz4770_ssi1_dr_b_pins[] = { 0x34, };
662 static int jz4770_ssi1_dr_d_pins[] = { 0x74, };
663 static int jz4770_ssi1_dr_e_pins[] = { 0x8e, };
664 static int jz4770_ssi1_clk_b_pins[] = { 0x3c, };
665 static int jz4770_ssi1_clk_d_pins[] = { 0x78, };
666 static int jz4770_ssi1_clk_e_pins[] = { 0x8f, };
667 static int jz4770_ssi1_gpc_b_pins[] = { 0x3e, };
668 static int jz4770_ssi1_gpc_d_pins[] = { 0x76, };
669 static int jz4770_ssi1_gpc_e_pins[] = { 0x93, };
670 static int jz4770_ssi1_ce0_b_pins[] = { 0x3d, };
671 static int jz4770_ssi1_ce0_d_pins[] = { 0x79, };
672 static int jz4770_ssi1_ce0_e_pins[] = { 0x90, };
673 static int jz4770_ssi1_ce1_b_pins[] = { 0x3f, };
674 static int jz4770_ssi1_ce1_d_pins[] = { 0x77, };
675 static int jz4770_ssi1_ce1_e_pins[] = { 0x92, };
676 static int jz4770_mmc0_1bit_a_pins[] = { 0x12, 0x13, 0x14, };
677 static int jz4770_mmc0_4bit_a_pins[] = { 0x15, 0x16, 0x17, };
678 static int jz4770_mmc0_1bit_e_pins[] = { 0x9c, 0x9d, 0x94, };
679 static int jz4770_mmc0_4bit_e_pins[] = { 0x95, 0x96, 0x97, };
680 static int jz4770_mmc0_8bit_e_pins[] = { 0x98, 0x99, 0x9a, 0x9b, };
681 static int jz4770_mmc1_1bit_d_pins[] = { 0x78, 0x79, 0x74, };
682 static int jz4770_mmc1_4bit_d_pins[] = { 0x75, 0x76, 0x77, };
683 static int jz4770_mmc1_1bit_e_pins[] = { 0x9c, 0x9d, 0x94, };
684 static int jz4770_mmc1_4bit_e_pins[] = { 0x95, 0x96, 0x97, };
685 static int jz4770_mmc1_8bit_e_pins[] = { 0x98, 0x99, 0x9a, 0x9b, };
686 static int jz4770_mmc2_1bit_b_pins[] = { 0x3c, 0x3d, 0x34, };
687 static int jz4770_mmc2_4bit_b_pins[] = { 0x35, 0x3e, 0x3f, };
688 static int jz4770_mmc2_1bit_e_pins[] = { 0x9c, 0x9d, 0x94, };
689 static int jz4770_mmc2_4bit_e_pins[] = { 0x95, 0x96, 0x97, };
690 static int jz4770_mmc2_8bit_e_pins[] = { 0x98, 0x99, 0x9a, 0x9b, };
691 static int jz4770_nemc_8bit_data_pins[] = {
694 static int jz4770_nemc_16bit_data_pins[] = {
697 static int jz4770_nemc_cle_ale_pins[] = { 0x20, 0x21, };
698 static int jz4770_nemc_addr_pins[] = { 0x22, 0x23, 0x24, 0x25, };
699 static int jz4770_nemc_rd_we_pins[] = { 0x10, 0x11, };
700 static int jz4770_nemc_frd_fwe_pins[] = { 0x12, 0x13, };
701 static int jz4770_nemc_wait_pins[] = { 0x1b, };
702 static int jz4770_nemc_cs1_pins[] = { 0x15, };
703 static int jz4770_nemc_cs2_pins[] = { 0x16, };
704 static int jz4770_nemc_cs3_pins[] = { 0x17, };
705 static int jz4770_nemc_cs4_pins[] = { 0x18, };
706 static int jz4770_nemc_cs5_pins[] = { 0x19, };
707 static int jz4770_nemc_cs6_pins[] = { 0x1a, };
708 static int jz4770_i2c0_pins[] = { 0x7e, 0x7f, };
709 static int jz4770_i2c1_pins[] = { 0x9e, 0x9f, };
710 static int jz4770_i2c2_pins[] = { 0xb0, 0xb1, };
711 static int jz4770_cim_8bit_pins[] = {
715 static int jz4770_cim_12bit_pins[] = {
718 static int jz4770_lcd_24bit_pins[] = {
724 static int jz4770_pwm_pwm0_pins[] = { 0x80, };
725 static int jz4770_pwm_pwm1_pins[] = { 0x81, };
726 static int jz4770_pwm_pwm2_pins[] = { 0x82, };
727 static int jz4770_pwm_pwm3_pins[] = { 0x83, };
728 static int jz4770_pwm_pwm4_pins[] = { 0x84, };
729 static int jz4770_pwm_pwm5_pins[] = { 0x85, };
730 static int jz4770_pwm_pwm6_pins[] = { 0x6a, };
731 static int jz4770_pwm_pwm7_pins[] = { 0x6b, };
732 static int jz4770_mac_rmii_pins[] = {
735 static int jz4770_mac_mii_pins[] = { 0xa7, 0xaf, };
736 static int jz4770_otg_pins[] = { 0x8a, };
738 static int jz4770_uart0_data_funcs[] = { 0, 0, };
739 static int jz4770_uart0_hwflow_funcs[] = { 0, 0, };
740 static int jz4770_uart1_data_funcs[] = { 0, 0, };
741 static int jz4770_uart1_hwflow_funcs[] = { 0, 0, };
742 static int jz4770_uart2_data_funcs[] = { 0, 0, };
743 static int jz4770_uart2_hwflow_funcs[] = { 0, 0, };
744 static int jz4770_uart3_data_funcs[] = { 0, 1, };
745 static int jz4770_uart3_hwflow_funcs[] = { 0, 0, };
746 static int jz4770_ssi0_dt_a_funcs[] = { 2, };
747 static int jz4770_ssi0_dt_b_funcs[] = { 1, };
748 static int jz4770_ssi0_dt_d_funcs[] = { 1, };
749 static int jz4770_ssi0_dt_e_funcs[] = { 0, };
750 static int jz4770_ssi0_dr_a_funcs[] = { 1, };
751 static int jz4770_ssi0_dr_b_funcs[] = { 1, };
752 static int jz4770_ssi0_dr_d_funcs[] = { 1, };
753 static int jz4770_ssi0_dr_e_funcs[] = { 0, };
754 static int jz4770_ssi0_clk_a_funcs[] = { 2, };
755 static int jz4770_ssi0_clk_b_funcs[] = { 1, };
756 static int jz4770_ssi0_clk_d_funcs[] = { 1, };
757 static int jz4770_ssi0_clk_e_funcs[] = { 0, };
758 static int jz4770_ssi0_gpc_b_funcs[] = { 1, };
759 static int jz4770_ssi0_gpc_d_funcs[] = { 1, };
760 static int jz4770_ssi0_gpc_e_funcs[] = { 0, };
761 static int jz4770_ssi0_ce0_a_funcs[] = { 2, };
762 static int jz4770_ssi0_ce0_b_funcs[] = { 1, };
763 static int jz4770_ssi0_ce0_d_funcs[] = { 1, };
764 static int jz4770_ssi0_ce0_e_funcs[] = { 0, };
765 static int jz4770_ssi0_ce1_b_funcs[] = { 1, };
766 static int jz4770_ssi0_ce1_d_funcs[] = { 1, };
767 static int jz4770_ssi0_ce1_e_funcs[] = { 0, };
768 static int jz4770_ssi1_dt_b_funcs[] = { 2, };
769 static int jz4770_ssi1_dt_d_funcs[] = { 2, };
770 static int jz4770_ssi1_dt_e_funcs[] = { 1, };
771 static int jz4770_ssi1_dr_b_funcs[] = { 2, };
772 static int jz4770_ssi1_dr_d_funcs[] = { 2, };
773 static int jz4770_ssi1_dr_e_funcs[] = { 1, };
774 static int jz4770_ssi1_clk_b_funcs[] = { 2, };
775 static int jz4770_ssi1_clk_d_funcs[] = { 2, };
776 static int jz4770_ssi1_clk_e_funcs[] = { 1, };
777 static int jz4770_ssi1_gpc_b_funcs[] = { 2, };
778 static int jz4770_ssi1_gpc_d_funcs[] = { 2, };
779 static int jz4770_ssi1_gpc_e_funcs[] = { 1, };
780 static int jz4770_ssi1_ce0_b_funcs[] = { 2, };
781 static int jz4770_ssi1_ce0_d_funcs[] = { 2, };
782 static int jz4770_ssi1_ce0_e_funcs[] = { 1, };
783 static int jz4770_ssi1_ce1_b_funcs[] = { 2, };
784 static int jz4770_ssi1_ce1_d_funcs[] = { 2, };
785 static int jz4770_ssi1_ce1_e_funcs[] = { 1, };
786 static int jz4770_mmc0_1bit_a_funcs[] = { 1, 1, 0, };
787 static int jz4770_mmc0_4bit_a_funcs[] = { 1, 1, 1, };
788 static int jz4770_mmc0_1bit_e_funcs[] = { 0, 0, 0, };
789 static int jz4770_mmc0_4bit_e_funcs[] = { 0, 0, 0, };
790 static int jz4770_mmc0_8bit_e_funcs[] = { 0, 0, 0, 0, };
791 static int jz4770_mmc1_1bit_d_funcs[] = { 0, 0, 0, };
792 static int jz4770_mmc1_4bit_d_funcs[] = { 0, 0, 0, };
793 static int jz4770_mmc1_1bit_e_funcs[] = { 1, 1, 1, };
794 static int jz4770_mmc1_4bit_e_funcs[] = { 1, 1, 1, };
795 static int jz4770_mmc1_8bit_e_funcs[] = { 1, 1, 1, 1, };
796 static int jz4770_mmc2_1bit_b_funcs[] = { 0, 0, 0, };
797 static int jz4770_mmc2_4bit_b_funcs[] = { 0, 0, 0, };
798 static int jz4770_mmc2_1bit_e_funcs[] = { 2, 2, 2, };
799 static int jz4770_mmc2_4bit_e_funcs[] = { 2, 2, 2, };
800 static int jz4770_mmc2_8bit_e_funcs[] = { 2, 2, 2, 2, };
801 static int jz4770_nemc_8bit_data_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, };
802 static int jz4770_nemc_16bit_data_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, };
803 static int jz4770_nemc_cle_ale_funcs[] = { 0, 0, };
804 static int jz4770_nemc_addr_funcs[] = { 0, 0, 0, 0, };
805 static int jz4770_nemc_rd_we_funcs[] = { 0, 0, };
806 static int jz4770_nemc_frd_fwe_funcs[] = { 0, 0, };
807 static int jz4770_nemc_wait_funcs[] = { 0, };
808 static int jz4770_nemc_cs1_funcs[] = { 0, };
809 static int jz4770_nemc_cs2_funcs[] = { 0, };
810 static int jz4770_nemc_cs3_funcs[] = { 0, };
811 static int jz4770_nemc_cs4_funcs[] = { 0, };
812 static int jz4770_nemc_cs5_funcs[] = { 0, };
813 static int jz4770_nemc_cs6_funcs[] = { 0, };
814 static int jz4770_i2c0_funcs[] = { 0, 0, };
815 static int jz4770_i2c1_funcs[] = { 0, 0, };
816 static int jz4770_i2c2_funcs[] = { 2, 2, };
817 static int jz4770_cim_8bit_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, };
818 static int jz4770_cim_12bit_funcs[] = { 0, 0, 0, 0, };
819 static int jz4770_lcd_24bit_funcs[] = {
825 static int jz4770_pwm_pwm0_funcs[] = { 0, };
826 static int jz4770_pwm_pwm1_funcs[] = { 0, };
827 static int jz4770_pwm_pwm2_funcs[] = { 0, };
828 static int jz4770_pwm_pwm3_funcs[] = { 0, };
829 static int jz4770_pwm_pwm4_funcs[] = { 0, };
830 static int jz4770_pwm_pwm5_funcs[] = { 0, };
831 static int jz4770_pwm_pwm6_funcs[] = { 0, };
832 static int jz4770_pwm_pwm7_funcs[] = { 0, };
833 static int jz4770_mac_rmii_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, };
834 static int jz4770_mac_mii_funcs[] = { 0, 0, };
835 static int jz4770_otg_funcs[] = { 0, };
837 static const struct group_desc jz4770_groups[] = {
934 static const char *jz4770_uart0_groups[] = { "uart0-data", "uart0-hwflow", };
935 static const char *jz4770_uart1_groups[] = { "uart1-data", "uart1-hwflow", };
936 static const char *jz4770_uart2_groups[] = { "uart2-data", "uart2-hwflow", };
937 static const char *jz4770_uart3_groups[] = { "uart3-data", "uart3-hwflow", };
938 static const char *jz4770_ssi0_groups[] = {
946 static const char *jz4770_ssi1_groups[] = {
954 static const char *jz4770_mmc0_groups[] = {
958 static const char *jz4770_mmc1_groups[] = {
962 static const char *jz4770_mmc2_groups[] = {
966 static const char *jz4770_nemc_groups[] = {
970 static const char *jz4770_cs1_groups[] = { "nemc-cs1", };
971 static const char *jz4770_cs2_groups[] = { "nemc-cs2", };
972 static const char *jz4770_cs3_groups[] = { "nemc-cs3", };
973 static const char *jz4770_cs4_groups[] = { "nemc-cs4", };
974 static const char *jz4770_cs5_groups[] = { "nemc-cs5", };
975 static const char *jz4770_cs6_groups[] = { "nemc-cs6", };
976 static const char *jz4770_i2c0_groups[] = { "i2c0-data", };
977 static const char *jz4770_i2c1_groups[] = { "i2c1-data", };
978 static const char *jz4770_i2c2_groups[] = { "i2c2-data", };
979 static const char *jz4770_cim_groups[] = { "cim-data-8bit", "cim-data-12bit", };
980 static const char *jz4770_lcd_groups[] = { "lcd-24bit", "lcd-no-pins", };
981 static const char *jz4770_pwm0_groups[] = { "pwm0", };
982 static const char *jz4770_pwm1_groups[] = { "pwm1", };
983 static const char *jz4770_pwm2_groups[] = { "pwm2", };
984 static const char *jz4770_pwm3_groups[] = { "pwm3", };
985 static const char *jz4770_pwm4_groups[] = { "pwm4", };
986 static const char *jz4770_pwm5_groups[] = { "pwm5", };
987 static const char *jz4770_pwm6_groups[] = { "pwm6", };
988 static const char *jz4770_pwm7_groups[] = { "pwm7", };
989 static const char *jz4770_mac_groups[] = { "mac-rmii", "mac-mii", };
990 static const char *jz4770_otg_groups[] = { "otg-vbus", };
992 static const struct function_desc jz4770_functions[] = {
1026 static const struct ingenic_chip_info jz4770_chip_info = {
1038 static const u32 jz4780_pull_ups[6] = {
1042 static const u32 jz4780_pull_downs[6] = {
1046 static int jz4780_uart2_data_pins[] = { 0x66, 0x67, };
1047 static int jz4780_uart2_hwflow_pins[] = { 0x65, 0x64, };
1048 static int jz4780_uart4_data_pins[] = { 0x54, 0x4a, };
1049 static int jz4780_ssi0_dt_a_19_pins[] = { 0x13, };
1050 static int jz4780_ssi0_dt_a_21_pins[] = { 0x15, };
1051 static int jz4780_ssi0_dt_a_28_pins[] = { 0x1c, };
1052 static int jz4780_ssi0_dt_b_pins[] = { 0x3d, };
1053 static int jz4780_ssi0_dt_d_pins[] = { 0x79, };
1054 static int jz4780_ssi0_dr_a_20_pins[] = { 0x14, };
1055 static int jz4780_ssi0_dr_a_27_pins[] = { 0x1b, };
1056 static int jz4780_ssi0_dr_b_pins[] = { 0x34, };
1057 static int jz4780_ssi0_dr_d_pins[] = { 0x74, };
1058 static int jz4780_ssi0_clk_a_pins[] = { 0x12, };
1059 static int jz4780_ssi0_clk_b_5_pins[] = { 0x25, };
1060 static int jz4780_ssi0_clk_b_28_pins[] = { 0x3c, };
1061 static int jz4780_ssi0_clk_d_pins[] = { 0x78, };
1062 static int jz4780_ssi0_gpc_b_pins[] = { 0x3e, };
1063 static int jz4780_ssi0_gpc_d_pins[] = { 0x76, };
1064 static int jz4780_ssi0_ce0_a_23_pins[] = { 0x17, };
1065 static int jz4780_ssi0_ce0_a_25_pins[] = { 0x19, };
1066 static int jz4780_ssi0_ce0_b_pins[] = { 0x3f, };
1067 static int jz4780_ssi0_ce0_d_pins[] = { 0x77, };
1068 static int jz4780_ssi0_ce1_b_pins[] = { 0x35, };
1069 static int jz4780_ssi0_ce1_d_pins[] = { 0x75, };
1070 static int jz4780_ssi1_dt_b_pins[] = { 0x3d, };
1071 static int jz4780_ssi1_dt_d_pins[] = { 0x79, };
1072 static int jz4780_ssi1_dr_b_pins[] = { 0x34, };
1073 static int jz4780_ssi1_dr_d_pins[] = { 0x74, };
1074 static int jz4780_ssi1_clk_b_pins[] = { 0x3c, };
1075 static int jz4780_ssi1_clk_d_pins[] = { 0x78, };
1076 static int jz4780_ssi1_gpc_b_pins[] = { 0x3e, };
1077 static int jz4780_ssi1_gpc_d_pins[] = { 0x76, };
1078 static int jz4780_ssi1_ce0_b_pins[] = { 0x3f, };
1079 static int jz4780_ssi1_ce0_d_pins[] = { 0x77, };
1080 static int jz4780_ssi1_ce1_b_pins[] = { 0x35, };
1081 static int jz4780_ssi1_ce1_d_pins[] = { 0x75, };
1082 static int jz4780_mmc0_8bit_a_pins[] = { 0x04, 0x05, 0x06, 0x07, 0x18, };
1083 static int jz4780_i2c3_pins[] = { 0x6a, 0x6b, };
1084 static int jz4780_i2c4_e_pins[] = { 0x8c, 0x8d, };
1085 static int jz4780_i2c4_f_pins[] = { 0xb9, 0xb8, };
1086 static int jz4780_i2s_data_tx_pins[] = { 0x87, };
1087 static int jz4780_i2s_data_rx_pins[] = { 0x86, };
1088 static int jz4780_i2s_clk_txrx_pins[] = { 0x6c, 0x6d, };
1089 static int jz4780_i2s_clk_rx_pins[] = { 0x88, 0x89, };
1090 static int jz4780_i2s_sysclk_pins[] = { 0x85, };
1091 static int jz4780_hdmi_ddc_pins[] = { 0xb9, 0xb8, };
1093 static int jz4780_uart2_data_funcs[] = { 1, 1, };
1094 static int jz4780_uart2_hwflow_funcs[] = { 1, 1, };
1095 static int jz4780_uart4_data_funcs[] = { 2, 2, };
1096 static int jz4780_ssi0_dt_a_19_funcs[] = { 2, };
1097 static int jz4780_ssi0_dt_a_21_funcs[] = { 2, };
1098 static int jz4780_ssi0_dt_a_28_funcs[] = { 2, };
1099 static int jz4780_ssi0_dt_b_funcs[] = { 1, };
1100 static int jz4780_ssi0_dt_d_funcs[] = { 1, };
1101 static int jz4780_ssi0_dr_a_20_funcs[] = { 2, };
1102 static int jz4780_ssi0_dr_a_27_funcs[] = { 2, };
1103 static int jz4780_ssi0_dr_b_funcs[] = { 1, };
1104 static int jz4780_ssi0_dr_d_funcs[] = { 1, };
1105 static int jz4780_ssi0_clk_a_funcs[] = { 2, };
1106 static int jz4780_ssi0_clk_b_5_funcs[] = { 1, };
1107 static int jz4780_ssi0_clk_b_28_funcs[] = { 1, };
1108 static int jz4780_ssi0_clk_d_funcs[] = { 1, };
1109 static int jz4780_ssi0_gpc_b_funcs[] = { 1, };
1110 static int jz4780_ssi0_gpc_d_funcs[] = { 1, };
1111 static int jz4780_ssi0_ce0_a_23_funcs[] = { 2, };
1112 static int jz4780_ssi0_ce0_a_25_funcs[] = { 2, };
1113 static int jz4780_ssi0_ce0_b_funcs[] = { 1, };
1114 static int jz4780_ssi0_ce0_d_funcs[] = { 1, };
1115 static int jz4780_ssi0_ce1_b_funcs[] = { 1, };
1116 static int jz4780_ssi0_ce1_d_funcs[] = { 1, };
1117 static int jz4780_ssi1_dt_b_funcs[] = { 2, };
1118 static int jz4780_ssi1_dt_d_funcs[] = { 2, };
1119 static int jz4780_ssi1_dr_b_funcs[] = { 2, };
1120 static int jz4780_ssi1_dr_d_funcs[] = { 2, };
1121 static int jz4780_ssi1_clk_b_funcs[] = { 2, };
1122 static int jz4780_ssi1_clk_d_funcs[] = { 2, };
1123 static int jz4780_ssi1_gpc_b_funcs[] = { 2, };
1124 static int jz4780_ssi1_gpc_d_funcs[] = { 2, };
1125 static int jz4780_ssi1_ce0_b_funcs[] = { 2, };
1126 static int jz4780_ssi1_ce0_d_funcs[] = { 2, };
1127 static int jz4780_ssi1_ce1_b_funcs[] = { 2, };
1128 static int jz4780_ssi1_ce1_d_funcs[] = { 2, };
1129 static int jz4780_mmc0_8bit_a_funcs[] = { 1, 1, 1, 1, 1, };
1130 static int jz4780_i2c3_funcs[] = { 1, 1, };
1131 static int jz4780_i2c4_e_funcs[] = { 1, 1, };
1132 static int jz4780_i2c4_f_funcs[] = { 1, 1, };
1133 static int jz4780_i2s_data_tx_funcs[] = { 0, };
1134 static int jz4780_i2s_data_rx_funcs[] = { 0, };
1135 static int jz4780_i2s_clk_txrx_funcs[] = { 1, 0, };
1136 static int jz4780_i2s_clk_rx_funcs[] = { 1, 1, };
1137 static int jz4780_i2s_sysclk_funcs[] = { 2, };
1138 static int jz4780_hdmi_ddc_funcs[] = { 0, 0, };
1140 static const struct group_desc jz4780_groups[] = {
1245 static const char *jz4780_uart2_groups[] = { "uart2-data", "uart2-hwflow", };
1246 static const char *jz4780_uart4_groups[] = { "uart4-data", };
1247 static const char *jz4780_ssi0_groups[] = {
1255 static const char *jz4780_ssi1_groups[] = {
1263 static const char *jz4780_mmc0_groups[] = {
1267 static const char *jz4780_mmc1_groups[] = {
1270 static const char *jz4780_mmc2_groups[] = {
1273 static const char *jz4780_nemc_groups[] = {
1277 static const char *jz4780_i2c3_groups[] = { "i2c3-data", };
1278 static const char *jz4780_i2c4_groups[] = { "i2c4-data-e", "i2c4-data-f", };
1279 static const char *jz4780_i2s_groups[] = {
1282 static const char *jz4780_cim_groups[] = { "cim-data", };
1283 static const char *jz4780_hdmi_ddc_groups[] = { "hdmi-ddc", };
1285 static const struct function_desc jz4780_functions[] = {
1323 static const struct ingenic_chip_info jz4780_chip_info = {
1335 static const u32 x1000_pull_ups[4] = {
1339 static const u32 x1000_pull_downs[4] = {
1343 static int x1000_uart0_data_pins[] = { 0x4a, 0x4b, };
1344 static int x1000_uart0_hwflow_pins[] = { 0x4c, 0x4d, };
1345 static int x1000_uart1_data_a_pins[] = { 0x04, 0x05, };
1346 static int x1000_uart1_data_d_pins[] = { 0x62, 0x63, };
1347 static int x1000_uart1_hwflow_pins[] = { 0x64, 0x65, };
1348 static int x1000_uart2_data_a_pins[] = { 0x02, 0x03, };
1349 static int x1000_uart2_data_d_pins[] = { 0x65, 0x64, };
1350 static int x1000_sfc_pins[] = { 0x1d, 0x1c, 0x1e, 0x1f, 0x1a, 0x1b, };
1351 static int x1000_ssi_dt_a_22_pins[] = { 0x16, };
1352 static int x1000_ssi_dt_a_29_pins[] = { 0x1d, };
1353 static int x1000_ssi_dt_d_pins[] = { 0x62, };
1354 static int x1000_ssi_dr_a_23_pins[] = { 0x17, };
1355 static int x1000_ssi_dr_a_28_pins[] = { 0x1c, };
1356 static int x1000_ssi_dr_d_pins[] = { 0x63, };
1357 static int x1000_ssi_clk_a_24_pins[] = { 0x18, };
1358 static int x1000_ssi_clk_a_26_pins[] = { 0x1a, };
1359 static int x1000_ssi_clk_d_pins[] = { 0x60, };
1360 static int x1000_ssi_gpc_a_20_pins[] = { 0x14, };
1361 static int x1000_ssi_gpc_a_31_pins[] = { 0x1f, };
1362 static int x1000_ssi_ce0_a_25_pins[] = { 0x19, };
1363 static int x1000_ssi_ce0_a_27_pins[] = { 0x1b, };
1364 static int x1000_ssi_ce0_d_pins[] = { 0x61, };
1365 static int x1000_ssi_ce1_a_21_pins[] = { 0x15, };
1366 static int x1000_ssi_ce1_a_30_pins[] = { 0x1e, };
1367 static int x1000_mmc0_1bit_pins[] = { 0x18, 0x19, 0x17, };
1368 static int x1000_mmc0_4bit_pins[] = { 0x16, 0x15, 0x14, };
1369 static int x1000_mmc0_8bit_pins[] = { 0x13, 0x12, 0x11, 0x10, };
1370 static int x1000_mmc1_1bit_pins[] = { 0x40, 0x41, 0x42, };
1371 static int x1000_mmc1_4bit_pins[] = { 0x43, 0x44, 0x45, };
1372 static int x1000_emc_8bit_data_pins[] = {
1375 static int x1000_emc_16bit_data_pins[] = {
1378 static int x1000_emc_addr_pins[] = {
1382 static int x1000_emc_rd_we_pins[] = { 0x30, 0x31, };
1383 static int x1000_emc_wait_pins[] = { 0x34, };
1384 static int x1000_emc_cs1_pins[] = { 0x32, };
1385 static int x1000_emc_cs2_pins[] = { 0x33, };
1386 static int x1000_i2c0_pins[] = { 0x38, 0x37, };
1387 static int x1000_i2c1_a_pins[] = { 0x01, 0x00, };
1388 static int x1000_i2c1_c_pins[] = { 0x5b, 0x5a, };
1389 static int x1000_i2c2_pins[] = { 0x61, 0x60, };
1390 static int x1000_i2s_data_tx_pins[] = { 0x24, };
1391 static int x1000_i2s_data_rx_pins[] = { 0x23, };
1392 static int x1000_i2s_clk_txrx_pins[] = { 0x21, 0x22, };
1393 static int x1000_i2s_sysclk_pins[] = { 0x20, };
1394 static int x1000_cim_pins[] = {
1398 static int x1000_lcd_8bit_pins[] = {
1402 static int x1000_lcd_16bit_pins[] = {
1405 static int x1000_pwm_pwm0_pins[] = { 0x59, };
1406 static int x1000_pwm_pwm1_pins[] = { 0x5a, };
1407 static int x1000_pwm_pwm2_pins[] = { 0x5b, };
1408 static int x1000_pwm_pwm3_pins[] = { 0x26, };
1409 static int x1000_pwm_pwm4_pins[] = { 0x58, };
1410 static int x1000_mac_pins[] = {
1414 static int x1000_uart0_data_funcs[] = { 0, 0, };
1415 static int x1000_uart0_hwflow_funcs[] = { 0, 0, };
1416 static int x1000_uart1_data_a_funcs[] = { 2, 2, };
1417 static int x1000_uart1_data_d_funcs[] = { 1, 1, };
1418 static int x1000_uart1_hwflow_funcs[] = { 1, 1, };
1419 static int x1000_uart2_data_a_funcs[] = { 2, 2, };
1420 static int x1000_uart2_data_d_funcs[] = { 0, 0, };
1421 static int x1000_sfc_funcs[] = { 1, 1, 1, 1, 1, 1, };
1422 static int x1000_ssi_dt_a_22_funcs[] = { 2, };
1423 static int x1000_ssi_dt_a_29_funcs[] = { 2, };
1424 static int x1000_ssi_dt_d_funcs[] = { 0, };
1425 static int x1000_ssi_dr_a_23_funcs[] = { 2, };
1426 static int x1000_ssi_dr_a_28_funcs[] = { 2, };
1427 static int x1000_ssi_dr_d_funcs[] = { 0, };
1428 static int x1000_ssi_clk_a_24_funcs[] = { 2, };
1429 static int x1000_ssi_clk_a_26_funcs[] = { 2, };
1430 static int x1000_ssi_clk_d_funcs[] = { 0, };
1431 static int x1000_ssi_gpc_a_20_funcs[] = { 2, };
1432 static int x1000_ssi_gpc_a_31_funcs[] = { 2, };
1433 static int x1000_ssi_ce0_a_25_funcs[] = { 2, };
1434 static int x1000_ssi_ce0_a_27_funcs[] = { 2, };
1435 static int x1000_ssi_ce0_d_funcs[] = { 0, };
1436 static int x1000_ssi_ce1_a_21_funcs[] = { 2, };
1437 static int x1000_ssi_ce1_a_30_funcs[] = { 2, };
1438 static int x1000_mmc0_1bit_funcs[] = { 1, 1, 1, };
1439 static int x1000_mmc0_4bit_funcs[] = { 1, 1, 1, };
1440 static int x1000_mmc0_8bit_funcs[] = { 1, 1, 1, 1, 1, };
1441 static int x1000_mmc1_1bit_funcs[] = { 0, 0, 0, };
1442 static int x1000_mmc1_4bit_funcs[] = { 0, 0, 0, };
1443 static int x1000_emc_8bit_data_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, };
1444 static int x1000_emc_16bit_data_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, };
1445 static int x1000_emc_addr_funcs[] = {
1448 static int x1000_emc_rd_we_funcs[] = { 0, 0, };
1449 static int x1000_emc_wait_funcs[] = { 0, };
1450 static int x1000_emc_cs1_funcs[] = { 0, };
1451 static int x1000_emc_cs2_funcs[] = { 0, };
1452 static int x1000_i2c0_funcs[] = { 0, 0, };
1453 static int x1000_i2c1_a_funcs[] = { 2, 2, };
1454 static int x1000_i2c1_c_funcs[] = { 0, 0, };
1455 static int x1000_i2c2_funcs[] = { 1, 1, };
1456 static int x1000_i2s_data_tx_funcs[] = { 1, };
1457 static int x1000_i2s_data_rx_funcs[] = { 1, };
1458 static int x1000_i2s_clk_txrx_funcs[] = { 1, 1, };
1459 static int x1000_i2s_sysclk_funcs[] = { 1, };
1460 static int x1000_cim_funcs[] = { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, };
1461 static int x1000_lcd_8bit_funcs[] = {
1464 static int x1000_lcd_16bit_funcs[] = { 1, 1, 1, 1, 1, 1, 1, 1, };
1465 static int x1000_pwm_pwm0_funcs[] = { 0, };
1466 static int x1000_pwm_pwm1_funcs[] = { 1, };
1467 static int x1000_pwm_pwm2_funcs[] = { 1, };
1468 static int x1000_pwm_pwm3_funcs[] = { 2, };
1469 static int x1000_pwm_pwm4_funcs[] = { 0, };
1470 static int x1000_mac_funcs[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, };
1472 static const struct group_desc x1000_groups[] = {
1529 static const char *x1000_uart0_groups[] = { "uart0-data", "uart0-hwflow", };
1530 static const char *x1000_uart1_groups[] = {
1533 static const char *x1000_uart2_groups[] = { "uart2-data-a", "uart2-data-d", };
1534 static const char *x1000_sfc_groups[] = { "sfc", };
1535 static const char *x1000_ssi_groups[] = {
1543 static const char *x1000_mmc0_groups[] = {
1546 static const char *x1000_mmc1_groups[] = {
1549 static const char *x1000_emc_groups[] = {
1553 static const char *x1000_cs1_groups[] = { "emc-cs1", };
1554 static const char *x1000_cs2_groups[] = { "emc-cs2", };
1555 static const char *x1000_i2c0_groups[] = { "i2c0-data", };
1556 static const char *x1000_i2c1_groups[] = { "i2c1-data-a", "i2c1-data-c", };
1557 static const char *x1000_i2c2_groups[] = { "i2c2-data", };
1558 static const char *x1000_i2s_groups[] = {
1561 static const char *x1000_cim_groups[] = { "cim-data", };
1562 static const char *x1000_lcd_groups[] = {
1565 static const char *x1000_pwm0_groups[] = { "pwm0", };
1566 static const char *x1000_pwm1_groups[] = { "pwm1", };
1567 static const char *x1000_pwm2_groups[] = { "pwm2", };
1568 static const char *x1000_pwm3_groups[] = { "pwm3", };
1569 static const char *x1000_pwm4_groups[] = { "pwm4", };
1570 static const char *x1000_mac_groups[] = { "mac", };
1572 static const struct function_desc x1000_functions[] = {
1597 static const struct ingenic_chip_info x1000_chip_info = {
1609 static int x1500_uart0_data_pins[] = { 0x4a, 0x4b, };
1610 static int x1500_uart0_hwflow_pins[] = { 0x4c, 0x4d, };
1611 static int x1500_uart1_data_a_pins[] = { 0x04, 0x05, };
1612 static int x1500_uart1_data_d_pins[] = { 0x62, 0x63, };
1613 static int x1500_uart1_hwflow_pins[] = { 0x64, 0x65, };
1614 static int x1500_uart2_data_a_pins[] = { 0x02, 0x03, };
1615 static int x1500_uart2_data_d_pins[] = { 0x65, 0x64, };
1616 static int x1500_mmc_1bit_pins[] = { 0x18, 0x19, 0x17, };
1617 static int x1500_mmc_4bit_pins[] = { 0x16, 0x15, 0x14, };
1618 static int x1500_i2c0_pins[] = { 0x38, 0x37, };
1619 static int x1500_i2c1_a_pins[] = { 0x01, 0x00, };
1620 static int x1500_i2c1_c_pins[] = { 0x5b, 0x5a, };
1621 static int x1500_i2c2_pins[] = { 0x61, 0x60, };
1622 static int x1500_i2s_data_tx_pins[] = { 0x24, };
1623 static int x1500_i2s_data_rx_pins[] = { 0x23, };
1624 static int x1500_i2s_clk_txrx_pins[] = { 0x21, 0x22, };
1625 static int x1500_i2s_sysclk_pins[] = { 0x20, };
1626 static int x1500_cim_pins[] = {
1630 static int x1500_pwm_pwm0_pins[] = { 0x59, };
1631 static int x1500_pwm_pwm1_pins[] = { 0x5a, };
1632 static int x1500_pwm_pwm2_pins[] = { 0x5b, };
1633 static int x1500_pwm_pwm3_pins[] = { 0x26, };
1634 static int x1500_pwm_pwm4_pins[] = { 0x58, };
1636 static int x1500_uart0_data_funcs[] = { 0, 0, };
1637 static int x1500_uart0_hwflow_funcs[] = { 0, 0, };
1638 static int x1500_uart1_data_a_funcs[] = { 2, 2, };
1639 static int x1500_uart1_data_d_funcs[] = { 1, 1, };
1640 static int x1500_uart1_hwflow_funcs[] = { 1, 1, };
1641 static int x1500_uart2_data_a_funcs[] = { 2, 2, };
1642 static int x1500_uart2_data_d_funcs[] = { 0, 0, };
1643 static int x1500_mmc_1bit_funcs[] = { 1, 1, 1, };
1644 static int x1500_mmc_4bit_funcs[] = { 1, 1, 1, };
1645 static int x1500_i2c0_funcs[] = { 0, 0, };
1646 static int x1500_i2c1_a_funcs[] = { 2, 2, };
1647 static int x1500_i2c1_c_funcs[] = { 0, 0, };
1648 static int x1500_i2c2_funcs[] = { 1, 1, };
1649 static int x1500_i2s_data_tx_funcs[] = { 1, };
1650 static int x1500_i2s_data_rx_funcs[] = { 1, };
1651 static int x1500_i2s_clk_txrx_funcs[] = { 1, 1, };
1652 static int x1500_i2s_sysclk_funcs[] = { 1, };
1653 static int x1500_cim_funcs[] = { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, };
1654 static int x1500_pwm_pwm0_funcs[] = { 0, };
1655 static int x1500_pwm_pwm1_funcs[] = { 1, };
1656 static int x1500_pwm_pwm2_funcs[] = { 1, };
1657 static int x1500_pwm_pwm3_funcs[] = { 2, };
1658 static int x1500_pwm_pwm4_funcs[] = { 0, };
1660 static const struct group_desc x1500_groups[] = {
1688 static const char *x1500_uart0_groups[] = { "uart0-data", "uart0-hwflow", };
1689 static const char *x1500_uart1_groups[] = {
1692 static const char *x1500_uart2_groups[] = { "uart2-data-a", "uart2-data-d", };
1693 static const char *x1500_mmc_groups[] = { "mmc-1bit", "mmc-4bit", };
1694 static const char *x1500_i2c0_groups[] = { "i2c0-data", };
1695 static const char *x1500_i2c1_groups[] = { "i2c1-data-a", "i2c1-data-c", };
1696 static const char *x1500_i2c2_groups[] = { "i2c2-data", };
1697 static const char *x1500_i2s_groups[] = {
1700 static const char *x1500_cim_groups[] = { "cim-data", };
1701 static const char *x1500_lcd_groups[] = { "lcd-no-pins", };
1702 static const char *x1500_pwm0_groups[] = { "pwm0", };
1703 static const char *x1500_pwm1_groups[] = { "pwm1", };
1704 static const char *x1500_pwm2_groups[] = { "pwm2", };
1705 static const char *x1500_pwm3_groups[] = { "pwm3", };
1706 static const char *x1500_pwm4_groups[] = { "pwm4", };
1708 static const struct function_desc x1500_functions[] = {
1727 static const struct ingenic_chip_info x1500_chip_info = {
1739 static const u32 x1830_pull_ups[4] = {
1743 static const u32 x1830_pull_downs[4] = {
1747 static int x1830_uart0_data_pins[] = { 0x33, 0x36, };
1748 static int x1830_uart0_hwflow_pins[] = { 0x34, 0x35, };
1749 static int x1830_uart1_data_pins[] = { 0x38, 0x37, };
1750 static int x1830_sfc_pins[] = { 0x17, 0x18, 0x1a, 0x19, 0x1b, 0x1c, };
1751 static int x1830_ssi0_dt_pins[] = { 0x4c, };
1752 static int x1830_ssi0_dr_pins[] = { 0x4b, };
1753 static int x1830_ssi0_clk_pins[] = { 0x4f, };
1754 static int x1830_ssi0_gpc_pins[] = { 0x4d, };
1755 static int x1830_ssi0_ce0_pins[] = { 0x50, };
1756 static int x1830_ssi0_ce1_pins[] = { 0x4e, };
1757 static int x1830_ssi1_dt_c_pins[] = { 0x53, };
1758 static int x1830_ssi1_dr_c_pins[] = { 0x54, };
1759 static int x1830_ssi1_clk_c_pins[] = { 0x57, };
1760 static int x1830_ssi1_gpc_c_pins[] = { 0x55, };
1761 static int x1830_ssi1_ce0_c_pins[] = { 0x58, };
1762 static int x1830_ssi1_ce1_c_pins[] = { 0x56, };
1763 static int x1830_ssi1_dt_d_pins[] = { 0x62, };
1764 static int x1830_ssi1_dr_d_pins[] = { 0x63, };
1765 static int x1830_ssi1_clk_d_pins[] = { 0x66, };
1766 static int x1830_ssi1_gpc_d_pins[] = { 0x64, };
1767 static int x1830_ssi1_ce0_d_pins[] = { 0x67, };
1768 static int x1830_ssi1_ce1_d_pins[] = { 0x65, };
1769 static int x1830_mmc0_1bit_pins[] = { 0x24, 0x25, 0x20, };
1770 static int x1830_mmc0_4bit_pins[] = { 0x21, 0x22, 0x23, };
1771 static int x1830_mmc1_1bit_pins[] = { 0x42, 0x43, 0x44, };
1772 static int x1830_mmc1_4bit_pins[] = { 0x45, 0x46, 0x47, };
1773 static int x1830_i2c0_pins[] = { 0x0c, 0x0d, };
1774 static int x1830_i2c1_pins[] = { 0x39, 0x3a, };
1775 static int x1830_i2c2_pins[] = { 0x5b, 0x5c, };
1776 static int x1830_i2s_data_tx_pins[] = { 0x53, };
1777 static int x1830_i2s_data_rx_pins[] = { 0x54, };
1778 static int x1830_i2s_clk_txrx_pins[] = { 0x58, 0x52, };
1779 static int x1830_i2s_clk_rx_pins[] = { 0x56, 0x55, };
1780 static int x1830_i2s_sysclk_pins[] = { 0x57, };
1781 static int x1830_lcd_rgb_18bit_pins[] = {
1787 static int x1830_lcd_slcd_8bit_pins[] = {
1791 static int x1830_lcd_slcd_16bit_pins[] = {
1794 static int x1830_pwm_pwm0_b_pins[] = { 0x31, };
1795 static int x1830_pwm_pwm0_c_pins[] = { 0x4b, };
1796 static int x1830_pwm_pwm1_b_pins[] = { 0x32, };
1797 static int x1830_pwm_pwm1_c_pins[] = { 0x4c, };
1798 static int x1830_pwm_pwm2_c_8_pins[] = { 0x48, };
1799 static int x1830_pwm_pwm2_c_13_pins[] = { 0x4d, };
1800 static int x1830_pwm_pwm3_c_9_pins[] = { 0x49, };
1801 static int x1830_pwm_pwm3_c_14_pins[] = { 0x4e, };
1802 static int x1830_pwm_pwm4_c_15_pins[] = { 0x4f, };
1803 static int x1830_pwm_pwm4_c_25_pins[] = { 0x59, };
1804 static int x1830_pwm_pwm5_c_16_pins[] = { 0x50, };
1805 static int x1830_pwm_pwm5_c_26_pins[] = { 0x5a, };
1806 static int x1830_pwm_pwm6_c_17_pins[] = { 0x51, };
1807 static int x1830_pwm_pwm6_c_27_pins[] = { 0x5b, };
1808 static int x1830_pwm_pwm7_c_18_pins[] = { 0x52, };
1809 static int x1830_pwm_pwm7_c_28_pins[] = { 0x5c, };
1810 static int x1830_mac_pins[] = {
1814 static int x1830_uart0_data_funcs[] = { 0, 0, };
1815 static int x1830_uart0_hwflow_funcs[] = { 0, 0, };
1816 static int x1830_uart1_data_funcs[] = { 0, 0, };
1817 static int x1830_sfc_funcs[] = { 1, 1, 1, 1, 1, 1, };
1818 static int x1830_ssi0_dt_funcs[] = { 0, };
1819 static int x1830_ssi0_dr_funcs[] = { 0, };
1820 static int x1830_ssi0_clk_funcs[] = { 0, };
1821 static int x1830_ssi0_gpc_funcs[] = { 0, };
1822 static int x1830_ssi0_ce0_funcs[] = { 0, };
1823 static int x1830_ssi0_ce1_funcs[] = { 0, };
1824 static int x1830_ssi1_dt_c_funcs[] = { 1, };
1825 static int x1830_ssi1_dr_c_funcs[] = { 1, };
1826 static int x1830_ssi1_clk_c_funcs[] = { 1, };
1827 static int x1830_ssi1_gpc_c_funcs[] = { 1, };
1828 static int x1830_ssi1_ce0_c_funcs[] = { 1, };
1829 static int x1830_ssi1_ce1_c_funcs[] = { 1, };
1830 static int x1830_ssi1_dt_d_funcs[] = { 2, };
1831 static int x1830_ssi1_dr_d_funcs[] = { 2, };
1832 static int x1830_ssi1_clk_d_funcs[] = { 2, };
1833 static int x1830_ssi1_gpc_d_funcs[] = { 2, };
1834 static int x1830_ssi1_ce0_d_funcs[] = { 2, };
1835 static int x1830_ssi1_ce1_d_funcs[] = { 2, };
1836 static int x1830_mmc0_1bit_funcs[] = { 0, 0, 0, };
1837 static int x1830_mmc0_4bit_funcs[] = { 0, 0, 0, };
1838 static int x1830_mmc1_1bit_funcs[] = { 0, 0, 0, };
1839 static int x1830_mmc1_4bit_funcs[] = { 0, 0, 0, };
1840 static int x1830_i2c0_funcs[] = { 1, 1, };
1841 static int x1830_i2c1_funcs[] = { 0, 0, };
1842 static int x1830_i2c2_funcs[] = { 1, 1, };
1843 static int x1830_i2s_data_tx_funcs[] = { 0, };
1844 static int x1830_i2s_data_rx_funcs[] = { 0, };
1845 static int x1830_i2s_clk_txrx_funcs[] = { 0, 0, };
1846 static int x1830_i2s_clk_rx_funcs[] = { 0, 0, };
1847 static int x1830_i2s_sysclk_funcs[] = { 0, };
1848 static int x1830_lcd_rgb_18bit_funcs[] = {
1854 static int x1830_lcd_slcd_8bit_funcs[] = {
1857 static int x1830_lcd_slcd_16bit_funcs[] = { 1, 1, 1, 1, 1, 1, 1, 1, };
1858 static int x1830_pwm_pwm0_b_funcs[] = { 0, };
1859 static int x1830_pwm_pwm0_c_funcs[] = { 1, };
1860 static int x1830_pwm_pwm1_b_funcs[] = { 0, };
1861 static int x1830_pwm_pwm1_c_funcs[] = { 1, };
1862 static int x1830_pwm_pwm2_c_8_funcs[] = { 0, };
1863 static int x1830_pwm_pwm2_c_13_funcs[] = { 1, };
1864 static int x1830_pwm_pwm3_c_9_funcs[] = { 0, };
1865 static int x1830_pwm_pwm3_c_14_funcs[] = { 1, };
1866 static int x1830_pwm_pwm4_c_15_funcs[] = { 1, };
1867 static int x1830_pwm_pwm4_c_25_funcs[] = { 0, };
1868 static int x1830_pwm_pwm5_c_16_funcs[] = { 1, };
1869 static int x1830_pwm_pwm5_c_26_funcs[] = { 0, };
1870 static int x1830_pwm_pwm6_c_17_funcs[] = { 1, };
1871 static int x1830_pwm_pwm6_c_27_funcs[] = { 0, };
1872 static int x1830_pwm_pwm7_c_18_funcs[] = { 1, };
1873 static int x1830_pwm_pwm7_c_28_funcs[] = { 0, };
1874 static int x1830_mac_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, };
1876 static const struct group_desc x1830_groups[] = {
1934 static const char *x1830_uart0_groups[] = { "uart0-data", "uart0-hwflow", };
1935 static const char *x1830_uart1_groups[] = { "uart1-data", };
1936 static const char *x1830_sfc_groups[] = { "sfc", };
1937 static const char *x1830_ssi0_groups[] = {
1940 static const char *x1830_ssi1_groups[] = {
1948 static const char *x1830_mmc0_groups[] = { "mmc0-1bit", "mmc0-4bit", };
1949 static const char *x1830_mmc1_groups[] = { "mmc1-1bit", "mmc1-4bit", };
1950 static const char *x1830_i2c0_groups[] = { "i2c0-data", };
1951 static const char *x1830_i2c1_groups[] = { "i2c1-data", };
1952 static const char *x1830_i2c2_groups[] = { "i2c2-data", };
1953 static const char *x1830_i2s_groups[] = {
1956 static const char *x1830_lcd_groups[] = {
1959 static const char *x1830_pwm0_groups[] = { "pwm0-b", "pwm0-c", };
1960 static const char *x1830_pwm1_groups[] = { "pwm1-b", "pwm1-c", };
1961 static const char *x1830_pwm2_groups[] = { "pwm2-c-8", "pwm2-c-13", };
1962 static const char *x1830_pwm3_groups[] = { "pwm3-c-9", "pwm3-c-14", };
1963 static const char *x1830_pwm4_groups[] = { "pwm4-c-15", "pwm4-c-25", };
1964 static const char *x1830_pwm5_groups[] = { "pwm5-c-16", "pwm5-c-26", };
1965 static const char *x1830_pwm6_groups[] = { "pwm6-c-17", "pwm6-c-27", };
1966 static const char *x1830_pwm7_groups[] = { "pwm7-c-18", "pwm7-c-28", };
1967 static const char *x1830_mac_groups[] = { "mac", };
1969 static const struct function_desc x1830_functions[] = {
1993 static const struct ingenic_chip_info x1830_chip_info = {
2005 static u32 ingenic_gpio_read_reg(struct ingenic_gpio_chip *jzgc, u8 reg) in ingenic_gpio_read_reg()
2014 static void ingenic_gpio_set_bit(struct ingenic_gpio_chip *jzgc, in ingenic_gpio_set_bit()
2025 static void ingenic_gpio_shadow_set_bit(struct ingenic_gpio_chip *jzgc, in ingenic_gpio_shadow_set_bit()
2037 static void ingenic_gpio_shadow_set_bit_load(struct ingenic_gpio_chip *jzgc) in ingenic_gpio_shadow_set_bit_load()
2044 static inline bool ingenic_gpio_get_value(struct ingenic_gpio_chip *jzgc, in ingenic_gpio_get_value()
2052 static void ingenic_gpio_set_value(struct ingenic_gpio_chip *jzgc, in ingenic_gpio_set_value()
2061 static void irq_set_type(struct ingenic_gpio_chip *jzgc, in irq_set_type()
2103 static void ingenic_gpio_irq_mask(struct irq_data *irqd) in ingenic_gpio_irq_mask()
2111 static void ingenic_gpio_irq_unmask(struct irq_data *irqd) in ingenic_gpio_irq_unmask()
2119 static void ingenic_gpio_irq_enable(struct irq_data *irqd) in ingenic_gpio_irq_enable()
2133 static void ingenic_gpio_irq_disable(struct irq_data *irqd) in ingenic_gpio_irq_disable()
2147 static void ingenic_gpio_irq_ack(struct irq_data *irqd) in ingenic_gpio_irq_ack()
2172 static int ingenic_gpio_irq_set_type(struct irq_data *irqd, unsigned int type) in ingenic_gpio_irq_set_type()
2206 static int ingenic_gpio_irq_set_wake(struct irq_data *irqd, unsigned int on) in ingenic_gpio_irq_set_wake()
2214 static void ingenic_gpio_irq_handler(struct irq_desc *desc) in ingenic_gpio_irq_handler()
2233 static void ingenic_gpio_set(struct gpio_chip *gc, in ingenic_gpio_set()
2241 static int ingenic_gpio_get(struct gpio_chip *gc, unsigned int offset) in ingenic_gpio_get()
2248 static int ingenic_gpio_direction_input(struct gpio_chip *gc, in ingenic_gpio_direction_input()
2254 static int ingenic_gpio_direction_output(struct gpio_chip *gc, in ingenic_gpio_direction_output()
2261 static inline void ingenic_config_pin(struct ingenic_pinctrl *jzpc, in ingenic_config_pin()
2271 static inline void ingenic_shadow_config_pin(struct ingenic_pinctrl *jzpc, in ingenic_shadow_config_pin()
2280 static inline void ingenic_shadow_config_pin_load(struct ingenic_pinctrl *jzpc, in ingenic_shadow_config_pin_load()
2287 static inline bool ingenic_get_pin_config(struct ingenic_pinctrl *jzpc, in ingenic_get_pin_config()
2299 static int ingenic_gpio_get_direction(struct gpio_chip *gc, unsigned int offset) in ingenic_gpio_get_direction()
2321 static const struct pinctrl_ops ingenic_pctlops = {
2329 static int ingenic_gpio_irq_request(struct irq_data *data) in ingenic_gpio_irq_request()
2341 static void ingenic_gpio_irq_release(struct irq_data *data) in ingenic_gpio_irq_release()
2348 static int ingenic_pinmux_set_pin_fn(struct ingenic_pinctrl *jzpc, in ingenic_pinmux_set_pin_fn()
2377 static int ingenic_pinmux_set_mux(struct pinctrl_dev *pctldev, in ingenic_pinmux_set_mux()
2405 static int ingenic_pinmux_gpio_set_direction(struct pinctrl_dev *pctldev, in ingenic_pinmux_gpio_set_direction()
2434 static const struct pinmux_ops ingenic_pmxops = {
2442 static int ingenic_pinconf_get(struct pinctrl_dev *pctldev, in ingenic_pinconf_get()
2480 static void ingenic_set_bias(struct ingenic_pinctrl *jzpc, in ingenic_set_bias()
2508 static void ingenic_set_output_level(struct ingenic_pinctrl *jzpc, in ingenic_set_output_level()
2517 static int ingenic_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, in ingenic_pinconf_set()
2581 static int ingenic_pinconf_group_get(struct pinctrl_dev *pctldev, in ingenic_pinconf_group_get()
2606 static int ingenic_pinconf_group_set(struct pinctrl_dev *pctldev, in ingenic_pinconf_group_set()
2628 static const struct pinconf_ops ingenic_confops = {
2636 static const struct regmap_config ingenic_pinctrl_regmap_config = {
2642 static const struct of_device_id ingenic_gpio_of_match[] __initconst = {
2653 static int __init ingenic_gpio_probe(struct ingenic_pinctrl *jzpc, in ingenic_gpio_probe()
2733 static int __init ingenic_pinctrl_probe(struct platform_device *pdev) in ingenic_pinctrl_probe()
2829 static const struct of_device_id ingenic_pinctrl_of_match[] = {
2843 static struct platform_driver ingenic_pinctrl_driver = {
2850 static int __init ingenic_pinctrl_drv_register(void) in ingenic_pinctrl_drv_register()