Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
board-qi_lb60.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/gpio.h>
#include <linux/input.h>
#include <linux/gpio_keys.h>
#include <linux/input/matrix_keypad.h>
#include <linux/spi/spi.h>
#include <linux/spi/spi_gpio.h>
#include <linux/power_supply.h>
#include <linux/power/jz4740-battery.h>
#include <linux/power/gpio-charger.h>
#include <asm/mach-jz4740/jz4740_fb.h>
#include <asm/mach-jz4740/jz4740_mmc.h>
#include <asm/mach-jz4740/jz4740_nand.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>
#include <linux/leds_pwm.h>
#include <asm/mach-jz4740/platform.h>
#include "clock.h"

Go to the source code of this file.

Macros

#define QI_LB60_GPIO_SD_CD   JZ_GPIO_PORTD(0)
 
#define QI_LB60_GPIO_SD_VCC_EN_N   JZ_GPIO_PORTD(2)
 
#define QI_LB60_GPIO_KEYOUT(x)   (JZ_GPIO_PORTC(10) + (x))
 
#define QI_LB60_GPIO_KEYIN(x)   (JZ_GPIO_PORTD(18) + (x))
 
#define QI_LB60_GPIO_KEYIN8   JZ_GPIO_PORTD(26)
 
#define KEY_QI_QI   KEY_F13
 
#define KEY_QI_UPRED   KEY_RIGHTALT
 
#define KEY_QI_VOLUP   KEY_VOLUMEUP
 
#define KEY_QI_VOLDOWN   KEY_VOLUMEDOWN
 
#define KEY_QI_FN   KEY_LEFTCTRL
 

Functions

 __setup ("avt2", board_avt2)
 
 arch_initcall (qi_lb60_board_setup)
 

Variables

struct spi_gpio_platform_data spigpio_platform_data
 
struct jz4740_clock_board_data jz4740_clock_bdata
 

Macro Definition Documentation

#define KEY_QI_FN   KEY_LEFTCTRL

Definition at line 152 of file board-qi_lb60.c.

#define KEY_QI_QI   KEY_F13

Definition at line 148 of file board-qi_lb60.c.

#define KEY_QI_UPRED   KEY_RIGHTALT

Definition at line 149 of file board-qi_lb60.c.

#define KEY_QI_VOLDOWN   KEY_VOLUMEDOWN

Definition at line 151 of file board-qi_lb60.c.

#define KEY_QI_VOLUP   KEY_VOLUMEUP

Definition at line 150 of file board-qi_lb60.c.

#define QI_LB60_GPIO_KEYIN (   x)    (JZ_GPIO_PORTD(18) + (x))

Definition at line 48 of file board-qi_lb60.c.

#define QI_LB60_GPIO_KEYIN8   JZ_GPIO_PORTD(26)

Definition at line 49 of file board-qi_lb60.c.

#define QI_LB60_GPIO_KEYOUT (   x)    (JZ_GPIO_PORTC(10) + (x))

Definition at line 47 of file board-qi_lb60.c.

#define QI_LB60_GPIO_SD_CD   JZ_GPIO_PORTD(0)

Definition at line 44 of file board-qi_lb60.c.

#define QI_LB60_GPIO_SD_VCC_EN_N   JZ_GPIO_PORTD(2)

Definition at line 45 of file board-qi_lb60.c.

Function Documentation

__setup ( "avt2"  ,
board_avt2   
)
arch_initcall ( qi_lb60_board_setup  )

Variable Documentation

struct jz4740_clock_board_data jz4740_clock_bdata
Initial value:
= {
.ext_rate = 12000000,
.rtc_rate = 32768,
}

Definition at line 477 of file board-qi_lb60.c.

struct spi_gpio_platform_data spigpio_platform_data
Initial value:
= {
.sck = JZ_GPIO_PORTC(23),
.mosi = JZ_GPIO_PORTC(22),
.miso = -1,
.num_chipselect = 1,
}

Definition at line 292 of file board-qi_lb60.c.