Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/gpio.h>
#include <linux/fb.h>
#include <linux/lcd.h>
#include <linux/spi/spi.h>
#include <linux/spi/corgi_lcd.h>
#include <linux/slab.h>
#include <asm/mach/sharpsl_param.h>
Go to the source code of this file.
Data Structures | |
struct | corgi_lcd |
Macros | |
#define | POWER_IS_ON(pwr) ((pwr) <= FB_BLANK_NORMAL) |
#define | RESCTL_ADRS 0x00 |
#define | PHACTRL_ADRS 0x01 |
#define | DUTYCTRL_ADRS 0x02 |
#define | POWERREG0_ADRS 0x03 |
#define | POWERREG1_ADRS 0x04 |
#define | GPOR3_ADRS 0x05 |
#define | PICTRL_ADRS 0x06 |
#define | POLCTRL_ADRS 0x07 |
#define | RESCTL_QVGA 0x01 |
#define | RESCTL_VGA 0x00 |
#define | POWER1_VW_ON 0x01 /* VW Supply FET ON */ |
#define | POWER1_GVSS_ON 0x02 /* GVSS(-8V) Power Supply ON */ |
#define | POWER1_VDD_ON 0x04 /* VDD(8V),SVSS(-4V) Power Supply ON */ |
#define | POWER1_VW_OFF 0x00 /* VW Supply FET OFF */ |
#define | POWER1_GVSS_OFF 0x00 /* GVSS(-8V) Power Supply OFF */ |
#define | POWER1_VDD_OFF 0x00 /* VDD(8V),SVSS(-4V) Power Supply OFF */ |
#define | POWER0_COM_DCLK 0x01 /* COM Voltage DC Bias DAC Serial Data Clock */ |
#define | POWER0_COM_DOUT 0x02 /* COM Voltage DC Bias DAC Serial Data Out */ |
#define | POWER0_DAC_ON 0x04 /* DAC Power Supply ON */ |
#define | POWER0_COM_ON 0x08 /* COM Power Supply ON */ |
#define | POWER0_VCC5_ON 0x10 /* VCC5 Power Supply ON */ |
#define | POWER0_DAC_OFF 0x00 /* DAC Power Supply OFF */ |
#define | POWER0_COM_OFF 0x00 /* COM Power Supply OFF */ |
#define | POWER0_VCC5_OFF 0x00 /* VCC5 Power Supply OFF */ |
#define | PICTRL_INIT_STATE 0x01 |
#define | PICTRL_INIOFF 0x02 |
#define | PICTRL_POWER_DOWN 0x04 |
#define | PICTRL_COM_SIGNAL_OFF 0x08 |
#define | PICTRL_DAC_SIGNAL_OFF 0x10 |
#define | POLCTRL_SYNC_POL_FALL 0x01 |
#define | POLCTRL_EN_POL_FALL 0x02 |
#define | POLCTRL_DATA_POL_FALL 0x04 |
#define | POLCTRL_SYNC_ACT_H 0x08 |
#define | POLCTRL_EN_ACT_L 0x10 |
#define | POLCTRL_SYNC_POL_RISE 0x00 |
#define | POLCTRL_EN_POL_RISE 0x00 |
#define | POLCTRL_DATA_POL_RISE 0x00 |
#define | POLCTRL_SYNC_ACT_L 0x00 |
#define | POLCTRL_EN_ACT_H 0x00 |
#define | PHACTRL_PHASE_MANUAL 0x01 |
#define | DEFAULT_PHAD_QVGA (9) |
#define | DEFAULT_COMADJ (125) |
#define | CORGIBL_SUSPENDED 0x01 |
#define | CORGIBL_BATTLOW 0x02 |
#define | corgi_lcd_suspend NULL |
#define | corgi_lcd_resume NULL |
Functions | |
void | corgi_lcd_limit_intensity (int limit) |
EXPORT_SYMBOL (corgi_lcd_limit_intensity) | |
module_spi_driver (corgi_lcd_driver) | |
MODULE_DESCRIPTION ("LCD and backlight driver for SHARP C7x0/Cxx00") | |
MODULE_AUTHOR ("Eric Miao <[email protected]>") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS ("spi:corgi-lcd") | |
#define corgi_lcd_resume NULL |
Definition at line 482 of file corgi_lcd.c.
#define corgi_lcd_suspend NULL |
Definition at line 481 of file corgi_lcd.c.
#define CORGIBL_BATTLOW 0x02 |
Definition at line 109 of file corgi_lcd.c.
#define CORGIBL_SUSPENDED 0x01 |
Definition at line 108 of file corgi_lcd.c.
#define DEFAULT_COMADJ (125) |
Definition at line 84 of file corgi_lcd.c.
#define DEFAULT_PHAD_QVGA (9) |
Definition at line 83 of file corgi_lcd.c.
#define DUTYCTRL_ADRS 0x02 |
Definition at line 35 of file corgi_lcd.c.
#define GPOR3_ADRS 0x05 |
Definition at line 38 of file corgi_lcd.c.
#define PHACTRL_ADRS 0x01 |
Definition at line 34 of file corgi_lcd.c.
#define PHACTRL_PHASE_MANUAL 0x01 |
Definition at line 82 of file corgi_lcd.c.
#define PICTRL_ADRS 0x06 |
Definition at line 39 of file corgi_lcd.c.
#define PICTRL_COM_SIGNAL_OFF 0x08 |
Definition at line 67 of file corgi_lcd.c.
#define PICTRL_DAC_SIGNAL_OFF 0x10 |
Definition at line 68 of file corgi_lcd.c.
#define PICTRL_INIOFF 0x02 |
Definition at line 65 of file corgi_lcd.c.
#define PICTRL_INIT_STATE 0x01 |
Definition at line 64 of file corgi_lcd.c.
#define PICTRL_POWER_DOWN 0x04 |
Definition at line 66 of file corgi_lcd.c.
#define POLCTRL_ADRS 0x07 |
Definition at line 40 of file corgi_lcd.c.
#define POLCTRL_DATA_POL_FALL 0x04 |
Definition at line 72 of file corgi_lcd.c.
#define POLCTRL_DATA_POL_RISE 0x00 |
Definition at line 78 of file corgi_lcd.c.
#define POLCTRL_EN_ACT_H 0x00 |
Definition at line 80 of file corgi_lcd.c.
#define POLCTRL_EN_ACT_L 0x10 |
Definition at line 74 of file corgi_lcd.c.
#define POLCTRL_EN_POL_FALL 0x02 |
Definition at line 71 of file corgi_lcd.c.
#define POLCTRL_EN_POL_RISE 0x00 |
Definition at line 77 of file corgi_lcd.c.
#define POLCTRL_SYNC_ACT_H 0x08 |
Definition at line 73 of file corgi_lcd.c.
#define POLCTRL_SYNC_ACT_L 0x00 |
Definition at line 79 of file corgi_lcd.c.
#define POLCTRL_SYNC_POL_FALL 0x01 |
Definition at line 70 of file corgi_lcd.c.
#define POLCTRL_SYNC_POL_RISE 0x00 |
Definition at line 76 of file corgi_lcd.c.
#define POWER0_COM_DCLK 0x01 /* COM Voltage DC Bias DAC Serial Data Clock */ |
Definition at line 54 of file corgi_lcd.c.
#define POWER0_COM_DOUT 0x02 /* COM Voltage DC Bias DAC Serial Data Out */ |
Definition at line 55 of file corgi_lcd.c.
#define POWER0_COM_OFF 0x00 /* COM Power Supply OFF */ |
Definition at line 61 of file corgi_lcd.c.
#define POWER0_COM_ON 0x08 /* COM Power Supply ON */ |
Definition at line 57 of file corgi_lcd.c.
#define POWER0_DAC_OFF 0x00 /* DAC Power Supply OFF */ |
Definition at line 60 of file corgi_lcd.c.
#define POWER0_DAC_ON 0x04 /* DAC Power Supply ON */ |
Definition at line 56 of file corgi_lcd.c.
#define POWER0_VCC5_OFF 0x00 /* VCC5 Power Supply OFF */ |
Definition at line 62 of file corgi_lcd.c.
#define POWER0_VCC5_ON 0x10 /* VCC5 Power Supply ON */ |
Definition at line 58 of file corgi_lcd.c.
#define POWER1_GVSS_OFF 0x00 /* GVSS(-8V) Power Supply OFF */ |
Definition at line 51 of file corgi_lcd.c.
#define POWER1_GVSS_ON 0x02 /* GVSS(-8V) Power Supply ON */ |
Definition at line 47 of file corgi_lcd.c.
#define POWER1_VDD_OFF 0x00 /* VDD(8V),SVSS(-4V) Power Supply OFF */ |
Definition at line 52 of file corgi_lcd.c.
#define POWER1_VDD_ON 0x04 /* VDD(8V),SVSS(-4V) Power Supply ON */ |
Definition at line 48 of file corgi_lcd.c.
#define POWER1_VW_OFF 0x00 /* VW Supply FET OFF */ |
Definition at line 50 of file corgi_lcd.c.
#define POWER1_VW_ON 0x01 /* VW Supply FET ON */ |
Definition at line 46 of file corgi_lcd.c.
#define POWER_IS_ON | ( | pwr | ) | ((pwr) <= FB_BLANK_NORMAL) |
Definition at line 30 of file corgi_lcd.c.
#define POWERREG0_ADRS 0x03 |
Definition at line 36 of file corgi_lcd.c.
#define POWERREG1_ADRS 0x04 |
Definition at line 37 of file corgi_lcd.c.
#define RESCTL_ADRS 0x00 |
Definition at line 33 of file corgi_lcd.c.
#define RESCTL_QVGA 0x01 |
Definition at line 43 of file corgi_lcd.c.
#define RESCTL_VGA 0x00 |
Definition at line 44 of file corgi_lcd.c.
Definition at line 444 of file corgi_lcd.c.
EXPORT_SYMBOL | ( | corgi_lcd_limit_intensity | ) |
MODULE_ALIAS | ( | "spi:corgi-lcd" | ) |
MODULE_AUTHOR | ( | "Eric Miao <[email protected]>" | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_spi_driver | ( | corgi_lcd_driver | ) |