}
void laibao_hold(void)
{
- printk("nas_hold()\n");
+ printk("laibao_hold()\n");
gpio_direction_output(TOUCH_RESET_PIN, 0);
msleep(5);
gpio_set_value(TOUCH_RESET_PIN,GPIO_LOW);
{
if(gpio_request(TOUCH_RESET_PIN,NULL) != 0){
gpio_free(TOUCH_RESET_PIN);
- printk("nas_init_platform_hw gpio_request error\n");
+ printk("laibao_request_io gpio_request error\n");
return ;
}
if(gpio_request(TOUCH_INT_PIN,NULL) != 0){
gpio_free(TOUCH_INT_PIN);
gpio_free(TOUCH_RESET_PIN);
- printk("nas_init_platform_hw gpio_request error\n");
+ printk("laibao_request_io gpio_request error\n");
return ;
}
}
if(gpio_request(RK29_PIN6_PD3,NULL) != 0){
gpio_free(RK29_PIN6_PD3);
- printk("mma8452_init_platform_hw gpio_request error\n");
+ printk("laibao_init_platform_hw gpio_request error\n");
return -EIO;
}
rc = get_user(c,buffer);
if(rc)
return rc;
+
+ //added by zwp,c='8' means check whether we need to download firmware to bq27xxx,return 0 means yes.
+ if(c == '8'){
+ printk("%s,bq27510 need to download firmware\n",__FUNCTION__);
+ }
+
if(c == '1')
virtual_battery_enable = 1;
else if(c == '2')
rc = get_user(c,buffer);
if(rc)
return rc;
+
+ //added by zwp,c='8' means check whether we need to download firmware to bq27xxx,return 0 means yes.
+ if(c == '8'){
+ printk("%s,bq27541 don't need to download firmware\n",__FUNCTION__);
+ return -1;//bq27541 don't need to download firmware.
+ }
if(c == '1')
virtual_battery_enable = 1;
else if(c == '2')