Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

mc521da.c File Reference


Detailed Description

MC521DA camera driver functions.

Definition in file mc521da.c.

#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/ctype.h>
#include <linux/types.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/i2c.h>
#include <linux/clk.h>
#include "mxc_v4l2_capture.h"

Go to the source code of this file.

Classes

struct  mc521da_image_format
struct  mc521da_reg

Defines

#define MC521DA_I2C_ADDRESS   0x22
#define MC521DA_TERM   0xFF

Functions

 EXPORT_SYMBOL (camera_sensor_if)
void gpio_sensor_active (void)
void gpio_sensor_inactive (void)
void gpio_sensor_reset (bool flag)
static int mc521da_attach (struct i2c_adapter *adapter)
static void __exit mc521da_clean (void)
static sensor_interface * mc521da_config (int *frame_rate, int high_quality)
static int mc521da_detach (struct i2c_client *client)
static int mc521da_detect_client (struct i2c_adapter *adapter, int address, int kind)
static void mc521da_get_color (int *bright, int *saturation, int *red, int *green, int *blue)
static __init int mc521da_init (void)
static void mc521da_interface (sensor_interface *param, u32 width, u32 height)
static int mc521da_read_reg (u8 reg)
static sensor_interface * mc521da_reset (void)
static u8 mc521da_sensor_downscale (bool downscale)
static void mc521da_set_color (int bright, int saturation, int red, int green, int blue)
static int mc521da_write_reg (u8 reg, u8 val)
static int mc521da_write_regs (const struct mc521da_reg reglist[])
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 MODULE_DESCRIPTION ("MC521DA Camera Driver")
 module_exit (mc521da_clean)
 module_init (mc521da_init)
 MODULE_LICENSE ("GPL")

Variables

struct camera_sensor camera_sensor_if
static mc521da_image_format format [2]
 I2C_CLIENT_INSMOD
static sensor_interface * interface_param = NULL
static struct i2c_client mc521da_i2c_client
static struct i2c_driver mc521da_i2c_driver
static const struct mc521da_reg mc521da_initial []
static unsigned short normal_i2c [] = { MC521DA_I2C_ADDRESS, I2C_CLIENT_END }


Generated by  Doxygen 1.6.0   Back to index