Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
board-trout-panel.c File Reference
#include <linux/gpio.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/leds.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <asm/io.h>
#include <asm/mach-types.h>
#include <asm/system_info.h>
#include <linux/platform_data/video-msm_fb.h>
#include <mach/vreg.h>
#include "board-trout.h"
#include "proc_comm.h"
#include "devices.h"

Go to the source code of this file.

Data Structures

struct  mddi_table
 

Macros

#define TROUT_DEFAULT_BACKLIGHT_BRIGHTNESS   255
 
#define MDDI_CLIENT_CORE_BASE   0x108000
 
#define LCD_CONTROL_BLOCK_BASE   0x110000
 
#define SPI_BLOCK_BASE   0x120000
 
#define I2C_BLOCK_BASE   0x130000
 
#define PWM_BLOCK_BASE   0x140000
 
#define GPIO_BLOCK_BASE   0x150000
 
#define SYSTEM_BLOCK1_BASE   0x160000
 
#define SYSTEM_BLOCK2_BASE   0x170000
 
#define DPSUS   (MDDI_CLIENT_CORE_BASE|0x24)
 
#define SYSCLKENA   (MDDI_CLIENT_CORE_BASE|0x2C)
 
#define PWM0OFF   (PWM_BLOCK_BASE|0x1C)
 
#define V_VDDE2E_VDD2_GPIO   0
 
#define MDDI_RST_N   82
 
#define MDDICAP0   (MDDI_CLIENT_CORE_BASE|0x00)
 
#define MDDICAP1   (MDDI_CLIENT_CORE_BASE|0x04)
 
#define MDDICAP2   (MDDI_CLIENT_CORE_BASE|0x08)
 
#define MDDICAP3   (MDDI_CLIENT_CORE_BASE|0x0C)
 
#define MDCAPCHG   (MDDI_CLIENT_CORE_BASE|0x10)
 
#define MDCRCERC   (MDDI_CLIENT_CORE_BASE|0x14)
 
#define TTBUSSEL   (MDDI_CLIENT_CORE_BASE|0x18)
 
#define DPSET0   (MDDI_CLIENT_CORE_BASE|0x1C)
 
#define DPSET1   (MDDI_CLIENT_CORE_BASE|0x20)
 
#define DPSUS   (MDDI_CLIENT_CORE_BASE|0x24)
 
#define DPRUN   (MDDI_CLIENT_CORE_BASE|0x28)
 
#define SYSCKENA   (MDDI_CLIENT_CORE_BASE|0x2C)
 
#define TESTMODE   (MDDI_CLIENT_CORE_BASE|0x30)
 
#define FIFOMONI   (MDDI_CLIENT_CORE_BASE|0x34)
 
#define INTMONI   (MDDI_CLIENT_CORE_BASE|0x38)
 
#define MDIOBIST   (MDDI_CLIENT_CORE_BASE|0x3C)
 
#define MDIOPSET   (MDDI_CLIENT_CORE_BASE|0x40)
 
#define BITMAP0   (MDDI_CLIENT_CORE_BASE|0x44)
 
#define BITMAP1   (MDDI_CLIENT_CORE_BASE|0x48)
 
#define BITMAP2   (MDDI_CLIENT_CORE_BASE|0x4C)
 
#define BITMAP3   (MDDI_CLIENT_CORE_BASE|0x50)
 
#define BITMAP4   (MDDI_CLIENT_CORE_BASE|0x54)
 
#define SRST   (LCD_CONTROL_BLOCK_BASE|0x00)
 
#define PORT_ENB   (LCD_CONTROL_BLOCK_BASE|0x04)
 
#define START   (LCD_CONTROL_BLOCK_BASE|0x08)
 
#define PORT   (LCD_CONTROL_BLOCK_BASE|0x0C)
 
#define CMN   (LCD_CONTROL_BLOCK_BASE|0x10)
 
