Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tdo24m.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/spi/spi.h>
#include <linux/spi/tdo24m.h>
#include <linux/fb.h>
#include <linux/lcd.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  tdo24m
 

Macros

#define POWER_IS_ON(pwr)   ((pwr) <= FB_BLANK_NORMAL)
 
#define TDO24M_SPI_BUFF_SIZE   (4)
 
#define MODE_QVGA   0
 
#define MODE_VGA   1
 
#define CMD0(x)   ((0 << 30) | (x))
 
#define CMD1(x, x1)   ((1 << 30) | ((x) << 9) | 0x100 | (x1))
 
#define CMD2(x, x1, x2)
 
#define CMD_NULL   (-1)
 
#define tdo24m_suspend   NULL
 
#define tdo24m_resume   NULL
 

Functions

 module_spi_driver (tdo24m_driver)
 
 MODULE_AUTHOR ("Eric Miao <[email protected]>")
 
 MODULE_DESCRIPTION ("Driver for Toppoly TDO24M LCD Panel")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("spi:tdo24m")
 

Macro Definition Documentation

#define CMD0 (   x)    ((0 << 30) | (x))

Definition at line 44 of file tdo24m.c.

#define CMD1 (   x,
  x1 
)    ((1 << 30) | ((x) << 9) | 0x100 | (x1))

Definition at line 45 of file tdo24m.c.

#define CMD2 (   x,
  x1,
  x2 
)
Value:
((2 << 30) | ((x) << 18) | 0x20000 |\
((x1) << 9) | 0x100 | (x2))

Definition at line 46 of file tdo24m.c.

#define CMD_NULL   (-1)

Definition at line 48 of file tdo24m.c.

#define MODE_QVGA   0

Definition at line 25 of file tdo24m.c.

#define MODE_VGA   1

Definition at line 26 of file tdo24m.c.

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

Definition at line 22 of file tdo24m.c.

#define tdo24m_resume   NULL

Definition at line 430 of file tdo24m.c.

#define TDO24M_SPI_BUFF_SIZE   (4)

Definition at line 24 of file tdo24m.c.

#define tdo24m_suspend   NULL

Definition at line 429 of file tdo24m.c.

Function Documentation

MODULE_ALIAS ( "spi:tdo24m"  )
MODULE_AUTHOR ( "Eric Miao <[email protected]>"  )
MODULE_DESCRIPTION ( "Driver for Toppoly TDO24M LCD Panel"  )
MODULE_LICENSE ( "GPL"  )
module_spi_driver ( tdo24m_driver  )