@ming899 uboot的屏幕 LCD_WRITE_COMMAND 初始化里加一个delay
//three line 9bit mode
static void LCD_WRITE_DATA(u32 value)
{
u32 i;
TL032FWV01_spi_cs_0;
TL032FWV01_spi_sdi_1;
TL032FWV01_spi_scl_0;
sunxi_lcd_delay_us(10);
TL032FWV01_spi_scl_1;
for (i = 0; i < 8; i++) {
sunxi_lcd_delay_us(10);
if (value & 0x80)
TL032FWV01_spi_sdi_1;
else
TL032FWV01_spi_sdi_0;
value <<= 1;
TL032FWV01_spi_scl_0;
sunxi_lcd_delay_us(10);
TL032FWV01_spi_scl_1;
}
sunxi_lcd_delay_us(10);
TL032FWV01_spi_cs_1;
}
static void LCD_WRITE_COMMAND(u32 value)
{
u32 i;
sunxi_lcd_delay_ms(10); // 延时一下
TL032FWV01_spi_cs_0;
TL032FWV01_spi_sdi_0;
TL032FWV01_spi_scl_0;
sunxi_lcd_delay_us(10);
TL032FWV01_spi_scl_1;
for (i = 0; i < 8; i++) {
sunxi_lcd_delay_us(10);
if (value & 0x80)
TL032FWV01_spi_sdi_1;
else
TL032FWV01_spi_sdi_0;
TL032FWV01_spi_scl_0;
sunxi_lcd_delay_us(10);
TL032FWV01_spi_scl_1;
value <<= 1;
}
sunxi_lcd_delay_us(10);
TL032FWV01_spi_cs_1;
}