![Brian Swetland](/assets/img/avatar_default.png)
This patch adds driver for HTC Dream camera. I guess driver is slightly higher quality than usual for staging/ , but it is fairly big and I don't feel like doing all the cleanups myself. Also some parts can probably be removed, as they did not end up in shipping hardware.. Signed-off-by: Pavel Machek <pavel@ucw.cz> Cc: Brian Swetland <swetland@google.com> Cc: Iliyan Malchev <ibm@android.com> Cc: San Mehat <san@android.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
37 lines
795 B
C
37 lines
795 B
C
/*
|
|
* Copyright (C) 2008-2009 QUALCOMM Incorporated.
|
|
*/
|
|
|
|
#ifndef MT9D112_H
|
|
#define MT9D112_H
|
|
|
|
#include <linux/types.h>
|
|
#include <mach/camera.h>
|
|
|
|
enum mt9d112_width {
|
|
WORD_LEN,
|
|
BYTE_LEN
|
|
};
|
|
|
|
struct mt9d112_i2c_reg_conf {
|
|
unsigned short waddr;
|
|
unsigned short wdata;
|
|
enum mt9d112_width width;
|
|
unsigned short mdelay_time;
|
|
};
|
|
|
|
struct mt9d112_reg {
|
|
const struct register_address_value_pair *prev_snap_reg_settings;
|
|
uint16_t prev_snap_reg_settings_size;
|
|
const struct register_address_value_pair *noise_reduction_reg_settings;
|
|
uint16_t noise_reduction_reg_settings_size;
|
|
const struct mt9d112_i2c_reg_conf *plltbl;
|
|
uint16_t plltbl_size;
|
|
const struct mt9d112_i2c_reg_conf *stbl;
|
|
uint16_t stbl_size;
|
|
const struct mt9d112_i2c_reg_conf *rftbl;
|
|
uint16_t rftbl_size;
|
|
};
|
|
|
|
#endif /* MT9D112_H */
|