12
12
#include <linux/gpio/driver.h>
13
13
#include <linux/platform_device.h>
14
14
#include <linux/io.h>
15
+ #include <linux/module.h>
15
16
#include <linux/of_irq.h>
16
17
17
18
#include "mtk-eint.h"
@@ -204,6 +205,7 @@ int mtk_hw_set_value(struct mtk_pinctrl *hw, const struct mtk_pin_desc *desc,
204
205
205
206
return 0 ;
206
207
}
208
+ EXPORT_SYMBOL_GPL (mtk_hw_set_value );
207
209
208
210
int mtk_hw_get_value (struct mtk_pinctrl * hw , const struct mtk_pin_desc * desc ,
209
211
int field , int * value )
@@ -223,6 +225,7 @@ int mtk_hw_get_value(struct mtk_pinctrl *hw, const struct mtk_pin_desc *desc,
223
225
224
226
return 0 ;
225
227
}
228
+ EXPORT_SYMBOL_GPL (mtk_hw_get_value );
226
229
227
230
static int mtk_xt_find_eint_num (struct mtk_pinctrl * hw , unsigned long eint_n )
228
231
{
@@ -361,6 +364,7 @@ int mtk_build_eint(struct mtk_pinctrl *hw, struct platform_device *pdev)
361
364
362
365
return mtk_eint_do_init (hw -> eint );
363
366
}
367
+ EXPORT_SYMBOL_GPL (mtk_build_eint );
364
368
365
369
/* Revision 0 */
366
370
int mtk_pinconf_bias_disable_set (struct mtk_pinctrl * hw ,
@@ -380,6 +384,7 @@ int mtk_pinconf_bias_disable_set(struct mtk_pinctrl *hw,
380
384
381
385
return 0 ;
382
386
}
387
+ EXPORT_SYMBOL_GPL (mtk_pinconf_bias_disable_set );
383
388
384
389
int mtk_pinconf_bias_disable_get (struct mtk_pinctrl * hw ,
385
390
const struct mtk_pin_desc * desc , int * res )
@@ -402,6 +407,7 @@ int mtk_pinconf_bias_disable_get(struct mtk_pinctrl *hw,
402
407
403
408
return 0 ;
404
409
}
410
+ EXPORT_SYMBOL_GPL (mtk_pinconf_bias_disable_get );
405
411
406
412
int mtk_pinconf_bias_set (struct mtk_pinctrl * hw ,
407
413
const struct mtk_pin_desc * desc , bool pullup )
@@ -421,6 +427,7 @@ int mtk_pinconf_bias_set(struct mtk_pinctrl *hw,
421
427
422
428
return 0 ;
423
429
}
430
+ EXPORT_SYMBOL_GPL (mtk_pinconf_bias_set );
424
431
425
432
int mtk_pinconf_bias_get (struct mtk_pinctrl * hw ,
426
433
const struct mtk_pin_desc * desc , bool pullup , int * res )
@@ -440,6 +447,7 @@ int mtk_pinconf_bias_get(struct mtk_pinctrl *hw,
440
447
441
448
return 0 ;
442
449
}
450
+ EXPORT_SYMBOL_GPL (mtk_pinconf_bias_get );
443
451
444
452
/* Revision 1 */
445
453
int mtk_pinconf_bias_disable_set_rev1 (struct mtk_pinctrl * hw ,
@@ -454,6 +462,7 @@ int mtk_pinconf_bias_disable_set_rev1(struct mtk_pinctrl *hw,
454
462
455
463
return 0 ;
456
464
}
465
+ EXPORT_SYMBOL_GPL (mtk_pinconf_bias_disable_set_rev1 );
457
466
458
467
int mtk_pinconf_bias_disable_get_rev1 (struct mtk_pinctrl * hw ,
459
468
const struct mtk_pin_desc * desc , int * res )
@@ -471,6 +480,7 @@ int mtk_pinconf_bias_disable_get_rev1(struct mtk_pinctrl *hw,
471
480
472
481
return 0 ;
473
482
}
483
+ EXPORT_SYMBOL_GPL (mtk_pinconf_bias_disable_get_rev1 );
474
484
475
485
int mtk_pinconf_bias_set_rev1 (struct mtk_pinctrl * hw ,
476
486
const struct mtk_pin_desc * desc , bool pullup )
@@ -490,6 +500,7 @@ int mtk_pinconf_bias_set_rev1(struct mtk_pinctrl *hw,
490
500
491
501
return 0 ;
492
502
}
503
+ EXPORT_SYMBOL_GPL (mtk_pinconf_bias_set_rev1 );
493
504
494
505
int mtk_pinconf_bias_get_rev1 (struct mtk_pinctrl * hw ,
495
506
const struct mtk_pin_desc * desc , bool pullup ,
@@ -515,6 +526,7 @@ int mtk_pinconf_bias_get_rev1(struct mtk_pinctrl *hw,
515
526
516
527
return 0 ;
517
528
}
529
+ EXPORT_SYMBOL_GPL (mtk_pinconf_bias_get_rev1 );
518
530
519
531
/* Combo for the following pull register type:
520
532
* 1. PU + PD
@@ -715,6 +727,7 @@ int mtk_pinconf_bias_set_combo(struct mtk_pinctrl *hw,
715
727
out :
716
728
return err ;
717
729
}
730
+ EXPORT_SYMBOL_GPL (mtk_pinconf_bias_set_combo );
718
731
719
732
int mtk_pinconf_bias_get_combo (struct mtk_pinctrl * hw ,
720
733
const struct mtk_pin_desc * desc ,
@@ -735,6 +748,7 @@ int mtk_pinconf_bias_get_combo(struct mtk_pinctrl *hw,
735
748
out :
736
749
return err ;
737
750
}
751
+ EXPORT_SYMBOL_GPL (mtk_pinconf_bias_get_combo );
738
752
739
753
/* Revision 0 */
740
754
int mtk_pinconf_drive_set (struct mtk_pinctrl * hw ,
@@ -764,6 +778,7 @@ int mtk_pinconf_drive_set(struct mtk_pinctrl *hw,
764
778
765
779
return err ;
766
780
}
781
+ EXPORT_SYMBOL_GPL (mtk_pinconf_drive_set );
767
782
768
783
int mtk_pinconf_drive_get (struct mtk_pinctrl * hw ,
769
784
const struct mtk_pin_desc * desc , int * val )
@@ -788,6 +803,7 @@ int mtk_pinconf_drive_get(struct mtk_pinctrl *hw,
788
803
789
804
return 0 ;
790
805
}
806
+ EXPORT_SYMBOL_GPL (mtk_pinconf_drive_get );
791
807
792
808
/* Revision 1 */
793
809
int mtk_pinconf_drive_set_rev1 (struct mtk_pinctrl * hw ,
@@ -809,6 +825,7 @@ int mtk_pinconf_drive_set_rev1(struct mtk_pinctrl *hw,
809
825
810
826
return err ;
811
827
}
828
+ EXPORT_SYMBOL_GPL (mtk_pinconf_drive_set_rev1 );
812
829
813
830
int mtk_pinconf_drive_get_rev1 (struct mtk_pinctrl * hw ,
814
831
const struct mtk_pin_desc * desc , int * val )
@@ -826,18 +843,21 @@ int mtk_pinconf_drive_get_rev1(struct mtk_pinctrl *hw,
826
843
827
844
return 0 ;
828
845
}
846
+ EXPORT_SYMBOL_GPL (mtk_pinconf_drive_get_rev1 );
829
847
830
848
int mtk_pinconf_drive_set_raw (struct mtk_pinctrl * hw ,
831
849
const struct mtk_pin_desc * desc , u32 arg )
832
850
{
833
851
return mtk_hw_set_value (hw , desc , PINCTRL_PIN_REG_DRV , arg );
834
852
}
853
+ EXPORT_SYMBOL_GPL (mtk_pinconf_drive_set_raw );
835
854
836
855
int mtk_pinconf_drive_get_raw (struct mtk_pinctrl * hw ,
837
856
const struct mtk_pin_desc * desc , int * val )
838
857
{
839
858
return mtk_hw_get_value (hw , desc , PINCTRL_PIN_REG_DRV , val );
840
859
}
860
+ EXPORT_SYMBOL_GPL (mtk_pinconf_drive_get_raw );
841
861
842
862
int mtk_pinconf_adv_pull_set (struct mtk_pinctrl * hw ,
843
863
const struct mtk_pin_desc * desc , bool pullup ,
@@ -878,6 +898,7 @@ int mtk_pinconf_adv_pull_set(struct mtk_pinctrl *hw,
878
898
879
899
return err ;
880
900
}
901
+ EXPORT_SYMBOL_GPL (mtk_pinconf_adv_pull_set );
881
902
882
903
int mtk_pinconf_adv_pull_get (struct mtk_pinctrl * hw ,
883
904
const struct mtk_pin_desc * desc , bool pullup ,
@@ -920,6 +941,7 @@ int mtk_pinconf_adv_pull_get(struct mtk_pinctrl *hw,
920
941
921
942
return 0 ;
922
943
}
944
+ EXPORT_SYMBOL_GPL (mtk_pinconf_adv_pull_get );
923
945
924
946
int mtk_pinconf_adv_drive_set (struct mtk_pinctrl * hw ,
925
947
const struct mtk_pin_desc * desc , u32 arg )
@@ -946,6 +968,7 @@ int mtk_pinconf_adv_drive_set(struct mtk_pinctrl *hw,
946
968
947
969
return err ;
948
970
}
971
+ EXPORT_SYMBOL_GPL (mtk_pinconf_adv_drive_set );
949
972
950
973
int mtk_pinconf_adv_drive_get (struct mtk_pinctrl * hw ,
951
974
const struct mtk_pin_desc * desc , u32 * val )
@@ -969,3 +992,4 @@ int mtk_pinconf_adv_drive_get(struct mtk_pinctrl *hw,
969
992
970
993
return 0 ;
971
994
}
995
+ EXPORT_SYMBOL_GPL (mtk_pinconf_adv_drive_get );
0 commit comments