max_speed_hz);printk("chip_se..._rk3399移植鸿蒙">
当前位置:   article > 正文

rk3399移植鸿蒙,【Firefly RK3399试用体验】spi驱动调试(mtk平台移植)

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/330179
推荐阅读
相关标签
  

闽ICP备14008679号