Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
mioa701.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/syscore_ops.h>
#include <linux/input.h>
#include <linux/delay.h>
#include <linux/gpio_keys.h>
#include <linux/pwm_backlight.h>
#include <linux/rtc.h>
#include <linux/leds.h>
#include <linux/gpio.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/pda_power.h>
#include <linux/power_supply.h>
#include <linux/wm97xx.h>
#include <linux/mtd/physmap.h>
#include <linux/usb/gpio_vbus.h>
#include <linux/regulator/max1586.h>
#include <linux/slab.h>
#include <linux/i2c/pxa-i2c.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <mach/pxa27x.h>
#include <mach/regs-rtc.h>
#include <linux/platform_data/keypad-pxa27x.h>
#include <linux/platform_data/video-pxafb.h>
#include <linux/platform_data/mmc-pxamci.h>
#include <mach/udc.h>
#include <mach/pxa27x-udc.h>
#include <linux/platform_data/camera-pxa.h>
#include <mach/audio.h>
#include <mach/smemc.h>
#include <media/soc_camera.h>
#include <mach/mioa701.h>
#include "generic.h"
#include "devices.h"

Go to the source code of this file.

Macros

#define MIO_KEY(key, _gpio, _desc, _wakeup)
 
#define ONE_LED(_gpio, _name)   { .gpio = (_gpio), .name = (_name), .active_low = true }
 
#define RESUME_ENABLE_ADDR   0xa020b000
 
#define RESUME_ENABLE_VAL   0x0f0f0f0f
 
#define RESUME_BT_ADDR   0xa020b020
 
#define RESUME_UNKNOWN_ADDR   0xa020b024
 
#define RESUME_VECTOR_ADDR   0xa0100000
 
#define BOOTSTRAP_WORDS   mioa701_bootstrap_lg/4
 
#define MIO_PARENT_DEV(var, strname, tparent, pdata)
 
#define MIO_SIMPLE_DEV(var, strname, pdata)   MIO_PARENT_DEV(var, strname, NULL, pdata)
 

Functions

irqreturn_t gsm_on_irq (int irq, void *p)
 
 MIO_PARENT_DEV (mioa701_backlight,"pwm-backlight",&pxa27x_device_pwm0.dev,&mioa701_backlight_data)
 
 MIO_SIMPLE_DEV (gpio_vbus,"gpio-vbus",&gpio_vbus_data)
 
 MIO_SIMPLE_DEV (mioa701_camera,"soc-camera-pdrv",&iclink)
 

Variables

struct gpio_vbus_mach_info gpio_vbus_data
 
struct pxacamera_platform_data mioa701_pxacamera_platform_data
 
struct i2c_pxa_platform_data i2c_pdata
 
 atag_offset = 0x100
 
 restart_mode = 's'
 
 map_io = &pxa27x_map_io
 
 nr_irqs = PXA_NR_IRQS
 
 init_irq = &pxa27x_init_irq
 
 handle_irq = &pxa27x_handle_irq
 
 init_machine = mioa701_machine_init
 
 timer = &pxa_timer
 
 restart = mioa701_restart
 

Macro Definition Documentation

#define BOOTSTRAP_WORDS   mioa701_bootstrap_lg/4

Definition at line 429 of file mioa701.c.

#define MIO_KEY (   key,
  _gpio,
  _desc,
  _wakeup 
)
Value:
{ .code = (key), .gpio = (_gpio), .active_low = 0, \
.desc = (_desc), .type = EV_KEY, .wakeup = (_wakeup) }

Definition at line 246 of file mioa701.c.

#define MIO_PARENT_DEV (   var,
  strname,
  tparent,
  pdata 
)
Value:
static struct platform_device var = { \
.name = strname, \
.id = -1, \
.dev = { \
.platform_data = pdata, \
.parent = tparent, \
}, \
};

Definition at line 654 of file mioa701.c.

#define MIO_SIMPLE_DEV (   var,
  strname,
  pdata 
)    MIO_PARENT_DEV(var, strname, NULL, pdata)

Definition at line 663 of file mioa701.c.

#define ONE_LED (   _gpio,
  _name 
)    { .gpio = (_gpio), .name = (_name), .active_low = true }

Definition at line 264 of file mioa701.c.

#define RESUME_BT_ADDR   0xa020b020

Definition at line 426 of file mioa701.c.

#define RESUME_ENABLE_ADDR   0xa020b000

Definition at line 424 of file mioa701.c.

#define RESUME_ENABLE_VAL   0x0f0f0f0f

Definition at line 425 of file mioa701.c.

#define RESUME_UNKNOWN_ADDR   0xa020b024

Definition at line 427 of file mioa701.c.

#define RESUME_VECTOR_ADDR   0xa0100000

Definition at line 428 of file mioa701.c.

Function Documentation

irqreturn_t gsm_on_irq ( int  irq,
void p 
)

Definition at line 300 of file mioa701.c.

MIO_PARENT_DEV ( mioa701_backlight  ,
"pwm-backlight"  ,
&pxa27x_device_pwm0.  dev,
mioa701_backlight_data 
)
MIO_SIMPLE_DEV ( gpio_vbus  ,
"gpio-vbus"  ,
gpio_vbus_data 
)
MIO_SIMPLE_DEV ( mioa701_camera  ,
"soc-camera-pdrv"  ,
iclink 
)

Variable Documentation

atag_offset = 0x100

Definition at line 758 of file mioa701.c.

Initial value:
= {
.gpio_vbus = GPIO13_nUSB_DETECT,
.gpio_vbus_inverted = 1,
.gpio_pullup = -1,
}

Definition at line 373 of file mioa701.c.

handle_irq = &pxa27x_handle_irq

Definition at line 763 of file mioa701.c.

Initial value:
= {
.fast_mode = 1,
}

Definition at line 640 of file mioa701.c.

init_irq = &pxa27x_init_irq

Definition at line 762 of file mioa701.c.

init_machine = mioa701_machine_init

Definition at line 764 of file mioa701.c.

map_io = &pxa27x_map_io

Definition at line 760 of file mioa701.c.

struct pxacamera_platform_data mioa701_pxacamera_platform_data
Initial value:

Definition at line 614 of file mioa701.c.

nr_irqs = PXA_NR_IRQS

Definition at line 761 of file mioa701.c.

restart = mioa701_restart

Definition at line 766 of file mioa701.c.

restart_mode = 's'

Definition at line 759 of file mioa701.c.

Definition at line 765 of file mioa701.c.