modify for init

Signed-off-by: xionglei6 <xionglei6@huawei.com>
This commit is contained in:
xionglei6
2021-10-27 14:38:42 +08:00
parent 91d100902f
commit a6ac1d60fc
2 changed files with 4 additions and 2 deletions
@@ -33,6 +33,8 @@
#define DTYPE_DCS_WRITE1 0x15 // 0x23 short write, 2 parameter
#define DTYPE_DCS_LWRITE 0x39 // 0x29 long write
extern void pwm_mipi_lcm();
typedef struct {
combo_dev_cfg_t dev_cfg;
} mipi_tx_dev_ctx_t;
@@ -502,6 +504,7 @@ int mipi_tx_display(unsigned int vosync)
udelay(10000); /* delay 10000 us for the stable signal */
PLE_PRIVATE_VO_InitScreen480x960();
udelay(10000);
pwm_mipi_lcm();
/* step 3 : enable mipi_tx controller. */
ret = mipi_tx_ioctl(HI_MIPI_TX_ENABLE, (unsigned long)0);
@@ -958,7 +958,7 @@ static void reset_mipi_lcm()
mdelay(120);
}
static void pwm_mipi_lcm()
void pwm_mipi_lcm()
{
unsigned long mipi_tx_multip_gpio_addr;
@@ -976,7 +976,6 @@ static void pwm_mipi_lcm()
int mipi_tx_drv_init(void)
{
int ret;
pwm_mipi_lcm();
reset_mipi_lcm();
ret = mipi_tx_drv_reg_init();