#define GAMMA   (LCD_CONTROL_BLOCK_BASE|0x14)
 
#define INTFLG   (LCD_CONTROL_BLOCK_BASE|0x18)
 
#define INTMSK   (LCD_CONTROL_BLOCK_BASE|0x1C)
 
#define MPLFBUF   (LCD_CONTROL_BLOCK_BASE|0x20)
 
#define HDE_LEFT   (LCD_CONTROL_BLOCK_BASE|0x24)
 
#define VDE_TOP   (LCD_CONTROL_BLOCK_BASE|0x28)
 
#define PXL   (LCD_CONTROL_BLOCK_BASE|0x30)
 
#define HCYCLE   (LCD_CONTROL_BLOCK_BASE|0x34)
 
#define HSW   (LCD_CONTROL_BLOCK_BASE|0x38)
 
#define HDE_START   (LCD_CONTROL_BLOCK_BASE|0x3C)
 
#define HDE_SIZE   (LCD_CONTROL_BLOCK_BASE|0x40)
 
#define VCYCLE   (LCD_CONTROL_BLOCK_BASE|0x44)
 
#define VSW   (LCD_CONTROL_BLOCK_BASE|0x48)
 
#define VDE_START   (LCD_CONTROL_BLOCK_BASE|0x4C)
 
#define VDE_SIZE   (LCD_CONTROL_BLOCK_BASE|0x50)
 
#define WAKEUP   (LCD_CONTROL_BLOCK_BASE|0x54)
 
#define WSYN_DLY   (LCD_CONTROL_BLOCK_BASE|0x58)
 
#define REGENB   (LCD_CONTROL_BLOCK_BASE|0x5C)
 
#define VSYNIF   (LCD_CONTROL_BLOCK_BASE|0x60)
 
#define WRSTB   (LCD_CONTROL_BLOCK_BASE|0x64)
 
#define RDSTB   (LCD_CONTROL_BLOCK_BASE|0x68)
 
#define ASY_DATA   (LCD_CONTROL_BLOCK_BASE|0x6C)
 
#define ASY_DATB   (LCD_CONTROL_BLOCK_BASE|0x70)
 
#define ASY_DATC   (LCD_CONTROL_BLOCK_BASE|0x74)
 
#define ASY_DATD   (LCD_CONTROL_BLOCK_BASE|0x78)
 
#define ASY_DATE   (LCD_CONTROL_BLOCK_BASE|0x7C)
 
#define ASY_DATF   (LCD_CONTROL_BLOCK_BASE|0x80)
 
#define ASY_DATG   (LCD_CONTROL_BLOCK_BASE|0x84)
 
#define ASY_DATH   (LCD_CONTROL_BLOCK_BASE|0x88)
 
#define ASY_CMDSET   (LCD_CONTROL_BLOCK_BASE|0x8C)
 
#define SSICTL   (SPI_BLOCK_BASE|0x00)
 
#define SSITIME   (SPI_BLOCK_BASE|0x04)
 
#define SSITX   (SPI_BLOCK_BASE|0x08)
 
#define SSIRX   (SPI_BLOCK_BASE|0x0C)
 
#define SSIINTC   (SPI_BLOCK_BASE|0x10)
 
#define SSIINTS   (SPI_BLOCK_BASE|0x14)
 
#define SSIDBG1   (SPI_BLOCK_BASE|0x18)
 
#define SSIDBG2   (SPI_BLOCK_BASE|0x1C)
 
#define SSIID   (SPI_BLOCK_BASE|0x20)
 
#define WKREQ   (SYSTEM_BLOCK1_BASE|0x00)
 
#define CLKENB   (SYSTEM_BLOCK1_BASE|0x04)
 
#define DRAMPWR   (SYSTEM_BLOCK1_BASE|0x08)
 
#define INTMASK   (SYSTEM_BLOCK1_BASE|0x0C)
 
#define GPIOSEL   (SYSTEM_BLOCK2_BASE|0x00)
 
