Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
bfin-t350mcqb-fb.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/gfp.h>
#include <linux/fb.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 <asm/blackfin.h>
#include <asm/irq.h>
#include <asm/dma-mapping.h>
#include <asm/dma.h>
#include <asm/portmux.h>
#include <asm/gptimers.h>

Go to the source code of this file.

Data Structures

struct  bfin_t350mcqbfb_info
 

Macros

#define NO_BL_SUPPORT
 
#define LCD_X_RES   320 /* Horizontal Resolution */
 
#define LCD_Y_RES   240 /* Vertical Resolution */
 
#define LCD_BPP   24 /* Bit Per Pixel */
 
#define DMA_BUS_SIZE   16
 
#define LCD_CLK   (12*1000*1000) /* 12MHz */
 
#define CLOCKS_PER_PIX   3
 
#define U_LINE   1 /* Blanking Lines */
 
#define H_ACTPIX   (LCD_X_RES * CLOCKS_PER_PIX) /* active horizontal pixel */
 
#define H_PERIOD   (408 * CLOCKS_PER_PIX) /* HS period */
 
#define H_PULSE   90 /* HS pulse width */
 
#define H_START   204 /* first valid pixel */
 
#define V_LINES   (LCD_Y_RES + U_LINE) /* total vertical lines */
 
#define V_PULSE   (3 * H_PERIOD) /* VS pulse width (1-5 H_PERIODs) */
 
#define V_PERIOD   (H_PERIOD * V_LINES) /* VS period */
 
#define ACTIVE_VIDEO_MEM_OFFSET   (U_LINE * H_ACTPIX)
 
#define BFIN_LCD_NBR_PALETTE_ENTRIES   256
 
#define DRIVER_NAME   "bfin-t350mcqb"
 
#define PPI_TX_MODE   0x2
 
#define PPI_XFER_TYPE_11   0xC
 
#define PPI_PORT_CFG_01   0x10
 
#define PPI_PACK_EN   0x80
 
#define PPI_POLS_1   0x8000
 
#define bfin_t350mcqb_suspend   NULL
 
#define bfin_t350mcqb_resume   NULL
 

Functions

 module_param (nocursor, int, 0644)
 
 MODULE_PARM_DESC (nocursor,"cursor enable/disable")
 
int bfin_t350mcqb_fb_cursor (struct fb_info *info, struct fb_cursor *cursor)
 
 MODULE_DESCRIPTION ("Blackfin TFT LCD Driver")
 
 MODULE_LICENSE ("GPL")
 
 module_init (bfin_t350mcqb_driver_init)
 
 module_exit (bfin_t350mcqb_driver_cleanup)
 

Macro Definition Documentation

#define ACTIVE_VIDEO_MEM_OFFSET   (U_LINE * H_ACTPIX)

Definition at line 79 of file bfin-t350mcqb-fb.c.

#define BFIN_LCD_NBR_PALETTE_ENTRIES   256

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

#define bfin_t350mcqb_resume   NULL

Definition at line 656 of file bfin-t350mcqb-fb.c.

#define bfin_t350mcqb_suspend   NULL

Definition at line 655 of file bfin-t350mcqb-fb.c.

#define CLOCKS_PER_PIX   3

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

#define DMA_BUS_SIZE   16

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

#define DRIVER_NAME   "bfin-t350mcqb"

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

#define H_ACTPIX   (LCD_X_RES * CLOCKS_PER_PIX) /* active horizontal pixel */

Definition at line 70 of file bfin-t350mcqb-fb.c.

#define H_PERIOD   (408 * CLOCKS_PER_PIX) /* HS period */

Definition at line 71 of file bfin-t350mcqb-fb.c.

#define H_PULSE   90 /* HS pulse width */

Definition at line 72 of file bfin-t350mcqb-fb.c.

#define H_START   204 /* first valid pixel */

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

#define LCD_BPP   24 /* Bit Per Pixel */

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

#define LCD_CLK   (12*1000*1000) /* 12MHz */

Definition at line 60 of file bfin-t350mcqb-fb.c.

#define LCD_X_RES   320 /* Horizontal Resolution */

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

#define LCD_Y_RES   240 /* Vertical Resolution */

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

#define NO_BL_SUPPORT

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

#define PPI_PACK_EN   0x80

Definition at line 104 of file bfin-t350mcqb-fb.c.

#define PPI_POLS_1   0x8000

Definition at line 105 of file bfin-t350mcqb-fb.c.

#define PPI_PORT_CFG_01   0x10

Definition at line 103 of file bfin-t350mcqb-fb.c.

#define PPI_TX_MODE   0x2

Definition at line 101 of file bfin-t350mcqb-fb.c.

#define PPI_XFER_TYPE_11   0xC

Definition at line 102 of file bfin-t350mcqb-fb.c.

#define U_LINE   1 /* Blanking Lines */

Definition at line 68 of file bfin-t350mcqb-fb.c.

#define V_LINES   (LCD_Y_RES + U_LINE) /* total vertical lines */

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

#define V_PERIOD   (H_PERIOD * V_LINES) /* VS period */

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

#define V_PULSE   (3 * H_PERIOD) /* VS pulse width (1-5 H_PERIODs) */

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

Function Documentation

int bfin_t350mcqb_fb_cursor ( struct fb_info info,
struct fb_cursor cursor 
)

Definition at line 295 of file bfin-t350mcqb-fb.c.

MODULE_DESCRIPTION ( "Blackfin TFT LCD Driver"  )
module_exit ( bfin_t350mcqb_driver_cleanup  )
module_init ( bfin_t350mcqb_driver_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( nocursor  ,
int  ,
0644   
)
MODULE_PARM_DESC ( nocursor  ,
"cursor enable/disable  
)