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

ipu_disp.c File Reference

Detailed Description

IPU display submodule API functions.

Definition in file ipu_disp.c.

#include <linux/types.h>
#include <linux/errno.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
#include <linux/io.h>
#include <linux/ipu.h>
#include <linux/clk.h>
#include <asm/atomic.h>
#include <mach/mxc_dvfs.h>
#include <mach/clock.h>
#include "ipu_prv.h"
#include "ipu_regs.h"
#include "ipu_param_mem.h"

Go to the source code of this file.


struct  dp_csc_param_t


#define ASYNC_SER_WAVE   6
#define DC_DISP_ID_ASYNC   3
#define DC_DISP_ID_SERIAL   2
#define DC_DISP_ID_SYNC(di)   (di)
#define mask_a(a)   ((u32)(a) & 0x3FF)
#define mask_b(b)   ((u32)(b) & 0x3FFF)
#define SYNC_WAVE   0


enum  csc_type_t {


void __ipu_dp_csc_setup (int dp, struct dp_csc_param_t dp_csc_param, bool srm_mode_update)
 __setup ("dmfc=", dmfc_setup)
int _ipu_chan_is_interlaced (ipu_channel_t channel)
void _ipu_dc_init (int dc_chan, int di, bool interlaced)
static void _ipu_dc_link_event (int chan, int event, int addr, int priority)
static void _ipu_dc_map_clear (int map)
static void _ipu_dc_map_config (int map, int byte_num, int offset, int mask)
void _ipu_dc_uninit (int dc_chan)
static void _ipu_dc_write_tmpl (int word, u32 opcode, u32 operand, int map, int wave, int glue, int sync)
static void _ipu_di_data_pin_config (int di, int wave_gen, int di_pin, int set, int up, int down)
static void _ipu_di_data_wave_config (int di, int wave_gen, int access_size, int component_size)
static void _ipu_di_sync_config (int di, int wave_gen, int run_count, int run_src, int offset_count, int offset_src, int repeat_count, int cnt_clr_src, int cnt_polarity_gen_en, int cnt_polarity_clr_src, int cnt_polarity_trigger_src, int cnt_up, int cnt_down)
void _ipu_dmfc_init (int dmfc_type, int first)
void _ipu_dmfc_set_wait4eot (int dma_chan, int width)
void _ipu_dp_dc_disable (ipu_channel_t channel, bool swap)
void _ipu_dp_dc_enable (ipu_channel_t channel)
int _ipu_dp_init (ipu_channel_t channel, uint32_t in_pixel_fmt, uint32_t out_pixel_fmt)
void _ipu_dp_set_csc_coefficients (ipu_channel_t channel, int32_t param[][3])
void _ipu_dp_uninit (ipu_channel_t channel)
void _ipu_init_dc_mappings (void)
int _ipu_pixfmt_to_map (uint32_t fmt)
static int _rgb_to_yuv (int n, int red, int green, int blue)
void adapt_panel_to_ipu_restricitions (uint16_t *pixel_clk, uint16_t width, uint16_t height, uint16_t h_start_width, uint16_t h_end_width, uint16_t v_start_width, uint16_t *v_end_width)
static irqreturn_t dc_irq_handler (int irq, void *dev_id)
static int __init dmfc_setup (char *options)
 EXPORT_SYMBOL (ipu_reset_disp_panel)
 EXPORT_SYMBOL (ipu_disp_direct_write)
 EXPORT_SYMBOL (ipu_disp_set_window_pos)
 EXPORT_SYMBOL (ipu_disp_set_gamma_correction)
 EXPORT_SYMBOL (ipu_disp_set_color_key)
 EXPORT_SYMBOL (ipu_disp_set_global_alpha)
 EXPORT_SYMBOL (ipu_init_async_panel)
 EXPORT_SYMBOL (ipu_init_sync_panel)
void ipu_disp_direct_write (ipu_channel_t channel, u32 value, u32 offset)
int32_t ipu_disp_set_color_key (ipu_channel_t channel, bool enable, uint32_t color_key)
int32_t ipu_disp_set_gamma_correction (ipu_channel_t channel, bool enable, int constk[], int slopek[])
int32_t ipu_disp_set_global_alpha (ipu_channel_t channel, bool enable, uint8_t alpha)
int32_t ipu_disp_set_window_pos (ipu_channel_t channel, int16_t x_pos, int16_t y_pos)
int ipu_init_async_panel (int disp, int type, uint32_t cycle_time, uint32_t pixel_fmt, ipu_adc_sig_cfg_t sig)
int32_t ipu_init_sync_panel (int disp, uint32_t pixel_clk, uint16_t width, uint16_t height, uint32_t pixel_fmt, uint16_t h_start_width, uint16_t h_sync_width, uint16_t h_end_width, uint16_t v_start_width, uint16_t v_sync_width, uint16_t v_end_width, uint32_t v_to_h_sync, ipu_di_signal_cfg_t sig)
void ipu_reset_disp_panel (void)


static enum csc_type_t bg_csc_type = CSC_NONE
static int color_key_4rgb = 1
static bool dc_swap
static int dmfc_size_23
static int dmfc_size_24
static int dmfc_size_27
static int dmfc_size_28
static int dmfc_size_29
int dmfc_type_setup
static struct dp_csc_param_t dp_csc_array [CSC_NUM][CSC_NUM]
static enum csc_type_t fg_csc_type = CSC_NONE
int g_di1_tvout
static const int rgb2ycbcr_coeff [5][3]
static const int ycbcr2rgb_coeff [5][3]

Generated by  Doxygen 1.6.0   Back to index