Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
panel-n8x0.c File Reference
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/gpio.h>
#include <linux/spi/spi.h>
#include <linux/backlight.h>
#include <linux/fb.h>
#include <video/omapdss.h>
#include <video/omap-panel-n8x0.h>

Go to the source code of this file.

Data Structures

struct  panel_drv_data
 

Macros

#define BLIZZARD_REV_CODE   0x00
 
#define BLIZZARD_CONFIG   0x02
 
#define BLIZZARD_PLL_DIV   0x04
 
#define BLIZZARD_PLL_LOCK_RANGE   0x06
 
#define BLIZZARD_PLL_CLOCK_SYNTH_0   0x08
 
#define BLIZZARD_PLL_CLOCK_SYNTH_1   0x0a
 
#define BLIZZARD_PLL_MODE   0x0c
 
#define BLIZZARD_CLK_SRC   0x0e
 
#define BLIZZARD_MEM_BANK0_ACTIVATE   0x10
 
#define BLIZZARD_MEM_BANK0_STATUS   0x14
 
#define BLIZZARD_PANEL_CONFIGURATION   0x28
 
#define BLIZZARD_HDISP   0x2a
 
#define BLIZZARD_HNDP   0x2c
 
#define BLIZZARD_VDISP0   0x2e
 
#define BLIZZARD_VDISP1   0x30
 
#define BLIZZARD_VNDP   0x32
 
#define BLIZZARD_HSW   0x34
 
#define BLIZZARD_VSW   0x38
 
#define BLIZZARD_DISPLAY_MODE   0x68
 
#define BLIZZARD_INPUT_WIN_X_START_0   0x6c
 
#define BLIZZARD_DATA_SOURCE_SELECT   0x8e
 
#define BLIZZARD_DISP_MEM_DATA_PORT   0x90
 
#define BLIZZARD_DISP_MEM_READ_ADDR0   0x92
 
#define BLIZZARD_POWER_SAVE   0xE6
 
#define BLIZZARD_NDISP_CTRL_STATUS   0xE8
 
#define BLIZZARD_SRC_WRITE_LCD_BACKGROUND   0x00
 
#define BLIZZARD_SRC_WRITE_LCD_DESTRUCTIVE   0x01
 
#define BLIZZARD_SRC_WRITE_OVERLAY_ENABLE   0x04
 
#define BLIZZARD_SRC_DISABLE_OVERLAY   0x05
 
#define BLIZZARD_SRC_WRITE_LCD   0x00
 
#define BLIZZARD_SRC_BLT_LCD   0x06
 
#define BLIZZARD_COLOR_RGB565   0x01
 
#define BLIZZARD_COLOR_YUV420   0x09
 
#define BLIZZARD_VERSION_S1D13745   0x01 /* Hailstorm */
 
#define BLIZZARD_VERSION_S1D13744   0x02 /* Blizzard */
 
#define MIPID_CMD_READ_DISP_ID   0x04
 
#define MIPID_CMD_READ_RED   0x06
 
#define MIPID_CMD_READ_GREEN   0x07
 
#define MIPID_CMD_READ_BLUE   0x08
 
#define MIPID_CMD_READ_DISP_STATUS   0x09
 
#define MIPID_CMD_RDDSDR   0x0F
 
#define MIPID_CMD_SLEEP_IN   0x10
 
#define MIPID_CMD_SLEEP_OUT   0x11
 
#define MIPID_CMD_DISP_OFF   0x28
 
#define MIPID_CMD_DISP_ON   0x29
 

Functions

 module_init (n8x0_panel_drv_init)
 
 module_exit (n8x0_panel_drv_exit)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BLIZZARD_CLK_SRC   0x0e

Definition at line 21 of file panel-n8x0.c.

#define BLIZZARD_COLOR_RGB565   0x01

Definition at line 50 of file panel-n8x0.c.

#define BLIZZARD_COLOR_YUV420   0x09

Definition at line 51 of file panel-n8x0.c.

#define BLIZZARD_CONFIG   0x02

Definition at line 15 of file panel-n8x0.c.

#define BLIZZARD_DATA_SOURCE_SELECT   0x8e

Definition at line 34 of file panel-n8x0.c.

#define BLIZZARD_DISP_MEM_DATA_PORT   0x90

Definition at line 35 of file panel-n8x0.c.

#define BLIZZARD_DISP_MEM_READ_ADDR0   0x92

Definition at line 36 of file panel-n8x0.c.

#define BLIZZARD_DISPLAY_MODE   0x68

Definition at line 32 of file panel-n8x0.c.

