Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mcu_mpc8349emitx.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/mutex.h>
#include <linux/i2c.h>
#include <linux/gpio.h>
#include <linux/of.h>
#include <linux/of_gpio.h>
#include <linux/slab.h>
#include <linux/kthread.h>
#include <linux/reboot.h>
#include <asm/prom.h>
#include <asm/machdep.h>

Go to the source code of this file.

Data Structures

struct  mcu
 

Macros

#define MCU_REG_CTRL   0x20
 
#define MCU_CTRL_POFF   0x40
 
#define MCU_CTRL_BTN   0x80
 
#define MCU_NUM_GPIO   2
 

Functions

 MODULE_DEVICE_TABLE (i2c, mcu_ids)
 
 module_init (mcu_init)
 
 module_exit (mcu_exit)
 
 MODULE_DESCRIPTION ("Power Management and GPIO expander driver for ""MPC8349E-mITX-compatible MCU")
 
 MODULE_AUTHOR ("Anton Vorontsov <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct task_structshutdown_thread
 

Macro Definition Documentation

#define MCU_CTRL_BTN   0x80

Definition at line 35 of file mcu_mpc8349emitx.c.

#define MCU_CTRL_POFF   0x40

Definition at line 34 of file mcu_mpc8349emitx.c.

#define MCU_NUM_GPIO   2

Definition at line 37 of file mcu_mpc8349emitx.c.

#define MCU_REG_CTRL   0x20

Definition at line 33 of file mcu_mpc8349emitx.c.

Function Documentation

MODULE_AUTHOR ( "Anton Vorontsov <[email protected]>"  )
MODULE_DESCRIPTION ( "Power Management and GPIO expander driver for ""MPC8349E-mITX-compatible MCU )
MODULE_DEVICE_TABLE ( i2c  ,
mcu_ids   
)
module_exit ( mcu_exit  )
module_init ( mcu_init  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

struct task_struct* shutdown_thread

Definition at line 48 of file mcu_mpc8349emitx.c.