Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
sossi.c File Reference
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/clk.h>
#include <linux/irq.h>
#include <linux/io.h>
#include <linux/interrupt.h>
#include <plat/dma.h>
#include "omapfb.h"
#include "lcdc.h"

Go to the source code of this file.

Macros

#define MODULE_NAME   "omapfb-sossi"
 
#define OMAP_SOSSI_BASE   0xfffbac00
 
#define SOSSI_ID_REG   0x00
 
#define SOSSI_INIT1_REG   0x04
 
#define SOSSI_INIT2_REG   0x08
 
#define SOSSI_INIT3_REG   0x0c
 
#define SOSSI_FIFO_REG   0x10
 
#define SOSSI_REOTABLE_REG   0x14
 
#define SOSSI_TEARING_REG   0x18
 
#define SOSSI_INIT1B_REG   0x1c
 
#define SOSSI_FIFOB_REG   0x20
 
#define DMA_GSCR   0xfffedc04
 
#define DMA_LCD_CCR   0xfffee3c2
 
#define DMA_LCD_CTRL   0xfffee3c4
 
#define DMA_LCD_LCH_CTRL   0xfffee3ea
 
#define CONF_SOSSI_RESET_R   (1 << 23)
 
#define RD_ACCESS   0
 
#define WR_ACCESS   1
 
#define SOSSI_MAX_XMIT_BYTES   (512 * 1024)
 
#define HZ_TO_PS(x)   (1000000000 / (x / 1000))
 

Variables

struct lcd_ctrl_extif omap1_ext_if
 

Macro Definition Documentation

#define CONF_SOSSI_RESET_R   (1 << 23)

Definition at line 51 of file sossi.c.

#define DMA_GSCR   0xfffedc04

Definition at line 46 of file sossi.c.

#define DMA_LCD_CCR   0xfffee3c2

Definition at line 47 of file sossi.c.

#define DMA_LCD_CTRL   0xfffee3c4

Definition at line 48 of file sossi.c.

#define DMA_LCD_LCH_CTRL   0xfffee3ea

Definition at line 49 of file sossi.c.

#define HZ_TO_PS (   x)    (1000000000 / (x / 1000))

Definition at line 123 of file sossi.c.

#define MODULE_NAME   "omapfb-sossi"

Definition at line 33 of file sossi.c.

#define OMAP_SOSSI_BASE   0xfffbac00

Definition at line 35 of file sossi.c.

#define RD_ACCESS   0

Definition at line 53 of file sossi.c.

#define SOSSI_FIFO_REG   0x10

Definition at line 40 of file sossi.c.

#define SOSSI_FIFOB_REG   0x20

Definition at line 44 of file sossi.c.

#define SOSSI_ID_REG   0x00

Definition at line 36 of file sossi.c.

#define SOSSI_INIT1_REG   0x04

Definition at line 37 of file sossi.c.

#define SOSSI_INIT1B_REG   0x1c

Definition at line 43 of file sossi.c.

#define SOSSI_INIT2_REG   0x08

Definition at line 38 of file sossi.c.

#define SOSSI_INIT3_REG   0x0c

Definition at line 39 of file sossi.c.

#define SOSSI_MAX_XMIT_BYTES   (512 * 1024)

Definition at line 56 of file sossi.c.

#define SOSSI_REOTABLE_REG   0x14

Definition at line 41 of file sossi.c.

#define SOSSI_TEARING_REG   0x18

Definition at line 42 of file sossi.c.

#define WR_ACCESS   1

Definition at line 54 of file sossi.c.

Variable Documentation

void __iomem* base

Definition at line 59 of file sossi.c.

int bus_pick_count

Definition at line 63 of file sossi.c.

int bus_pick_width

Definition at line 64 of file sossi.c.

Definition at line 71 of file sossi.c.

u8 clk_tw0[2]

Definition at line 72 of file sossi.c.

u8 clk_tw1[2]

Definition at line 73 of file sossi.c.

Definition at line 80 of file sossi.c.

struct clk* fck

Definition at line 60 of file sossi.c.

unsigned long fck_hz

Definition at line 61 of file sossi.c.

int last_access

Definition at line 78 of file sossi.c.

void(* lcdc_callback)(void *data)

Definition at line 67 of file sossi.c.

void* lcdc_callback_data

Definition at line 68 of file sossi.c.

spinlock_t lock

Definition at line 62 of file sossi.c.

struct lcd_ctrl_extif omap1_ext_if
Initial value:
= {
.init = sossi_init,
.cleanup = sossi_cleanup,
.get_clk_info = sossi_get_clk_info,
.convert_timings = sossi_convert_timings,
.set_timings = sossi_set_timings,
.set_bits_per_cycle = sossi_set_bits_per_cycle,
.setup_tearsync = sossi_setup_tearsync,
.enable_tearsync = sossi_enable_tearsync,
.write_command = sossi_write_command,
.read_data = sossi_read_data,
.write_data = sossi_write_data,
.transfer_area = sossi_transfer_area,
.max_transmit_size = SOSSI_MAX_XMIT_BYTES,
}

Definition at line 677 of file sossi.c.

int tearsync_line

Definition at line 66 of file sossi.c.

int tearsync_mode

Definition at line 65 of file sossi.c.

int vsync_dma_pending

Definition at line 69 of file sossi.c.