#ifndef __PIN_CONFIG_H__ #define __PIN_CONFIG_H__ #include "gpio_pin_define.h" #include "customize.h" /* LED */ #define GPIO_LED_G_ON_PIN GPIO_NOT_USE #define GPIO_PWM_LED_G_ON_PIN GPIO_NOT_USE #define GPIO_LED_R_ON_PIN GPIO_27 #define GPIO_PWM_LED_R_ON_PIN GPIO_NOT_USE #define LED_OnStatus 0x80 /* Power On LED status bit 7: 1/0 ==> GREEN LED H/L bit 6: 1/0 ==> RED LED H/L bit [3:0] ==> 0x2ee0000 >> (15-bit[3:0]) */ #define LED_OffStatus 0x40 /* Power Off LED status */ #define LED_DisableStatus 0x00 /* Disable LED status */ /* Panel */ #define GPIO_PANEL_ON_PIN GPIO_43 #ifdef CONFIG_PANEL_BACKLIGHT_DIM_REF #define GPIO_BL_ON_PIN GPIO_NOT_USE //GPIO_30 #define PNL_REF_PWM_NO 2 #define PNL_PWM_NO 3 #elif defined(CONFIG_PANEL_BL_ON_BL_ADJ_SWAP_FUNCTION) #define GPIO_BL_ON_PIN GPIO_35 #define PNL_REF_PWM_NO GPIO_BL_ON_PIN #define PNL_PWM_NO 2 #else #define GPIO_BL_ON_PIN GPIO_30 #define PNL_REF_PWM_NO GPIO_BL_ON_PIN #define PNL_PWM_NO 3 #endif #ifdef CONFIG_PANEL_SEQE_POWEROFF_ADJ_GPIO_MODE #define GPIO_ADJ_PWM_PIN GPIO_35 #endif /* I2C */ //#define GPIO_I2C_SDA_PIN GPIO_16 //#define GPIO_I2C_SCL_PIN GPIO_17 #define GPIO_I2C_SDA_PIN GPIO_4 #define GPIO_I2C_SCL_PIN GPIO_3 /* Audio */ #define GPIO_12V_EN GPIO_NOT_USE #define GPIO_AUDIO_CTL GPIO_NOT_USE #define GPIO_AMP_MUTE_PIN GPIO_6 #define GPIO_AMP_EN_PIN GPIO_NOT_USE #define GPIO_HP_DETECTION_PIN GPIO_NOT_USE #define GPIO_AMP_STB_PIN GPIO_NOT_USE /* HDMI HPD */ #define GPIO_HDMI_5VDET_PIN_A GPIO_NOT_USE #define GPIO_HDMI_5VDET_PIN_B GPIO_NOT_USE #define GPIO_HDMI_5VDET_PIN_C GPIO_NOT_USE /* Tuner */ #define GPIO_TUNER_RESET GPIO_NOT_USE #define GPIO_DEMOD_RESET GPIO_NOT_USE #ifdef CONFIG_SUPPORT_ARC #define GPIO_ARC_DET GPIO_1 #else #define GPIO_ARC_DET GPIO_NOT_USE #endif /* Debug */ #define GPIO_DEBUG_0 GPIO_NOT_USE #define GPIO_DEBUG_1 GPIO_NOT_USE #define GPIO_DEBUG_2 GPIO_NOT_USE #define GPIO_DEBUG_3 GPIO_NOT_USE #define GPIO_DEBUG_4 GPIO_NOT_USE #define GPIO_DEBUG_5 GPIO_NOT_USE #define GPIO_DVD_IR_OUT GPIO_NOT_USE /* Flash Protect */ #define GPIO_SPIPROTECT_PIN GPIO_NOT_USE #define GPIO_AMBIGLOW_LED_PIN GPIO_NOT_USE /* DVD */ #define GPIO_DVD_IROUT GPIO_NOT_USE #define GPIO_DVD_ON_OFF GPIO_NOT_USE #define GPIO_DVD_STB GPIO_NOT_USE #define GPIO_DVD_AUTO GPIO_NOT_USE /* SWITCH */ #define GPIO_YPBPRDVD_SWTICH_PIN GPIO_NOT_USE /* HDMI SWITCH GPIO I2C */ #define GPIO_HDMISWITCH_SCL_PIN GPIO_NOT_USE #define GPIO_HDMISWITCH_SDA_PIN GPIO_NOT_USE /* MHL CD_SENSE */ #ifdef CONFIG_HDMI_SUPPORT_MHL #define GPIO_MHL_CD_SENSE GPIO_0 #endif /*PANELSET*/ #ifdef CONFIG_SUPPORT_SET_PANELSET_BY_BATTERY_AND_GPIO #define GPIO_PANELSET_CONTROL GPIO_1 #endif #ifdef CONFIG_USBVCC_USE_GPIO #define GPIO_USBEN_PIN CONFIG_GPIO_USB5V #define GPIO_USBEN_LEVEL CONFIG_GPIO_USB5V_LEVEL #else #define GPIO_USBEN_PIN GPIO_NOT_USE #define GPIO_USBEN_LEVEL GPIO_LEVEL_LOW #endif #ifdef CONFIG_EXTIC_DIGITALAMP #define I2S_SD0_PIN I2S_SET1 // for DAMP #define I2S_WS_PIN I2S_SET1 #define I2S_MCK_PIN I2S_SET1 #define I2S_SCK_PIN I2S_SET1 #elif (CONFIG_CHIPID != 0x330) // It will be implement at boot/loader0.c (void I2S_BUS_Select(void)) #define I2S_SD0_PIN I2S_NOT_USE // I2S_SET1, I2S_SET2, I2S_SET3, I2S_NOT_USE #define I2S_WS_PIN I2S_NOT_USE #define I2S_MCK_PIN I2S_NOT_USE #define I2S_SCK_PIN I2S_NOT_USE #endif //KEY0 as GPIO #ifdef CONFIG_SKIP_AC_POWERKEY #define GPIO_KEY0_PIN GPIO_11 #endif #endif