Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
m5602_ov9650.h File Reference
#include <linux/dmi.h>
#include "m5602_sensor.h"

Go to the source code of this file.

Macros

#define OV9650_GAIN   0x00
 
#define OV9650_BLUE   0x01
 
#define OV9650_RED   0x02
 
#define OV9650_VREF   0x03
 
#define OV9650_COM1   0x04
 
#define OV9650_BAVE   0x05
 
#define OV9650_GEAVE   0x06
 
#define OV9650_RSVD7   0x07
 
#define OV9650_COM2   0x09
 
#define OV9650_PID   0x0a
 
#define OV9650_VER   0x0b
 
#define OV9650_COM3   0x0c
 
#define OV9650_COM4   0x0d
 
#define OV9650_COM5   0x0e
 
#define OV9650_COM6   0x0f
 
#define OV9650_AECH   0x10
 
#define OV9650_CLKRC   0x11
 
#define OV9650_COM7   0x12
 
#define OV9650_COM8   0x13
 
#define OV9650_COM9   0x14
 
#define OV9650_COM10   0x15
 
#define OV9650_RSVD16   0x16
 
#define OV9650_HSTART   0x17
 
#define OV9650_HSTOP   0x18
 
#define OV9650_VSTRT   0x19
 
#define OV9650_VSTOP   0x1a
 
#define OV9650_PSHFT   0x1b
 
#define OV9650_MVFP   0x1e
 
#define OV9650_AEW   0x24
 
#define OV9650_AEB   0x25
 
#define OV9650_VPT   0x26
 
#define OV9650_BBIAS   0x27
 
#define OV9650_GbBIAS   0x28
 
#define OV9650_Gr_COM   0x29
 
#define OV9650_RBIAS   0x2c
 
#define OV9650_HREF   0x32
 
#define OV9650_CHLF   0x33
 
#define OV9650_ARBLM   0x34
 
#define OV9650_RSVD35   0x35
 
#define OV9650_RSVD36   0x36
 
#define OV9650_ADC   0x37
 
#define OV9650_ACOM38   0x38
 
#define OV9650_OFON   0x39
 
#define OV9650_TSLB   0x3a
 
#define OV9650_COM12   0x3c
 
#define OV9650_COM13   0x3d
 
#define OV9650_COM15   0x40
 
#define OV9650_COM16   0x41
 
#define OV9650_LCC1   0x62
 
#define OV9650_LCC2   0x63
 
#define OV9650_LCC3   0x64
 
#define OV9650_LCC4   0x65
 
#define OV9650_LCC5   0x66
 
#define OV9650_HV   0x69
 
#define OV9650_DBLV   0x6b
 
#define OV9650_COM21   0x8b
 
#define OV9650_COM22   0x8c
 
#define OV9650_COM24   0x8e
 
#define OV9650_DBLC1   0x8f
 
#define OV9650_RSVD94   0x94
 
#define OV9650_RSVD95   0x95
 
#define OV9650_RSVD96   0x96
 
#define OV9650_LCCFB   0x9d
 
#define OV9650_LCCFR   0x9e
 
#define OV9650_AECHM   0xa1
 
#define OV9650_COM26   0xa5
 
#define OV9650_ACOMA8   0xa8
 
#define OV9650_ACOMA9   0xa9
 
#define OV9650_REGISTER_RESET   (1 << 7)
 
#define OV9650_VGA_SELECT   (1 << 6)
 
#define OV9650_CIF_SELECT   (1 << 5)
 
#define OV9650_QVGA_SELECT   (1 << 4)
 
#define OV9650_QCIF_SELECT   (1 << 3)
 
#define OV9650_RGB_SELECT   (1 << 2)
 
#define OV9650_RAW_RGB_SELECT   (1 << 0)
 
#define OV9650_FAST_AGC_AEC   (1 << 7)
 
#define OV9650_AEC_UNLIM_STEP_SIZE   (1 << 6)
 
#define OV9650_BANDING   (1 << 5)
 
#define OV9650_AGC_EN   (1 << 2)
 
#define OV9650_AWB_EN   (1 << 1)
 
