Lines Matching full:static
147 static const unsigned long enabled_socs =
163 static bool
171 static const u32 jz4730_pull_ups[4] = {
175 static const u32 jz4730_pull_downs[4] = {
179 static int jz4730_mmc_1bit_pins[] = { 0x27, 0x26, 0x22, };
180 static int jz4730_mmc_4bit_pins[] = { 0x23, 0x24, 0x25, };
181 static int jz4730_uart0_data_pins[] = { 0x7e, 0x7f, };
182 static int jz4730_uart1_data_pins[] = { 0x18, 0x19, };
183 static int jz4730_uart2_data_pins[] = { 0x6f, 0x7d, };
184 static int jz4730_uart3_data_pins[] = { 0x10, 0x15, };
185 static int jz4730_uart3_hwflow_pins[] = { 0x11, 0x17, };
186 static int jz4730_lcd_8bit_pins[] = {
190 static int jz4730_lcd_16bit_pins[] = {
193 static int jz4730_lcd_special_pins[] = { 0x3d, 0x3c, 0x3e, 0x3f, };
194 static int jz4730_lcd_generic_pins[] = { 0x3b, };
195 static int jz4730_nand_cs1_pins[] = { 0x53, };
196 static int jz4730_nand_cs2_pins[] = { 0x54, };
197 static int jz4730_nand_cs3_pins[] = { 0x55, };
198 static int jz4730_nand_cs4_pins[] = { 0x56, };
199 static int jz4730_nand_cs5_pins[] = { 0x57, };
200 static int jz4730_pwm_pwm0_pins[] = { 0x5e, };
201 static int jz4730_pwm_pwm1_pins[] = { 0x5f, };
203 static u8 jz4730_lcd_8bit_funcs[] = { 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, };
205 static const struct group_desc jz4730_groups[] = {
226 static const char *jz4730_mmc_groups[] = { "mmc-1bit", "mmc-4bit", };
227 static const char *jz4730_uart0_groups[] = { "uart0-data", };
228 static const char *jz4730_uart1_groups[] = { "uart1-data", };
229 static const char *jz4730_uart2_groups[] = { "uart2-data", };
230 static const char *jz4730_uart3_groups[] = { "uart3-data", "uart3-hwflow", };
231 static const char *jz4730_lcd_groups[] = {
234 static const char *jz4730_nand_groups[] = {
237 static const char *jz4730_pwm0_groups[] = { "pwm0", };
238 static const char *jz4730_pwm1_groups[] = { "pwm1", };
240 static const struct function_desc jz4730_functions[] = {
252 static const struct ingenic_chip_info jz4730_chip_info = {
264 static const u32 jz4740_pull_ups[4] = {
268 static const u32 jz4740_pull_downs[4] = {
272 static int jz4740_mmc_1bit_pins[] = { 0x69, 0x68, 0x6a, };
273 static int jz4740_mmc_4bit_pins[] = { 0x6b, 0x6c, 0x6d, };
274 static int jz4740_uart0_data_pins[] = { 0x7a, 0x79, };
275 static int jz4740_uart0_hwflow_pins[] = { 0x7e, 0x7f, };
276 static int jz4740_uart1_data_pins[] = { 0x7e, 0x7f, };
277 static int jz4740_lcd_8bit_pins[] = {
281 static int jz4740_lcd_16bit_pins[] = {
284 static int jz4740_lcd_18bit_pins[] = { 0x50, 0x51, };
285 static int jz4740_lcd_special_pins[] = { 0x31, 0x32, 0x56, 0x57, };
286 static int jz4740_lcd_generic_pins[] = { 0x55, };
287 static int jz4740_nand_cs1_pins[] = { 0x39, };
288 static int jz4740_nand_cs2_pins[] = { 0x3a, };
289 static int jz4740_nand_cs3_pins[] = { 0x3b, };
290 static int jz4740_nand_cs4_pins[] = { 0x3c, };
291 static int jz4740_nand_fre_fwe_pins[] = { 0x5c, 0x5d, };
292 static int jz4740_pwm_pwm0_pins[] = { 0x77, };
293 static int jz4740_pwm_pwm1_pins[] = { 0x78, };
294 static int jz4740_pwm_pwm2_pins[] = { 0x79, };
295 static int jz4740_pwm_pwm3_pins[] = { 0x7a, };
296 static int jz4740_pwm_pwm4_pins[] = { 0x7b, };
297 static int jz4740_pwm_pwm5_pins[] = { 0x7c, };
298 static int jz4740_pwm_pwm6_pins[] = { 0x7e, };
299 static int jz4740_pwm_pwm7_pins[] = { 0x7f, };
301 static const struct group_desc jz4740_groups[] = {
327 static const char *jz4740_mmc_groups[] = { "mmc-1bit", "mmc-4bit", };
328 static const char *jz4740_uart0_groups[] = { "uart0-data", "uart0-hwflow", };
329 static const char *jz4740_uart1_groups[] = { "uart1-data", };
330 static const char *jz4740_lcd_groups[] = {
333 static const char *jz4740_nand_groups[] = {
336 static const char *jz4740_pwm0_groups[] = { "pwm0", };
337 static const char *jz4740_pwm1_groups[] = { "pwm1", };
338 static const char *jz4740_pwm2_groups[] = { "pwm2", };
339 static const char *jz4740_pwm3_groups[] = { "pwm3", };
340 static const char *jz4740_pwm4_groups[] = { "pwm4", };
341 static const char *jz4740_pwm5_groups[] = { "pwm5", };
342 static const char *jz4740_pwm6_groups[] = { "pwm6", };
343 static const char *jz4740_pwm7_groups[] = { "pwm7", };
345 static const struct function_desc jz4740_functions[] = {
361 static const struct ingenic_chip_info jz4740_chip_info = {
373 static int jz4725b_mmc0_1bit_pins[] = { 0x48, 0x49, 0x5c, };
374 static int jz4725b_mmc0_4bit_pins[] = { 0x5d, 0x5b, 0x56, };
375 static int jz4725b_mmc1_1bit_pins[] = { 0x7a, 0x7b, 0x7c, };
376 static int jz4725b_mmc1_4bit_pins[] = { 0x7d, 0x7e, 0x7f, };
377 static int jz4725b_uart_data_pins[] = { 0x4c, 0x4d, };
378 static int jz4725b_lcd_8bit_pins[] = {
382 static int jz4725b_lcd_16bit_pins[] = {
385 static int jz4725b_lcd_18bit_pins[] = { 0x70, 0x71, };
386 static int jz4725b_lcd_24bit_pins[] = { 0x76, 0x77, 0x78, 0x79, };
387 static int jz4725b_lcd_special_pins[] = { 0x76, 0x77, 0x78, 0x79, };
388 static int jz4725b_lcd_generic_pins[] = { 0x75, };
389 static int jz4725b_nand_cs1_pins[] = { 0x55, };
390 static int jz4725b_nand_cs2_pins[] = { 0x56, };
391 static int jz4725b_nand_cs3_pins[] = { 0x57, };
392 static int jz4725b_nand_cs4_pins[] = { 0x58, };
393 static int jz4725b_nand_cle_ale_pins[] = { 0x48, 0x49 };
394 static int jz4725b_nand_fre_fwe_pins[] = { 0x5c, 0x5d };
395 static int jz4725b_pwm_pwm0_pins[] = { 0x4a, };
396 static int jz4725b_pwm_pwm1_pins[] = { 0x4b, };
397 static int jz4725b_pwm_pwm2_pins[] = { 0x4c, };
398 static int jz4725b_pwm_pwm3_pins[] = { 0x4d, };
399 static int jz4725b_pwm_pwm4_pins[] = { 0x4e, };
400 static int jz4725b_pwm_pwm5_pins[] = { 0x4f, };
402 static u8 jz4725b_mmc0_4bit_funcs[] = { 1, 0, 1, };
404 static const struct group_desc jz4725b_groups[] = {
431 static const char *jz4725b_mmc0_groups[] = { "mmc0-1bit", "mmc0-4bit", };
432 static const char *jz4725b_mmc1_groups[] = { "mmc1-1bit", "mmc1-4bit", };
433 static const char *jz4725b_uart_groups[] = { "uart-data", };
434 static const char *jz4725b_lcd_groups[] = {
438 static const char *jz4725b_nand_groups[] = {
442 static const char *jz4725b_pwm0_groups[] = { "pwm0", };
443 static const char *jz4725b_pwm1_groups[] = { "pwm1", };
444 static const char *jz4725b_pwm2_groups[] = { "pwm2", };
445 static const char *jz4725b_pwm3_groups[] = { "pwm3", };
446 static const char *jz4725b_pwm4_groups[] = { "pwm4", };
447 static const char *jz4725b_pwm5_groups[] = { "pwm5", };
449 static const struct function_desc jz4725b_functions[] = {
463 static const struct ingenic_chip_info jz4725b_chip_info = {
475 static const u32 jz4750_pull_ups[6] = {
479 static const u32 jz4750_pull_downs[6] = {
483 static int jz4750_uart0_data_pins[] = { 0xa4, 0xa5, };
484 static int jz4750_uart0_hwflow_pins[] = { 0xa6, 0xa7, };
485 static int jz4750_uart1_data_pins[] = { 0x90, 0x91, };
486 static int jz4750_uart1_hwflow_pins[] = { 0x92, 0x93, };
487 static int jz4750_uart2_data_pins[] = { 0x9b, 0x9a, };
488 static int jz4750_uart3_data_pins[] = { 0xb0, 0xb1, };
489 static int jz4750_uart3_hwflow_pins[] = { 0xb2, 0xb3, };
490 static int jz4750_mmc0_1bit_pins[] = { 0xa8, 0xa9, 0xa0, };
491 static int jz4750_mmc0_4bit_pins[] = { 0xa1, 0xa2, 0xa3, };
492 static int jz4750_mmc0_8bit_pins[] = { 0xa4, 0xa5, 0xa6, 0xa7, };
493 static int jz4750_mmc1_1bit_pins[] = { 0xae, 0xaf, 0xaa, };
494 static int jz4750_mmc1_4bit_pins[] = { 0xab, 0xac, 0xad, };
495 static int jz4750_i2c_pins[] = { 0x8c, 0x8d, };
496 static int jz4750_cim_pins[] = {
500 static int jz4750_lcd_8bit_pins[] = {
504 static int jz4750_lcd_16bit_pins[] = {
507 static int jz4750_lcd_18bit_pins[] = { 0x70, 0x71, };
508 static int jz4750_lcd_24bit_pins[] = { 0x76, 0x77, 0x78, 0x79, 0xb2, 0xb3, };
509 static int jz4750_lcd_special_pins[] = { 0x76, 0x77, 0x78, 0x79, };
510 static int jz4750_lcd_generic_pins[] = { 0x75, };
511 static int jz4750_nand_cs1_pins[] = { 0x55, };
512 static int jz4750_nand_cs2_pins[] = { 0x56, };
513 static int jz4750_nand_cs3_pins[] = { 0x57, };
514 static int jz4750_nand_cs4_pins[] = { 0x58, };
515 static int jz4750_nand_fre_fwe_pins[] = { 0x5c, 0x5d, };
516 static int jz4750_pwm_pwm0_pins[] = { 0x94, };
517 static int jz4750_pwm_pwm1_pins[] = { 0x95, };
518 static int jz4750_pwm_pwm2_pins[] = { 0x96, };
519 static int jz4750_pwm_pwm3_pins[] = { 0x97, };
520 static int jz4750_pwm_pwm4_pins[] = { 0x98, };
521 static int jz4750_pwm_pwm5_pins[] = { 0x99, };
523 static const struct group_desc jz4750_groups[] = {
557 static const char *jz4750_uart0_groups[] = { "uart0-data", "uart0-hwflow", };
558 static const char *jz4750_uart1_groups[] = { "uart1-data", "uart1-hwflow", };
559 static const char *jz4750_uart2_groups[] = { "uart2-data", };
560 static const char *jz4750_uart3_groups[] = { "uart3-data", "uart3-hwflow", };
561 static const char *jz4750_mmc0_groups[] = {
564 static const char *jz4750_mmc1_groups[] = { "mmc0-1bit", "mmc0-4bit", };
565 static const char *jz4750_i2c_groups[] = { "i2c-data", };
566 static const char *jz4750_cim_groups[] = { "cim-data", };
567 static const char *jz4750_lcd_groups[] = {
571 static const char *jz4750_nand_groups[] = {
574 static const char *jz4750_pwm0_groups[] = { "pwm0", };
575 static const char *jz4750_pwm1_groups[] = { "pwm1", };
576 static const char *jz4750_pwm2_groups[] = { "pwm2", };
577 static const char *jz4750_pwm3_groups[] = { "pwm3", };
578 static const char *jz4750_pwm4_groups[] = { "pwm4", };
579 static const char *jz4750_pwm5_groups[] = { "pwm5", };
581 static const struct function_desc jz4750_functions[] = {
600 static const struct ingenic_chip_info jz4750_chip_info = {
612 static const u32 jz4755_pull_ups[6] = {
616 static const u32 jz4755_pull_downs[6] = {
620 static int jz4755_uart0_data_pins[] = { 0x7c, 0x7d, };
621 static int jz4755_uart0_hwflow_pins[] = { 0x7e, 0x7f, };
622 static int jz4755_uart1_data_pins[] = { 0x97, 0x99, };
623 static int jz4755_uart2_data_pins[] = { 0x9f, };
624 static int jz4755_ssi_dt_b_pins[] = { 0x3b, };
625 static int jz4755_ssi_dt_f_pins[] = { 0xa1, };
626 static int jz4755_ssi_dr_b_pins[] = { 0x3c, };
627 static int jz4755_ssi_dr_f_pins[] = { 0xa2, };
628 static int jz4755_ssi_clk_b_pins[] = { 0x3a, };
629 static int jz4755_ssi_clk_f_pins[] = { 0xa0, };
630 static int jz4755_ssi_gpc_b_pins[] = { 0x3e, };
631 static int jz4755_ssi_gpc_f_pins[] = { 0xa4, };
632 static int jz4755_ssi_ce0_b_pins[] = { 0x3d, };
633 static int jz4755_ssi_ce0_f_pins[] = { 0xa3, };
634 static int jz4755_ssi_ce1_b_pins[] = { 0x3f, };
635 static int jz4755_ssi_ce1_f_pins[] = { 0xa5, };
636 static int jz4755_mmc0_1bit_pins[] = { 0x2f, 0x50, 0x5c, };
637 static int jz4755_mmc0_4bit_pins[] = { 0x5d, 0x5b, 0x51, };
638 static int jz4755_mmc1_1bit_pins[] = { 0x3a, 0x3d, 0x3c, };
639 static int jz4755_mmc1_4bit_pins[] = { 0x3b, 0x3e, 0x3f, };
640 static int jz4755_i2c_pins[] = { 0x8c, 0x8d, };
641 static int jz4755_cim_pins[] = {
645 static int jz4755_lcd_8bit_pins[] = {
649 static int jz4755_lcd_16bit_pins[] = {
652 static int jz4755_lcd_18bit_pins[] = { 0x70, 0x71, };
653 static int jz4755_lcd_24bit_pins[] = { 0x76, 0x77, 0x78, 0x79, 0x7a, 0x7b, };
654 static int jz4755_lcd_special_pins[] = { 0x76, 0x77, 0x78, 0x79, };
655 static int jz4755_lcd_generic_pins[] = { 0x75, };
656 static int jz4755_nand_cs1_pins[] = { 0x55, };
657 static int jz4755_nand_cs2_pins[] = { 0x56, };
658 static int jz4755_nand_cs3_pins[] = { 0x57, };
659 static int jz4755_nand_cs4_pins[] = { 0x58, };
660 static int jz4755_nand_fre_fwe_pins[] = { 0x5c, 0x5d, };
661 static int jz4755_pwm_pwm0_pins[] = { 0x94, };
662 static int jz4755_pwm_pwm1_pins[] = { 0xab, };
663 static int jz4755_pwm_pwm2_pins[] = { 0x96, };
664 static int jz4755_pwm_pwm3_pins[] = { 0x97, };
665 static int jz4755_pwm_pwm4_pins[] = { 0x98, };
666 static int jz4755_pwm_pwm5_pins[] = { 0x99, };
668 static u8 jz4755_mmc0_1bit_funcs[] = { 2, 2, 1, };
669 static u8 jz4755_mmc0_4bit_funcs[] = { 1, 0, 1, };
670 static u8 jz4755_lcd_24bit_funcs[] = { 1, 1, 1, 1, 0, 0, };
672 static const struct group_desc jz4755_groups[] = {
717 static const char *jz4755_uart0_groups[] = { "uart0-data", "uart0-hwflow", };
718 static const char *jz4755_uart1_groups[] = { "uart1-data", };
719 static const char *jz4755_uart2_groups[] = { "uart2-data", };
720 static const char *jz4755_ssi_groups[] = {
728 static const char *jz4755_mmc0_groups[] = { "mmc0-1bit", "mmc0-4bit", };
729 static const char *jz4755_mmc1_groups[] = { "mmc1-1bit", "mmc1-4bit", };
730 static const char *jz4755_i2c_groups[] = { "i2c-data", };
731 static const char *jz4755_cim_groups[] = { "cim-data", };
732 static const char *jz4755_lcd_groups[] = {
736 static const char *jz4755_nand_groups[] = {
739 static const char *jz4755_pwm0_groups[] = { "pwm0", };
740 static const char *jz4755_pwm1_groups[] = { "pwm1", };
741 static const char *jz4755_pwm2_groups[] = { "pwm2", };
742 static const char *jz4755_pwm3_groups[] = { "pwm3", };
743 static const char *jz4755_pwm4_groups[] = { "pwm4", };
744 static const char *jz4755_pwm5_groups[] = { "pwm5", };
746 static const struct function_desc jz4755_functions[] = {
765 static const struct ingenic_chip_info jz4755_chip_info = {
777 static const u32 jz4760_pull_ups[6] = {
781 static const u32 jz4760_pull_downs[6] = {
785 static int jz4760_uart0_data_pins[] = { 0xa0, 0xa3, };
786 static int jz4760_uart0_hwflow_pins[] = { 0xa1, 0xa2, };
787 static int jz4760_uart1_data_pins[] = { 0x7a, 0x7c, };
788 static int jz4760_uart1_hwflow_pins[] = { 0x7b, 0x7d, };
789 static int jz4760_uart2_data_pins[] = { 0x5c, 0x5e, };
790 static int jz4760_uart2_hwflow_pins[] = { 0x5d, 0x5f, };
791 static int jz4760_uart3_data_pins[] = { 0x6c, 0x85, };
792 static int jz4760_uart3_hwflow_pins[] = { 0x88, 0x89, };
793 static int jz4760_ssi0_dt_a_pins[] = { 0x15, };
794 static int jz4760_ssi0_dt_b_pins[] = { 0x35, };
795 static int jz4760_ssi0_dt_d_pins[] = { 0x75, };
796 static int jz4760_ssi0_dt_e_pins[] = { 0x91, };
797 static int jz4760_ssi0_dr_a_pins[] = { 0x14, };
798 static int jz4760_ssi0_dr_b_pins[] = { 0x34, };
799 static int jz4760_ssi0_dr_d_pins[] = { 0x74, };
800 static int jz4760_ssi0_dr_e_pins[] = { 0x8e, };
801 static int jz4760_ssi0_clk_a_pins[] = { 0x12, };
802 static int jz4760_ssi0_clk_b_pins[] = { 0x3c, };
803 static int jz4760_ssi0_clk_d_pins[] = { 0x78, };
804 static int jz4760_ssi0_clk_e_pins[] = { 0x8f, };
805 static int jz4760_ssi0_gpc_b_pins[] = { 0x3e, };
806 static int jz4760_ssi0_gpc_d_pins[] = { 0x76, };
807 static int jz4760_ssi0_gpc_e_pins[] = { 0x93, };
808 static int jz4760_ssi0_ce0_a_pins[] = { 0x13, };
809 static int jz4760_ssi0_ce0_b_pins[] = { 0x3d, };
810 static int jz4760_ssi0_ce0_d_pins[] = { 0x79, };
811 static int jz4760_ssi0_ce0_e_pins[] = { 0x90, };
812 static int jz4760_ssi0_ce1_b_pins[] = { 0x3f, };
813 static int jz4760_ssi0_ce1_d_pins[] = { 0x77, };
814 static int jz4760_ssi0_ce1_e_pins[] = { 0x92, };
815 static int jz4760_ssi1_dt_b_9_pins[] = { 0x29, };
816 static int jz4760_ssi1_dt_b_21_pins[] = { 0x35, };
817 static int jz4760_ssi1_dt_d_12_pins[] = { 0x6c, };
818 static int jz4760_ssi1_dt_d_21_pins[] = { 0x75, };
819 static int jz4760_ssi1_dt_e_pins[] = { 0x91, };
820 static int jz4760_ssi1_dt_f_pins[] = { 0xa3, };
821 static int jz4760_ssi1_dr_b_6_pins[] = { 0x26, };
822 static int jz4760_ssi1_dr_b_20_pins[] = { 0x34, };
823 static int jz4760_ssi1_dr_d_13_pins[] = { 0x6d, };
824 static int jz4760_ssi1_dr_d_20_pins[] = { 0x74, };
825 static int jz4760_ssi1_dr_e_pins[] = { 0x8e, };
826 static int jz4760_ssi1_dr_f_pins[] = { 0xa0, };
827 static int jz4760_ssi1_clk_b_7_pins[] = { 0x27, };
828 static int jz4760_ssi1_clk_b_28_pins[] = { 0x3c, };
829 static int jz4760_ssi1_clk_d_pins[] = { 0x78, };
830 static int jz4760_ssi1_clk_e_7_pins[] = { 0x87, };
831 static int jz4760_ssi1_clk_e_15_pins[] = { 0x8f, };
832 static int jz4760_ssi1_clk_f_pins[] = { 0xa2, };
833 static int jz4760_ssi1_gpc_b_pins[] = { 0x3e, };
834 static int jz4760_ssi1_gpc_d_pins[] = { 0x76, };
835 static int jz4760_ssi1_gpc_e_pins[] = { 0x93, };
836 static int jz4760_ssi1_ce0_b_8_pins[] = { 0x28, };
837 static int jz4760_ssi1_ce0_b_29_pins[] = { 0x3d, };
838 static int jz4760_ssi1_ce0_d_pins[] = { 0x79, };
839 static int jz4760_ssi1_ce0_e_6_pins[] = { 0x86, };
840 static int jz4760_ssi1_ce0_e_16_pins[] = { 0x90, };
841 static int jz4760_ssi1_ce0_f_pins[] = { 0xa1, };
842 static int jz4760_ssi1_ce1_b_pins[] = { 0x3f, };
843 static int jz4760_ssi1_ce1_d_pins[] = { 0x77, };
844 static int jz4760_ssi1_ce1_e_pins[] = { 0x92, };
845 static int jz4760_mmc0_1bit_a_pins[] = { 0x12, 0x13, 0x14, };
846 static int jz4760_mmc0_4bit_a_pins[] = { 0x15, 0x16, 0x17, };
847 static int jz4760_mmc0_1bit_e_pins[] = { 0x9c, 0x9d, 0x94, };
848 static int jz4760_mmc0_4bit_e_pins[] = { 0x95, 0x96, 0x97, };
849 static int jz4760_mmc0_8bit_e_pins[] = { 0x98, 0x99, 0x9a, 0x9b, };
850 static int jz4760_mmc1_1bit_d_pins[] = { 0x78, 0x79, 0x74, };
851 static int jz4760_mmc1_4bit_d_pins[] = { 0x75, 0x76, 0x77, };
852 static int jz4760_mmc1_1bit_e_pins[] = { 0x9c, 0x9d, 0x94, };
853 static int jz4760_mmc1_4bit_e_pins[] = { 0x95, 0x96, 0x97, };
854 static int jz4760_mmc1_8bit_e_pins[] = { 0x98, 0x99, 0x9a, 0x9b, };
855 static int jz4760_mmc2_1bit_b_pins[] = { 0x3c, 0x3d, 0x34, };
856 static int jz4760_mmc2_4bit_b_pins[] = { 0x35, 0x3e, 0x3f, };
857 static int jz4760_mmc2_1bit_e_pins[] = { 0x9c, 0x9d, 0x94, };
858 static int jz4760_mmc2_4bit_e_pins[] = { 0x95, 0x96, 0x97, };
859 static int jz4760_mmc2_8bit_e_pins[] = { 0x98, 0x99, 0x9a, 0x9b, };
860 static int jz4760_nemc_8bit_data_pins[] = {
863 static int jz4760_nemc_16bit_data_pins[] = {
866 static int jz4760_nemc_cle_ale_pins[] = { 0x20, 0x21, };
867 static int jz4760_nemc_addr_pins[] = { 0x22, 0x23, 0x24, 0x25, };
868 static int jz4760_nemc_rd_we_pins[] = { 0x10, 0x11, };
869 static int jz4760_nemc_frd_fwe_pins[] = { 0x12, 0x13, };
870 static int jz4760_nemc_wait_pins[] = { 0x1b, };
871 static int jz4760_nemc_cs1_pins[] = { 0x15, };
872 static int jz4760_nemc_cs2_pins[] = { 0x16, };
873 static int jz4760_nemc_cs3_pins[] = { 0x17, };
874 static int jz4760_nemc_cs4_pins[] = { 0x18, };
875 static int jz4760_nemc_cs5_pins[] = { 0x19, };
876 static int jz4760_nemc_cs6_pins[] = { 0x1a, };
877 static int jz4760_i2c0_pins[] = { 0x7e, 0x7f, };
878 static int jz4760_i2c1_pins[] = { 0x9e, 0x9f, };
879 static int jz4760_cim_pins[] = {
883 static int jz4760_lcd_8bit_pins[] = {
887 static int jz4760_lcd_16bit_pins[] = {
890 static int jz4760_lcd_18bit_pins[] = {
893 static int jz4760_lcd_24bit_pins[] = {
896 static int jz4760_lcd_special_pins[] = { 0x54, 0x4a, 0x41, 0x40, };
897 static int jz4760_lcd_generic_pins[] = { 0x49, };
898 static int jz4760_pwm_pwm0_pins[] = { 0x80, };
899 static int jz4760_pwm_pwm1_pins[] = { 0x81, };
900 static int jz4760_pwm_pwm2_pins[] = { 0x82, };
901 static int jz4760_pwm_pwm3_pins[] = { 0x83, };
902 static int jz4760_pwm_pwm4_pins[] = { 0x84, };
903 static int jz4760_pwm_pwm5_pins[] = { 0x85, };
904 static int jz4760_pwm_pwm6_pins[] = { 0x6a, };
905 static int jz4760_pwm_pwm7_pins[] = { 0x6b, };
906 static int jz4760_otg_pins[] = { 0x8a, };
908 static u8 jz4760_uart3_data_funcs[] = { 0, 1, };
909 static u8 jz4760_mmc0_1bit_a_funcs[] = { 1, 1, 0, };
911 static const struct group_desc jz4760_groups[] = {
1022 static const char *jz4760_uart0_groups[] = { "uart0-data", "uart0-hwflow", };
1023 static const char *jz4760_uart1_groups[] = { "uart1-data", "uart1-hwflow", };
1024 static const char *jz4760_uart2_groups[] = { "uart2-data", "uart2-hwflow", };
1025 static const char *jz4760_uart3_groups[] = { "uart3-data", "uart3-hwflow", };
1026 static const char *jz4760_ssi0_groups[] = {
1034 static const char *jz4760_ssi1_groups[] = {
1042 static const char *jz4760_mmc0_groups[] = {
1046 static const char *jz4760_mmc1_groups[] = {
1050 static const char *jz4760_mmc2_groups[] = {
1054 static const char *jz4760_nemc_groups[] = {
1058 static const char *jz4760_cs1_groups[] = { "nemc-cs1", };
1059 static const char *jz4760_cs2_groups[] = { "nemc-cs2", };
1060 static const char *jz4760_cs3_groups[] = { "nemc-cs3", };
1061 static const char *jz4760_cs4_groups[] = { "nemc-cs4", };
1062 static const char *jz4760_cs5_groups[] = { "nemc-cs5", };
1063 static const char *jz4760_cs6_groups[] = { "nemc-cs6", };
1064 static const char *jz4760_i2c0_groups[] = { "i2c0-data", };
1065 static const char *jz4760_i2c1_groups[] = { "i2c1-data", };
1066 static const char *jz4760_cim_groups[] = { "cim-data", };
1067 static const char *jz4760_lcd_groups[] = {
1071 static const char *jz4760_pwm0_groups[] = { "pwm0", };
1072 static const char *jz4760_pwm1_groups[] = { "pwm1", };
1073 static const char *jz4760_pwm2_groups[] = { "pwm2", };
1074 static const char *jz4760_pwm3_groups[] = { "pwm3", };
1075 static const char *jz4760_pwm4_groups[] = { "pwm4", };
1076 static const char *jz4760_pwm5_groups[] = { "pwm5", };
1077 static const char *jz4760_pwm6_groups[] = { "pwm6", };
1078 static const char *jz4760_pwm7_groups[] = { "pwm7", };
1079 static const char *jz4760_otg_groups[] = { "otg-vbus", };
1081 static const struct function_desc jz4760_functions[] = {
1113 static const struct ingenic_chip_info jz4760_chip_info = {
1125 static const u32 jz4770_pull_ups[6] = {
1129 static const u32 jz4770_pull_downs[6] = {
1133 static int jz4770_uart0_data_pins[] = { 0xa0, 0xa3, };
1134 static int jz4770_uart0_hwflow_pins[] = { 0xa1, 0xa2, };
1135 static int jz4770_uart1_data_pins[] = { 0x7a, 0x7c, };
1136 static int jz4770_uart1_hwflow_pins[] = { 0x7b, 0x7d, };
1137 static int jz4770_uart2_data_pins[] = { 0x5c, 0x5e, };
1138 static int jz4770_uart2_hwflow_pins[] = { 0x5d, 0x5f, };
1139 static int jz4770_uart3_data_pins[] = { 0x6c, 0x85, };
1140 static int jz4770_uart3_hwflow_pins[] = { 0x88, 0x89, };
1141 static int jz4770_ssi0_dt_a_pins[] = { 0x15, };
1142 static int jz4770_ssi0_dt_b_pins[] = { 0x35, };
1143 static int jz4770_ssi0_dt_d_pins[] = { 0x75, };
1144 static int jz4770_ssi0_dt_e_pins[] = { 0x91, };
1145 static int jz4770_ssi0_dr_a_pins[] = { 0x14, };
1146 static int jz4770_ssi0_dr_b_pins[] = { 0x34, };
1147 static int jz4770_ssi0_dr_d_pins[] = { 0x74, };
1148 static int jz4770_ssi0_dr_e_pins[] = { 0x8e, };
1149 static int jz4770_ssi0_clk_a_pins[] = { 0x12, };
1150 static int jz4770_ssi0_clk_b_pins[] = { 0x3c, };
1151 static int jz4770_ssi0_clk_d_pins[] = { 0x78, };
1152 static int jz4770_ssi0_clk_e_pins[] = { 0x8f, };
1153 static int jz4770_ssi0_gpc_b_pins[] = { 0x3e, };
1154 static int jz4770_ssi0_gpc_d_pins[] = { 0x76, };
1155 static int jz4770_ssi0_gpc_e_pins[] = { 0x93, };
1156 static int jz4770_ssi0_ce0_a_pins[] = { 0x13, };
1157 static int jz4770_ssi0_ce0_b_pins[] = { 0x3d, };
1158 static int jz4770_ssi0_ce0_d_pins[] = { 0x79, };
1159 static int jz4770_ssi0_ce0_e_pins[] = { 0x90, };
1160 static int jz4770_ssi0_ce1_b_pins[] = { 0x3f, };
1161 static int jz4770_ssi0_ce1_d_pins[] = { 0x77, };
1162 static int jz4770_ssi0_ce1_e_pins[] = { 0x92, };
1163 static int jz4770_ssi1_dt_b_pins[] = { 0x35, };
1164 static int jz4770_ssi1_dt_d_pins[] = { 0x75, };
1165 static int jz4770_ssi1_dt_e_pins[] = { 0x91, };
1166 static int jz4770_ssi1_dr_b_pins[] = { 0x34, };
1167 static int jz4770_ssi1_dr_d_pins[] = { 0x74, };
1168 static int jz4770_ssi1_dr_e_pins[] = { 0x8e, };
1169 static int jz4770_ssi1_clk_b_pins[] = { 0x3c, };
1170 static int jz4770_ssi1_clk_d_pins[] = { 0x78, };
1171 static int jz4770_ssi1_clk_e_pins[] = { 0x8f, };
1172 static int jz4770_ssi1_gpc_b_pins[] = { 0x3e, };
1173 static int jz4770_ssi1_gpc_d_pins[] = { 0x76, };
1174 static int jz4770_ssi1_gpc_e_pins[] = { 0x93, };
1175 static int jz4770_ssi1_ce0_b_pins[] = { 0x3d, };
1176 static int jz4770_ssi1_ce0_d_pins[] = { 0x79, };
1177 static int jz4770_ssi1_ce0_e_pins[] = { 0x90, };
1178 static int jz4770_ssi1_ce1_b_pins[] = { 0x3f, };
1179 static int jz4770_ssi1_ce1_d_pins[] = { 0x77, };
1180 static int jz4770_ssi1_ce1_e_pins[] = { 0x92, };
1181 static int jz4770_mmc0_1bit_a_pins[] = { 0x12, 0x13, 0x14, };
1182 static int jz4770_mmc0_4bit_a_pins[] = { 0x15, 0x16, 0x17, };
1183 static int jz4770_mmc0_1bit_e_pins[] = { 0x9c, 0x9d, 0x94, };
1184 static int jz4770_mmc0_4bit_e_pins[] = { 0x95, 0x96, 0x97, };
1185 static int jz4770_mmc0_8bit_e_pins[] = { 0x98, 0x99, 0x9a, 0x9b, };
1186 static int jz4770_mmc1_1bit_d_pins[] = { 0x78, 0x79, 0x74, };
1187 static int jz4770_mmc1_4bit_d_pins[] = { 0x75, 0x76, 0x77, };
1188 static int jz4770_mmc1_1bit_e_pins[] = { 0x9c, 0x9d, 0x94, };
1189 static int jz4770_mmc1_4bit_e_pins[] = { 0x95, 0x96, 0x97, };
1190 static int jz4770_mmc1_8bit_e_pins[] = { 0x98, 0x99, 0x9a, 0x9b, };
1191 static int jz4770_mmc2_1bit_b_pins[] = { 0x3c, 0x3d, 0x34, };
1192 static int jz4770_mmc2_4bit_b_pins[] = { 0x35, 0x3e, 0x3f, };
1193 static int jz4770_mmc2_1bit_e_pins[] = { 0x9c, 0x9d, 0x94, };
1194 static int jz4770_mmc2_4bit_e_pins[] = { 0x95, 0x96, 0x97, };
1195 static int jz4770_mmc2_8bit_e_pins[] = { 0x98, 0x99, 0x9a, 0x9b, };
1196 static int jz4770_nemc_8bit_data_pins[] = {
1199 static int jz4770_nemc_16bit_data_pins[] = {
1202 static int jz4770_nemc_cle_ale_pins[] = { 0x20, 0x21, };
1203 static int jz4770_nemc_addr_pins[] = { 0x22, 0x23, 0x24, 0x25, };
1204 static int jz4770_nemc_rd_we_pins[] = { 0x10, 0x11, };
1205 static int jz4770_nemc_frd_fwe_pins[] = { 0x12, 0x13, };
1206 static int jz4770_nemc_wait_pins[] = { 0x1b, };
1207 static int jz4770_nemc_cs1_pins[] = { 0x15, };
1208 static int jz4770_nemc_cs2_pins[] = { 0x16, };
1209 static int jz4770_nemc_cs3_pins[] = { 0x17, };
1210 static int jz4770_nemc_cs4_pins[] = { 0x18, };
1211 static int jz4770_nemc_cs5_pins[] = { 0x19, };
1212 static int jz4770_nemc_cs6_pins[] = { 0x1a, };
1213 static int jz4770_i2c0_pins[] = { 0x7e, 0x7f, };
1214 static int jz4770_i2c1_pins[] = { 0x9e, 0x9f, };
1215 static int jz4770_i2c2_pins[] = { 0xb0, 0xb1, };
1216 static int jz4770_cim_8bit_pins[] = {
1220 static int jz4770_cim_12bit_pins[] = {
1223 static int jz4770_lcd_8bit_pins[] = {
1227 static int jz4770_lcd_16bit_pins[] = {
1230 static int jz4770_lcd_18bit_pins[] = {
1233 static int jz4770_lcd_24bit_pins[] = {
1239 static int jz4770_lcd_special_pins[] = { 0x54, 0x4a, 0x41, 0x40, };
1240 static int jz4770_lcd_generic_pins[] = { 0x49, };
1241 static int jz4770_pwm_pwm0_pins[] = { 0x80, };
1242 static int jz4770_pwm_pwm1_pins[] = { 0x81, };
1243 static int jz4770_pwm_pwm2_pins[] = { 0x82, };
1244 static int jz4770_pwm_pwm3_pins[] = { 0x83, };
1245 static int jz4770_pwm_pwm4_pins[] = { 0x84, };
1246 static int jz4770_pwm_pwm5_pins[] = { 0x85, };
1247 static int jz4770_pwm_pwm6_pins[] = { 0x6a, };
1248 static int jz4770_pwm_pwm7_pins[] = { 0x6b, };
1249 static int jz4770_mac_rmii_pins[] = {
1252 static int jz4770_mac_mii_pins[] = {
1256 static const struct group_desc jz4770_groups[] = {
1359 static const char *jz4770_uart0_groups[] = { "uart0-data", "uart0-hwflow", };
1360 static const char *jz4770_uart1_groups[] = { "uart1-data", "uart1-hwflow", };
1361 static const char *jz4770_uart2_groups[] = { "uart2-data", "uart2-hwflow", };
1362 static const char *jz4770_uart3_groups[] = { "uart3-data", "uart3-hwflow", };
1363 static const char *jz4770_ssi0_groups[] = {
1371 static const char *jz4770_ssi1_groups[] = {
1379 static const char *jz4770_mmc0_groups[] = {
1383 static const char *jz4770_mmc1_groups[] = {
1387 static const char *jz4770_mmc2_groups[] = {
1391 static const char *jz4770_nemc_groups[] = {
1395 static const char *jz4770_cs1_groups[] = { "nemc-cs1", };
1396 static const char *jz4770_cs2_groups[] = { "nemc-cs2", };
1397 static const char *jz4770_cs3_groups[] = { "nemc-cs3", };
1398 static const char *jz4770_cs4_groups[] = { "nemc-cs4", };
1399 static const char *jz4770_cs5_groups[] = { "nemc-cs5", };
1400 static const char *jz4770_cs6_groups[] = { "nemc-cs6", };
1401 static const char *jz4770_i2c0_groups[] = { "i2c0-data", };
1402 static const char *jz4770_i2c1_groups[] = { "i2c1-data", };
1403 static const char *jz4770_i2c2_groups[] = { "i2c2-data", };
1404 static const char *jz4770_cim_groups[] = { "cim-data-8bit", "cim-data-12bit", };
1405 static const char *jz4770_lcd_groups[] = {
1409 static const char *jz4770_pwm0_groups[] = { "pwm0", };
1410 static const char *jz4770_pwm1_groups[] = { "pwm1", };
1411 static const char *jz4770_pwm2_groups[] = { "pwm2", };
1412 static const char *jz4770_pwm3_groups[] = { "pwm3", };
1413 static const char *jz4770_pwm4_groups[] = { "pwm4", };
1414 static const char *jz4770_pwm5_groups[] = { "pwm5", };
1415 static const char *jz4770_pwm6_groups[] = { "pwm6", };
1416 static const char *jz4770_pwm7_groups[] = { "pwm7", };
1417 static const char *jz4770_mac_groups[] = { "mac-rmii", "mac-mii", };
1419 static const struct function_desc jz4770_functions[] = {
1453 static const struct ingenic_chip_info jz4770_chip_info = {
1465 static const u32 jz4775_pull_ups[7] = {
1469 static const u32 jz4775_pull_downs[7] = {
1473 static int jz4775_uart0_data_pins[] = { 0xa0, 0xa3, };
1474 static int jz4775_uart0_hwflow_pins[] = { 0xa1, 0xa2, };
1475 static int jz4775_uart1_data_pins[] = { 0x7a, 0x7c, };
1476 static int jz4775_uart1_hwflow_pins[] = { 0x7b, 0x7d, };
1477 static int jz4775_uart2_data_c_pins[] = { 0x54, 0x4a, };
1478 static int jz4775_uart2_data_f_pins[] = { 0xa5, 0xa4, };
1479 static int jz4775_uart3_data_pins[] = { 0x1e, 0x1f, };
1480 static int jz4775_ssi_dt_a_pins[] = { 0x13, };
1481 static int jz4775_ssi_dt_d_pins[] = { 0x75, };
1482 static int jz4775_ssi_dr_a_pins[] = { 0x14, };
1483 static int jz4775_ssi_dr_d_pins[] = { 0x74, };
1484 static int jz4775_ssi_clk_a_pins[] = { 0x12, };
1485 static int jz4775_ssi_clk_d_pins[] = { 0x78, };
1486 static int jz4775_ssi_gpc_pins[] = { 0x76, };
1487 static int jz4775_ssi_ce0_a_pins[] = { 0x17, };
1488 static int jz4775_ssi_ce0_d_pins[] = { 0x79, };
1489 static int jz4775_ssi_ce1_pins[] = { 0x77, };
1490 static int jz4775_mmc0_1bit_a_pins[] = { 0x12, 0x13, 0x14, };
1491 static int jz4775_mmc0_4bit_a_pins[] = { 0x15, 0x16, 0x17, };
1492 static int jz4775_mmc0_8bit_a_pins[] = { 0x04, 0x05, 0x06, 0x07, };
1493 static int jz4775_mmc0_1bit_e_pins[] = { 0x9c, 0x9d, 0x94, };
1494 static int jz4775_mmc0_4bit_e_pins[] = { 0x95, 0x96, 0x97, };
1495 static int jz4775_mmc1_1bit_d_pins[] = { 0x78, 0x79, 0x74, };
1496 static int jz4775_mmc1_4bit_d_pins[] = { 0x75, 0x76, 0x77, };
1497 static int jz4775_mmc1_1bit_e_pins[] = { 0x9c, 0x9d, 0x94, };
1498 static int jz4775_mmc1_4bit_e_pins[] = { 0x95, 0x96, 0x97, };
1499 static int jz4775_mmc2_1bit_b_pins[] = { 0x3c, 0x3d, 0x34, };
1500 static int jz4775_mmc2_4bit_b_pins[] = { 0x35, 0x3e, 0x3f, };
1501 static int jz4775_mmc2_1bit_e_pins[] = { 0x9c, 0x9d, 0x94, };
1502 static int jz4775_mmc2_4bit_e_pins[] = { 0x95, 0x96, 0x97, };
1503 static int jz4775_nemc_8bit_data_pins[] = {
1506 static int jz4775_nemc_16bit_data_pins[] = {
1509 static int jz4775_nemc_cle_ale_pins[] = { 0x20, 0x21, };
1510 static int jz4775_nemc_addr_pins[] = { 0x22, 0x23, 0x24, 0x25, };
1511 static int jz4775_nemc_rd_we_pins[] = { 0x10, 0x11, };
1512 static int jz4775_nemc_frd_fwe_pins[] = { 0x12, 0x13, };
1513 static int jz4775_nemc_wait_pins[] = { 0x1b, };
1514 static int jz4775_nemc_cs1_pins[] = { 0x15, };
1515 static int jz4775_nemc_cs2_pins[] = { 0x16, };
1516 static int jz4775_nemc_cs3_pins[] = { 0x17, };
1517 static int jz4775_i2c0_pins[] = { 0x7e, 0x7f, };
1518 static int jz4775_i2c1_pins[] = { 0x9e, 0x9f, };
1519 static int jz4775_i2c2_pins[] = { 0x80, 0x83, };
1520 static int jz4775_i2s_data_tx_pins[] = { 0xa3, };
1521 static int jz4775_i2s_data_rx_pins[] = { 0xa2, };
1522 static int jz4775_i2s_clk_txrx_pins[] = { 0xa0, 0xa1, };
1523 static int jz4775_i2s_sysclk_pins[] = { 0x83, };
1524 static int jz4775_dmic_pins[] = { 0xaa, 0xab, };
1525 static int jz4775_cim_pins[] = {
1529 static int jz4775_lcd_8bit_pins[] = {
1533 static int jz4775_lcd_16bit_pins[] = {
1536 static int jz4775_lcd_18bit_pins[] = {
1539 static int jz4775_lcd_24bit_pins[] = {
1542 static int jz4775_lcd_special_pins[] = { 0x54, 0x4a, 0x41, 0x40, };
1543 static int jz4775_lcd_generic_pins[] = { 0x49, };
1544 static int jz4775_pwm_pwm0_pins[] = { 0x80, };
1545 static int jz4775_pwm_pwm1_pins[] = { 0x81, };
1546 static int jz4775_pwm_pwm2_pins[] = { 0x82, };
1547 static int jz4775_pwm_pwm3_pins[] = { 0x83, };
1548 static int jz4775_mac_rmii_pins[] = {
1551 static int jz4775_mac_mii_pins[] = {
1554 static int jz4775_mac_rgmii_pins[] = {
1558 static int jz4775_mac_gmii_pins[] = {
1562 static int jz4775_otg_pins[] = { 0x8a, };
1564 static u8 jz4775_uart3_data_funcs[] = { 0, 1, };
1565 static u8 jz4775_mac_mii_funcs[] = { 1, 1, 1, 1, 0, 1, 0, };
1566 static u8 jz4775_mac_rgmii_funcs[] = {
1570 static u8 jz4775_mac_gmii_funcs[] = {
1575 static const struct group_desc jz4775_groups[] = {
1646 static const char *jz4775_uart0_groups[] = { "uart0-data", "uart0-hwflow", };
1647 static const char *jz4775_uart1_groups[] = { "uart1-data", "uart1-hwflow", };
1648 static const char *jz4775_uart2_groups[] = { "uart2-data-c", "uart2-data-f", };
1649 static const char *jz4775_uart3_groups[] = { "uart3-data", };
1650 static const char *jz4775_ssi_groups[] = {
1658 static const char *jz4775_mmc0_groups[] = {
1662 static const char *jz4775_mmc1_groups[] = {
1666 static const char *jz4775_mmc2_groups[] = {
1670 static const char *jz4775_nemc_groups[] = {
1674 static const char *jz4775_cs1_groups[] = { "nemc-cs1", };
1675 static const char *jz4775_cs2_groups[] = { "nemc-cs2", };
1676 static const char *jz4775_cs3_groups[] = { "nemc-cs3", };
1677 static const char *jz4775_i2c0_groups[] = { "i2c0-data", };
1678 static const char *jz4775_i2c1_groups[] = { "i2c1-data", };
1679 static const char *jz4775_i2c2_groups[] = { "i2c2-data", };
1680 static const char *jz4775_i2s_groups[] = {
1683 static const char *jz4775_dmic_groups[] = { "dmic", };
1684 static const char *jz4775_cim_groups[] = { "cim-data", };
1685 static const char *jz4775_lcd_groups[] = {
1689 static const char *jz4775_pwm0_groups[] = { "pwm0", };
1690 static const char *jz4775_pwm1_groups[] = { "pwm1", };
1691 static const char *jz4775_pwm2_groups[] = { "pwm2", };
1692 static const char *jz4775_pwm3_groups[] = { "pwm3", };
1693 static const char *jz4775_mac_groups[] = {
1696 static const char *jz4775_otg_groups[] = { "otg-vbus", };
1698 static const struct function_desc jz4775_functions[] = {
1726 static const struct ingenic_chip_info jz4775_chip_info = {
1738 static const u32 jz4780_pull_ups[6] = {
1742 static const u32 jz4780_pull_downs[6] = {
1746 static int jz4780_uart2_data_pins[] = { 0x66, 0x67, };
1747 static int jz4780_uart2_hwflow_pins[] = { 0x65, 0x64, };
1748 static int jz4780_uart4_data_pins[] = { 0x54, 0x4a, };
1749 static int jz4780_ssi0_dt_a_19_pins[] = { 0x13, };
1750 static int jz4780_ssi0_dt_a_21_pins[] = { 0x15, };
1751 static int jz4780_ssi0_dt_a_28_pins[] = { 0x1c, };
1752 static int jz4780_ssi0_dt_b_pins[] = { 0x3d, };
1753 static int jz4780_ssi0_dt_d_pins[] = { 0x79, };
1754 static int jz4780_ssi0_dr_a_20_pins[] = { 0x14, };
1755 static int jz4780_ssi0_dr_a_27_pins[] = { 0x1b, };
1756 static int jz4780_ssi0_dr_b_pins[] = { 0x34, };
1757 static int jz4780_ssi0_dr_d_pins[] = { 0x74, };
1758 static int jz4780_ssi0_clk_a_pins[] = { 0x12, };
1759 static int jz4780_ssi0_clk_b_5_pins[] = { 0x25, };
1760 static int jz4780_ssi0_clk_b_28_pins[] = { 0x3c, };
1761 static int jz4780_ssi0_clk_d_pins[] = { 0x78, };
1762 static int jz4780_ssi0_gpc_b_pins[] = { 0x3e, };
1763 static int jz4780_ssi0_gpc_d_pins[] = { 0x76, };
1764 static int jz4780_ssi0_ce0_a_23_pins[] = { 0x17, };
1765 static int jz4780_ssi0_ce0_a_25_pins[] = { 0x19, };
1766 static int jz4780_ssi0_ce0_b_pins[] = { 0x3f, };
1767 static int jz4780_ssi0_ce0_d_pins[] = { 0x77, };
1768 static int jz4780_ssi0_ce1_b_pins[] = { 0x35, };
1769 static int jz4780_ssi0_ce1_d_pins[] = { 0x75, };
1770 static int jz4780_ssi1_dt_b_pins[] = { 0x3d, };
1771 static int jz4780_ssi1_dt_d_pins[] = { 0x79, };
1772 static int jz4780_ssi1_dr_b_pins[] = { 0x34, };
1773 static int jz4780_ssi1_dr_d_pins[] = { 0x74, };
1774 static int jz4780_ssi1_clk_b_pins[] = { 0x3c, };
1775 static int jz4780_ssi1_clk_d_pins[] = { 0x78, };
1776 static int jz4780_ssi1_gpc_b_pins[] = { 0x3e, };
1777 static int jz4780_ssi1_gpc_d_pins[] = { 0x76, };
1778 static int jz4780_ssi1_ce0_b_pins[] = { 0x3f, };
1779 static int jz4780_ssi1_ce0_d_pins[] = { 0x77, };
1780 static int jz4780_ssi1_ce1_b_pins[] = { 0x35, };
1781 static int jz4780_ssi1_ce1_d_pins[] = { 0x75, };
1782 static int jz4780_mmc0_8bit_a_pins[] = { 0x04, 0x05, 0x06, 0x07, 0x18, };
1783 static int jz4780_i2c3_pins[] = { 0x6a, 0x6b, };
1784 static int jz4780_i2c4_e_pins[] = { 0x8c, 0x8d, };
1785 static int jz4780_i2c4_f_pins[] = { 0xb9, 0xb8, };
1786 static int jz4780_i2s_data_tx_pins[] = { 0x87, };
1787 static int jz4780_i2s_data_rx_pins[] = { 0x86, };
1788 static int jz4780_i2s_clk_txrx_pins[] = { 0x6c, 0x6d, };
1789 static int jz4780_i2s_clk_rx_pins[] = { 0x88, 0x89, };
1790 static int jz4780_i2s_sysclk_pins[] = { 0x85, };
1791 static int jz4780_dmic_pins[] = { 0x32, 0x33, };
1792 static int jz4780_hdmi_ddc_pins[] = { 0xb9, 0xb8, };
1794 static u8 jz4780_i2s_clk_txrx_funcs[] = { 1, 0, };
1796 static const struct group_desc jz4780_groups[] = {
1910 static const char *jz4780_uart2_groups[] = { "uart2-data", "uart2-hwflow", };
1911 static const char *jz4780_uart4_groups[] = { "uart4-data", };
1912 static const char *jz4780_ssi0_groups[] = {
1920 static const char *jz4780_ssi1_groups[] = {
1928 static const char *jz4780_mmc0_groups[] = {
1932 static const char *jz4780_mmc1_groups[] = {
1935 static const char *jz4780_mmc2_groups[] = {
1938 static const char *jz4780_nemc_groups[] = {
1942 static const char *jz4780_i2c3_groups[] = { "i2c3-data", };
1943 static const char *jz4780_i2c4_groups[] = { "i2c4-data-e", "i2c4-data-f", };
1944 static const char *jz4780_i2s_groups[] = {
1947 static const char *jz4780_dmic_groups[] = { "dmic", };
1948 static const char *jz4780_cim_groups[] = { "cim-data", };
1949 static const char *jz4780_hdmi_ddc_groups[] = { "hdmi-ddc", };
1951 static const struct function_desc jz4780_functions[] = {
1990 static const struct ingenic_chip_info jz4780_chip_info = {
2002 static const u32 x1000_pull_ups[4] = {
2006 static const u32 x1000_pull_downs[4] = {
2010 static int x1000_uart0_data_pins[] = { 0x4a, 0x4b, };
2011 static int x1000_uart0_hwflow_pins[] = { 0x4c, 0x4d, };
2012 static int x1000_uart1_data_a_pins[] = { 0x04, 0x05, };
2013 static int x1000_uart1_data_d_pins[] = { 0x62, 0x63, };
2014 static int x1000_uart1_hwflow_pins[] = { 0x64, 0x65, };
2015 static int x1000_uart2_data_a_pins[] = { 0x02, 0x03, };
2016 static int x1000_uart2_data_d_pins[] = { 0x65, 0x64, };
2017 static int x1000_sfc_data_pins[] = { 0x1d, 0x1c, 0x1e, 0x1f, };
2018 static int x1000_sfc_clk_pins[] = { 0x1a, };
2019 static int x1000_sfc_ce_pins[] = { 0x1b, };
2020 static int x1000_ssi_dt_a_22_pins[] = { 0x16, };
2021 static int x1000_ssi_dt_a_29_pins[] = { 0x1d, };
2022 static int x1000_ssi_dt_d_pins[] = { 0x62, };
2023 static int x1000_ssi_dr_a_23_pins[] = { 0x17, };
2024 static int x1000_ssi_dr_a_28_pins[] = { 0x1c, };
2025 static int x1000_ssi_dr_d_pins[] = { 0x63, };
2026 static int x1000_ssi_clk_a_24_pins[] = { 0x18, };
2027 static int x1000_ssi_clk_a_26_pins[] = { 0x1a, };
2028 static int x1000_ssi_clk_d_pins[] = { 0x60, };
2029 static int x1000_ssi_gpc_a_20_pins[] = { 0x14, };
2030 static int x1000_ssi_gpc_a_31_pins[] = { 0x1f, };
2031 static int x1000_ssi_ce0_a_25_pins[] = { 0x19, };
2032 static int x1000_ssi_ce0_a_27_pins[] = { 0x1b, };
2033 static int x1000_ssi_ce0_d_pins[] = { 0x61, };
2034 static int x1000_ssi_ce1_a_21_pins[] = { 0x15, };
2035 static int x1000_ssi_ce1_a_30_pins[] = { 0x1e, };
2036 static int x1000_mmc0_1bit_pins[] = { 0x18, 0x19, 0x17, };
2037 static int x1000_mmc0_4bit_pins[] = { 0x16, 0x15, 0x14, };
2038 static int x1000_mmc0_8bit_pins[] = { 0x13, 0x12, 0x11, 0x10, };
2039 static int x1000_mmc1_1bit_pins[] = { 0x40, 0x41, 0x42, };
2040 static int x1000_mmc1_4bit_pins[] = { 0x43, 0x44, 0x45, };
2041 static int x1000_emc_8bit_data_pins[] = {
2044 static int x1000_emc_16bit_data_pins[] = {
2047 static int x1000_emc_addr_pins[] = {
2051 static int x1000_emc_rd_we_pins[] = { 0x30, 0x31, };
2052 static int x1000_emc_wait_pins[] = { 0x34, };
2053 static int x1000_emc_cs1_pins[] = { 0x32, };
2054 static int x1000_emc_cs2_pins[] = { 0x33, };
2055 static int x1000_i2c0_pins[] = { 0x38, 0x37, };
2056 static int x1000_i2c1_a_pins[] = { 0x01, 0x00, };
2057 static int x1000_i2c1_c_pins[] = { 0x5b, 0x5a, };
2058 static int x1000_i2c2_pins[] = { 0x61, 0x60, };
2059 static int x1000_i2s_data_tx_pins[] = { 0x24, };
2060 static int x1000_i2s_data_rx_pins[] = { 0x23, };
2061 static int x1000_i2s_clk_txrx_pins[] = { 0x21, 0x22, };
2062 static int x1000_i2s_sysclk_pins[] = { 0x20, };
2063 static int x1000_dmic_if0_pins[] = { 0x35, 0x36, };
2064 static int x1000_dmic_if1_pins[] = { 0x25, };
2065 static int x1000_cim_pins[] = {
2069 static int x1000_lcd_8bit_pins[] = {
2073 static int x1000_lcd_16bit_pins[] = {
2076 static int x1000_pwm_pwm0_pins[] = { 0x59, };
2077 static int x1000_pwm_pwm1_pins[] = { 0x5a, };
2078 static int x1000_pwm_pwm2_pins[] = { 0x5b, };
2079 static int x1000_pwm_pwm3_pins[] = { 0x26, };
2080 static int x1000_pwm_pwm4_pins[] = { 0x58, };
2081 static int x1000_mac_pins[] = {
2085 static const struct group_desc x1000_groups[] = {
2145 static const char *x1000_uart0_groups[] = { "uart0-data", "uart0-hwflow", };
2146 static const char *x1000_uart1_groups[] = {
2149 static const char *x1000_uart2_groups[] = { "uart2-data-a", "uart2-data-d", };
2150 static const char *x1000_sfc_groups[] = { "sfc-data", "sfc-clk", "sfc-ce", };
2151 static const char *x1000_ssi_groups[] = {
2159 static const char *x1000_mmc0_groups[] = {
2162 static const char *x1000_mmc1_groups[] = {
2165 static const char *x1000_emc_groups[] = {
2169 static const char *x1000_cs1_groups[] = { "emc-cs1", };
2170 static const char *x1000_cs2_groups[] = { "emc-cs2", };
2171 static const char *x1000_i2c0_groups[] = { "i2c0-data", };
2172 static const char *x1000_i2c1_groups[] = { "i2c1-data-a", "i2c1-data-c", };
2173 static const char *x1000_i2c2_groups[] = { "i2c2-data", };
2174 static const char *x1000_i2s_groups[] = {
2177 static const char *x1000_dmic_groups[] = { "dmic-if0", "dmic-if1", };
2178 static const char *x1000_cim_groups[] = { "cim-data", };
2179 static const char *x1000_lcd_groups[] = { "lcd-8bit", "lcd-16bit", };
2180 static const char *x1000_pwm0_groups[] = { "pwm0", };
2181 static const char *x1000_pwm1_groups[] = { "pwm1", };
2182 static const char *x1000_pwm2_groups[] = { "pwm2", };
2183 static const char *x1000_pwm3_groups[] = { "pwm3", };
2184 static const char *x1000_pwm4_groups[] = { "pwm4", };
2185 static const char *x1000_mac_groups[] = { "mac", };
2187 static const struct function_desc x1000_functions[] = {
2213 static const struct regmap_range x1000_access_ranges[] = {
2219 static const struct regmap_access_table x1000_access_table = {
2224 static const struct ingenic_chip_info x1000_chip_info = {
2237 static int x1500_uart0_data_pins[] = { 0x4a, 0x4b, };
2238 static int x1500_uart0_hwflow_pins[] = { 0x4c, 0x4d, };
2239 static int x1500_uart1_data_a_pins[] = { 0x04, 0x05, };
2240 static int x1500_uart1_data_d_pins[] = { 0x62, 0x63, };
2241 static int x1500_uart1_hwflow_pins[] = { 0x64, 0x65, };
2242 static int x1500_uart2_data_a_pins[] = { 0x02, 0x03, };
2243 static int x1500_uart2_data_d_pins[] = { 0x65, 0x64, };
2244 static int x1500_mmc_1bit_pins[] = { 0x18, 0x19, 0x17, };
2245 static int x1500_mmc_4bit_pins[] = { 0x16, 0x15, 0x14, };
2246 static int x1500_i2c0_pins[] = { 0x38, 0x37, };
2247 static int x1500_i2c1_a_pins[] = { 0x01, 0x00, };
2248 static int x1500_i2c1_c_pins[] = { 0x5b, 0x5a, };
2249 static int x1500_i2c2_pins[] = { 0x61, 0x60, };
2250 static int x1500_i2s_data_tx_pins[] = { 0x24, };
2251 static int x1500_i2s_data_rx_pins[] = { 0x23, };
2252 static int x1500_i2s_clk_txrx_pins[] = { 0x21, 0x22, };
2253 static int x1500_i2s_sysclk_pins[] = { 0x20, };
2254 static int x1500_dmic_if0_pins[] = { 0x35, 0x36, };
2255 static int x1500_dmic_if1_pins[] = { 0x25, };
2256 static int x1500_cim_pins[] = {
2260 static int x1500_pwm_pwm0_pins[] = { 0x59, };
2261 static int x1500_pwm_pwm1_pins[] = { 0x5a, };
2262 static int x1500_pwm_pwm2_pins[] = { 0x5b, };
2263 static int x1500_pwm_pwm3_pins[] = { 0x26, };
2264 static int x1500_pwm_pwm4_pins[] = { 0x58, };
2266 static const struct group_desc x1500_groups[] = {
2297 static const char *x1500_uart0_groups[] = { "uart0-data", "uart0-hwflow", };
2298 static const char *x1500_uart1_groups[] = {
2301 static const char *x1500_uart2_groups[] = { "uart2-data-a", "uart2-data-d", };
2302 static const char *x1500_mmc_groups[] = { "mmc-1bit", "mmc-4bit", };
2303 static const char *x1500_i2c0_groups[] = { "i2c0-data", };
2304 static const char *x1500_i2c1_groups[] = { "i2c1-data-a", "i2c1-data-c", };
2305 static const char *x1500_i2c2_groups[] = { "i2c2-data", };
2306 static const char *x1500_i2s_groups[] = {
2309 static const char *x1500_dmic_groups[] = { "dmic-if0", "dmic-if1", };
2310 static const char *x1500_cim_groups[] = { "cim-data", };
2311 static const char *x1500_pwm0_groups[] = { "pwm0", };
2312 static const char *x1500_pwm1_groups[] = { "pwm1", };
2313 static const char *x1500_pwm2_groups[] = { "pwm2", };
2314 static const char *x1500_pwm3_groups[] = { "pwm3", };
2315 static const char *x1500_pwm4_groups[] = { "pwm4", };
2317 static const struct function_desc x1500_functions[] = {
2336 static const struct ingenic_chip_info x1500_chip_info = {
2349 static const u32 x1830_pull_ups[4] = {
2353 static const u32 x1830_pull_downs[4] = {
2357 static int x1830_uart0_data_pins[] = { 0x33, 0x36, };
2358 static int x1830_uart0_hwflow_pins[] = { 0x34, 0x35, };
2359 static int x1830_uart1_data_pins[] = { 0x38, 0x37, };
2360 static int x1830_sfc_data_pins[] = { 0x17, 0x18, 0x1a, 0x19, };
2361 static int x1830_sfc_clk_pins[] = { 0x1b, };
2362 static int x1830_sfc_ce_pins[] = { 0x1c, };
2363 static int x1830_ssi0_dt_pins[] = { 0x4c, };
2364 static int x1830_ssi0_dr_pins[] = { 0x4b, };
2365 static int x1830_ssi0_clk_pins[] = { 0x4f, };
2366 static int x1830_ssi0_gpc_pins[] = { 0x4d, };
2367 static int x1830_ssi0_ce0_pins[] = { 0x50, };
2368 static int x1830_ssi0_ce1_pins[] = { 0x4e, };
2369 static int x1830_ssi1_dt_c_pins[] = { 0x53, };
2370 static int x1830_ssi1_dt_d_pins[] = { 0x62, };
2371 static int x1830_ssi1_dr_c_pins[] = { 0x54, };
2372 static int x1830_ssi1_dr_d_pins[] = { 0x63, };
2373 static int x1830_ssi1_clk_c_pins[] = { 0x57, };
2374 static int x1830_ssi1_clk_d_pins[] = { 0x66, };
2375 static int x1830_ssi1_gpc_c_pins[] = { 0x55, };
2376 static int x1830_ssi1_gpc_d_pins[] = { 0x64, };
2377 static int x1830_ssi1_ce0_c_pins[] = { 0x58, };
2378 static int x1830_ssi1_ce0_d_pins[] = { 0x67, };
2379 static int x1830_ssi1_ce1_c_pins[] = { 0x56, };
2380 static int x1830_ssi1_ce1_d_pins[] = { 0x65, };
2381 static int x1830_mmc0_1bit_pins[] = { 0x24, 0x25, 0x20, };
2382 static int x1830_mmc0_4bit_pins[] = { 0x21, 0x22, 0x23, };
2383 static int x1830_mmc1_1bit_pins[] = { 0x42, 0x43, 0x44, };
2384 static int x1830_mmc1_4bit_pins[] = { 0x45, 0x46, 0x47, };
2385 static int x1830_i2c0_pins[] = { 0x0c, 0x0d, };
2386 static int x1830_i2c1_pins[] = { 0x39, 0x3a, };
2387 static int x1830_i2c2_pins[] = { 0x5b, 0x5c, };
2388 static int x1830_i2s_data_tx_pins[] = { 0x53, };
2389 static int x1830_i2s_data_rx_pins[] = { 0x54, };
2390 static int x1830_i2s_clk_txrx_pins[] = { 0x58, 0x52, };
2391 static int x1830_i2s_clk_rx_pins[] = { 0x56, 0x55, };
2392 static int x1830_i2s_sysclk_pins[] = { 0x57, };
2393 static int x1830_dmic_if0_pins[] = { 0x48, 0x59, };
2394 static int x1830_dmic_if1_pins[] = { 0x5a, };
2395 static int x1830_lcd_tft_8bit_pins[] = {
2399 static int x1830_lcd_tft_24bit_pins[] = {
2403 static int x1830_lcd_slcd_8bit_pins[] = {
2407 static int x1830_lcd_slcd_16bit_pins[] = {
2410 static int x1830_pwm_pwm0_b_pins[] = { 0x31, };
2411 static int x1830_pwm_pwm0_c_pins[] = { 0x4b, };
2412 static int x1830_pwm_pwm1_b_pins[] = { 0x32, };
2413 static int x1830_pwm_pwm1_c_pins[] = { 0x4c, };
2414 static int x1830_pwm_pwm2_c_8_pins[] = { 0x48, };
2415 static int x1830_pwm_pwm2_c_13_pins[] = { 0x4d, };
2416 static int x1830_pwm_pwm3_c_9_pins[] = { 0x49, };
2417 static int x1830_pwm_pwm3_c_14_pins[] = { 0x4e, };
2418 static int x1830_pwm_pwm4_c_15_pins[] = { 0x4f, };
2419 static int x1830_pwm_pwm4_c_25_pins[] = { 0x59, };
2420 static int x1830_pwm_pwm5_c_16_pins[] = { 0x50, };
2421 static int x1830_pwm_pwm5_c_26_pins[] = { 0x5a, };
2422 static int x1830_pwm_pwm6_c_17_pins[] = { 0x51, };
2423 static int x1830_pwm_pwm6_c_27_pins[] = { 0x5b, };
2424 static int x1830_pwm_pwm7_c_18_pins[] = { 0x52, };
2425 static int x1830_pwm_pwm7_c_28_pins[] = { 0x5c, };
2426 static int x1830_mac_pins[] = {
2430 static const struct group_desc x1830_groups[] = {
2492 static const char *x1830_uart0_groups[] = { "uart0-data", "uart0-hwflow", };
2493 static const char *x1830_uart1_groups[] = { "uart1-data", };
2494 static const char *x1830_sfc_groups[] = { "sfc-data", "sfc-clk", "sfc-ce", };
2495 static const char *x1830_ssi0_groups[] = {
2498 static const char *x1830_ssi1_groups[] = {
2506 static const char *x1830_mmc0_groups[] = { "mmc0-1bit", "mmc0-4bit", };
2507 static const char *x1830_mmc1_groups[] = { "mmc1-1bit", "mmc1-4bit", };
2508 static const char *x1830_i2c0_groups[] = { "i2c0-data", };
2509 static const char *x1830_i2c1_groups[] = { "i2c1-data", };
2510 static const char *x1830_i2c2_groups[] = { "i2c2-data", };
2511 static const char *x1830_i2s_groups[] = {
2514 static const char *x1830_dmic_groups[] = { "dmic-if0", "dmic-if1", };
2515 static const char *x1830_lcd_groups[] = {
2518 static const char *x1830_pwm0_groups[] = { "pwm0-b", "pwm0-c", };
2519 static const char *x1830_pwm1_groups[] = { "pwm1-b", "pwm1-c", };
2520 static const char *x1830_pwm2_groups[] = { "pwm2-c-8", "pwm2-c-13", };
2521 static const char *x1830_pwm3_groups[] = { "pwm3-c-9", "pwm3-c-14", };
2522 static const char *x1830_pwm4_groups[] = { "pwm4-c-15", "pwm4-c-25", };
2523 static const char *x1830_pwm5_groups[] = { "pwm5-c-16", "pwm5-c-26", };
2524 static const char *x1830_pwm6_groups[] = { "pwm6-c-17", "pwm6-c-27", };
2525 static const char *x1830_pwm7_groups[] = { "pwm7-c-18", "pwm7-c-28", };
2526 static const char *x1830_mac_groups[] = { "mac", };
2528 static const struct function_desc x1830_functions[] = {
2553 static const struct regmap_range x1830_access_ranges[] = {
2558 static const struct regmap_access_table x1830_access_table = {
2563 static const struct ingenic_chip_info x1830_chip_info = {
2576 static const u32 x2000_pull_ups[5] = {
2580 static const u32 x2000_pull_downs[5] = {
2584 static int x2000_uart0_data_pins[] = { 0x77, 0x78, };
2585 static int x2000_uart0_hwflow_pins[] = { 0x79, 0x7a, };
2586 static int x2000_uart1_data_pins[] = { 0x57, 0x58, };
2587 static int x2000_uart1_hwflow_pins[] = { 0x55, 0x56, };
2588 static int x2000_uart2_data_pins[] = { 0x7e, 0x7f, };
2589 static int x2000_uart3_data_c_pins[] = { 0x59, 0x5a, };
2590 static int x2000_uart3_data_d_pins[] = { 0x62, 0x63, };
2591 static int x2000_uart3_hwflow_c_pins[] = { 0x5b, 0x5c, };
2592 static int x2000_uart3_hwflow_d_pins[] = { 0x60, 0x61, };
2593 static int x2000_uart4_data_a_pins[] = { 0x02, 0x03, };
2594 static int x2000_uart4_data_c_pins[] = { 0x4b, 0x4c, };
2595 static int x2000_uart4_hwflow_a_pins[] = { 0x00, 0x01, };
2596 static int x2000_uart4_hwflow_c_pins[] = { 0x49, 0x4a, };
2597 static int x2000_uart5_data_a_pins[] = { 0x04, 0x05, };
2598 static int x2000_uart5_data_c_pins[] = { 0x45, 0x46, };
2599 static int x2000_uart6_data_a_pins[] = { 0x06, 0x07, };
2600 static int x2000_uart6_data_c_pins[] = { 0x47, 0x48, };
2601 static int x2000_uart7_data_a_pins[] = { 0x08, 0x09, };
2602 static int x2000_uart7_data_c_pins[] = { 0x41, 0x42, };
2603 static int x2000_uart8_data_pins[] = { 0x3c, 0x3d, };
2604 static int x2000_uart9_data_pins[] = { 0x3e, 0x3f, };
2605 static int x2000_sfc_data_if0_d_pins[] = { 0x73, 0x74, 0x75, 0x76, };
2606 static int x2000_sfc_data_if0_e_pins[] = { 0x92, 0x93, 0x94, 0x95, };
2607 static int x2000_sfc_data_if1_pins[] = { 0x77, 0x78, 0x79, 0x7a, };
2608 static int x2000_sfc_clk_d_pins[] = { 0x71, };
2609 static int x2000_sfc_clk_e_pins[] = { 0x90, };
2610 static int x2000_sfc_ce_d_pins[] = { 0x72, };
2611 static int x2000_sfc_ce_e_pins[] = { 0x91, };
2612 static int x2000_ssi0_dt_b_pins[] = { 0x3e, };
2613 static int x2000_ssi0_dt_d_pins[] = { 0x69, };
2614 static int x2000_ssi0_dr_b_pins[] = { 0x3d, };
2615 static int x2000_ssi0_dr_d_pins[] = { 0x6a, };
2616 static int x2000_ssi0_clk_b_pins[] = { 0x3f, };
2617 static int x2000_ssi0_clk_d_pins[] = { 0x68, };
2618 static int x2000_ssi0_ce_b_pins[] = { 0x3c, };
2619 static int x2000_ssi0_ce_d_pins[] = { 0x6d, };
2620 static int x2000_ssi1_dt_c_pins[] = { 0x4b, };
2621 static int x2000_ssi1_dt_d_pins[] = { 0x72, };
2622 static int x2000_ssi1_dt_e_pins[] = { 0x91, };
2623 static int x2000_ssi1_dr_c_pins[] = { 0x4a, };
2624 static int x2000_ssi1_dr_d_pins[] = { 0x73, };
2625 static int x2000_ssi1_dr_e_pins[] = { 0x92, };
2626 static int x2000_ssi1_clk_c_pins[] = { 0x4c, };
2627 static int x2000_ssi1_clk_d_pins[] = { 0x71, };
2628 static int x2000_ssi1_clk_e_pins[] = { 0x90, };
2629 static int x2000_ssi1_ce_c_pins[] = { 0x49, };
2630 static int x2000_ssi1_ce_d_pins[] = { 0x76, };
2631 static int x2000_ssi1_ce_e_pins[] = { 0x95, };
2632 static int x2000_mmc0_1bit_pins[] = { 0x71, 0x72, 0x73, };
2633 static int x2000_mmc0_4bit_pins[] = { 0x74, 0x75, 0x75, };
2634 static int x2000_mmc0_8bit_pins[] = { 0x77, 0x78, 0x79, 0x7a, };
2635 static int x2000_mmc1_1bit_pins[] = { 0x68, 0x69, 0x6a, };
2636 static int x2000_mmc1_4bit_pins[] = { 0x6b, 0x6c, 0x6d, };
2637 static int x2000_mmc2_1bit_pins[] = { 0x80, 0x81, 0x82, };
2638 static int x2000_mmc2_4bit_pins[] = { 0x83, 0x84, 0x85, };
2639 static int x2000_emc_8bit_data_pins[] = {
2642 static int x2000_emc_16bit_data_pins[] = {
2645 static int x2000_emc_addr_pins[] = {
2649 static int x2000_emc_rd_we_pins[] = { 0x2d, 0x2e, };
2650 static int x2000_emc_wait_pins[] = { 0x2f, };
2651 static int x2000_emc_cs1_pins[] = { 0x57, };
2652 static int x2000_emc_cs2_pins[] = { 0x58, };
2653 static int x2000_i2c0_pins[] = { 0x4e, 0x4d, };
2654 static int x2000_i2c1_c_pins[] = { 0x58, 0x57, };
2655 static int x2000_i2c1_d_pins[] = { 0x6c, 0x6b, };
2656 static int x2000_i2c2_b_pins[] = { 0x37, 0x36, };
2657 static int x2000_i2c2_d_pins[] = { 0x75, 0x74, };
2658 static int x2000_i2c2_e_pins[] = { 0x94, 0x93, };
2659 static int x2000_i2c3_a_pins[] = { 0x11, 0x10, };
2660 static int x2000_i2c3_d_pins[] = { 0x7f, 0x7e, };
2661 static int x2000_i2c4_c_pins[] = { 0x5a, 0x59, };
2662 static int x2000_i2c4_d_pins[] = { 0x61, 0x60, };
2663 static int x2000_i2c5_c_pins[] = { 0x5c, 0x5b, };
2664 static int x2000_i2c5_d_pins[] = { 0x65, 0x64, };
2665 static int x2000_i2s1_data_tx_pins[] = { 0x47, };
2666 static int x2000_i2s1_data_rx_pins[] = { 0x44, };
2667 static int x2000_i2s1_clk_tx_pins[] = { 0x45, 0x46, };
2668 static int x2000_i2s1_clk_rx_pins[] = { 0x42, 0x43, };
2669 static int x2000_i2s1_sysclk_tx_pins[] = { 0x48, };
2670 static int x2000_i2s1_sysclk_rx_pins[] = { 0x41, };
2671 static int x2000_i2s2_data_rx0_pins[] = { 0x0a, };
2672 static int x2000_i2s2_data_rx1_pins[] = { 0x0b, };
2673 static int x2000_i2s2_data_rx2_pins[] = { 0x0c, };
2674 static int x2000_i2s2_data_rx3_pins[] = { 0x0d, };
2675 static int x2000_i2s2_clk_rx_pins[] = { 0x11, 0x09, };
2676 static int x2000_i2s2_sysclk_rx_pins[] = { 0x07, };
2677 static int x2000_i2s3_data_tx0_pins[] = { 0x03, };
2678 static int x2000_i2s3_data_tx1_pins[] = { 0x04, };
2679 static int x2000_i2s3_data_tx2_pins[] = { 0x05, };
2680 static int x2000_i2s3_data_tx3_pins[] = { 0x06, };
2681 static int x2000_i2s3_clk_tx_pins[] = { 0x10, 0x02, };
2682 static int x2000_i2s3_sysclk_tx_pins[] = { 0x00, };
2683 static int x2000_dmic_if0_pins[] = { 0x54, 0x55, };
2684 static int x2000_dmic_if1_pins[] = { 0x56, };
2685 static int x2000_dmic_if2_pins[] = { 0x57, };
2686 static int x2000_dmic_if3_pins[] = { 0x58, };
2687 static int x2000_cim_8bit_pins[] = {
2691 static int x2000_cim_12bit_pins[] = { 0x08, 0x09, 0x0a, 0x0b, };
2692 static int x2000_lcd_tft_8bit_pins[] = {
2696 static int x2000_lcd_tft_16bit_pins[] = {
2699 static int x2000_lcd_tft_18bit_pins[] = {
2702 static int x2000_lcd_tft_24bit_pins[] = {
2705 static int x2000_lcd_slcd_8bit_pins[] = {
2709 static int x2000_pwm_pwm0_c_pins[] = { 0x40, };
2710 static int x2000_pwm_pwm0_d_pins[] = { 0x7e, };
2711 static int x2000_pwm_pwm1_c_pins[] = { 0x41, };
2712 static int x2000_pwm_pwm1_d_pins[] = { 0x7f, };
2713 static int x2000_pwm_pwm2_c_pins[] = { 0x42, };
2714 static int x2000_pwm_pwm2_e_pins[] = { 0x80, };
2715 static int x2000_pwm_pwm3_c_pins[] = { 0x43, };
2716 static int x2000_pwm_pwm3_e_pins[] = { 0x81, };
2717 static int x2000_pwm_pwm4_c_pins[] = { 0x44, };
2718 static int x2000_pwm_pwm4_e_pins[] = { 0x82, };
2719 static int x2000_pwm_pwm5_c_pins[] = { 0x45, };
2720 static int x2000_pwm_pwm5_e_pins[] = { 0x83, };
2721 static int x2000_pwm_pwm6_c_pins[] = { 0x46, };
2722 static int x2000_pwm_pwm6_e_pins[] = { 0x84, };
2723 static int x2000_pwm_pwm7_c_pins[] = { 0x47, };
2724 static int x2000_pwm_pwm7_e_pins[] = { 0x85, };
2725 static int x2000_pwm_pwm8_pins[] = { 0x48, };
2726 static int x2000_pwm_pwm9_pins[] = { 0x49, };
2727 static int x2000_pwm_pwm10_pins[] = { 0x4a, };
2728 static int x2000_pwm_pwm11_pins[] = { 0x4b, };
2729 static int x2000_pwm_pwm12_pins[] = { 0x4c, };
2730 static int x2000_pwm_pwm13_pins[] = { 0x4d, };
2731 static int x2000_pwm_pwm14_pins[] = { 0x4e, };
2732 static int x2000_pwm_pwm15_pins[] = { 0x4f, };
2733 static int x2000_mac0_rmii_pins[] = {
2736 static int x2000_mac0_rgmii_pins[] = {
2740 static int x2000_mac1_rmii_pins[] = {
2743 static int x2000_mac1_rgmii_pins[] = {
2747 static int x2000_otg_pins[] = { 0x96, };
2749 static u8 x2000_cim_8bit_funcs[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, };
2751 static const struct group_desc x2000_groups[] = {
2888 static const char *x2000_uart0_groups[] = { "uart0-data", "uart0-hwflow", };
2889 static const char *x2000_uart1_groups[] = { "uart1-data", "uart1-hwflow", };
2890 static const char *x2000_uart2_groups[] = { "uart2-data", };
2891 static const char *x2000_uart3_groups[] = {
2894 static const char *x2000_uart4_groups[] = {
2897 static const char *x2000_uart5_groups[] = { "uart5-data-a", "uart5-data-c", };
2898 static const char *x2000_uart6_groups[] = { "uart6-data-a", "uart6-data-c", };
2899 static const char *x2000_uart7_groups[] = { "uart7-data-a", "uart7-data-c", };
2900 static const char *x2000_uart8_groups[] = { "uart8-data", };
2901 static const char *x2000_uart9_groups[] = { "uart9-data", };
2902 static const char *x2000_sfc_groups[] = {
2906 static const char *x2000_ssi0_groups[] = {
2912 static const char *x2000_ssi1_groups[] = {
2918 static const char *x2000_mmc0_groups[] = { "mmc0-1bit", "mmc0-4bit", "mmc0-8bit", };
2919 static const char *x2000_mmc1_groups[] = { "mmc1-1bit", "mmc1-4bit", };
2920 static const char *x2000_mmc2_groups[] = { "mmc2-1bit", "mmc2-4bit", };
2921 static const char *x2000_emc_groups[] = {
2925 static const char *x2000_cs1_groups[] = { "emc-cs1", };
2926 static const char *x2000_cs2_groups[] = { "emc-cs2", };
2927 static const char *x2000_i2c0_groups[] = { "i2c0-data", };
2928 static const char *x2000_i2c1_groups[] = { "i2c1-data-c", "i2c1-data-d", };
2929 static const char *x2000_i2c2_groups[] = { "i2c2-data-b", "i2c2-data-d", };
2930 static const char *x2000_i2c3_groups[] = { "i2c3-data-a", "i2c3-data-d", };
2931 static const char *x2000_i2c4_groups[] = { "i2c4-data-c", "i2c4-data-d", };
2932 static const char *x2000_i2c5_groups[] = { "i2c5-data-c", "i2c5-data-d", };
2933 static const char *x2000_i2s1_groups[] = {
2938 static const char *x2000_i2s2_groups[] = {
2942 static const char *x2000_i2s3_groups[] = {
2946 static const char *x2000_dmic_groups[] = {
2949 static const char *x2000_cim_groups[] = { "cim-data-8bit", "cim-data-12bit", };
2950 static const char *x2000_lcd_groups[] = {
2954 static const char *x2000_pwm0_groups[] = { "pwm0-c", "pwm0-d", };
2955 static const char *x2000_pwm1_groups[] = { "pwm1-c", "pwm1-d", };
2956 static const char *x2000_pwm2_groups[] = { "pwm2-c", "pwm2-e", };
2957 static const char *x2000_pwm3_groups[] = { "pwm3-c", "pwm3-r", };
2958 static const char *x2000_pwm4_groups[] = { "pwm4-c", "pwm4-e", };
2959 static const char *x2000_pwm5_groups[] = { "pwm5-c", "pwm5-e", };
2960 static const char *x2000_pwm6_groups[] = { "pwm6-c", "pwm6-e", };
2961 static const char *x2000_pwm7_groups[] = { "pwm7-c", "pwm7-e", };
2962 static const char *x2000_pwm8_groups[] = { "pwm8", };
2963 static const char *x2000_pwm9_groups[] = { "pwm9", };
2964 static const char *x2000_pwm10_groups[] = { "pwm10", };
2965 static const char *x2000_pwm11_groups[] = { "pwm11", };
2966 static const char *x2000_pwm12_groups[] = { "pwm12", };
2967 static const char *x2000_pwm13_groups[] = { "pwm13", };
2968 static const char *x2000_pwm14_groups[] = { "pwm14", };
2969 static const char *x2000_pwm15_groups[] = { "pwm15", };
2970 static const char *x2000_mac0_groups[] = { "mac0-rmii", "mac0-rgmii", };
2971 static const char *x2000_mac1_groups[] = { "mac1-rmii", "mac1-rgmii", };
2972 static const char *x2000_otg_groups[] = { "otg-vbus", };
2974 static const struct function_desc x2000_functions[] = {
3027 static const struct regmap_range x2000_access_ranges[] = {
3033 static const struct regmap_access_table x2000_access_table = {
3038 static const struct ingenic_chip_info x2000_chip_info = {
3051 static const u32 x2100_pull_ups[5] = {
3055 static const u32 x2100_pull_downs[5] = {
3059 static int x2100_mac_pins[] = {
3063 static const struct group_desc x2100_groups[] = {
3196 static const char *x2100_mac_groups[] = { "mac", };
3198 static const struct function_desc x2100_functions[] = {
3249 static const struct ingenic_chip_info x2100_chip_info = {
3262 static u32 ingenic_gpio_read_reg(struct ingenic_gpio_chip *jzgc, u8 reg) in ingenic_gpio_read_reg()
3271 static void ingenic_gpio_set_bit(struct ingenic_gpio_chip *jzgc, in ingenic_gpio_set_bit()
3288 static void ingenic_gpio_shadow_set_bit(struct ingenic_gpio_chip *jzgc, in ingenic_gpio_shadow_set_bit()
3300 static void ingenic_gpio_shadow_set_bit_load(struct ingenic_gpio_chip *jzgc) in ingenic_gpio_shadow_set_bit_load()
3307 static void jz4730_gpio_set_bits(struct ingenic_gpio_chip *jzgc, in jz4730_gpio_set_bits()
3321 static inline bool ingenic_gpio_get_value(struct ingenic_gpio_chip *jzgc, in ingenic_gpio_get_value()
3329 static void ingenic_gpio_set_value(struct ingenic_gpio_chip *jzgc, in ingenic_gpio_set_value()
3340 static void irq_set_type(struct ingenic_gpio_chip *jzgc, in irq_set_type()
3397 static void ingenic_gpio_irq_mask(struct irq_data *irqd) in ingenic_gpio_irq_mask()
3409 static void ingenic_gpio_irq_unmask(struct irq_data *irqd) in ingenic_gpio_irq_unmask()
3421 static void ingenic_gpio_irq_enable(struct irq_data *irqd) in ingenic_gpio_irq_enable()
3439 static void ingenic_gpio_irq_disable(struct irq_data *irqd) in ingenic_gpio_irq_disable()
3457 static void ingenic_gpio_irq_ack(struct irq_data *irqd) in ingenic_gpio_irq_ack()
3485 static int ingenic_gpio_irq_set_type(struct irq_data *irqd, unsigned int type) in ingenic_gpio_irq_set_type()
3520 static int ingenic_gpio_irq_set_wake(struct irq_data *irqd, unsigned int on) in ingenic_gpio_irq_set_wake()
3528 static void ingenic_gpio_irq_handler(struct irq_desc *desc) in ingenic_gpio_irq_handler()
3549 static void ingenic_gpio_set(struct gpio_chip *gc, in ingenic_gpio_set()
3557 static int ingenic_gpio_get(struct gpio_chip *gc, unsigned int offset) in ingenic_gpio_get()
3564 static int ingenic_gpio_direction_output(struct gpio_chip *gc, in ingenic_gpio_direction_output()
3571 static inline void ingenic_config_pin(struct ingenic_pinctrl *jzpc, in ingenic_config_pin()
3594 static inline void ingenic_shadow_config_pin(struct ingenic_pinctrl *jzpc, in ingenic_shadow_config_pin()
3603 static inline void ingenic_shadow_config_pin_load(struct ingenic_pinctrl *jzpc, in ingenic_shadow_config_pin_load()
3610 static inline void jz4730_config_pin_function(struct ingenic_pinctrl *jzpc, in jz4730_config_pin_function()
3626 static inline bool ingenic_get_pin_config(struct ingenic_pinctrl *jzpc, in ingenic_get_pin_config()
3638 static int ingenic_gpio_get_direction(struct gpio_chip *gc, unsigned int offset) in ingenic_gpio_get_direction()
3664 static const struct pinctrl_ops ingenic_pctlops = {
3672 static int ingenic_gpio_irq_request(struct irq_data *data) in ingenic_gpio_irq_request()
3685 static void ingenic_gpio_irq_release(struct irq_data *data) in ingenic_gpio_irq_release()
3693 static void ingenic_gpio_irq_print_chip(struct irq_data *data, struct seq_file *p) in ingenic_gpio_irq_print_chip()
3700 static const struct irq_chip ingenic_gpio_irqchip = {
3714 static int ingenic_pinmux_set_pin_fn(struct ingenic_pinctrl *jzpc, in ingenic_pinmux_set_pin_fn()
3746 static int ingenic_pinmux_set_mux(struct pinctrl_dev *pctldev, in ingenic_pinmux_set_mux()
3781 static int ingenic_pinmux_gpio_set_direction(struct pinctrl_dev *pctldev, in ingenic_pinmux_gpio_set_direction()
3814 static const struct pinmux_ops ingenic_pmxops = {
3822 static int ingenic_pinconf_get(struct pinctrl_dev *pctldev, in ingenic_pinconf_get()
3918 static void ingenic_set_bias(struct ingenic_pinctrl *jzpc, in ingenic_set_bias()
3966 static void ingenic_set_schmitt_trigger(struct ingenic_pinctrl *jzpc, in ingenic_set_schmitt_trigger()
3975 static void ingenic_set_output_level(struct ingenic_pinctrl *jzpc, in ingenic_set_output_level()
3986 static void ingenic_set_slew_rate(struct ingenic_pinctrl *jzpc, in ingenic_set_slew_rate()
3995 static int ingenic_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, in ingenic_pinconf_set()
4076 static int ingenic_pinconf_group_get(struct pinctrl_dev *pctldev, in ingenic_pinconf_group_get()
4101 static int ingenic_pinconf_group_set(struct pinctrl_dev *pctldev, in ingenic_pinconf_group_set()
4123 static const struct pinconf_ops ingenic_confops = {
4131 static const struct regmap_config ingenic_pinctrl_regmap_config = {
4137 static const struct of_device_id ingenic_gpio_of_matches[] __initconst = {
4154 static int __init ingenic_gpio_probe(struct ingenic_pinctrl *jzpc, in ingenic_gpio_probe()
4228 static int __init ingenic_pinctrl_probe(struct platform_device *pdev) in ingenic_pinctrl_probe()
4342 static const struct of_device_id ingenic_pinctrl_of_matches[] = {
4414 static struct platform_driver ingenic_pinctrl_driver = {
4421 static int __init ingenic_pinctrl_drv_register(void) in ingenic_pinctrl_drv_register()