#define GPIODATA   (GPIO_BLOCK_BASE|0x00)
 
#define GPIODIR   (GPIO_BLOCK_BASE|0x04)
 
#define GPIOIS   (GPIO_BLOCK_BASE|0x08)
 
#define GPIOIBE   (GPIO_BLOCK_BASE|0x0C)
 
#define GPIOIEV   (GPIO_BLOCK_BASE|0x10)
 
#define GPIOIE   (GPIO_BLOCK_BASE|0x14)
 
#define GPIORIS   (GPIO_BLOCK_BASE|0x18)
 
#define GPIOMIS   (GPIO_BLOCK_BASE|0x1C)
 
#define GPIOIC   (GPIO_BLOCK_BASE|0x20)
 
#define GPIOOMS   (GPIO_BLOCK_BASE|0x24)
 
#define GPIOPC   (GPIO_BLOCK_BASE|0x28)
 
#define GPIOID   (GPIO_BLOCK_BASE|0x30)
 
#define SPI_WRITE(reg, val)
 
#define SPI_WRITE1(reg)
 
#define GPIOSEL_VWAKEINT   (1U << 0)
 
#define INTMASK_VWAKEOUT   (1U << 0)
 

Functions

int __init trout_init_panel (void)
 
 device_initcall (trout_init_panel)
 

Variables

struct
msm_mddi_bridge_platform_data 
toshiba_client_data
 

Macro Definition Documentation

#define ASY_CMDSET   (LCD_CONTROL_BLOCK_BASE|0x8C)

Definition at line 100 of file board-trout-panel.c.

#define ASY_DATA   (LCD_CONTROL_BLOCK_BASE|0x6C)

Definition at line 92 of file board-trout-panel.c.

#define ASY_DATB   (LCD_CONTROL_BLOCK_BASE|0x70)

Definition at line 93 of file board-trout-panel.c.

#define ASY_DATC   (LCD_CONTROL_BLOCK_BASE|0x74)

Definition at line 94 of file board-trout-panel.c.

#define ASY_DATD   (LCD_CONTROL_BLOCK_BASE|0x78)

Definition at line 95 of file board-trout-panel.c.

#define ASY_DATE   (LCD_CONTROL_BLOCK_BASE|0x7C)

Definition at line 96 of file board-trout-panel.c.

#define ASY_DATF   (LCD_CONTROL_BLOCK_BASE|0x80)

Definition at line 97 of file board-trout-panel.c.

#define ASY_DATG   (LCD_CONTROL_BLOCK_BASE|0x84)

Definition at line 98 of file board-trout-panel.c.

#define ASY_DATH   (LCD_CONTROL_BLOCK_BASE|0x88)

Definition at line 99 of file board-trout-panel.c.

#define BITMAP0   (MDDI_CLIENT_CORE_BASE|0x44)

Definition at line 60 of file board-trout-panel.c.

#define BITMAP1   (MDDI_CLIENT_CORE_BASE|0x48)

Definition at line 61 of file board-trout-panel.c.

#define BITMAP2   (MDDI_CLIENT_CORE_BASE|0x4C)

Definition at line 62 of file board-trout-panel.c.

#define BITMAP3   (MDDI_CLIENT_CORE_BASE|0x50)

Definition at line 63 of file board-trout-panel.c.

#define BITMAP4   (MDDI_CLIENT_CORE_BASE|0x54)

Definition at line 64 of file board-trout-panel.c.

#define CLKENB   (SYSTEM_BLOCK1_BASE|0x04)

Definition at line 113 of file board-trout-panel.c.

#define CMN   (LCD_CONTROL_BLOCK_BASE|0x10)

Definition at line 70 of file board-trout-panel.c.

#define DPRUN   (MDDI_CLIENT_CORE_BASE|0x28)

Definition at line 53 of file board-trout-panel.c.

#define DPSET0   (MDDI_CLIENT_CORE_BASE|0x1C)

