Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
fimc-mdevice.h File Reference
#include <linux/clk.h>
#include <linux/platform_device.h>
#include <linux/mutex.h>
#include <media/media-device.h>
#include <media/media-entity.h>
#include <media/v4l2-device.h>
#include <media/v4l2-subdev.h>
#include "fimc-core.h"
#include "fimc-lite.h"
#include "mipi-csis.h"

Go to the source code of this file.

Data Structures

struct  fimc_csis_info
 
struct  fimc_camclk_info
 
struct  fimc_sensor_info
 
struct  fimc_md
 

Macros

#define SENSOR_GROUP_ID   (1 << 8)
 
#define CSIS_GROUP_ID   (1 << 9)
 
#define WRITEBACK_GROUP_ID   (1 << 10)
 
#define FIMC_GROUP_ID   (1 << 11)
 
#define FLITE_GROUP_ID   (1 << 12)
 
#define FIMC_MAX_SENSORS   8
 
#define FIMC_MAX_CAMCLKS   2
 
#define is_subdev_pad(pad)
 
#define me_subtype(me)   ((me->type) & (MEDIA_ENT_TYPE_MASK | MEDIA_ENT_SUBTYPE_MASK))
 
#define subdev_has_devnode(__sd)   (__sd->flags & V4L2_SUBDEV_FL_HAS_DEVNODE)
 

Functions

int fimc_md_set_camclk (struct v4l2_subdev *sd, bool on)
 

Macro Definition Documentation

#define CSIS_GROUP_ID   (1 << 9)

Definition at line 26 of file fimc-mdevice.h.

#define FIMC_GROUP_ID   (1 << 11)

Definition at line 28 of file fimc-mdevice.h.

#define FIMC_MAX_CAMCLKS   2

Definition at line 32 of file fimc-mdevice.h.

#define FIMC_MAX_SENSORS   8

Definition at line 31 of file fimc-mdevice.h.

#define FLITE_GROUP_ID   (1 << 12)

Definition at line 29 of file fimc-mdevice.h.

#define is_subdev_pad (   pad)
Value:
(pad == NULL || \
media_entity_type(pad->entity) == MEDIA_ENT_T_V4L2_SUBDEV)

Definition at line 86 of file fimc-mdevice.h.

#define me_subtype (   me)    ((me->type) & (MEDIA_ENT_TYPE_MASK | MEDIA_ENT_SUBTYPE_MASK))

Definition at line 89 of file fimc-mdevice.h.

#define SENSOR_GROUP_ID   (1 << 8)

Definition at line 25 of file fimc-mdevice.h.

#define subdev_has_devnode (   __sd)    (__sd->flags & V4L2_SUBDEV_FL_HAS_DEVNODE)

Definition at line 92 of file fimc-mdevice.h.

#define WRITEBACK_GROUP_ID   (1 << 10)

Definition at line 27 of file fimc-mdevice.h.

Function Documentation

int fimc_md_set_camclk ( struct v4l2_subdev sd,
bool  on 
)

fimc_md_set_camclk - peripheral sensor clock setup : sensor subdev to configure sclk_cam clock for : 1 to enable or 0 to disable the clock

There are 2 separate clock outputs available in the SoC for external image processors. These clocks are shared between all registered FIMC devices to which sensors can be attached, either directly or through the MIPI CSI receiver. The clock is allowed here to be used by multiple sensors concurrently if they use same frequency. This function should only be called when the graph mutex is held.

Definition at line 808 of file fimc-mdevice.c.