mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
7b20f325a5
Remove soc_camera framework dependencies from tw9910 sensor driver. - Handle clock and gpios - Register async subdevice - Remove soc_camera specific g/s_mbus_config operations - Add kernel doc to driver interface header file - Adjust build system This commit does not remove the original soc_camera based driver as long as other platforms depends on soc_camera-based CEU driver. Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
48 lines
1.0 KiB
C
48 lines
1.0 KiB
C
/*
|
|
* tw9910 Driver header
|
|
*
|
|
* Copyright (C) 2008 Renesas Solutions Corp.
|
|
* Kuninori Morimoto <morimoto.kuninori@renesas.com>
|
|
*
|
|
* Based on ov772x.h
|
|
*
|
|
* Copyright (C) Kuninori Morimoto <morimoto.kuninori@renesas.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __TW9910_H__
|
|
#define __TW9910_H__
|
|
|
|
#include <media/soc_camera.h>
|
|
|
|
/**
|
|
* tw9910_mpout_pin - MPOUT (multi-purpose output) pin functions
|
|
*/
|
|
enum tw9910_mpout_pin {
|
|
TW9910_MPO_VLOSS,
|
|
TW9910_MPO_HLOCK,
|
|
TW9910_MPO_SLOCK,
|
|
TW9910_MPO_VLOCK,
|
|
TW9910_MPO_MONO,
|
|
TW9910_MPO_DET50,
|
|
TW9910_MPO_FIELD,
|
|
TW9910_MPO_RTCO,
|
|
};
|
|
|
|
/**
|
|
* tw9910_video_info - tw9910 driver interface structure
|
|
* @buswidth: Parallel data bus width (8 or 16).
|
|
* @mpout: Selected function of MPOUT (multi-purpose output) pin.
|
|
* See &enum tw9910_mpout_pin
|
|
*/
|
|
struct tw9910_video_info {
|
|
unsigned long buswidth;
|
|
enum tw9910_mpout_pin mpout;
|
|
};
|
|
|
|
|
|
#endif /* __TW9910_H__ */
|