#define BLIZZARD_HDISP   0x2a

Definition at line 25 of file panel-n8x0.c.

#define BLIZZARD_HNDP   0x2c

Definition at line 26 of file panel-n8x0.c.

#define BLIZZARD_HSW   0x34

Definition at line 30 of file panel-n8x0.c.

#define BLIZZARD_INPUT_WIN_X_START_0   0x6c

Definition at line 33 of file panel-n8x0.c.

#define BLIZZARD_MEM_BANK0_ACTIVATE   0x10

Definition at line 22 of file panel-n8x0.c.

#define BLIZZARD_MEM_BANK0_STATUS   0x14

Definition at line 23 of file panel-n8x0.c.

#define BLIZZARD_NDISP_CTRL_STATUS   0xE8

Definition at line 38 of file panel-n8x0.c.

#define BLIZZARD_PANEL_CONFIGURATION   0x28

Definition at line 24 of file panel-n8x0.c.

#define BLIZZARD_PLL_CLOCK_SYNTH_0   0x08

Definition at line 18 of file panel-n8x0.c.

#define BLIZZARD_PLL_CLOCK_SYNTH_1   0x0a

Definition at line 19 of file panel-n8x0.c.

#define BLIZZARD_PLL_DIV   0x04

Definition at line 16 of file panel-n8x0.c.

#define BLIZZARD_PLL_LOCK_RANGE   0x06

Definition at line 17 of file panel-n8x0.c.

#define BLIZZARD_PLL_MODE   0x0c

Definition at line 20 of file panel-n8x0.c.

#define BLIZZARD_POWER_SAVE   0xE6

Definition at line 37 of file panel-n8x0.c.

#define BLIZZARD_REV_CODE   0x00

Definition at line 14 of file panel-n8x0.c.

#define BLIZZARD_SRC_BLT_LCD   0x06

Definition at line 48 of file panel-n8x0.c.

#define BLIZZARD_SRC_DISABLE_OVERLAY   0x05

Definition at line 45 of file panel-n8x0.c.

#define BLIZZARD_SRC_WRITE_LCD   0x00

Definition at line 47 of file panel-n8x0.c.

#define BLIZZARD_SRC_WRITE_LCD_BACKGROUND   0x00

Definition at line 42 of file panel-n8x0.c.

#define BLIZZARD_SRC_WRITE_LCD_DESTRUCTIVE   0x01

Definition at line 43 of file panel-n8x0.c.

#define BLIZZARD_SRC_WRITE_OVERLAY_ENABLE   0x04

Definition at line 44 of file panel-n8x0.c.

#define BLIZZARD_VDISP0   0x2e

Definition at line 27 of file panel-n8x0.c.

#define BLIZZARD_VDISP1   0x30

Definition at line 28 of file panel-n8x0.c.

#define BLIZZARD_VERSION_S1D13744   0x02 /* Blizzard */

Definition at line 54 of file panel-n8x0.c.

#define BLIZZARD_VERSION_S1D13745   0x01 /* Hailstorm */

Definition at line 53 of file panel-n8x0.c.

#define BLIZZARD_VNDP   0x32

Definition at line 29 of file panel-n8x0.c.

#define BLIZZARD_VSW   0x38

Definition at line 31 of file panel-n8x0.c.

#define MIPID_CMD_DISP_OFF   0x28

Definition at line 64 of file panel-n8x0.c.

#define MIPID_CMD_DISP_ON   0x29

Definition at line 65 of file panel-n8x0.c.

#define MIPID_CMD_RDDSDR   0x0F

Definition at line 61 of file panel-n8x0.c.

#define MIPID_CMD_READ_BLUE   0x08

Definition at line 59 of file panel-n8x0.c.

#define MIPID_CMD_READ_DISP_ID   0x04

Definition at line 56 of file panel-n8x0.c.

#define MIPID_CMD_READ_DISP_STATUS   0x09

Definition at line 60 of file panel-n8x0.c.

#define MIPID_CMD_READ_GREEN   0x07

Definition at line 58 of file panel-n8x0.c.

#define MIPID_CMD_READ_RED   0x06

Definition at line 57 of file panel-n8x0.c.

#define MIPID_CMD_SLEEP_IN   0x10

Definition at line 62 of file panel-n8x0.c.

#define MIPID_CMD_SLEEP_OUT   0x11

Definition at line 63 of file panel-n8x0.c.

Function Documentation

module_exit ( n8x0_panel_drv_exit  )
module_init ( n8x0_panel_drv_init  )
MODULE_LICENSE ( "GPL"  )