Definition at line 50 of file board-trout-panel.c.

#define DPSET1   (MDDI_CLIENT_CORE_BASE|0x20)

Definition at line 51 of file board-trout-panel.c.

#define DPSUS   (MDDI_CLIENT_CORE_BASE|0x24)

Definition at line 52 of file board-trout-panel.c.

#define DPSUS   (MDDI_CLIENT_CORE_BASE|0x24)

Definition at line 52 of file board-trout-panel.c.

#define DRAMPWR   (SYSTEM_BLOCK1_BASE|0x08)

Definition at line 114 of file board-trout-panel.c.

#define FIFOMONI   (MDDI_CLIENT_CORE_BASE|0x34)

Definition at line 56 of file board-trout-panel.c.

#define GAMMA   (LCD_CONTROL_BLOCK_BASE|0x14)

Definition at line 71 of file board-trout-panel.c.

#define GPIO_BLOCK_BASE   0x150000

Definition at line 31 of file board-trout-panel.c.

#define GPIODATA   (GPIO_BLOCK_BASE|0x00)

Definition at line 118 of file board-trout-panel.c.

#define GPIODIR   (GPIO_BLOCK_BASE|0x04)

Definition at line 119 of file board-trout-panel.c.

#define GPIOIBE   (GPIO_BLOCK_BASE|0x0C)

Definition at line 121 of file board-trout-panel.c.

#define GPIOIC   (GPIO_BLOCK_BASE|0x20)

Definition at line 126 of file board-trout-panel.c.

#define GPIOID   (GPIO_BLOCK_BASE|0x30)

Definition at line 129 of file board-trout-panel.c.

#define GPIOIE   (GPIO_BLOCK_BASE|0x14)

Definition at line 123 of file board-trout-panel.c.

#define GPIOIEV   (GPIO_BLOCK_BASE|0x10)

Definition at line 122 of file board-trout-panel.c.

#define GPIOIS   (GPIO_BLOCK_BASE|0x08)

Definition at line 120 of file board-trout-panel.c.

#define GPIOMIS   (GPIO_BLOCK_BASE|0x1C)

Definition at line 125 of file board-trout-panel.c.

#define GPIOOMS   (GPIO_BLOCK_BASE|0x24)

Definition at line 127 of file board-trout-panel.c.

#define GPIOPC   (GPIO_BLOCK_BASE|0x28)

Definition at line 128 of file board-trout-panel.c.

#define GPIORIS   (GPIO_BLOCK_BASE|0x18)

Definition at line 124 of file board-trout-panel.c.

#define GPIOSEL   (SYSTEM_BLOCK2_BASE|0x00)

Definition at line 116 of file board-trout-panel.c.

#define GPIOSEL_VWAKEINT   (1U << 0)

Definition at line 169 of file board-trout-panel.c.

#define HCYCLE   (LCD_CONTROL_BLOCK_BASE|0x34)

Definition at line 78 of file board-trout-panel.c.

#define HDE_LEFT   (LCD_CONTROL_BLOCK_BASE|0x24)

Definition at line 75 of file board-trout-panel.c.

#define HDE_SIZE   (LCD_CONTROL_BLOCK_BASE|0x40)

Definition at line 81 of file board-trout-panel.c.

#define HDE_START   (LCD_CONTROL_BLOCK_BASE|0x3C)

Definition at line 80 of file board-trout-panel.c.

#define HSW   (LCD_CONTROL_BLOCK_BASE|0x38)

Definition at line 79 of file board-trout-panel.c.

#define I2C_BLOCK_BASE   0x130000

Definition at line 29 of file board-trout-panel.c.

#define INTFLG   (LCD_CONTROL_BLOCK_BASE|0x18)

Definition at line 72 of file board-trout-panel.c.

#define INTMASK   (SYSTEM_BLOCK1_BASE|0x0C)

Definition at line 115 of file board-trout-panel.c.