#define OV9650_AEC_EN   (1 << 0)
 
#define OV9650_VARIOPIXEL   (1 << 2)
 
#define OV9650_SYSTEM_CLK_SEL   (1 << 7)
 
#define OV9650_SLAM_MODE   (1 << 4)
 
#define OV9650_QVGA_VARIOPIXEL   (1 << 7)
 
#define OV9650_VFLIP   (1 << 4)
 
#define OV9650_HFLIP   (1 << 5)
 
#define OV9650_SOFT_SLEEP   (1 << 4)
 
#define OV9650_OUTPUT_DRIVE_2X   (1 << 0)
 
#define OV9650_DENOISE_ENABLE   (1 << 5)
 
#define OV9650_WHITE_PIXEL_ENABLE   (1 << 1)
 
#define OV9650_WHITE_PIXEL_OPTION   (1 << 0)
 
#define OV9650_LEFT_OFFSET   0x62
 
#define GAIN_DEFAULT   0x14
 
#define RED_GAIN_DEFAULT   0x70
 
#define BLUE_GAIN_DEFAULT   0x20
 
#define EXPOSURE_DEFAULT   0x1ff
 

Functions

int ov9650_probe (struct sd *sd)
 
int ov9650_init (struct sd *sd)
 
int ov9650_start (struct sd *sd)
 
int ov9650_stop (struct sd *sd)
 
void ov9650_disconnect (struct sd *sd)
 

Variables

int force_sensor
 
bool dump_sensor
 

Macro Definition Documentation

#define BLUE_GAIN_DEFAULT   0x20

Definition at line 131 of file m5602_ov9650.h.

#define EXPOSURE_DEFAULT   0x1ff

Definition at line 132 of file m5602_ov9650.h.

#define GAIN_DEFAULT   0x14

Definition at line 129 of file m5602_ov9650.h.

#define OV9650_ACOM38   0x38

Definition at line 68 of file m5602_ov9650.h.

#define OV9650_ACOMA8   0xa8

Definition at line 93 of file m5602_ov9650.h.

#define OV9650_ACOMA9   0xa9

Definition at line 94 of file m5602_ov9650.h.

#define OV9650_ADC   0x37

Definition at line 67 of file m5602_ov9650.h.

#define OV9650_AEB   0x25

Definition at line 56 of file m5602_ov9650.h.

#define OV9650_AEC_EN   (1 << 0)

Definition at line 109 of file m5602_ov9650.h.

#define OV9650_AEC_UNLIM_STEP_SIZE   (1 << 6)

Definition at line 105 of file m5602_ov9650.h.

#define OV9650_AECH   0x10

Definition at line 42 of file m5602_ov9650.h.

#define OV9650_AECHM   0xa1

Definition at line 91 of file m5602_ov9650.h.

#define OV9650_AEW   0x24

Definition at line 55 of file m5602_ov9650.h.

#define OV9650_AGC_EN   (1 << 2)

Definition at line 107 of file m5602_ov9650.h.

#define OV9650_ARBLM   0x34

Definition at line 64 of file m5602_ov9650.h.

#define OV9650_AWB_EN   (1 << 1)

Definition at line 108 of file m5602_ov9650.h.

#define OV9650_BANDING   (1 << 5)

Definition at line 106 of file m5602_ov9650.h.

#define OV9650_BAVE   0x05

Definition at line 32 of file m5602_ov9650.h.

#define OV9650_BBIAS   0x27

Definition at line 58 of file m5602_ov9650.h.

#define OV9650_BLUE   0x01

Definition at line 28 of file m5602_ov9650.h.

#define OV9650_CHLF   0x33

Definition at line 63 of file m5602_ov9650.h.

#define OV9650_CIF_SELECT   (1 << 5)

Definition at line 98 of file m5602_ov9650.h.

#define OV9650_CLKRC   0x11

Definition at line 43 of file m5602_ov9650.h.

#define OV9650_COM1   0x04

Definition at line 31 of file m5602_ov9650.h.

#define OV9650_COM10   0x15

