Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
sm501.h File Reference

Go to the source code of this file.

Data Structures

struct  sm501_platdata_fbsub
 
struct  sm501_platdata_fb
 
struct  sm501_platdata_gpio_i2c
 
struct  sm501_reg_init
 
struct  sm501_initdata
 
struct  sm501_init_gpio
 
struct  sm501_platdata
 

Macros

#define SM501FB_FLAG_USE_INIT_MODE   (1<<0)
 
#define SM501FB_FLAG_DISABLE_AT_EXIT   (1<<1)
 
#define SM501FB_FLAG_USE_HWCURSOR   (1<<2)
 
#define SM501FB_FLAG_USE_HWACCEL   (1<<3)
 
#define SM501FB_FLAG_PANEL_NO_FPEN   (1<<4)
 
#define SM501FB_FLAG_PANEL_NO_VBIASEN   (1<<5)
 
#define SM501FB_FLAG_PANEL_INV_FPEN   (1<<6)
 
#define SM501FB_FLAG_PANEL_INV_VBIASEN   (1<<7)
 
#define SM501_FBPD_SWAP_FB_ENDIAN   (1<<0) /* need to endian swap */
 
#define SM501_USE_USB_HOST   (1<<0)
 
#define SM501_USE_USB_SLAVE   (1<<1)
 
#define SM501_USE_SSP0   (1<<2)
 
#define SM501_USE_SSP1   (1<<3)
 
#define SM501_USE_UART0   (1<<4)
 
#define SM501_USE_UART1   (1<<5)
 
#define SM501_USE_FBACCEL   (1<<6)
 
#define SM501_USE_AC97   (1<<7)
 
#define SM501_USE_I2S   (1<<8)
 
#define SM501_USE_GPIO   (1<<9)
 
#define SM501_USE_ALL   (0xffffffff)
 
#define SM501_FLAG_SUSPEND_OFF   (1<<4)
 
#define smc501_readl(addr)   readl(addr)
 
#define smc501_writel(val, addr)   writel(val, addr)
 

Enumerations

enum  sm501_fb_routing { SM501_FB_OWN = 0, SM501_FB_CRT_PANEL = 1 }
 

Functions

int sm501_unit_power (struct device *dev, unsigned int unit, unsigned int to)
 
unsigned long sm501_set_clock (struct device *dev, int clksrc, unsigned long freq)
 
unsigned long sm501_find_clock (struct device *dev, int clksrc, unsigned long req_freq)
 
int sm501_misc_control (struct device *dev, unsigned long set, unsigned long clear)
 
unsigned long sm501_modify_reg (struct device *dev, unsigned long reg, unsigned long set, unsigned long clear)
 

Macro Definition Documentation

#define SM501_FBPD_SWAP_FB_ENDIAN   (1<<0) /* need to endian swap */

Definition at line 75 of file sm501.h.

#define SM501_FLAG_SUSPEND_OFF   (1<<4)

Definition at line 151 of file sm501.h.

#define SM501_USE_AC97   (1<<7)

Definition at line 122 of file sm501.h.

#define SM501_USE_ALL   (0xffffffff)

Definition at line 126 of file sm501.h.

#define SM501_USE_FBACCEL   (1<<6)

Definition at line 121 of file sm501.h.

#define SM501_USE_GPIO   (1<<9)

Definition at line 124 of file sm501.h.

#define SM501_USE_I2S   (1<<8)

Definition at line 123 of file sm501.h.

#define SM501_USE_SSP0   (1<<2)

Definition at line 117 of file sm501.h.

#define SM501_USE_SSP1   (1<<3)

Definition at line 118 of file sm501.h.

#define SM501_USE_UART0   (1<<4)

Definition at line 119 of file sm501.h.

#define SM501_USE_UART1   (1<<5)

Definition at line 120 of file sm501.h.

#define SM501_USE_USB_HOST   (1<<0)

Definition at line 115 of file sm501.h.

#define SM501_USE_USB_SLAVE   (1<<1)

Definition at line 116 of file sm501.h.

#define SM501FB_FLAG_DISABLE_AT_EXIT   (1<<1)

Definition at line 53 of file sm501.h.

#define SM501FB_FLAG_PANEL_INV_FPEN   (1<<6)

Definition at line 58 of file sm501.h.

#define SM501FB_FLAG_PANEL_INV_VBIASEN   (1<<7)

Definition at line 59 of file sm501.h.

#define SM501FB_FLAG_PANEL_NO_FPEN   (1<<4)

Definition at line 56 of file sm501.h.

#define SM501FB_FLAG_PANEL_NO_VBIASEN   (1<<5)

Definition at line 57 of file sm501.h.

#define SM501FB_FLAG_USE_HWACCEL   (1<<3)

Definition at line 55 of file sm501.h.

#define SM501FB_FLAG_USE_HWCURSOR   (1<<2)

Definition at line 54 of file sm501.h.

#define SM501FB_FLAG_USE_INIT_MODE   (1<<0)

Definition at line 52 of file sm501.h.

#define smc501_readl (   addr)    readl(addr)

Definition at line 180 of file sm501.h.

#define smc501_writel (   val,
  addr 
)    writel(val, addr)

Definition at line 181 of file sm501.h.

Enumeration Type Documentation

Enumerator:
SM501_FB_OWN 
SM501_FB_CRT_PANEL 

Definition at line 68 of file sm501.h.

Function Documentation

unsigned long sm501_find_clock ( struct device dev,
int  clksrc,
unsigned long  req_freq 
)

Definition at line 640 of file sm501.c.

int sm501_misc_control ( struct device dev,
unsigned long  set,
unsigned long  clear 
)

Definition at line 254 of file sm501.c.

unsigned long sm501_modify_reg ( struct device dev,
unsigned long  reg,
unsigned long  set,
unsigned long  clear 
)

Definition at line 286 of file sm501.c.

unsigned long sm501_set_clock ( struct device dev,
int  clksrc,
unsigned long  freq 
)

Definition at line 509 of file sm501.c.

int sm501_unit_power ( struct device dev,
unsigned int  unit,
unsigned int  to 
)

Definition at line 316 of file sm501.c.