Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
bfin-lq035q1-fb.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/fb.h>
#include <linux/gpio.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/interrupt.h>
#include <linux/device.h>
#include <linux/backlight.h>
#include <linux/lcd.h>
#include <linux/dma-mapping.h>
#include <linux/platform_device.h>
#include <linux/spi/spi.h>
#include <asm/blackfin.h>
#include <asm/irq.h>
#include <asm/dma.h>
#include <asm/portmux.h>
#include <asm/gptimers.h>
#include <asm/bfin-lq035q1.h>

Go to the source code of this file.

Data Structures

struct  bfin_lq035q1fb_info
 
struct  spi_control
 

Macros

#define DRIVER_NAME   "bfin-lq035q1"
 
#define pr_fmt(fmt)   DRIVER_NAME ": " fmt
 
#define TIMER_HSYNC_id   TIMER0_id
 
#define TIMER_HSYNCbit   TIMER0bit
 
#define TIMER_HSYNC_STATUS_TRUN   TIMER_STATUS_TRUN0
 
#define TIMER_HSYNC_STATUS_TIMIL   TIMER_STATUS_TIMIL0
 
#define TIMER_HSYNC_STATUS_TOVF   TIMER_STATUS_TOVF0
 
#define TIMER_VSYNC_id   TIMER1_id
 
#define TIMER_VSYNCbit   TIMER1bit
 
#define TIMER_VSYNC_STATUS_TRUN   TIMER_STATUS_TRUN1
 
#define TIMER_VSYNC_STATUS_TIMIL   TIMER_STATUS_TIMIL1
 
#define TIMER_VSYNC_STATUS_TOVF   TIMER_STATUS_TOVF1
 
#define LCD_X_RES   320 /* Horizontal Resolution */
 
#define LCD_Y_RES   240 /* Vertical Resolution */
 
#define DMA_BUS_SIZE   16
 
#define U_LINE   4 /* Blanking Lines */
 
#define BFIN_LCD_NBR_PALETTE_ENTRIES   256
 
#define PPI_TX_MODE   0x2
 
#define PPI_XFER_TYPE_11   0xC
 
#define PPI_PORT_CFG_01   0x10
 
#define PPI_POLS_1   0x8000
 
#define LQ035_INDEX   0x74
 
#define LQ035_DATA   0x76
 
#define LQ035_DRIVER_OUTPUT_CTL   0x1
 
#define LQ035_SHUT_CTL   0x11
 
#define LQ035_DRIVER_OUTPUT_MASK   (LQ035_LR | LQ035_TB | LQ035_BGR | LQ035_REV)
 
#define LQ035_DRIVER_OUTPUT_DEFAULT   (0x2AEF & ~LQ035_DRIVER_OUTPUT_MASK)
 
#define LQ035_SHUT   (1 << 0) /* Shutdown */
 
#define LQ035_ON   (0 << 0) /* Shutdown */
 
#define lq035q1_spidev_suspend   NULL
 
#define lq035q1_spidev_resume   NULL
 

Functions

 module_param (nocursor, int, 0644)
 
 MODULE_PARM_DESC (nocursor,"cursor enable/disable")
 
