get rid of drvgen
This commit is contained in:
@@ -303,7 +303,9 @@ boot := arch/arm/boot
|
||||
archprepare:
|
||||
$(Q)$(MAKE) $(build)=arch/arm/tools include/generated/mach-types.h
|
||||
-include $(srctree)/scripts/ptgen/$(MTK_PLATFORM)/ptgen.mk
|
||||
ifeq ($(CONFIG_MTK_USE_DRVGEN),y)
|
||||
-include $(srctree)/scripts/drvgen/drvgen.mk
|
||||
endif
|
||||
-include $(srctree)/scripts/ptgen/$(MTK_PLATFORM)/ptgen.mk
|
||||
# Convert bzImage to zImage
|
||||
bzImage: zImage
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Generated by MTK SP Drv_CodeGen Version 03.13.6 for MT8127. Copyright MediaTek Inc. (C) 2013.
|
||||
* Mon Mar 19 18:10:35 2018
|
||||
* Do Not Modify the File.
|
||||
*/
|
||||
|
||||
#ifndef __CUST_AUXADC_TOOL_H
|
||||
#define __CUST_AUXADC_TOOL_H
|
||||
|
||||
|
||||
|
||||
|
||||
#endif //_CUST_AUXADC_TOOL_H
|
||||
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Generated by MTK SP Drv_CodeGen Version 03.13.6 for MT8127. Copyright MediaTek Inc. (C) 2013.
|
||||
* Mon Mar 19 18:10:35 2018
|
||||
* Do Not Modify the File.
|
||||
*/
|
||||
|
||||
#ifndef __CUST_EINTH
|
||||
#define __CUST_EINTH
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define CUST_EINTF_TRIGGER_RISING 1 //High Polarity and Edge Sensitive
|
||||
#define CUST_EINTF_TRIGGER_FALLING 2 //Low Polarity and Edge Sensitive
|
||||
#define CUST_EINTF_TRIGGER_HIGH 4 //High Polarity and Level Sensitive
|
||||
#define CUST_EINTF_TRIGGER_LOW 8 //Low Polarity and Level Sensitive
|
||||
|
||||
#define CUST_EINT_DEBOUNCE_DISABLE 0
|
||||
#define CUST_EINT_DEBOUNCE_ENABLE 1
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#define CUST_EINT_ACCDET_NUM 1
|
||||
#define CUST_EINT_ACCDET_DEBOUNCE_CN 256
|
||||
#define CUST_EINT_ACCDET_TYPE CUST_EINTF_TRIGGER_LOW
|
||||
#define CUST_EINT_ACCDET_DEBOUNCE_EN CUST_EINT_DEBOUNCE_ENABLE
|
||||
|
||||
#define CUST_EINT_ALS_NUM 7
|
||||
#define CUST_EINT_ALS_DEBOUNCE_CN 0
|
||||
#define CUST_EINT_ALS_TYPE CUST_EINTF_TRIGGER_FALLING
|
||||
#define CUST_EINT_ALS_DEBOUNCE_EN CUST_EINT_DEBOUNCE_DISABLE
|
||||
|
||||
#define CUST_EINT_TOUCH_PANEL_NUM 8
|
||||
#define CUST_EINT_TOUCH_PANEL_DEBOUNCE_CN 0
|
||||
#define CUST_EINT_TOUCH_PANEL_TYPE CUST_EINTF_TRIGGER_FALLING
|
||||
#define CUST_EINT_TOUCH_PANEL_DEBOUNCE_EN CUST_EINT_DEBOUNCE_DISABLE
|
||||
|
||||
#define CUST_EINT_GSE_1_NUM 9
|
||||
#define CUST_EINT_GSE_1_DEBOUNCE_CN 0
|
||||
#define CUST_EINT_GSE_1_TYPE CUST_EINTF_TRIGGER_HIGH
|
||||
#define CUST_EINT_GSE_1_DEBOUNCE_EN CUST_EINT_DEBOUNCE_DISABLE
|
||||
|
||||
#define CUST_EINT_GSE_2_NUM 10
|
||||
#define CUST_EINT_GSE_2_DEBOUNCE_CN 0
|
||||
#define CUST_EINT_GSE_2_TYPE CUST_EINTF_TRIGGER_HIGH
|
||||
#define CUST_EINT_GSE_2_DEBOUNCE_EN CUST_EINT_DEBOUNCE_DISABLE
|
||||
|
||||
#define CUST_EINT_MSDC1_INS_NUM 11
|
||||
#define CUST_EINT_MSDC1_INS_DEBOUNCE_CN 1
|
||||
#define CUST_EINT_MSDC1_INS_TYPE CUST_EINTF_TRIGGER_LOW
|
||||
#define CUST_EINT_MSDC1_INS_DEBOUNCE_EN CUST_EINT_DEBOUNCE_ENABLE
|
||||
|
||||
#define CUST_EINT_MHALL_NUM 18
|
||||
#define CUST_EINT_MHALL_DEBOUNCE_CN 0
|
||||
#define CUST_EINT_MHALL_TYPE CUST_EINTF_TRIGGER_LOW
|
||||
#define CUST_EINT_MHALL_DEBOUNCE_EN CUST_EINT_DEBOUNCE_DISABLE
|
||||
|
||||
#define CUST_EINT_MT6323_PMIC_NUM 24
|
||||
#define CUST_EINT_MT6323_PMIC_DEBOUNCE_CN 1
|
||||
#define CUST_EINT_MT6323_PMIC_TYPE CUST_EINTF_TRIGGER_HIGH
|
||||
#define CUST_EINT_MT6323_PMIC_DEBOUNCE_EN CUST_EINT_DEBOUNCE_ENABLE
|
||||
|
||||
#define CUST_EINT_CHR_STAT_NUM 46
|
||||
#define CUST_EINT_CHR_STAT_DEBOUNCE_CN 0
|
||||
#define CUST_EINT_CHR_STAT_TYPE CUST_EINTF_TRIGGER_LOW
|
||||
#define CUST_EINT_CHR_STAT_DEBOUNCE_EN CUST_EINT_DEBOUNCE_DISABLE
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif //_CUST_EINT_H
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Generated by MTK SP DrvGen Version 03.13.6 for MT8127. Copyright MediaTek Inc. (C) 2013.
|
||||
* Mon Mar 19 18:10:35 2018
|
||||
* Do Not Modify the File.
|
||||
*/
|
||||
|
||||
#ifndef __CUST_EINTH
|
||||
#define __CUST_EINTH
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define CUST_EINTF_TRIGGER_RISING 1 //High Polarity and Edge Sensitive
|
||||
#define CUST_EINTF_TRIGGER_FALLING 2 //Low Polarity and Edge Sensitive
|
||||
#define CUST_EINTF_TRIGGER_HIGH 4 //High Polarity and Level Sensitive
|
||||
#define CUST_EINTF_TRIGGER_LOW 8 //Low Polarity and Level Sensitive
|
||||
|
||||
#define CUST_EINT_DEBOUNCE_DISABLE 0
|
||||
#define CUST_EINT_DEBOUNCE_ENABLE 1
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif //_CUST_EINT__EXT_H
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
* Generated by MTK SP Drv_CodeGen Version 03.13.6 for MT8127. Copyright MediaTek Inc. (C) 2013.
|
||||
* Mon Mar 19 18:10:35 2018
|
||||
* Do Not Modify the File.
|
||||
*/
|
||||
|
||||
#ifndef __CUST_GPIO_USAGE_H__
|
||||
#define __CUST_GPIO_USAGE_H__
|
||||
|
||||
|
||||
#define GPIO_PMIC_EINT_PIN (GPIO2 | 0x80000000)
|
||||
#define GPIO_PMIC_EINT_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_PMIC_EINT_PIN_M_EINT GPIO_PMIC_EINT_PIN_M_GPIO
|
||||
|
||||
#define GPIO_CAMERA_CMPDN1_PIN (GPIO5 | 0x80000000)
|
||||
#define GPIO_CAMERA_CMPDN1_PIN_M_GPIO GPIO_MODE_00
|
||||
|
||||
#define GPIO_CAMERA_CMRST1_PIN (GPIO6 | 0x80000000)
|
||||
#define GPIO_CAMERA_CMRST1_PIN_M_GPIO GPIO_MODE_00
|
||||
|
||||
#define GPIO_AUD_CLK_MOSI_PIN (GPIO7 | 0x80000000)
|
||||
#define GPIO_AUD_CLK_MOSI_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_AUD_CLK_MOSI_PIN_M_CLK GPIO_MODE_01
|
||||
|
||||
#define GPIO_AUD_DAT_MISO_PIN (GPIO8 | 0x80000000)
|
||||
#define GPIO_AUD_DAT_MISO_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_AUD_DAT_MISO_PIN_M_AUD_MISO GPIO_MODE_01
|
||||
|
||||
#define GPIO_AUD_DAT_MOSI_PIN (GPIO9 | 0x80000000)
|
||||
#define GPIO_AUD_DAT_MOSI_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_AUD_DAT_MOSI_PIN_M_AUD_MOSI GPIO_MODE_01
|
||||
|
||||
#define GPIO_NFC_OSC_EN_PIN (GPIO13 | 0x80000000)
|
||||
#define GPIO_NFC_OSC_EN_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_NFC_OSC_EN_PIN_M_CLK GPIO_MODE_01
|
||||
|
||||
#define GPIO_HALL_1_PIN (GPIO18 | 0x80000000)
|
||||
#define GPIO_HALL_1_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_HALL_1_PIN_M_CLK GPIO_MODE_01
|
||||
|
||||
#define GPIO_NFC_VENB_PIN (GPIO19 | 0x80000000)
|
||||
#define GPIO_NFC_VENB_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_NFC_VENB_PIN_M_PCM_SYNC GPIO_MODE_01
|
||||
|
||||
#define GPIO_HALL_2_PIN (GPIO20 | 0x80000000)
|
||||
#define GPIO_HALL_2_PIN_M_GPIO GPIO_MODE_00
|
||||
|
||||
#define GPIO_SUB_CAM_ID_PIN (GPIO22 | 0x80000000)
|
||||
#define GPIO_SUB_CAM_ID_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_SUB_CAM_ID_PIN_M_PWM GPIO_MODE_01
|
||||
|
||||
#define GPIO_ACCDET_EINT_PIN (GPIO23 | 0x80000000)
|
||||
#define GPIO_ACCDET_EINT_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_ACCDET_EINT_PIN_M_PWM GPIO_MODE_01
|
||||
#define GPIO_ACCDET_EINT_PIN_M_EINT GPIO_ACCDET_EINT_PIN_M_GPIO
|
||||
|
||||
#define GPIO_MAIN_CAM_ID_PIN (GPIO24 | 0x80000000)
|
||||
#define GPIO_MAIN_CAM_ID_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_MAIN_CAM_ID_PIN_M_CLK GPIO_MODE_01
|
||||
#define GPIO_MAIN_CAM_ID_PIN_M_KCOL GPIO_MODE_06
|
||||
#define GPIO_MAIN_CAM_ID_PIN_CLK CLK_OUT0
|
||||
#define GPIO_MAIN_CAM_ID_PIN_FREQ GPIO_CLKSRC_NONE
|
||||
|
||||
#define GPIO_CTP_RST_PIN (GPIO25 | 0x80000000)
|
||||
#define GPIO_CTP_RST_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_CTP_RST_PIN_M_CLK GPIO_MODE_01
|
||||
#define GPIO_CTP_RST_PIN_M_KCOL GPIO_MODE_06
|
||||
#define GPIO_CTP_RST_PIN_CLK CLK_OUT1
|
||||
#define GPIO_CTP_RST_PIN_FREQ GPIO_CLKSRC_NONE
|
||||
|
||||
#define GPIO_HDMI_POWER_CONTROL (GPIO27 | 0x80000000)
|
||||
#define GPIO_HDMI_POWER_CONTROL_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_HDMI_POWER_CONTROL_M_KCOL GPIO_MODE_06
|
||||
|
||||
#define GPIO_CAMERA_CMPDN_PIN (GPIO29 | 0x80000000)
|
||||
#define GPIO_CAMERA_CMPDN_PIN_M_GPIO GPIO_MODE_00
|
||||
|
||||
#define GPIO_CTP_EINT_PIN (GPIO30 | 0x80000000)
|
||||
#define GPIO_CTP_EINT_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_CTP_EINT_PIN_M_CLK GPIO_MODE_02
|
||||
#define GPIO_CTP_EINT_PIN_M_EINT GPIO_CTP_EINT_PIN_M_GPIO
|
||||
#define GPIO_CTP_EINT_PIN_CLK CLK_OUT3
|
||||
#define GPIO_CTP_EINT_PIN_FREQ GPIO_CLKSRC_NONE
|
||||
|
||||
#define GPIO_GSE_1_EINT_PIN (GPIO31 | 0x80000000)
|
||||
#define GPIO_GSE_1_EINT_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_GSE_1_EINT_PIN_M_CLK GPIO_MODE_01
|
||||
#define GPIO_GSE_1_EINT_PIN_M_EINT GPIO_GSE_1_EINT_PIN_M_GPIO
|
||||
#define GPIO_GSE_1_EINT_PIN_CLK CLK_OUT4
|
||||
#define GPIO_GSE_1_EINT_PIN_FREQ GPIO_CLKSRC_NONE
|
||||
|
||||
#define GPIO_GSE_2_EINT_PIN (GPIO32 | 0x80000000)
|
||||
#define GPIO_GSE_2_EINT_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_GSE_2_EINT_PIN_M_CLK GPIO_MODE_01
|
||||
#define GPIO_GSE_2_EINT_PIN_M_EINT GPIO_GSE_2_EINT_PIN_M_GPIO
|
||||
#define GPIO_GSE_2_EINT_PIN_CLK CLK_OUT5
|
||||
#define GPIO_GSE_2_EINT_PIN_FREQ GPIO_CLKSRC_NONE
|
||||
|
||||
#define GPIO_KPD_KROW0_PIN (GPIO33 | 0x80000000)
|
||||
#define GPIO_KPD_KROW0_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_KPD_KROW0_PIN_M_KROW GPIO_MODE_01
|
||||
|
||||
#define GPIO_CAMERA_CMRST_PIN (GPIO34 | 0x80000000)
|
||||
#define GPIO_CAMERA_CMRST_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_CAMERA_CMRST_PIN_M_KROW GPIO_MODE_01
|
||||
|
||||
#define GPIO_OTG_DRVVBUS_PIN (GPIO35 | 0x80000000)
|
||||
#define GPIO_OTG_DRVVBUS_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_OTG_DRVVBUS_PIN_M_KROW GPIO_MODE_01
|
||||
|
||||
#define GPIO_KPD_KCOL0_PIN (GPIO36 | 0x80000000)
|
||||
#define GPIO_KPD_KCOL0_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_KPD_KCOL0_PIN_M_KCOL GPIO_MODE_01
|
||||
|
||||
#define GPIO_KPD_KCOL1_PIN (GPIO37 | 0x80000000)
|
||||
#define GPIO_KPD_KCOL1_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_KPD_KCOL1_PIN_M_KCOL GPIO_MODE_01
|
||||
|
||||
#define GPIO_OTG_IDDIG_EINT_PIN (GPIO38 | 0x80000000)
|
||||
#define GPIO_OTG_IDDIG_EINT_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_OTG_IDDIG_EINT_PIN_M_KCOL GPIO_MODE_01
|
||||
#define GPIO_OTG_IDDIG_EINT_PIN_M_IDDIG GPIO_MODE_02
|
||||
|
||||
#define GPIO_MSDC1_INSI (GPIO43 | 0x80000000)
|
||||
#define GPIO_MSDC1_INSI_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_MSDC1_INSI_M_CLK GPIO_MODE_01
|
||||
#define GPIO_MSDC1_INSI_M_KROW GPIO_MODE_03
|
||||
#define GPIO_MSDC1_INSI_M_PWM GPIO_MODE_02
|
||||
#define GPIO_MSDC1_INSI_M_EINT GPIO_MSDC1_INSI_M_GPIO
|
||||
#define GPIO_MSDC1_INSI_CLK CLK_OUT4
|
||||
#define GPIO_MSDC1_INSI_FREQ GPIO_CLKSRC_NONE
|
||||
|
||||
#define GPIO_CTP_EN_PIN (GPIO45 | 0x80000000)
|
||||
#define GPIO_CTP_EN_PIN_M_GPIO GPIO_MODE_00
|
||||
|
||||
#define GPIO_MHALL_EINT_PIN (GPIO50 | 0x80000000)
|
||||
#define GPIO_MHALL_EINT_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_MHALL_EINT_PIN_M_CLK GPIO_MODE_02
|
||||
#define GPIO_MHALL_EINT_PIN_M_EINT GPIO_MHALL_EINT_PIN_M_GPIO
|
||||
#define GPIO_MHALL_EINT_PIN_CLK CLK_OUT3
|
||||
#define GPIO_MHALL_EINT_PIN_FREQ GPIO_CLKSRC_NONE
|
||||
|
||||
#define GPIO_ALS_EINT_PIN (GPIO51 | 0x80000000)
|
||||
#define GPIO_ALS_EINT_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_ALS_EINT_PIN_M_CLK GPIO_MODE_04
|
||||
#define GPIO_ALS_EINT_PIN_M_EINT GPIO_ALS_EINT_PIN_M_GPIO
|
||||
#define GPIO_ALS_EINT_PIN_CLK CLK_OUT1
|
||||
#define GPIO_ALS_EINT_PIN_FREQ GPIO_CLKSRC_NONE
|
||||
|
||||
#define GPIO_I2C1_SDA_PIN (GPIO57 | 0x80000000)
|
||||
#define GPIO_I2C1_SDA_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_I2C1_SDA_PIN_M_SDA GPIO_MODE_01
|
||||
|
||||
#define GPIO_I2C1_SCA_PIN (GPIO58 | 0x80000000)
|
||||
#define GPIO_I2C1_SCA_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_I2C1_SCA_PIN_M_SCL GPIO_MODE_01
|
||||
|
||||
#define GPIO_I2C0_SDA_PIN (GPIO75 | 0x80000000)
|
||||
#define GPIO_I2C0_SDA_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_I2C0_SDA_PIN_M_SDA GPIO_MODE_01
|
||||
|
||||
#define GPIO_I2C0_SCA_PIN (GPIO76 | 0x80000000)
|
||||
#define GPIO_I2C0_SCA_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_I2C0_SCA_PIN_M_SCL GPIO_MODE_01
|
||||
|
||||
#define GPIO_UART_URXD1_PIN (GPIO79 | 0x80000000)
|
||||
#define GPIO_UART_URXD1_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_UART_URXD1_PIN_M_URXD GPIO_MODE_01
|
||||
|
||||
#define GPIO_UART_UTXD1_PIN (GPIO80 | 0x80000000)
|
||||
#define GPIO_UART_UTXD1_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_UART_UTXD1_PIN_M_UTXD GPIO_MODE_01
|
||||
|
||||
#define GPIO_LCM_RST (GPIO83 | 0x80000000)
|
||||
#define GPIO_LCM_RST_M_GPIO GPIO_MODE_00
|
||||
|
||||
#define GPIO_LCM_PWR_EN (GPIO85 | 0x80000000)
|
||||
#define GPIO_LCM_PWR_EN_M_GPIO GPIO_MODE_00
|
||||
|
||||
#define GPIO_CAMERA_FLASH_EN_PIN (GPIO117 | 0x80000000)
|
||||
#define GPIO_CAMERA_FLASH_EN_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_CAMERA_FLASH_EN_PIN_M_ANT_SEL GPIO_MODE_03
|
||||
|
||||
#define GPIO_GPS_LNA_PIN (GPIO118 | 0x80000000)
|
||||
#define GPIO_GPS_LNA_PIN_M_GPIO GPIO_MODE_00
|
||||
#define GPIO_GPS_LNA_PIN_M_CMDAT GPIO_MODE_01
|
||||
#define GPIO_GPS_LNA_PIN_M_CMCSD GPIO_MODE_02
|
||||
#define GPIO_GPS_LNA_PIN_M_ANT_SEL GPIO_MODE_03
|
||||
#define GPIO_GPS_LNA_PIN_M_DBG_MON_B GPIO_MODE_07
|
||||
|
||||
|
||||
/*Output for default variable names*/
|
||||
/*@XXX_XX_PIN in gpio.cmp */
|
||||
|
||||
|
||||
|
||||
|
||||
/*Output for default variable names*/
|
||||
/*@XXX_XX_PIN in gpio.cmp */
|
||||
|
||||
|
||||
|
||||
#endif /* __CUST_GPIO_USAGE_H__ */
|
||||
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Generated by MTK SP Drv_CodeGen Version 03.13.6 for MT8127. Copyright MediaTek Inc. (C) 2013.
|
||||
* Mon Mar 19 18:10:35 2018
|
||||
* Do Not Modify the File.
|
||||
*/
|
||||
|
||||
#ifndef _CUST_KPD_H_
|
||||
#define _CUST_KPD_H_
|
||||
#include <linux/input.h>
|
||||
#include <cust_eint.h>
|
||||
|
||||
#define KPD_YES 1
|
||||
#define KPD_NO 0
|
||||
|
||||
/* available keys (Linux keycodes) */
|
||||
#define KEY_CALL KEY_SEND
|
||||
#define KEY_ENDCALL KEY_END
|
||||
#undef KEY_OK
|
||||
#define KEY_OK KEY_REPLY /* DPAD_CENTER */
|
||||
#define KEY_FOCUS KEY_HP
|
||||
#define KEY_AT KEY_EMAIL
|
||||
#define KEY_POUND 228 //KEY_KBDILLUMTOGGLE
|
||||
#define KEY_STAR 227 //KEY_SWITCHVIDEOMODE
|
||||
#define KEY_DEL KEY_BACKSPACE
|
||||
#define KEY_SYM KEY_COMPOSE
|
||||
/* KEY_HOME */
|
||||
/* KEY_BACK */
|
||||
/* KEY_VOLUMEDOWN */
|
||||
/* KEY_VOLUMEUP */
|
||||
/* KEY_MUTE */
|
||||
/* KEY_MENU */
|
||||
/* KEY_UP */
|
||||
/* KEY_DOWN */
|
||||
/* KEY_LEFT */
|
||||
/* KEY_RIGHT */
|
||||
/* KEY_CAMERA */
|
||||
/* KEY_POWER */
|
||||
/* KEY_TAB */
|
||||
/* KEY_ENTER */
|
||||
/* KEY_LEFTSHIFT */
|
||||
/* KEY_COMMA */
|
||||
/* KEY_DOT */ /* PERIOD */
|
||||
/* KEY_SLASH */
|
||||
/* KEY_LEFTALT */
|
||||
/* KEY_RIGHTALT */
|
||||
/* KEY_SPACE */
|
||||
/* KEY_SEARCH */
|
||||
/* KEY_0 ~ KEY_9 */
|
||||
/* KEY_A ~ KEY_Z */
|
||||
|
||||
/*
|
||||
* Power key's HW keycodes are 8, 17, 26, 35, 44, 53, 62, 71. Only [8] works
|
||||
* for Power key in Keypad driver, so we set KEY_ENDCALL in [8] because
|
||||
* EndCall key is Power key in Android. If KPD_PWRKEY_USE_EINT is YES, these
|
||||
* eight keycodes will not work for Power key.
|
||||
*/
|
||||
|
||||
|
||||
#define KPD_KEY_DEBOUNCE 1024 /* (val / 32) ms */
|
||||
#define KPD_PWRKEY_MAP KEY_POWER
|
||||
#define MTK_PMIC_PWR_KEY 8
|
||||
|
||||
/* HW keycode [0 ~ 71] -> Linux keycode */
|
||||
#define KPD_INIT_KEYMAP() \
|
||||
{ \
|
||||
[0] = KEY_VOLUMEUP, \
|
||||
[1] = KEY_VOLUMEDOWN, \
|
||||
}
|
||||
/*****************************************************************/
|
||||
/*******************Preload Customation***************************/
|
||||
/*****************************************************************/
|
||||
#define KPD_PWRKEY_EINT_GPIO GPIO0
|
||||
|
||||
#define KPD_PWRKEY_GPIO_DIN 0
|
||||
|
||||
#define KPD_DL_KEY1 0 /* KEY_VOLUMEUP */
|
||||
#define KPD_DL_KEY2 1 /* KEY_VOLUMEDOWN */
|
||||
#define KPD_DL_KEY3 8 /* KEY_POWER */
|
||||
/*****************************************************************/
|
||||
/*******************Uboot Customation***************************/
|
||||
/*****************************************************************/
|
||||
#define MT65XX_RECOVERY_KEY 0 /* KEY_VOLUMEUP */
|
||||
#define MT65XX_FACTORY_KEY 1 /* KEY_VOLUMEDOWN */
|
||||
/*****************************************************************/
|
||||
/*******************factory Customation***************************/
|
||||
/*****************************************************************/
|
||||
#define KEYS_PWRKEY_MAP { KEY_POWER, "Power" }
|
||||
#define DEFINE_KEYS_KEYMAP(x) \
|
||||
struct key x[] = { \
|
||||
KEYS_PWRKEY_MAP, \
|
||||
{ KEY_VOLUMEUP, "VLUp" }, \
|
||||
{ KEY_VOLUMEDOWN, "VLDown" }, \
|
||||
}
|
||||
#define CUST_KEY_UP KEY_VOLUMEUP
|
||||
#define CUST_KEY_VOLUP KEY_VOLUMEUP
|
||||
#define CUST_KEY_DOWN KEY_VOLUMEDOWN
|
||||
#define CUST_KEY_VOLDOWN KEY_VOLUMEDOWN
|
||||
#define CUST_KEY_CONFIRM KEY_POWER
|
||||
#define CUST_KEY_BACK KEY_VOLUMEUP
|
||||
/*****************************************************************/
|
||||
/*******************recovery Customation****************************/
|
||||
/*****************************************************************/
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
* Generated by MTK SP DrvGen Version 03.13.6 for MT8127. Copyright MediaTek Inc. (C) 2013.
|
||||
* Mon Mar 19 18:10:35 2018
|
||||
* Do Not Modify the File.
|
||||
*/
|
||||
|
||||
#define GPIO_DVDD28_DPI GPIO_VIO28
|
||||
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Generated by MTK SP Drv_CodeGen Version 03.13.6 for MT8127. Copyright MediaTek Inc. (C) 2013.
|
||||
* Mon Mar 19 18:10:35 2018
|
||||
* Do Not Modify the File.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include <mach/upmu_sw.h>
|
||||
|
||||
|
||||
//****for customer use*******//
|
||||
|
||||
|
||||
//PMIC default enable/disable result
|
||||
|
||||
//PMIC mode select
|
||||
typedef enum
|
||||
{
|
||||
BY_ENABLE = 0,
|
||||
BY_SRCLKEN = 1
|
||||
}MODE_sel_enum;
|
||||
|
||||
////For Common use
|
||||
|
||||
//For PMIC driver use
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Generated by MTK SP Drv_CodeGen Version 03.13.6 for MT8127. Copyright MediaTek Inc. (C) 2013.
|
||||
* Mon Mar 19 18:10:35 2018
|
||||
* Do Not Modify the File.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include "pmic_drv.h"
|
||||
|
||||
|
||||
|
||||
|
||||
//For PMIC driver use
|
||||
|
||||
|
||||
@@ -403,6 +403,10 @@ config MTK_COMBO_AOSP_TETHERING_SUPPORT
|
||||
bool "Multiplex wlan0 for both AP and STA"
|
||||
default n
|
||||
|
||||
config MTK_USE_DRVGEN
|
||||
bool "use drvgen"
|
||||
default n
|
||||
|
||||
source "drivers/misc/mediatek/Kconfig.kernel"
|
||||
source "drivers/misc/mediatek/Kconfig.drivers"
|
||||
source "drivers/misc/mediatek/smartpa/Kconfig"
|
||||
|
||||
@@ -19,6 +19,10 @@ MTK_PLATFORM_PATH_ROOT := $(srctree)/drivers/misc/mediatek/mach/$(MTK_PLATFORM)
|
||||
MTK_PROJECT_PATH_ROOT := $(srctree)/drivers/misc/mediatek/mach/$(MTK_PLATFORM)/$(ARCH_MTK_PROJECT)
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_MTK_USE_DRVGEN),y)
|
||||
DRVGEN_OUT := $(MTK_PROJECT_PATH_ROOT)/dct/dct
|
||||
endif
|
||||
|
||||
ccflags-y += -I$(MTK_PLATFORM_PATH_ROOT)/include \
|
||||
-I$(MTK_PLATFORM_PATH_ROOT)/include/mach \
|
||||
-I$(MTK_PROJECT_PATH_ROOT)/accdet \
|
||||
|
||||
Reference in New Issue
Block a user