How to use adv7181 on 3.0.35 kernel

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to use adv7181 on 3.0.35 kernel

1,241 次查看
richardyang
Contributor II

hello:

     my kernel version is 3.0.35,I want integrate adv7181 in my kernel,but compile error is here,

compiler is not found #include <linux/pinctrl/consumer.h>, how to do?

3 回复数

817 次查看
richardyang
Contributor II

/*!

* @file adv7181.c

*

* @brief Analog Device ADV7181 video decoder functions

*

* @ingroup Camera

*/

#include <linux/clk.h>

#include <linux/delay.h>

#include <linux/device.h>

#include <linux/i2c.h>

#include <linux/init.h>

#include <linux/module.h>

#include <linux/of_device.h>

#include <linux/of_gpio.h>

#include <linux/pinctrl/consumer.h> // cannot found header file

#include <linux/regulator/consumer.h>

#include <media/v4l2-chip-ident.h>

#include <media/v4l2-int-device.h>

#include "mxc_v4l2_capture.h"

0 项奖励
回复

817 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello, Richar,

      ADV7180 is supported by linux 3.0.35 BSP that released by Freescale, ADV7180 and ADV7181 are very similar , so you can refer to adv7180 driver and integrate adv7181 into your system.

      adv7180 driver is under path "linux_top/drivers/media/video/mxc/capture/adv7180.c" .

       Hope this answer can help you !

Regards,

Weidong

817 次查看
richardyang
Contributor II

thank you, I am trying...

0 项奖励
回复