1 menu "Drivers Configurations"
4 depends on ARCH_MT6589 || ARCH_MT6582 || ARCH_MT6595 || ARCH_MT6795 || ARCH_MT6735 || ARCH_MT6735M || ARCH_MT6753
7 Say Y here for supporting LDVT
12 bool "MediaTek ADC driver for LDVT"
15 MediaTek ADC driver for LDVT
17 config MTK_LDVT_ADC_TS
18 bool "MediaTek ADC_TS driver for LDVT"
23 bool "MediaTek GPT driver for LDVT"
26 MediaTek GPT driver for LDVT
29 bool "MediaTek KP driver for LDVT"
32 MediaTek KP driver for LDVT
35 bool "MediaTek I2C driver for LDVT"
38 MediaTek I2C driver for LDVT
41 bool "MediaTek IrDA driver for LDVT"
44 MediaTek IrDA driver for LDVT
47 bool "MediaTek MSDC driver for LDVT"
50 MediaTek MSDC driver for LDVT
53 bool "MediaTek UART driver for LDVT"
56 MediaTek UART driver for LDVT
59 bool "MediaTek PWM driver for LDVT"
62 MediaTek PWM driver for LDVT
65 bool "MediaTek SPI driver for LDVT"
68 MediaTek SPI driver for LDVT
71 bool "MediaTek PMIC driver for LDVT"
74 MediaTek PMIC driver for LDVT
76 config MTK_LDVT_PMIC_WRAP
77 bool "MediaTek PMIC_WRAP driver for LDVT"
80 MediaTek PMIC_WRAP driver for LDVT
86 bool "MediaTek Accessory Detection Support"
89 config CUSTOM_KERNEL_CHARGEPUMP
90 bool "backlight driver"
94 menuconfig MTK_CCCI_DEVICES
98 Say Y here to get to see options for device drivers from ccci.
99 If you say N, all options in this submenu will be skipped and disabled.
101 config MTK_CCCI_DRIVER # CCCI_DRIVER
102 tristate "CCCI Driver"
103 depends on MTK_CCCI_DEVICES
106 This option enables ccci device driver support
108 config MTK_CCCI_EXT # CCCI_DRIVER
109 bool "Dual CCCI Driver"
110 depends on MTK_CCCI_DEVICES
113 This option enables dual ccci device driver support
115 config MTK_ECCCI_DRIVER
116 tristate "ECCCI Driver"
117 depends on MTK_CCCI_DEVICES
120 This option enables ECCCI device driver support
122 config MTK_ECCCI_CLDMA
123 tristate "ECCCI CLDMA driver"
124 depends on MTK_ECCCI_DRIVER
127 This option enables ECCCI CLDMA driver
129 config MTK_ECCCI_CCIF
130 tristate "ECCCI CCIF driver"
131 depends on MTK_ECCCI_DRIVER
134 This option enables ECCCI CCIF driver
137 tristate "ECCCI UT mode"
138 depends on MTK_ECCCI_DRIVER
141 This option enables ECCCI UT mode (software loopback, no CLDMA support)
143 config MTK_MD_LOW_BAT_SUPPORT
144 bool "MediaTek MD low bat support"
148 bool "MediaTek CCMNI driver"
149 depends on MTK_CCCI_DEVICES
154 config MTK_ENABLE_MD1
155 bool "MTK_ENABLE_MD1"
156 depends on MTK_CCCI_DRIVER || MTK_ECCCI_DRIVER
159 Set to yes, if the first modem is enabled
161 config MTK_MD1_SUPPORT
162 int "MTK_MD1_SUPPORT"
163 depends on MTK_ENABLE_MD1
166 modem 1 mode: 1=>2g,2=>3g,3=>wg,4=>tg,5=>lwg,6=>ltg,7=>sglte,0=>invalide
170 depends on MTK_ENABLE_MD1
177 depends on MTK_ENABLE_MD1
180 modem 1 share memory size.
182 config MTK_ENABLE_MD2
183 bool "MTK_ENABLE_MD2"
184 depends on MTK_CCCI_EXT || MTK_ECCCI_DRIVER
187 Set to yes, if the second modem is enabled
189 config MTK_MD2_SUPPORT
190 int "MTK_MD2_SUPPORT"
191 depends on MTK_ENABLE_MD2
194 modem 2 mode: 1=>2g,2=>3g,3=>wg,4=>tg,5=>lwg,6=>ltg,7=>sglte,0=>invalide
198 depends on MTK_ENABLE_MD2
205 depends on MTK_ENABLE_MD2
208 modem 2 share memory size.
210 config MTK_MD_SBP_CUSTOM_VALUE
211 string "MTK_MD_SBP_CUSTOM_VALUE"
214 Disable MD SBP(Single Binary Platform) feature or not.
215 Defined: enable MD SBP feature.
217 config MTK_MD2_SBP_CUSTOM_VALUE
218 string "MTK_MD2_SBP_CUSTOM_VALUE"
221 Disable MD2 SBP(Single Binary Platform) feature or not.
222 Defined: enable MD2 SBP feature.
224 config MTK_UMTS_TDD128_MODE
225 bool "MTK_UMTS_TDD128_MODE"
227 MTK_UMTS_TDD128_MODE=yes means enable UMTS TDD128 specific
228 features MTK_UMTS_TDD128_MODE=no means disable UMTS TDD128
232 menuconfig MTK_EMCI_DEVICES # Use by MT6290M over SDIO
236 Say Y here to get to see options for device drivers from EEMCS.
237 If you say N, all options in this submenu will be skipped and disabled.
239 config MTK_EEMCS_DRIVER # EEMCS_DRIVER
240 tristate "EEMCS Driver"
241 depends on MTK_EMCI_DEVICES
244 This option enables EEMCS device driver support
246 config MTK_ENABLE_MD5
247 bool "MTK_ENABLE_MD5"
248 depends on MTK_EEMCS_DRIVER
251 Enable/Disable External Modem 5 (LTE modem)
253 config MTK_MD5_SUPPORT
254 int "MTK_MD5_SUPPORT"
255 depends on MTK_ENABLE_MD5
259 modem 5 mode, value range(0-7):0(invalid),1(2g),2(3g),3(wg),4(tg)
263 depends on MTK_ENABLE_MD5
266 modem 5 share memory size.
270 depends on MTK_ENABLE_MD5
277 config MTK_EXTERNAL_MODEM_SLOT
278 string "MTK_EXTERNAL_MODEM_SLOT"
280 config MTK_SWITCH_TX_POWER
281 bool "EANBLE TX POWER SWITCH"
284 config MTK_LTE_SUPPORT
285 bool "MediaTek LTE support"
288 This option enables LTE support
290 # Frame Buffer Related
292 bool "MediaTek Framebuffer Driver"
294 select FB_CFB_FILLRECT
295 select FB_CFB_COPYAREA
296 select FB_CFB_IMAGEBLIT
297 select FB_SOFT_CURSOR
299 This selects the MediaTek(R) frame buffer driver.
300 If you want to use MediaTek(R) frame buffer diver, say Y here.
303 config MTK_FB_SUPPORT_ASSERTION_LAYER
304 bool "AEE Assertion Layer Support"
309 This enable support for AEE assertion layer.
310 If you want to enable AEE assertion layer support, say Y here.
313 config MTK_DITHERING_SUPPORT
314 bool "MTK_DITHERING_SUPPORT"
316 To control whether enable or disable LCD controller dithering
317 feature. If choose yes, LCD controller would do dithering to
318 avoid contour effect, but side effect is that dithering mechanism
319 will make some noises
321 config MTK_LCM_PHYSICAL_ROTATION
322 string "MTK_LCM_PHYSICAL_ROTATION"
324 To set the angle between dimension of UI layout and LCM scan
331 To set LCM resolution height size
337 To set LCM resolution width size
339 config MTK_OVERLAY_ENGINE_SUPPORT
340 bool "MTK_OVERLAY_ENGINE_SUPPORT"
342 To open overlay engine to support svp
344 config MTK_TVOUT_SUPPORT
345 bool "MTK_TVOUT_SUPPORT"
347 To control whether enable or disable TV-out feature. If choose
348 yes, video or image on your phone can be demonstrated on TV via
349 TV-out cable. Also, this feature can help user to get more fun
350 when playing some games.
352 config MIXMODE_FOR_INCELL
353 bool "MIXMODE_FOR_INCELL"
356 config LCM_SEND_CMD_IN_VIDEO
357 bool "LCM_SEND_CMD_IN_VIDEO"
360 # TODO check what's MT6516_EVB_BOARD
361 config MTK_FB_EVB_USE_HVGA_LCM # FB_MT6516_EVB_USE_HVGA_LCM
362 bool "Use MagnaChip TA7601 HVGA LCM on EVB"
363 depends on FB_MT6516 && MT6516_EVB_BOARD
366 Use MagnaChip TA7601 HVGA LCM on EVB
369 tristate "GPS drivers"
372 Say Y here for supporting GPS.
375 config MTK_GPS # MT6516_GPS --> TODO should change to use modulized settings!
376 tristate "MediaTek 3326 GPS driver"
384 tristate "NFC drivers"
387 Say Y here for supporting NFC.
392 tristate "MediaTek NFC driver"
396 tristate "MSR3110 NFC driver"
402 tristate"MediaTek BTIF Driver"
405 tristate "MediaTek Connectivity Combo Chip Support"
407 MTK connectivity combo chip driver for MT66xx
410 # MTK Combo Chip Selection
416 config MTK_COMBO_CHIP_MT6620
419 config MTK_COMBO_CHIP_MT6628
422 config MTK_COMBO_CHIP_MT6630
425 config MTK_COMBO_CHIP_CONSYS_6572
428 config MTK_COMBO_CHIP_CONSYS_6582
431 config MTK_COMBO_CHIP_CONSYS_8127
434 config MTK_COMBO_CHIP_CONSYS_6752
437 config MTK_COMBO_CHIP_CONSYS_6592
442 config MTK_COMBO_CHIP
444 default "MT6620" if MTK_COMBO_CHIP_MT6620
445 default "MT6628" if MTK_COMBO_CHIP_MT6628
446 default "MT6630" if MTK_COMBO_CHIP_MT6630
447 default "CONSYS_6572" if MTK_COMBO_CHIP_CONSYS_6572
448 default "CONSYS_6582" if MTK_COMBO_CHIP_CONSYS_6582
449 default "CONSYS_8127" if MTK_COMBO_CHIP_CONSYS_8127
450 default "CONSYS_6752" if MTK_COMBO_CHIP_CONSYS_6752
451 default "CONSYS_6592" if MTK_COMBO_CHIP_CONSYS_6592
453 this feature is used to identify combo chip version or SOC chip
457 string "MTK_WLAN_CHIP"
458 default "MT6620" if MTK_COMBO_CHIP_MT6620
459 default "MT6628" if MTK_COMBO_CHIP_MT6628
460 default "MT6630" if MTK_COMBO_CHIP_MT6630
461 default "CONSYS_6572" if MTK_COMBO_CHIP_CONSYS_6572
462 default "CONSYS_6582" if MTK_COMBO_CHIP_CONSYS_6582
463 default "CONSYS_8127" if MTK_COMBO_CHIP_CONSYS_8127
464 default "CONSYS_6752" if MTK_COMBO_CHIP_CONSYS_6752
466 Define the wlan chip, the MTK_WLAN_SUPPORT must be set yes
468 config MTK_WLAN_SUPPORT
469 bool "MTK_WLAN_SUPPORT"
471 The Wlan switch for the wlan feature in the Android(app,
472 framework, native, kernel).
474 config MTK_WAPI_SUPPORT
475 bool "MTK_WAPI_SUPPORT"
476 depends on MTK_WLAN_SUPPORT
478 if it is set to TRUE: Support WAPI (WLAN Authentication and
479 Privacy Infrastructure)
481 config MTK_PASSPOINT_R1_SUPPORT
482 bool "MTK_PASSPOINT_R1_SUPPORT"
484 Support Passpoint R1 (Hotspot 2.0 R1)
486 config MTK_PASSPOINT_R2_SUPPORT
487 bool "MTK_PASSPOINT_R2_SUPPORT"
491 config MTK_WIFI_MCC_SUPPORT
492 bool "MTK_WIFI_MCC_SUPPORT"
495 if it is set to TRUE, wlan will support Multi-Channel Concurrency,
496 otherwise, only support Single Channel Concurrency
498 # Target Platform Selection
500 config MTK_COMBO_PLAT_PATH
501 string "Platform folder name"
503 default "sample" if MTK_COMBO_PLAT_SAMPLE
505 Specify platform folder under common driver platform folder:
506 mtk_wcn_combo/common/platform/*
509 # MTK COMBO Chip Configuration
511 config MTK_COMBO_COMM
513 tristate "MediaTek Combo Chip Common part driver"
515 MediaTek combo chip common part driver
517 #config MTK_COMBO_COMM_PS
518 # depends on MTK_COMBO_COMM
519 # bool "Enable PS support"
522 # Enable PS support of common UART interface
524 config MTK_COMBO_COMM_UART
525 depends on MTK_COMBO_COMM
526 tristate "Common interface UART"
528 Use UART for common part interface type
530 config MTK_COMBO_COMM_SDIO
531 depends on MTK_COMBO_COMM
532 tristate "Common interface SDIO"
534 Use SDIO for common part interface type
537 tristate "MediaTek Combo Chip BT driver"
540 MTK BT /dev/stpbt driver for Bluedroid
543 tristate "MediaTek Combo Chip ANT driver"
546 MTK ANT /dev/stpant driver for ANT
548 config MTK_COMBO_BT_HCI
549 tristate "MediaTek Combo Chip BlueZ driver"
550 depends on BT && MTK_COMBO
552 MTK BT driver for BlueZ
555 tristate "MediaTek Combo Chip GPS driver"
558 MTK GPS /dev/stpgps driver
560 config MTK_GPS_SUPPORT
561 tristate "MediaTek GPS driver"
564 to switch GPS feature on the platform. Set "yes" to turn
565 on and set "no"(with MTK_AGPS_APP=no at the same time) to turn
568 config MTK_COMBO_WIFI
569 tristate "MediaTek combo chip Wi-Fi support"
575 config MTK_BT_SUPPORT
576 bool "MTK_BT_SUPPORT"
578 When this option set to yes, the MTK Bluetooth solution will be
581 config MTK_DHCPV6C_WIFI
582 bool "MTK_DHCPV6C_WIFI"
584 no: disable this feature
586 config MTK_WFD_SUPPORT
587 bool "MTK_WFD_SUPPORT"
592 bool "MediaTek FM Chip Support"
595 config MTK_FM_SUPPORT
596 bool "MTK_FM_SUPPORT"
598 The root switch of Android FM, if "no", all features(RX&TX) of FM
599 will be removed from android system
603 depends on MTK_FM_SUPPORT
604 default "MT6620_FM" if MTK_COMBO_CHIP_MT6620
605 default "MT6630_FM" if MTK_COMBO_CHIP_MT6630
607 decide which FM radio chip to use: e.g.MT6620_FM, MT6628_FM
609 config MTK_FM_50KHZ_SUPPORT
610 bool "MTK_FM_50KHZ_SUPPORT"
611 depends on MTK_FM_SUPPORT
613 The feature option is to define if we support FM 50KHz step
614 tune/seek/scan functions
616 config MTK_MERGE_INTERFACE_SUPPORT
617 bool "MTK_MERGE_INTERFACE_SUPPORT"
619 config SDIOAUTOK_SUPPORT
620 tristate "MediaTek SDIO UHS auto calibration support"
623 config MTK_MT6306_SUPPORT
624 tristate "MediaTek MT6306 GPIO Controller support"
627 config MTK_IDLE_TIME_FIX
628 tristate "MediaTek fix top get idle time issue"
633 bool "MediaTek G2D Driver"
639 config MTK_MPEG4_DEC_DRIVER
640 tristate "MediaTek MPEG4 Decoder Driver"
643 config MTK_MPEG4_ENC_DRIVER
644 tristate "MediaTek MPEG4 Encoder Driver"
647 config MTK_H264_DEC_DRIVER
648 tristate "MediaTek H264 Decoder Driver"
651 config MTK_MFLEXVIDEO_DRIVER
652 tristate "MediaTek MFlexVideo Driver"
655 config MTK_VIDEOCODEC_DRIVER
656 tristate "MediaTek VideoCodec Driver"
660 config MTK_MJC_DRIVER
661 tristate "MediaTek MJC Driver"
667 tristate "MediaTek I2C adapter"
671 This selects the MediaTek(R) Integrated Inter Circuit bus driver.
672 If you want to use MediaTek(R) I2C interface, say Y or M here.
675 config MTK_AP_TO_SCP_I2C
676 def_bool y if ARCH_MT6752
678 This option enables AP to control SCP I2C controller 2.
682 tristate "MediaTek SPI controller"
686 This selects the MediaTek(R) SPI bus driver.
687 If you want to use MediaTek(R) SPI interface, say Y or M here. If unsure, say N.
691 tristate "MediaTek CMMB Driver"
695 This selects the MediaTek(R) CMMB driver.
696 If you want to use MediaTek(R) CMMB driver, say M here.
701 tristate "MediaTek JPEG driver"
706 tristate "MediaTek Keypad Support"
708 Say Y here if you want to use the keypad.
709 To compile this driver as a module, choose M here: the
710 module will be called mt6516_kpd.
713 tristate "MediaTek hid keyboard support"
715 Say Y here if you want to use the hid keyboard.
717 To compile this driver as a module, choose M here: the
718 module will be called hid_keyboard.
722 tristate "MediaTek LED Support"
723 depends on LEDS_CLASS
725 This selects the MediaTek(R) LEDs connected to MediaTek chips.
726 If you want to use MediaTek(R) LEDs support, say Y or M here.
731 tristate "MediaTek SD/MMC Card Interface support"
733 This selects the MediaTek(R) Secure digital and Multimedia card Interface.
734 If you have a machine with a integrated SD/MMC card reader, say Y or M here.
738 config MTK_SDIOAUTOK_SUPPORT
739 tristate "MediaTek SDIO Auto-K support (for SDIO 3.0)"
742 This selects the MediaTek(R) SDIO Auto-K Support (for SDIO 3.0).
746 menu "MediaTek OFN / Jogball Related Drivers"
747 config MOUSE_PANASONIC_EVQWJN
748 bool "Panasonic EVQWJN Jogball Support"
750 Say Y here if you have Panasonic EVQWJN Jogball
753 config MOUSE_AVAGOTECH_A320
754 bool "Avagotech ADBS-A320 driver"
756 Say Y here if you have ADBS-A320 device, which is a Optical Finger Navigation device
763 menuconfig MTK_MTD_NAND
764 tristate "MediaTek Nand Support"
767 Enables support for NAND Flash chips wired to MediaTek chips.
769 config MTK_MTD_NAND_INTERRUPT_SCHEME
770 bool "Nand Read/Write with interrupt scheme"
771 depends on MTK_MTD_NAND
774 Enable interrupt scheme in Nand Read/Write.
776 config MTK_MLC_NAND_SUPPORT
777 tristate "Mediatek MLC NAND Support"
778 depends on MTK_MTD_NAND
780 Enables support for MLC NAND.
785 tristate "MediaTek PMIC Driver"
786 depends on ARCH_MT6516
789 config MTK_SMART_BATTERY
790 tristate "MediaTek Smart Battery Driver"
793 config MTK_DUMMY_BATTERY
794 tristate "MediaTek Dummy Battery Driver"
795 depends on ARCH_MT6516
799 tristate "MediaTek Power Management Unit Driver"
800 depends on ARCH_MT6573
804 tristate "MediaTek Fuel Gauge Driver"
805 depends on ARCH_MT6573
809 tristate "MediaTek Power Management Unit Driver"
813 bool "MediaTek PMIC_WRAP driver "
816 MediaTek pmic_wrap driver
818 config MTK_PMIC_MT6397
819 bool "MediaTek PMIC MT6397"
825 tristate "MediaTek Power Ext"
827 config MTK_POWER_EXT_DETECT
828 bool "MediaTek Power Ext detect"
831 EVB/Phone share load configration. Require one GPIO to do detection,
832 if GPIO is high mean EVB, otherwise mean phone platform.
834 config MTK_PUMP_EXPRESS_SUPPORT
835 bool "MediaTek PUMP EXPRESS"
838 fast charging, by using linear charger to achive better charging ability
840 config MTK_PUMP_EXPRESS_PLUS_SUPPORT
841 bool "MediaTek PUMP EXPRESS PLUS"
844 fast charging, by using switch charger to achive better charging ability
846 config MTK_VOW_SUPPORT
847 bool "MediaTek VOW support"
850 config MTK_EXTERNAL_LDO
851 bool "MediaTek externla LDO"
854 config X2_BQ27531_SUPPORT
855 bool "X2_BQ27531 support"
858 config MTK_BQ24250_SUPPORT
859 bool "MediaTek Battery driver for BQ24250"
862 BQ24250 charger IC support
864 config MTK_BQ24261_SUPPORT
865 bool "MediaTek Battery driver for TI BQ24261"
867 BQ24261 charger IC support
869 config MTK_BQ24196_SUPPORT
870 bool "MediaTek Battery driver for TI BQ24196"
872 BQ24196 charger IC support
874 config MTK_FAN5405_SUPPORT
875 bool "MTK_FAN5405_SUPPORT"
877 use external charger IC
879 config MTK_FAN5402_SUPPORT
880 bool "MTK_FAN5402_SUPPORT"
882 New Config BBK92 Drive Only Codebase
884 config MTK_BQ24158_SUPPORT
885 bool "MTK_BQ24158_SUPPORT"
887 add MTK_BQ24158_SUPPORT to ProjectConfig.mk default off
889 config MTK_BQ24296_SUPPORT
890 bool "MTK_BQ24296_SUPPORT"
892 BQ24296 charger IC support Yes to support bq24296 No to not
895 config MTK_BQ27541_SUPPORT
896 bool "MTK_BQ27541_SUPPORT"
898 yes : support TI bq27541 external gauge IC
900 config MTK_NCP1851_SUPPORT
901 bool "MTK_NCP1851_SUPPORT"
903 Support NCP1851 external charger IC
905 config MTK_NCP1854_SUPPORT
906 bool "MTK_NCP1854_SUPPORT"
908 Support NCP1854 external charger IC
910 config MTK_RT9536_SUPPORT
911 bool "MTK_RT9536_SUPPORT"
914 Say Y to include support for RT9536 Battery Charger
917 config MTK_MAX8971_SUPPORT
918 tristate "MAXIM 8971 Battery Charger"
922 Say Y to include support for MAXIM 8971 Battery Charger
927 config MTK_DUAL_INPUT_CHARGER_SUPPORT
928 bool "MTK_DUAL_INPUT_CHARGER_SUPPORT"
931 yes : support dual input charger.
933 config MTK_WIRELESS_CHARGER_SUPPORT
934 bool "MTK_WIRELESS_CHARGER_SUPPORT"
936 yes : support wireless charger feature, it can show the wireless
937 charging animation and charging icon when receive wireless charger
938 plug-in. no: not support wireless charger feature, stay with
939 legancy feature, which cannot sense the exist of the wireles
942 config MTK_JEITA_STANDARD_SUPPORT
943 bool "MTK_JEITA_STANDARD_SUPPORT"
946 yes : support charging standard spec named JEITA, once enable this feature,
947 there would be semeral thermal zone for battery to control its charging
952 bool "MediaTek Real Time Clock Support"
956 menuconfig MTK_SERIAL
957 tristate "MediaTek Serial Port Support"
961 This selects MediaTek(R) internal UART driver.
962 If you want to use MediaTek(R) internal UART driver, say Y or M here.
965 config MTK_SERIAL_CONSOLE
966 bool "MediaTek Console on Serial Port Support"
967 depends on MTK_SERIAL=y
968 select SERIAL_CORE_CONSOLE
971 Say Y here if you wish to use MT6516 internal UART as the system
972 console. You should alter the default console setting by kernel
973 command line option "console=ttyMT0" or "console=ttyMT1".
975 config MTK_SERIAL_MODEM_TEST
976 bool "Support modem test"
977 depends on MTK_SERIAL=y
980 Say Y here is you want to enable modem test. After enabling this
981 option, UART4 will be switched to modem side. Hence, the command
982 line parameter should be also modified.
984 config MTK_UART_USB_SWITCH
985 bool "MTK_UART_USB_SWITCH"
987 Support share USB DP/DM as UART TX/RX.
991 bool "MediaTek SIM2 Driver"
996 bool "MediaTek Sound Driver"
998 config MTK_AUDIO_EXTCODEC_SUPPORT
999 bool "MTK_AUDIO_EXTCODEC_SUPPORT"
1002 If you say Y, enable MTK_AUDIO_EXTCODEC_SUPPORT driver.
1006 bool "CM36283 for MediaTek package"
1009 config MTK_GP2AP002S00F
1010 bool "GP2AP002S00F for MediaTek package"
1014 bool "APM_16D for MediaTek package"
1018 bool "EPL2182 for MediaTek package"
1021 config MTK_EPL2182_NEW
1022 bool "EPL2182 for MediaTek package"
1026 bool "STK3X1X for MediaTek package"
1029 config MTK_CM36652_NEW
1030 bool "cm36652 for MediaTek package"
1034 bool "APDS9930 for MediaTek package"
1037 config MTK_CM3232_NEW
1038 bool "CM3232 for MediaTek package"
1041 config MTK_APDS9930_NEW
1042 bool "APDS9930_NEW for MediaTek package"
1046 bool "rpr410 for MediaTek package"
1049 # Accelerometer sensor
1050 config MTK_KXTJ2_1009
1051 bool "KXTJ2 1009 for MediaTek package"
1054 config MTK_KXTIK1004
1055 bool "KXTIK1004 for MediaTek package"
1059 bool "K2DH for MediaTek package"
1063 bool "BMA222E for MediaTek package"
1066 config MTK_BMA222E_NEW
1067 bool "BMA222E for MediaTek package"
1071 bool "MPU6050G for MediaTek package"
1074 config MTK_MPU6050G_NEW
1075 bool "MPU6050G for MediaTek package"
1079 bool "Accelerometer BMA250 for MediaTek package"
1083 bool "MPU6515A for MediaTek package"
1086 config MTK_KXTJ2_1009_NEW
1087 bool "KXTJ2_1009 for MediaTek package"
1091 bool "MTK_BMA250E for MediaTek package"
1095 bool "MTK_BMA056 for MediaTek package"
1099 bool "BMA2XX for MediaTek package"
1103 bool "Hall sensor for MediaTek package"
1108 bool "MPU3050C for MediaTek package"
1112 bool "MPU3000 for MediaTek package"
1115 config MTK_MPU3000_NEW
1116 bool "MPU3000 for MediaTek package"
1119 config MTK_MPU6050GY
1120 bool "MPU6050GY for MediaTek package"
1123 config MTK_MPU6050GY_NEW
1124 bool "MPU6050GY for MediaTek package"
1128 bool "MPU6515G for MediaTek package"
1131 config MTK_MPU3050C_NEW
1132 bool "MPU3050C for MediaTek package"
1137 bool "AKM8963 for MediaTek package"
1141 bool "AKM09911 for MediaTek package"
1144 config MTK_AKM8963_NEW
1145 bool "AKM8963 for MediaTek package"
1148 config MTK_HSCDTD006
1149 bool "HSCDTD006 for MediaTek package"
1153 bool "MTK_BMM050 for MediaTek package"
1156 config MTK_BMM050_NEW
1157 bool "MTK_BMM050_NEW for MediaTek package"
1161 bool "MTK_BMM050 for MediaTek package"
1165 bool "MTK_MMC3416X for MediaTek package"
1169 bool "MTK_BMA250 for MediaTek package"
1173 bool "MTK_BMA050 for MediaTek package"
1176 config MTK_BMA050_NEW
1177 bool "MTK_BMA050_NEW for MediaTek package"
1180 config MTK_BMM056_NEW
1181 bool "MTK_BMM056_NEW for MediaTek package"
1185 bool "S2200 for Mediatek package"
1189 bool "YAS532 for Mediatek package"
1193 config MTK_BMP180_NEW
1194 bool "BMP180 for MediaTek package"
1198 config MTK_TOUCHPANEL
1199 tristate "MediaTek Touch Panel Driver"
1201 Say Y here if you have MediaTek MT6516 touch panel.
1205 bool "S7020 for Mediatek package"
1208 # USB # TODO Check Choice
1209 config MTK_USB_GADGET # USB_GADGET_MT6516 USB_GADGET_MT6573
1210 boolean "MediaTek USB Gadget Driver"
1211 select USB_GADGET_SELECTED
1212 select USB_GADGET_DUALSPEED
1215 # For MTK USB3.0 IP++++
1216 config USB_MU3D_PIO_ONLY
1217 tristate "MediaTek MUSB Gadget support EP0 PIO mode"
1221 tristate "MediaTek MUSB Gadget support"
1225 tristate "MediaTek MUSB Gadget support"
1232 Enables support MU3 PHY for SSUSB or XHCI.
1235 config U3_PHY_GPIO_SUPPORT
1236 bool "MU3 PHY registers access by I2C"
1240 Enables support for read/write PHY registers by external I2C.
1243 config U3_PHY_AHB_SUPPORT
1244 bool "MU3 PHY registers access by AHB"
1248 Enables support for read/write PHY registers by internal AHB.
1252 tristate "MediaTek U3 XHCI support"
1255 Enables support Mediatek U3 XHCI functions.
1258 config MTK_OTG_PMIC_BOOST_5V
1259 tristate "MediaTek PMIC BOOST 5V support"
1262 Enables support PMIC BOOST 5V to be supply usb 5v power.
1265 config MTK_TEST_XHCI
1266 tristate "MediaTek U3 TEST XHCI driver support"
1269 Enables support Mediatek U3 XHCI test driver kernel framework.
1272 config USBIF_COMPLIANCE
1273 tristate "MediaTek MUSB U3 USBIF COMPLIANCE"
1276 config C60802_SUPPORT
1277 bool "MU3 PHY C60802 support"
1281 Enables support for external PHY(Ver C).
1285 bool "S3320 for Mediatek package"
1289 bool "S3320 4.7inch for Mediatek package"
1297 bool "LM3639 Support"
1301 bool "RT8542 Support"
1303 config D60802_SUPPORT
1304 bool "MU3 PHY D60802 support"
1308 Enables support for external PHY(Ver D).
1311 config E60802_SUPPORT
1312 bool "MU3 PHY E60802 support"
1316 Enables support for external PHY(Ver E).
1320 bool "MU3 ASIC PHY support"
1324 Enables support for ASIC PHY.
1327 # For MTK USB3.0 IP-----
1331 bool "MediaTek Vibrator Driver"
1335 config MTK_WD_KICKER
1336 tristate "WatchDog Kicer"
1339 Watch dog kicker is a module in the kernel for kicking the watch dog
1341 config KICK_SPM_WDT # SW WORKAROUND
1342 tristate "Kick SPM Watchdog"
1343 depends on ARCH_MT6572
1346 SW workaround to kick SPM WDT instaed of RGU WDT
1350 tristate "MediaTek MT592x driver support"
1351 depends on MTK_COMBO_WIFI=n
1356 bool "MediaTek MT5921 WLAN card"
1360 bool "MediaTek MT5922 WLAN card"
1364 bool "MediaTek MT592x debug support"
1368 bool "MediaTek MT592x proc support"
1372 bool "MediaTek MT592x IBSS support"
1375 config MT592X_SW_ENC
1376 bool "MediaTek MT592x software encrypt support"
1380 bool "MediaTek MT592x WPS support"
1383 config MT592X_EEPROM
1384 bool "MediaTek MT592x EEPROM support"
1388 bool "MediaTek MT592x WAPI support"
1392 bool "MediaTek MT592x PTA support"
1396 bool "MediaTek MT592x SDIO support"
1397 depends on MT592X && MMC
1399 config MT592X_SDIO_CLNT
1400 tristate "MediaTek MT592X SDIO CLNT support"
1403 config USB_MTK_ACM_TEMP
1404 tristate "MediaTek USB ACM Temp support"
1408 tristate "MediaTek MUSB support"
1409 select USB_GADGET_SELECTED
1410 select USB_GADGET_DUALSPEED
1413 config USB_MTK_HDRC_GADGET
1414 tristate "MediaTek MUSB Gadget support"
1417 tristate "MediaTek MUSB OTG support"
1419 config USB_MTK_DUALMODE
1420 bool "MediaTek DUAL MODE support"
1423 config USB_MTK_DEBUG_FS
1424 tristate "MediaTek MUSB Debug FS support"
1427 config USB_MTK_DEBUG
1428 tristate "MediaTek MUSB Debug support"
1430 config USB_MTK_HDRC_HCD
1431 tristate "MediaTek USB HDRC support"
1433 config MTK_USB_UNIQUE_SERIAL
1434 tristate "MediaTek USB unique serial number"
1436 config MTK_USBFSH # USBFSH
1437 bool "MediaTek USB fullspeed Host driver"
1440 config MUSBFSH_PIO_ONLY
1441 bool "Transfer mode of MediaTek USB fullspeed Host driver"
1444 config AMPC_CDEV_NUM
1445 int "AMPC chard device number(never change this value)"
1448 AMPC char device number.
1452 bool "Mediatek ION Memory Manager"
1455 bool "MMProfile Support"
1458 bool "Select which staging drivers you want"
1465 # MTK PASR mechanism
1469 bool "MTK proprietary PASR mechanism"
1470 depends on SYSFS && ZSMALLOC && ARM && HIGHMEM
1471 select MTKPASR_RDIRECT
1473 select MTKPASR_DEBUG
1475 select LZO_DECOMPRESS
1478 Mediatek PASR mechanism
1480 config MTKPASR_RDIRECT
1481 bool "Bank scanning direction"
1485 Scanning direction of MTKPASR
1488 bool "Mark it As Free by removing page blocks from buddy allocator to its List"
1492 Enhance the PASR performance on collecting free banks
1494 config MTKPASR_ALLEXTCOMP
1499 config MTKPASR_DEBUG
1500 bool "MTK proprietary PASR debug support"
1504 This option adds additional debugging code to MTK PASR
1506 config MTKPASR_NO_LASTBANK
1507 bool "Modem occupies last bank"
1512 # add for power loss test
1514 menuconfig PWR_LOSS_MTK_TEST
1515 tristate "Power Loss Test"
1518 Say Y here if you want do Power loss test for NAND Or EMMC
1521 if PWR_LOSS_MTK_TEST
1522 config PWR_LOSS_MTK_DEBUG
1525 Say Y here if you want turns on low-level debugging
1528 config PWR_LOSS_MTK_SPOH
1529 bool "Power Loss Test Version SPOH"
1532 Say Y here if you want to perform Power loss test version SPOH
1536 menuconfig MTK_EMMC_CACHE
1537 tristate "eMMC Cache"
1540 Say Y here if you want do enable cache feature for EMMC
1543 config MTK_GPU_SUPPORT
1544 bool "MTK_GPU_SUPPORT"
1546 MTK_GPU_SUPPORT=yes, means support HW GPU
1548 config MTK_ICUSB_SUPPORT
1549 bool "MTK_ICUSB_SUPPORT"
1551 To enable the ICUSB featurea in phone which support USB port 1
1553 config MTK_DT_USB_SUPPORT
1554 bool "MTK_DT_USB_SUPPORT"
1556 To enable the dual talk feature in phone over USB port 1
1558 config MTK_SWCHR_SUPPORT
1559 bool "MTK_SWCHR_SUPPORT"
1561 Select Y here for MTK switching charger solution
1563 config MTK_DISABLE_POWER_ON_OFF_VOLTAGE_LIMITATION
1564 bool "MTK_DISABLE_POWER_ON_OFF_VOLTAGE_LIMITATION"
1566 Used for SMT and HQA, not for SQC and end-user
1568 config MTK_KERNEL_POWER_OFF_CHARGING
1569 bool "MTK_KERNEL_POWER_OFF_CHARGING"
1571 yes : support KPOC feature, power off charging would running by
1572 kernel and charging animation by IPO service. no: not support KPOC
1573 feature, and power off charging would running by lk.
1575 config MTK_BQ24160_SUPPORT
1576 bool "MTK_BQ24160_SUPPORT"
1578 External switching charger
1580 config MTK_MT8193_SUPPORT
1581 bool "MTK_MT8193_SUPPORT"
1584 config MTK_HDMI_SUPPORT
1585 bool "MTK_HDMI_SUPPORT"
1587 To control whether enable or disable HDMI feature. If choose yes,
1588 phone's screen can be demonstrated on TV via HDMI cable.
1590 config MTK_MT8193_HDMI_SUPPORT
1591 bool "MTK_MT8193_HDMI_SUPPORT"
1592 depends on MTK_HDMI_SUPPORT
1593 depends on MTK_MT8193_SUPPORT
1595 config MTK_INTERNAL_HDMI_SUPPORT
1596 bool "MTK_INTERNAL_HDMI_SUPPORT"
1597 depends on MTK_HDMI_SUPPORT
1599 config MTK_MT8193_HDCP_SUPPORT
1600 bool "MTK_MT8193_HDCP_SUPPORT"
1602 Enable hdmi tx hdcp support
1604 config MTK_HDMI_HDCP_SUPPORT
1605 bool "MTK_HDMI_HDCP_SUPPORT"
1607 Enable hdmi tx hdcp support
1609 config CUSTOM_KERNEL_HDMI
1610 string "CUSTOM_KERNEL_HDMI"
1612 Specify HDMI external IC type.
1614 config SINGLE_PANEL_OUTPUT
1615 bool "SINGLE_PANEL_OUTPUT"
1617 Disable panel output when HDMI connected.
1619 config CUSTOM_KERNEL_BAROMETER
1620 bool "CUSTOM_KERNEL_BAROMETER"
1622 Pressure sensor driver to detect pressure
1624 config MTK_INTERNAL_MHL_SUPPORT
1625 bool "MTK_INTERNAL_MHL_SUPPORT"
1626 depends on MTK_HDMI_SUPPORT
1628 Enable internal mhl tx support
1629 (can't enable MTK_INTERNAL_HDMI_SUPPORT at the same time)
1631 config MTK_THERMAL_PA_VIA_ATCMD
1632 bool "MTK_THERMAL_PA_VIA_ATCMD"
1634 Internal switch for thermal management to query modem RF
1635 temperature via AT command.
1637 config MTK_COMBO_NAND_SUPPORT
1638 bool "MTK_COMBO_NAND_SUPPORT"
1639 depends on MTK_MTD_NAND && !MTK_EMMC_SUPPORT
1641 To support different NAND page size on the same load
1643 config MTK_UMTS_TDD128_MODE
1644 bool "MTK_UMTS_TDD128_MODE"
1646 MTK_UMTS_TDD128_MODE=yes means enable UMTS TDD128 specific
1647 features MTK_UMTS_TDD128_MODE=no means disable UMTS TDD128
1648 specific features. This feature option is used for APP to
1649 distinguish TDD, e.g. TDD modem, TDD HW,
1650 TDD specific customization, etc. TDD projects need to enable this
1651 feature option, non-TDD projects must disable this feature option.
1653 config MTK_SIM1_SOCKET_TYPE
1654 string "MTK_SIM1_SOCKET_TYPE"
1656 support SIM type 1 socket
1658 config MTK_SIM2_SOCKET_TYPE
1659 string "MTK_SIM2_SOCKET_TYPE"
1661 MTK_SIM1_SOCKET_TYPE=1: support type 1 socket type
1663 config MTK_SEC_MODEM_NVRAM_ANTI_CLONE
1664 bool "MTK_SEC_MODEM_NVRAM_ANTI_CLONE"
1666 This option is used to enable modem NVRAM anti-clone functionality
1667 [dependency_relationship]: yes If this option is turned on, the
1668 modem part should also turn on for the following setting 1. Modem
1669 project file CUSTOM_OPTION += __NVRAM_BIND_TO_CHIP_CIPHER__ 2. by
1670 default, only two LID is defaulted has MSP attribute
1671 (1)NVRAM_EF_SML_LID (2)NVRAM_EF_SIM_LOCK_LID 3. if want to turn on
1672 specific LID, please add attribute NVRAM_ATTR_MSP
1674 config MTK_MT6333_SUPPORT
1675 bool "MTK_MT6333_SUPPORT"
1677 If PCB support MT6333, please set yes. otherwise set no.
1679 config MTK_CTP_RESET_CONFIG
1680 bool "MTK_CTP_RESET_CONFIG"
1682 Reset TP IC for avoiding issue of DL wrong load. yes: Use in
1683 internal. no: For customer release
1685 config MTK_BICR_SUPPORT
1686 bool "MTK_BICR_SUPPORT"
1689 config MTK_VIDEO_HEVC_SUPPORT
1690 bool "MTK_VIDEO_HEVC_SUPPORT"
1692 This option is for HEVC playback/record feature
1694 config MTK_AAL_SUPPORT
1695 bool "MTK_AAL_SUPPORT"
1697 Decide whether to support ambient-light adpative backlight control
1698 and display visual enhancement
1700 config MTK_MULTIBRIDGE_SUPPORT
1701 bool "MTK_MULTIBRIDGE_SUPPORT"
1703 This feature option is for companion chip MT8193 use.
1705 config NAND_OTP_SUPPORT
1706 bool "NAND_OTP_SUPPORT"
1708 Select Y here to enable NAND OTP function support
1710 config MTK_OD_SUPPORT
1711 bool "MTK_OD_SUPPORT"
1718 config MTK_LENS_DUMMYLENS_SUPPORT
1719 bool "Dummy Lens Driver"
1722 config MTK_LENS_AD5820AF_SUPPORT
1723 bool "AD5820AF Lens Driver"
1726 config MTK_LENS_AD5823_SUPPORT
1727 bool "AD5823 Lens Driver"
1730 config MTK_LENS_AD5823AF_SUPPORT
1731 bool "AD5823AF Lens Driver"
1734 config MTK_LENS_AK7345AF_SUPPORT
1735 bool "AK7345AF Lens Driver"
1738 config MTK_LENS_BU6424AF_SUPPORT
1739 bool "BU6424AF Lens Driver"
1742 config MTK_LENS_BU6429AF_SUPPORT
1743 bool "BU6429AF Lens Driver"
1746 config MTK_LENS_BU64745GWZAF_SUPPORT
1747 bool "BU64745GWZAF Lens Driver"
1750 config MTK_LENS_AK7345AF_SUPPORT
1751 bool "AK7345AF Lens Driver"
1754 config MTK_LENS_DW9718AF_SUPPORT
1755 bool "DW9718AF Lens Driver"
1758 config MTK_LENS_DW9714AF_SUPPORT
1759 bool "DW9714AF Lens Driver"
1762 config MTK_LENS_DW9714A_SUPPORT
1763 bool "DW9714A Lens Driver"
1766 config MTK_LENS_LC898122AF_SUPPORT
1767 bool "LC898122AF Lens Driver"
1770 config MTK_LENS_LC898212AF_SUPPORT
1771 bool "LC898212AF Lens Driver"
1774 config MTK_LENS_FM50AF_SUPPORT
1775 bool "FM50AF Lens Driver"
1778 config MTK_LENS_MT9P017AF_SUPPORT
1779 bool "MT9P017AF Lens Driver"
1782 config MTK_LENS_OV8825AF_SUPPORT
1783 bool "OV8825AF Lens Driver"
1786 config MTK_LENS_SENSORDRIVE_SUPPORT
1787 bool "SENSORDRIVE Lens Driver"
1790 config MTK_LENS_GAF001AF_SUPPORT
1791 bool "GAF001AF Lens Driver"
1794 config MTK_LENS_GAF002AF_SUPPORT
1795 bool "GAF002AF Lens Driver"
1798 config MTK_LENS_GAF008AF_SUPPORT
1799 bool "GAF008AF Lens Driver"
1803 # Camera EEPROM Calibration
1806 config MTK_CAM_CAL_GT24C32A_SUPPORT
1807 bool "GT24C32A EEPROM Driver"
1810 config MTK_CAM_CAL_BRCC064GWZ_3_SUPPORT
1811 bool "BRCC064GWZ_3 EEPROM Driver"
1814 config MTK_CAM_CAL_BRCB032GWZ_3_SUPPORT
1815 bool "BRCB032GWZ_3 EEPROM Driver"
1818 # MTK_EXTMEM for LCA project
1821 bool "mtk external memory"
1822 depends on MTK_INTERNAL
1825 config MTK_DRM_KEY_MNG_SUPPORT
1826 bool "Enable MTK DRM KEY MNG SUPPORT"
1827 depends on MTK_IN_HOUSE_TEE_SUPPORT
1830 This enable MTK DRM KEY MNG SUPPORT.