diff options
author | Scott Jiang <scott.jiang.linux@gmail.com> | 2012-03-08 17:44:17 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-19 15:08:20 -0300 |
commit | 63b1a90da93e019adcafa2b2b1b921fc97debec5 (patch) | |
tree | 1b90018dd9b9ac89207293be1672427ac377c33e /include/media/blackfin/bfin_capture.h | |
parent | f877ed9780f43da51a4544e5b90b7f4a145964ff (diff) | |
download | talos-obmc-linux-63b1a90da93e019adcafa2b2b1b921fc97debec5.tar.gz talos-obmc-linux-63b1a90da93e019adcafa2b2b1b921fc97debec5.zip |
[media] add blackfin capture bridge driver
This is a v4l2 bridge driver for Blackfin video capture device, support ppi and eppi interface.
Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/blackfin/bfin_capture.h')
-rw-r--r-- | include/media/blackfin/bfin_capture.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/media/blackfin/bfin_capture.h b/include/media/blackfin/bfin_capture.h new file mode 100644 index 000000000000..2038a8a3f8aa --- /dev/null +++ b/include/media/blackfin/bfin_capture.h @@ -0,0 +1,37 @@ +#ifndef _BFIN_CAPTURE_H_ +#define _BFIN_CAPTURE_H_ + +#include <linux/i2c.h> + +struct v4l2_input; +struct ppi_info; + +struct bcap_route { + u32 input; + u32 output; +}; + +struct bfin_capture_config { + /* card name */ + char *card_name; + /* inputs available at the sub device */ + struct v4l2_input *inputs; + /* number of inputs supported */ + int num_inputs; + /* routing information for each input */ + struct bcap_route *routes; + /* i2c bus adapter no */ + int i2c_adapter_id; + /* i2c subdevice board info */ + struct i2c_board_info board_info; + /* ppi board info */ + const struct ppi_info *ppi_info; + /* ppi control */ + unsigned long ppi_control; + /* ppi interrupt mask */ + u32 int_mask; + /* horizontal blanking clocks */ + int blank_clocks; +}; + +#endif |