Definition at line 47 of file m5602_ov9650.h.

#define OV9650_COM12   0x3c

Definition at line 71 of file m5602_ov9650.h.

#define OV9650_COM13   0x3d

Definition at line 72 of file m5602_ov9650.h.

#define OV9650_COM15   0x40

Definition at line 73 of file m5602_ov9650.h.

#define OV9650_COM16   0x41

Definition at line 74 of file m5602_ov9650.h.

#define OV9650_COM2   0x09

Definition at line 35 of file m5602_ov9650.h.

#define OV9650_COM21   0x8b

Definition at line 82 of file m5602_ov9650.h.

#define OV9650_COM22   0x8c

Definition at line 83 of file m5602_ov9650.h.

#define OV9650_COM24   0x8e

Definition at line 84 of file m5602_ov9650.h.

#define OV9650_COM26   0xa5

Definition at line 92 of file m5602_ov9650.h.

#define OV9650_COM3   0x0c

Definition at line 38 of file m5602_ov9650.h.

#define OV9650_COM4   0x0d

Definition at line 39 of file m5602_ov9650.h.

#define OV9650_COM5   0x0e

Definition at line 40 of file m5602_ov9650.h.

#define OV9650_COM6   0x0f

Definition at line 41 of file m5602_ov9650.h.

#define OV9650_COM7   0x12

Definition at line 44 of file m5602_ov9650.h.

#define OV9650_COM8   0x13

Definition at line 45 of file m5602_ov9650.h.

#define OV9650_COM9   0x14

Definition at line 46 of file m5602_ov9650.h.

#define OV9650_DBLC1   0x8f

Definition at line 85 of file m5602_ov9650.h.

#define OV9650_DBLV   0x6b

Definition at line 81 of file m5602_ov9650.h.

#define OV9650_DENOISE_ENABLE   (1 << 5)

Definition at line 123 of file m5602_ov9650.h.

#define OV9650_FAST_AGC_AEC   (1 << 7)

Definition at line 104 of file m5602_ov9650.h.

#define OV9650_GAIN   0x00

Definition at line 27 of file m5602_ov9650.h.

#define OV9650_GbBIAS   0x28

Definition at line 59 of file m5602_ov9650.h.

#define OV9650_GEAVE   0x06

Definition at line 33 of file m5602_ov9650.h.

#define OV9650_Gr_COM   0x29

Definition at line 60 of file m5602_ov9650.h.

#define OV9650_HFLIP   (1 << 5)

Definition at line 118 of file m5602_ov9650.h.

#define OV9650_HREF   0x32

Definition at line 62 of file m5602_ov9650.h.

#define OV9650_HSTART   0x17

Definition at line 49 of file m5602_ov9650.h.

#define OV9650_HSTOP   0x18

Definition at line 50 of file m5602_ov9650.h.

#define OV9650_HV   0x69

Definition at line 80 of file m5602_ov9650.h.

#define OV9650_LCC1   0x62

Definition at line 75 of file m5602_ov9650.h.

#define OV9650_LCC2   0x63

Definition at line 76 of file m5602_ov9650.h.

#define OV9650_LCC3   0x64

Definition at line 77 of file m5602_ov9650.h.

#define OV9650_LCC4   0x65

Definition at line 78 of file m5602_ov9650.h.

#define OV9650_LCC5   0x66

Definition at line 79 of file m5602_ov9650.h.

#define OV9650_LCCFB   0x9d

Definition at line 89 of file m5602_ov9650.h.

#define OV9650_LCCFR   0x9e

Definition at line 90 of file m5602_ov9650.h.

#define OV9650_LEFT_OFFSET   0x62

Definition at line 127 of file m5602_ov9650.h.

#define OV9650_MVFP   0x1e

Definition at line 54 of file m5602_ov9650.h.

#define OV9650_OFON   0x39

Definition at line 69 of file m5602_ov9650.h.

#define OV9650_OUTPUT_DRIVE_2X   (1 << 0)

Definition at line 121 of file m5602_ov9650.h.

#define OV9650_PID   0x0a

Definition at line 36 of file m5602_ov9650.h.