#define INTMASK_VWAKEOUT   (1U << 0)

Definition at line 170 of file board-trout-panel.c.

#define INTMONI   (MDDI_CLIENT_CORE_BASE|0x38)

Definition at line 57 of file board-trout-panel.c.

#define INTMSK   (LCD_CONTROL_BLOCK_BASE|0x1C)

Definition at line 73 of file board-trout-panel.c.

#define LCD_CONTROL_BLOCK_BASE   0x110000

Definition at line 27 of file board-trout-panel.c.

#define MDCAPCHG   (MDDI_CLIENT_CORE_BASE|0x10)

Definition at line 47 of file board-trout-panel.c.

#define MDCRCERC   (MDDI_CLIENT_CORE_BASE|0x14)

Definition at line 48 of file board-trout-panel.c.

#define MDDI_CLIENT_CORE_BASE   0x108000

Definition at line 26 of file board-trout-panel.c.

#define MDDI_RST_N   82

Definition at line 41 of file board-trout-panel.c.

#define MDDICAP0   (MDDI_CLIENT_CORE_BASE|0x00)

Definition at line 43 of file board-trout-panel.c.

#define MDDICAP1   (MDDI_CLIENT_CORE_BASE|0x04)

Definition at line 44 of file board-trout-panel.c.

#define MDDICAP2   (MDDI_CLIENT_CORE_BASE|0x08)

Definition at line 45 of file board-trout-panel.c.

#define MDDICAP3   (MDDI_CLIENT_CORE_BASE|0x0C)

Definition at line 46 of file board-trout-panel.c.

#define MDIOBIST   (MDDI_CLIENT_CORE_BASE|0x3C)

Definition at line 58 of file board-trout-panel.c.

#define MDIOPSET   (MDDI_CLIENT_CORE_BASE|0x40)

Definition at line 59 of file board-trout-panel.c.

#define MPLFBUF   (LCD_CONTROL_BLOCK_BASE|0x20)

Definition at line 74 of file board-trout-panel.c.

#define PORT   (LCD_CONTROL_BLOCK_BASE|0x0C)

Definition at line 69 of file board-trout-panel.c.

#define PORT_ENB   (LCD_CONTROL_BLOCK_BASE|0x04)

Definition at line 67 of file board-trout-panel.c.

#define PWM0OFF   (PWM_BLOCK_BASE|0x1C)

Definition at line 38 of file board-trout-panel.c.

#define PWM_BLOCK_BASE   0x140000

Definition at line 30 of file board-trout-panel.c.

#define PXL   (LCD_CONTROL_BLOCK_BASE|0x30)

Definition at line 77 of file board-trout-panel.c.

#define RDSTB   (LCD_CONTROL_BLOCK_BASE|0x68)

Definition at line 91 of file board-trout-panel.c.

#define REGENB   (LCD_CONTROL_BLOCK_BASE|0x5C)

Definition at line 88 of file board-trout-panel.c.

#define SPI_BLOCK_BASE   0x120000

Definition at line 28 of file board-trout-panel.c.

#define SPI_WRITE (   reg,
  val 
)
Value:
{ SSITX, 0x00010000 | (((reg) & 0xff) << 8) | ((val) & 0xff) }, \
{ 0, 5 },

Definition at line 131 of file board-trout-panel.c.

#define SPI_WRITE1 (   reg)
Value:
{ SSITX, (reg) & 0xff }, \
{ 0, 5 },

Definition at line 135 of file board-trout-panel.c.

#define SRST   (LCD_CONTROL_BLOCK_BASE|0x00)

Definition at line 66 of file board-trout-panel.c.

#define SSICTL   (SPI_BLOCK_BASE|0x00)

Definition at line 102 of file board-trout-panel.c.

#define SSIDBG1   (SPI_BLOCK_BASE|0x18)

Definition at line 108 of file board-trout-panel.c.

#define SSIDBG2   (SPI_BLOCK_BASE|0x1C)

