Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tosa_lcd.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/spi/spi.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/gpio.h>
#include <linux/delay.h>
#include <linux/lcd.h>
#include <linux/fb.h>
#include <asm/mach/sharpsl_param.h>
#include <mach/tosa.h>

Go to the source code of this file.

Data Structures

struct  tosa_lcd_data
 

Macros

#define POWER_IS_ON(pwr)   ((pwr) <= FB_BLANK_NORMAL)
 
#define TG_REG0_VQV   0x0001
 
#define TG_REG0_COLOR   0x0002
 
#define TG_REG0_UD   0x0004
 
#define TG_REG0_LR   0x0008
 
#define DAC_BASE   0x4e
 
#define tosa_lcd_suspend   NULL
 
#define tosa_lcd_resume   NULL
 

Functions

int tosa_bl_enable (struct spi_device *spi, int enable)
 
 EXPORT_SYMBOL (tosa_bl_enable)
 
int tosa_lcd_set_power (struct lcd_device *lcd, int power)
 
 module_spi_driver (tosa_lcd_driver)
 
 MODULE_AUTHOR ("Dmitry Baryshkov")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_DESCRIPTION ("LCD/Backlight control for Sharp SL-6000 PDA")
 
 MODULE_ALIAS ("spi:tosa-lcd")
 

Macro Definition Documentation

#define DAC_BASE   0x4e

Definition at line 35 of file tosa_lcd.c.

#define POWER_IS_ON (   pwr)    ((pwr) <= FB_BLANK_NORMAL)

Definition at line 28 of file tosa_lcd.c.

#define TG_REG0_COLOR   0x0002

Definition at line 31 of file tosa_lcd.c.

#define TG_REG0_LR   0x0008

Definition at line 33 of file tosa_lcd.c.

#define TG_REG0_UD   0x0004

Definition at line 32 of file tosa_lcd.c.

#define TG_REG0_VQV   0x0001

Definition at line 30 of file tosa_lcd.c.

#define tosa_lcd_resume   NULL

Definition at line 269 of file tosa_lcd.c.

#define tosa_lcd_suspend   NULL

Definition at line 268 of file tosa_lcd.c.

Function Documentation

EXPORT_SYMBOL ( tosa_bl_enable  )
MODULE_ALIAS ( "spi:tosa-lcd )
MODULE_AUTHOR ( "Dmitry Baryshkov"  )
MODULE_DESCRIPTION ( "LCD/Backlight control for Sharp SL-6000 PDA"  )
MODULE_LICENSE ( "GPL v2 )
module_spi_driver ( tosa_lcd_driver  )
int tosa_bl_enable ( struct spi_device spi,
int  enable 
)

Definition at line 63 of file tosa_lcd.c.

int tosa_lcd_set_power ( struct lcd_device lcd,
int  power 
)

Definition at line 130 of file tosa_lcd.c.