#define OV9650_PSHFT   0x1b

Definition at line 53 of file m5602_ov9650.h.

#define OV9650_QCIF_SELECT   (1 << 3)

Definition at line 100 of file m5602_ov9650.h.

#define OV9650_QVGA_SELECT   (1 << 4)

Definition at line 99 of file m5602_ov9650.h.

#define OV9650_QVGA_VARIOPIXEL   (1 << 7)

Definition at line 115 of file m5602_ov9650.h.

#define OV9650_RAW_RGB_SELECT   (1 << 0)

Definition at line 102 of file m5602_ov9650.h.

#define OV9650_RBIAS   0x2c

Definition at line 61 of file m5602_ov9650.h.

#define OV9650_RED   0x02

Definition at line 29 of file m5602_ov9650.h.

#define OV9650_REGISTER_RESET   (1 << 7)

Definition at line 96 of file m5602_ov9650.h.

#define OV9650_RGB_SELECT   (1 << 2)

Definition at line 101 of file m5602_ov9650.h.

#define OV9650_RSVD16   0x16

Definition at line 48 of file m5602_ov9650.h.

#define OV9650_RSVD35   0x35

Definition at line 65 of file m5602_ov9650.h.

#define OV9650_RSVD36   0x36

Definition at line 66 of file m5602_ov9650.h.

#define OV9650_RSVD7   0x07

Definition at line 34 of file m5602_ov9650.h.

#define OV9650_RSVD94   0x94

Definition at line 86 of file m5602_ov9650.h.

#define OV9650_RSVD95   0x95

Definition at line 87 of file m5602_ov9650.h.

#define OV9650_RSVD96   0x96

Definition at line 88 of file m5602_ov9650.h.

#define OV9650_SLAM_MODE   (1 << 4)

Definition at line 113 of file m5602_ov9650.h.

#define OV9650_SOFT_SLEEP   (1 << 4)

Definition at line 120 of file m5602_ov9650.h.

#define OV9650_SYSTEM_CLK_SEL   (1 << 7)

Definition at line 112 of file m5602_ov9650.h.

#define OV9650_TSLB   0x3a

Definition at line 70 of file m5602_ov9650.h.

#define OV9650_VARIOPIXEL   (1 << 2)

Definition at line 111 of file m5602_ov9650.h.

#define OV9650_VER   0x0b

Definition at line 37 of file m5602_ov9650.h.

#define OV9650_VFLIP   (1 << 4)

Definition at line 117 of file m5602_ov9650.h.

#define OV9650_VGA_SELECT   (1 << 6)

Definition at line 97 of file m5602_ov9650.h.

#define OV9650_VPT   0x26

Definition at line 57 of file m5602_ov9650.h.

#define OV9650_VREF   0x03

Definition at line 30 of file m5602_ov9650.h.

#define OV9650_VSTOP   0x1a

Definition at line 52 of file m5602_ov9650.h.

#define OV9650_VSTRT   0x19

Definition at line 51 of file m5602_ov9650.h.

#define OV9650_WHITE_PIXEL_ENABLE   (1 << 1)

Definition at line 124 of file m5602_ov9650.h.

#define OV9650_WHITE_PIXEL_OPTION   (1 << 0)

Definition at line 125 of file m5602_ov9650.h.

#define RED_GAIN_DEFAULT   0x70

Definition at line 130 of file m5602_ov9650.h.

Function Documentation

void ov9650_disconnect ( struct sd sd)

Definition at line 551 of file m5602_ov9650.c.

int ov9650_init ( struct sd sd)

Definition at line 357 of file m5602_ov9650.c.

int ov9650_probe ( struct sd sd)

Definition at line 296 of file m5602_ov9650.c.

int ov9650_start ( struct sd sd)

Definition at line 417 of file m5602_ov9650.c.

int ov9650_stop ( struct sd sd)

Definition at line 545 of file m5602_ov9650.c.

Variable Documentation

bool dump_sensor

Definition at line 31 of file m5602_core.c.

int force_sensor

Definition at line 29 of file m5602_core.c.