Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
vpss.c File Reference
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <linux/compiler.h>
#include <linux/io.h>
#include <mach/hardware.h>
#include <media/davinci/vpss.h>

Go to the source code of this file.

Data Structures

struct  vpss_hw_ops
 
struct  vpss_oper_config
 

Macros

#define DM644X_SBL_PCR_VPSS   (4)
 
#define DM355_VPSSBL_INTSEL   0x10
 
#define DM355_VPSSBL_EVTSEL   0x14
 
#define DM355_VPSSBL_CCDCMUX   0x1c
 
#define DM355_VPSSCLK_CLKCTRL   0x04
 
#define VPSS_HSSISEL_SHIFT   4
 
#define DM355_VPSSBL_INTSEL_DEFAULT   0xff83ff10
 
#define DM355_VPSSBL_EVTSEL_DEFAULT   0x4
 
#define DM365_ISP5_PCCR   0x04
 
#define DM365_ISP5_INTSEL1   0x10
 
#define DM365_ISP5_INTSEL2   0x14
 
#define DM365_ISP5_INTSEL3   0x18
 
#define DM365_ISP5_CCDCMUX   0x20
 
#define DM365_ISP5_PG_FRAME_SIZE   0x28
 
#define DM365_VPBE_CLK_CTRL   0x00
 
#define DM365_ISP5_INTSEL1_DEFAULT   0x0b1f0100
 
#define DM365_ISP5_INTSEL2_DEFAULT   0x1f0a0f1f
 
#define DM365_ISP5_INTSEL3_DEFAULT   0x00000015
 
#define DM365_CCDC_PG_VD_POL_SHIFT   0
 
#define DM365_CCDC_PG_HD_POL_SHIFT   1
 
#define CCD_SRC_SEL_MASK   (BIT_MASK(5) | BIT_MASK(4))
 
#define CCD_SRC_SEL_SHIFT   4
 

Enumerations

enum  vpss_platform_type { DM644X, DM355, DM365 }
 

Functions

 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("VPSS Driver")
 
 MODULE_AUTHOR ("Texas Instruments")
 
int vpss_select_ccdc_source (enum vpss_ccdc_source_sel src_sel)
 
 EXPORT_SYMBOL (vpss_select_ccdc_source)
 
int vpss_clear_wbl_overflow (enum vpss_wbl_sel wbl_sel)
 
 EXPORT_SYMBOL (vpss_clear_wbl_overflow)
 
int vpss_enable_clock (enum vpss_clock_sel clock_sel, int en)
 
 EXPORT_SYMBOL (vpss_enable_clock)
 
void dm365_vpss_set_sync_pol (struct vpss_sync_pol sync)
 
 EXPORT_SYMBOL (dm365_vpss_set_sync_pol)
 
void dm365_vpss_set_pg_frame_size (struct vpss_pg_frame_size frame_size)
 
 EXPORT_SYMBOL (dm365_vpss_set_pg_frame_size)
 
 subsys_initcall (vpss_init)
 
 module_exit (vpss_exit)
 

Macro Definition Documentation

#define CCD_SRC_SEL_MASK   (BIT_MASK(5) | BIT_MASK(4))

Definition at line 75 of file vpss.c.

#define CCD_SRC_SEL_SHIFT   4

Definition at line 76 of file vpss.c.

#define DM355_VPSSBL_CCDCMUX   0x1c

Definition at line 41 of file vpss.c.

#define DM355_VPSSBL_EVTSEL   0x14

Definition at line 39 of file vpss.c.

#define DM355_VPSSBL_EVTSEL_DEFAULT   0x4

Definition at line 52 of file vpss.c.

#define DM355_VPSSBL_INTSEL   0x10

Definition at line 38 of file vpss.c.

#define DM355_VPSSBL_INTSEL_DEFAULT   0xff83ff10

Definition at line 50 of file vpss.c.

#define DM355_VPSSCLK_CLKCTRL   0x04

Definition at line 43 of file vpss.c.

#define DM365_CCDC_PG_HD_POL_SHIFT   1

Definition at line 73 of file vpss.c.

#define DM365_CCDC_PG_VD_POL_SHIFT   0

Definition at line 72 of file vpss.c.

#define DM365_ISP5_CCDCMUX   0x20

Definition at line 58 of file vpss.c.

#define DM365_ISP5_INTSEL1   0x10

Definition at line 55 of file vpss.c.

#define DM365_ISP5_INTSEL1_DEFAULT   0x0b1f0100

Definition at line 65 of file vpss.c.

#define DM365_ISP5_INTSEL2   0x14

Definition at line 56 of file vpss.c.

#define DM365_ISP5_INTSEL2_DEFAULT   0x1f0a0f1f

Definition at line 67 of file vpss.c.

#define DM365_ISP5_INTSEL3   0x18

Definition at line 57 of file vpss.c.

#define DM365_ISP5_INTSEL3_DEFAULT   0x00000015

Definition at line 69 of file vpss.c.

#define DM365_ISP5_PCCR   0x04

Definition at line 54 of file vpss.c.

#define DM365_ISP5_PG_FRAME_SIZE   0x28

Definition at line 59 of file vpss.c.

#define DM365_VPBE_CLK_CTRL   0x00

Definition at line 60 of file vpss.c.

#define DM644X_SBL_PCR_VPSS   (4)

Definition at line 36 of file vpss.c.

#define VPSS_HSSISEL_SHIFT   4

Definition at line 45 of file vpss.c.

Enumeration Type Documentation

Enumerator:
DM644X 
DM355 
DM365 

Definition at line 79 of file vpss.c.

Function Documentation

void dm365_vpss_set_pg_frame_size ( struct vpss_pg_frame_size  frame_size)

Definition at line 351 of file vpss.c.

void dm365_vpss_set_sync_pol ( struct vpss_sync_pol  sync)

Definition at line 339 of file vpss.c.

EXPORT_SYMBOL ( vpss_select_ccdc_source  )
EXPORT_SYMBOL ( vpss_clear_wbl_overflow  )
EXPORT_SYMBOL ( vpss_enable_clock  )
EXPORT_SYMBOL ( dm365_vpss_set_sync_pol  )
EXPORT_SYMBOL ( dm365_vpss_set_pg_frame_size  )
MODULE_AUTHOR ( "Texas Instruments"  )
MODULE_DESCRIPTION ( "VPSS Driver"  )
module_exit ( vpss_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( vpss_init  )
int vpss_clear_wbl_overflow ( enum vpss_wbl_sel  wbl_sel)

Definition at line 186 of file vpss.c.

int vpss_enable_clock ( enum vpss_clock_sel  clock_sel,
int  en 
)

Definition at line 330 of file vpss.c.

int vpss_select_ccdc_source ( enum vpss_ccdc_source_sel  src_sel)

Definition at line 161 of file vpss.c.