phonepad:

1、add goodix_touch_82x.c
2、modify backlight
3、add 3g module
This commit is contained in:
赵子初
2012-07-27 10:12:12 +08:00
parent 7d70fb6e32
commit e3ee9c455c
4 changed files with 1090 additions and 21 deletions

View File

@@ -192,6 +192,8 @@ CONFIG_BLK_DEV_LOOP=y
CONFIG_MISC_DEVICES=y
CONFIG_UID_STAT=y
CONFIG_APANIC=y
CONFIG_3G_MODULE=y
CONFIG_MT6229=y
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_SCSI_MULTI_LUN=y
@@ -356,10 +358,11 @@ CONFIG_HID_ZYDACRON=y
CONFIG_USB=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
CONFIG_USB_OTG_BLACKLIST_HUB=y
CONFIG_USB_ACM=y
CONFIG_USB_STORAGE=y
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_OPTION=y
CONFIG_USB_SERIAL_USI=y
CONFIG_USB_GADGET=y
CONFIG_USB20_HOST=y
CONFIG_USB20_OTG=y

View File

@@ -652,11 +652,11 @@ static struct spi_board_info board_spi_devices[] = {
* rk30 backlight
************************************************************/
#ifdef CONFIG_BACKLIGHT_RK29_BL
#define PWM_ID 0
#define PWM_MUX_NAME GPIO0A3_PWM0_NAME
#define PWM_MUX_MODE GPIO0A_PWM0
#define PWM_ID 2
#define PWM_MUX_NAME GPIO0D6_PWM2_NAME
#define PWM_MUX_MODE GPIO0D_PWM2
#define PWM_MUX_MODE_GPIO GPIO0A_GPIO0A3
#define PWM_GPIO RK30_PIN0_PA3
#define PWM_GPIO RK30_PIN0_PD6
#define PWM_EFFECT_VALUE 1
#define LCD_DISP_ON_PIN
@@ -671,11 +671,11 @@ static struct spi_board_info board_spi_devices[] = {
static int rk29_backlight_io_init(void)
{
int ret = 0;
rk30_mux_api_set(GPIO0D6_PWM2_NAME, GPIO0D_GPIO0D6);
gpio_request(RK30_PIN0_PD6, NULL);
gpio_direction_output(RK30_PIN0_PD6, GPIO_HIGH);
//rk30_mux_api_set(GPIO0D6_PWM2_NAME, GPIO0D_GPIO0D6);
//gpio_request(RK30_PIN0_PD6, NULL);
//gpio_direction_output(RK30_PIN0_PD6, GPIO_HIGH);
//rk30_mux_api_set(GPIO0D6_PWM2_NAME, GPIO0D_PWM2);
rk30_mux_api_set(GPIO0D6_PWM2_NAME, GPIO0D_PWM2);
rk30_mux_api_set(PWM_MUX_NAME, PWM_MUX_MODE);
#ifdef LCD_DISP_ON_PIN
// rk30_mux_api_set(BL_EN_MUX_NAME, BL_EN_MUX_MODE);
@@ -847,10 +847,11 @@ struct platform_device rk29_device_mw100 = {
static int mt6229_io_init(void)
{
rk30_mux_api_set(GPIO2B6_LCDC1DATA14_SMCADDR18_TSSYNC_NAME, GPIO2B_GPIO2B6);
rk30_mux_api_set(GPIO4D2_SMCDATA10_TRACEDATA10_NAME, GPIO4D_GPIO4D2);
rk30_mux_api_set(GPIO2B7_LCDC1DATA15_SMCADDR19_HSADCDATA7_NAME, GPIO2B_GPIO2B7);
rk30_mux_api_set(GPIO2C0_LCDCDATA16_GPSCLK_HSADCCLKOUT_NAME, GPIO2C_GPIO2C0);
return 0;
rk30_mux_api_set(GPIO2B5_LCDC1DATA13_SMCADDR17_HSADCDATA8_NAME,GPIO2B_GPIO2B5);
return 0;
}
static int mt6229_io_deinit(void)
@@ -862,11 +863,10 @@ static int mt6229_io_deinit(void)
struct rk29_mt6229_data rk29_mt6229_info = {
.io_init = mt6229_io_init,
.io_deinit = mt6229_io_deinit,
.modem_power_en = RK30_PIN6_PB2,
.modem_power_en = RK30_PIN2_PB6,
.bp_power = RK30_PIN2_PB7,//RK30_PIN2_PB6,
.bp_reset = RK30_PIN4_PD2,
.ap_wakeup_bp = RK30_PIN2_PC0,
.bp_wakeup_ap = RK30_PIN6_PA0,
.bp_wakeup_ap = RK30_PIN2_PB5,
};
struct platform_device rk29_device_mt6229 = {
.name = "mt6229",

File diff suppressed because it is too large Load Diff

View File

@@ -55,7 +55,7 @@ static void do_wakeup(struct work_struct *work)
{
if(suspend_int)
{
gpio_set_value(gpdata->ap_wakeup_bp, 0);
//gpio_set_value(gpdata->ap_wakeup_bp, 1);
suspend_int = 0;
}
@@ -81,12 +81,12 @@ int modem_poweron_off(int on_off)
gpio_set_value(pdata->bp_power, GPIO_HIGH);
msleep(10);
gpio_set_value(pdata->bp_power, GPIO_LOW);
gpio_set_value(pdata->ap_wakeup_bp, GPIO_LOW);
gpio_set_value(pdata->ap_wakeup_bp, GPIO_HIGH);
}
else
{
gpio_set_value(pdata->bp_power, GPIO_HIGH);
gpio_set_value(pdata->ap_wakeup_bp, GPIO_HIGH);
gpio_set_value(pdata->ap_wakeup_bp, GPIO_LOW);
}
return 0;
}
@@ -171,7 +171,7 @@ static void rk29_early_resume(struct early_suspend *h)
{
if(suspend_int)
{
gpio_set_value(gpdata->ap_wakeup_bp, 0);
//gpio_set_value(gpdata->ap_wakeup_bp, 1);
suspend_int = 0;
}
}
@@ -249,13 +249,13 @@ int mt6229_suspend(struct platform_device *pdev, pm_message_t state)
{
suspend_int = 1;
do_wakeup_irq = 1;
ap_wakeup_bp(pdev, 1);
// ap_wakeup_bp(pdev, 0);
return 0;
}
int mt6229_resume(struct platform_device *pdev)
{
ap_wakeup_bp(pdev, 0);
// ap_wakeup_bp(pdev, 1);
return 0;
}
@@ -271,7 +271,6 @@ void mt6229_shutdown(struct platform_device *pdev)
cancel_work_sync(&mt6229_data->work);
gpio_free(pdata->modem_power_en);
gpio_free(pdata->bp_power);
gpio_free(pdata->bp_reset);
gpio_free(pdata->ap_wakeup_bp);
gpio_free(pdata->bp_wakeup_ap);
kfree(mt6229_data);