Definition at line 109 of file board-trout-panel.c.

#define SSIID   (SPI_BLOCK_BASE|0x20)

Definition at line 110 of file board-trout-panel.c.

#define SSIINTC   (SPI_BLOCK_BASE|0x10)

Definition at line 106 of file board-trout-panel.c.

#define SSIINTS   (SPI_BLOCK_BASE|0x14)

Definition at line 107 of file board-trout-panel.c.

#define SSIRX   (SPI_BLOCK_BASE|0x0C)

Definition at line 105 of file board-trout-panel.c.

#define SSITIME   (SPI_BLOCK_BASE|0x04)

Definition at line 103 of file board-trout-panel.c.

#define SSITX   (SPI_BLOCK_BASE|0x08)

Definition at line 104 of file board-trout-panel.c.

#define START   (LCD_CONTROL_BLOCK_BASE|0x08)

Definition at line 68 of file board-trout-panel.c.

#define SYSCKENA   (MDDI_CLIENT_CORE_BASE|0x2C)

Definition at line 54 of file board-trout-panel.c.

#define SYSCLKENA   (MDDI_CLIENT_CORE_BASE|0x2C)

Definition at line 37 of file board-trout-panel.c.

#define SYSTEM_BLOCK1_BASE   0x160000

Definition at line 32 of file board-trout-panel.c.

#define SYSTEM_BLOCK2_BASE   0x170000

Definition at line 33 of file board-trout-panel.c.

#define TESTMODE   (MDDI_CLIENT_CORE_BASE|0x30)

Definition at line 55 of file board-trout-panel.c.

#define TROUT_DEFAULT_BACKLIGHT_BRIGHTNESS   255

Definition at line 24 of file board-trout-panel.c.

#define TTBUSSEL   (MDDI_CLIENT_CORE_BASE|0x18)

Definition at line 49 of file board-trout-panel.c.

#define V_VDDE2E_VDD2_GPIO   0

Definition at line 40 of file board-trout-panel.c.

#define VCYCLE   (LCD_CONTROL_BLOCK_BASE|0x44)

Definition at line 82 of file board-trout-panel.c.

#define VDE_SIZE   (LCD_CONTROL_BLOCK_BASE|0x50)

Definition at line 85 of file board-trout-panel.c.

#define VDE_START   (LCD_CONTROL_BLOCK_BASE|0x4C)

Definition at line 84 of file board-trout-panel.c.

#define VDE_TOP   (LCD_CONTROL_BLOCK_BASE|0x28)

Definition at line 76 of file board-trout-panel.c.

#define VSW   (LCD_CONTROL_BLOCK_BASE|0x48)

Definition at line 83 of file board-trout-panel.c.

#define VSYNIF   (LCD_CONTROL_BLOCK_BASE|0x60)

Definition at line 89 of file board-trout-panel.c.

#define WAKEUP   (LCD_CONTROL_BLOCK_BASE|0x54)

Definition at line 86 of file board-trout-panel.c.

#define WKREQ   (SYSTEM_BLOCK1_BASE|0x00)

Definition at line 112 of file board-trout-panel.c.

#define WRSTB   (LCD_CONTROL_BLOCK_BASE|0x64)

Definition at line 90 of file board-trout-panel.c.

#define WSYN_DLY   (LCD_CONTROL_BLOCK_BASE|0x58)

Definition at line 87 of file board-trout-panel.c.

Function Documentation

device_initcall ( trout_init_panel  )
int __init trout_init_panel ( void  )

Definition at line 255 of file board-trout-panel.c.

Variable Documentation

Initial value:
= {
.init = trout_mddi_toshiba_client_init,
.uninit = trout_mddi_toshiba_client_uninit,
.fb_data = {
.xres = 320,
.yres = 480,
.width = 45,
.height = 67,
.output_format = 0,
},
}

Definition at line 228 of file board-trout-panel.c.