zero-sugar: drop touch power control initialization
Touch is not needed in U-Boot, so it makes more sense to get kernel initialize power for touch. Let's drop the code from U-Boot. The bonus point is that we get U-Boot boot up faster now, as the delay for power control is gone. If we can drop the digitizer power control later (if not needed), another 1 second delay can be gone as well, and kernel has been ready to initialize power for both touch and digitizer anyway. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>zero-sugar
parent
8db351b571
commit
9e2a18e40a
|
@ -7,7 +7,6 @@ obj-y := zero-sugar.o \
|
|||
uart_init.o \
|
||||
epd_pmic_init.o \
|
||||
epd_display_init.o \
|
||||
touch_init.o \
|
||||
digitizer_init.o \
|
||||
charger_init.o \
|
||||
serial_download_trap.o \
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/gpio.h>
|
||||
|
||||
void zs_do_config_touch_powerctrl_pins(void)
|
||||
{
|
||||
printf("Turning on touch power..\n");
|
||||
gpio_request(IMX_GPIO_NR(1, 11), "TOUCH_PWR_EN");
|
||||
gpio_direction_output(IMX_GPIO_NR(1, 11), 1);
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
#ifndef TOUCH_INIT_H
|
||||
#define TOUCH_INIT_H
|
||||
|
||||
void zs_do_config_touch_powerctrl_pins(void);
|
||||
|
||||
#endif
|
|
@ -11,7 +11,6 @@
|
|||
#include "uart_init.h"
|
||||
#include "epd_display_init.h"
|
||||
#include "epd_pmic_init.h"
|
||||
#include "touch_init.h"
|
||||
#include "digitizer_init.h"
|
||||
#include "charger_init.h"
|
||||
#include "serial_download_trap.h"
|
||||
|
@ -73,10 +72,6 @@ static void power_perfs(void)
|
|||
// Shutdown LCDIF
|
||||
lcdif_power_down();
|
||||
|
||||
/* TOUCH */
|
||||
zs_do_config_touch_powerctrl_pins();
|
||||
udelay(500000);
|
||||
|
||||
/* DIGITIZER */
|
||||
zs_do_config_digitizer_powerctrl_pins();
|
||||
udelay(1000000);
|
||||
|
|
Loading…
Reference in New Issue