int bfin_lq035q1_fb_cursor (struct fb_info *info, struct fb_cursor *cursor)
 
 module_platform_driver (bfin_lq035q1_driver)
 
 MODULE_DESCRIPTION ("Blackfin TFT LCD Driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BFIN_LCD_NBR_PALETTE_ENTRIES   256

Definition at line 73 of file bfin-lq035q1-fb.c.

#define DMA_BUS_SIZE   16

Definition at line 64 of file bfin-lq035q1-fb.c.

#define DRIVER_NAME   "bfin-lq035q1"

Definition at line 8 of file bfin-lq035q1-fb.c.

#define LCD_X_RES   320 /* Horizontal Resolution */

Definition at line 62 of file bfin-lq035q1-fb.c.

#define LCD_Y_RES   240 /* Vertical Resolution */

Definition at line 63 of file bfin-lq035q1-fb.c.

#define LQ035_DATA   0x76

Definition at line 81 of file bfin-lq035q1-fb.c.

#define LQ035_DRIVER_OUTPUT_CTL   0x1

Definition at line 83 of file bfin-lq035q1-fb.c.

#define LQ035_DRIVER_OUTPUT_DEFAULT   (0x2AEF & ~LQ035_DRIVER_OUTPUT_MASK)

Definition at line 87 of file bfin-lq035q1-fb.c.

#define LQ035_DRIVER_OUTPUT_MASK   (LQ035_LR | LQ035_TB | LQ035_BGR | LQ035_REV)

Definition at line 86 of file bfin-lq035q1-fb.c.

#define LQ035_INDEX   0x74

Definition at line 80 of file bfin-lq035q1-fb.c.

#define LQ035_ON   (0 << 0) /* Shutdown */

Definition at line 90 of file bfin-lq035q1-fb.c.

#define LQ035_SHUT   (1 << 0) /* Shutdown */

Definition at line 89 of file bfin-lq035q1-fb.c.

#define LQ035_SHUT_CTL   0x11

Definition at line 84 of file bfin-lq035q1-fb.c.

#define lq035q1_spidev_resume   NULL

Definition at line 192 of file bfin-lq035q1-fb.c.

#define lq035q1_spidev_suspend   NULL

Definition at line 191 of file bfin-lq035q1-fb.c.

#define PPI_POLS_1   0x8000

Definition at line 78 of file bfin-lq035q1-fb.c.

#define PPI_PORT_CFG_01   0x10

Definition at line 77 of file bfin-lq035q1-fb.c.

#define PPI_TX_MODE   0x2

Definition at line 75 of file bfin-lq035q1-fb.c.

#define PPI_XFER_TYPE_11   0xC

Definition at line 76 of file bfin-lq035q1-fb.c.

#define pr_fmt (   fmt)    DRIVER_NAME ": " fmt

Definition at line 9 of file bfin-lq035q1-fb.c.

#define TIMER_HSYNC_id   TIMER0_id

Definition at line 49 of file bfin-lq035q1-fb.c.

#define TIMER_HSYNC_STATUS_TIMIL   TIMER_STATUS_TIMIL0

Definition at line 52 of file bfin-lq035q1-fb.c.

#define TIMER_HSYNC_STATUS_TOVF   TIMER_STATUS_TOVF0

Definition at line 53 of file bfin-lq035q1-fb.c.

#define TIMER_HSYNC_STATUS_TRUN   TIMER_STATUS_TRUN0

Definition at line 51 of file bfin-lq035q1-fb.c.

#define TIMER_HSYNCbit   TIMER0bit

Definition at line 50 of file bfin-lq035q1-fb.c.

#define TIMER_VSYNC_id   TIMER1_id

Definition at line 55 of file bfin-lq035q1-fb.c.

#define TIMER_VSYNC_STATUS_TIMIL   TIMER_STATUS_TIMIL1

Definition at line 58 of file bfin-lq035q1-fb.c.

#define TIMER_VSYNC_STATUS_TOVF   TIMER_STATUS_TOVF1

Definition at line 59 of file bfin-lq035q1-fb.c.

#define TIMER_VSYNC_STATUS_TRUN   TIMER_STATUS_TRUN1

Definition at line 57 of file bfin-lq035q1-fb.c.

#define TIMER_VSYNCbit   TIMER1bit

Definition at line 56 of file bfin-lq035q1-fb.c.

#define U_LINE   4 /* Blanking Lines */

Definition at line 65 of file bfin-lq035q1-fb.c.

Function Documentation

int bfin_lq035q1_fb_cursor ( struct fb_info info,
struct fb_cursor cursor 
)

Definition at line 483 of file bfin-lq035q1-fb.c.

MODULE_DESCRIPTION ( "Blackfin TFT LCD Driver"  )
MODULE_LICENSE ( "GPL"  )
module_param ( nocursor  ,
int  ,
0644   
)
MODULE_PARM_DESC ( nocursor  ,
"cursor enable/disable  
)
module_platform_driver ( bfin_lq035q1_driver  )