Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
iomux-imx31.c File Reference
#include <linux/gpio.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <mach/hardware.h>
#include <mach/iomux-mx3.h>

Go to the source code of this file.

Macros

#define IOMUX_BASE   MX31_IO_ADDRESS(MX31_IOMUXC_BASE_ADDR)
 
#define IOMUXINT_OBS1   (IOMUX_BASE + 0x000)
 
#define IOMUXINT_OBS2   (IOMUX_BASE + 0x004)
 
#define IOMUXGPR   (IOMUX_BASE + 0x008)
 
#define IOMUXSW_MUX_CTL   (IOMUX_BASE + 0x00C)
 
#define IOMUXSW_PAD_CTL   (IOMUX_BASE + 0x154)
 
#define IOMUX_REG_MASK   (IOMUX_PADNUM_MASK & ~0x3)
 

Functions

int mxc_iomux_mode (unsigned int pin_mode)
 
 EXPORT_SYMBOL (mxc_iomux_mode)
 
void mxc_iomux_set_pad (enum iomux_pins pin, u32 config)
 
 EXPORT_SYMBOL (mxc_iomux_set_pad)
 
int mxc_iomux_alloc_pin (unsigned int pin, const char *label)
 
 EXPORT_SYMBOL (mxc_iomux_alloc_pin)
 
int mxc_iomux_setup_multiple_pins (const unsigned int *pin_list, unsigned count, const char *label)
 
 EXPORT_SYMBOL (mxc_iomux_setup_multiple_pins)
 
void mxc_iomux_release_pin (unsigned int pin)
 
 EXPORT_SYMBOL (mxc_iomux_release_pin)
 
void mxc_iomux_release_multiple_pins (const unsigned int *pin_list, int count)
 
 EXPORT_SYMBOL (mxc_iomux_release_multiple_pins)
 
void mxc_iomux_set_gpr (enum iomux_gp_func gp, bool en)
 
 EXPORT_SYMBOL (mxc_iomux_set_gpr)
 

Variables

unsigned long mxc_pin_alloc_map [NB_PORTS *32/BITS_PER_LONG]
 

Macro Definition Documentation

#define IOMUX_BASE   MX31_IO_ADDRESS(MX31_IOMUXC_BASE_ADDR)

Definition at line 31 of file iomux-imx31.c.

#define IOMUX_REG_MASK   (IOMUX_PADNUM_MASK & ~0x3)

Definition at line 40 of file iomux-imx31.c.

#define IOMUXGPR   (IOMUX_BASE + 0x008)

Definition at line 34 of file iomux-imx31.c.

#define IOMUXINT_OBS1   (IOMUX_BASE + 0x000)

Definition at line 32 of file iomux-imx31.c.

#define IOMUXINT_OBS2   (IOMUX_BASE + 0x004)

Definition at line 33 of file iomux-imx31.c.

#define IOMUXSW_MUX_CTL   (IOMUX_BASE + 0x00C)

Definition at line 35 of file iomux-imx31.c.

#define IOMUXSW_PAD_CTL   (IOMUX_BASE + 0x154)

Definition at line 36 of file iomux-imx31.c.

Function Documentation

EXPORT_SYMBOL ( mxc_iomux_mode  )
EXPORT_SYMBOL ( mxc_iomux_set_pad  )
EXPORT_SYMBOL ( mxc_iomux_alloc_pin  )
EXPORT_SYMBOL ( mxc_iomux_setup_multiple_pins  )
EXPORT_SYMBOL ( mxc_iomux_release_pin  )
EXPORT_SYMBOL ( mxc_iomux_release_multiple_pins  )
EXPORT_SYMBOL ( mxc_iomux_set_gpr  )
int mxc_iomux_alloc_pin ( unsigned int  pin,
const char label 
)

Definition at line 99 of file iomux-imx31.c.

int mxc_iomux_mode ( unsigned int  pin_mode)

Definition at line 46 of file iomux-imx31.c.

void mxc_iomux_release_multiple_pins ( const unsigned int pin_list,
int  count 
)

Definition at line 150 of file iomux-imx31.c.

void mxc_iomux_release_pin ( unsigned int  pin)

Definition at line 141 of file iomux-imx31.c.

void mxc_iomux_set_gpr ( enum iomux_gp_func  gp,
bool  en 
)

Definition at line 166 of file iomux-imx31.c.

void mxc_iomux_set_pad ( enum iomux_pins  pin,
u32  config 
)

Definition at line 71 of file iomux-imx31.c.

int mxc_iomux_setup_multiple_pins ( const unsigned int pin_list,
unsigned  count,
const char label 
)

Definition at line 120 of file iomux-imx31.c.

Variable Documentation

unsigned long mxc_pin_alloc_map[NB_PORTS *32/BITS_PER_LONG]

Definition at line 42 of file iomux-imx31.c.