max_speed_hz);printk("chip_se..._rk3399移植鸿蒙">
赞
踩
static int st7789v_spi_probe_l(struct spi_device *spi)
{
int ret = 0;
//int set_bl;
assist_lcd_spi_device_l = *spi;
printk("st7789v_spi_probe_l st7789v_max_speed %d"
,spi->max_speed_hz);
printk("chip_select %d--master %d\n",spi->chip_select,spi->master->bus_num);// bits_per_word %s mode %u
printk("bits_per_word %d---mode %d\n",spi->bits_per_word,spi->mode);
printk("bits_per_word %d---mode %d\n",assist_lcd_spi_device_l.bits_per_word,assist_lcd_spi_device_l.mode);
memset(&assist_lcd_info, 0, sizeof(assist_lcd_info_t));
assist_lcd_info.dev_l = &spi->dev;
SPI_Init(&assist_lcd_spi_device_l);
#if USED_FORE_LINE_8Bit_MODE
ret = gpio_request(SPI_MISO_PIN,"SPI_LCD_MISO_WR");
if(ret < 0){
printk("gpio quest
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。