Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

iomux.c File Reference


Detailed Description

I/O Muxing control functions.

Definition in file iomux.c.

#include <linux/io.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <mach/hardware.h>
#include <mach/gpio.h>
#include <mach/irqs.h>
#include "iomux.h"

Go to the source code of this file.

Defines

#define IOMUXGPR0   (IO_ADDRESS(IOMUXC_BASE_ADDR))
#define IOMUXGPR1   (IO_ADDRESS(IOMUXC_BASE_ADDR) + 0x004)
#define IOMUXSW_INPUT_CTL   (IO_ADDRESS(IOMUXC_BASE_ADDR))
#define IOMUXSW_MUX_CTL   (IO_ADDRESS(IOMUXC_BASE_ADDR))
#define IOMUXSW_MUX_END   (IO_ADDRESS(IOMUXC_BASE_ADDR) + MUX_I_END)
#define IOMUXSW_PAD_CTL   (IO_ADDRESS(IOMUXC_BASE_ADDR) + PAD_I_START)
#define MUX_PIN_NUM_MAX   ((MUX_I_END >> 2) + 1)

Functions

static void * _get_mux_end (void)
static void * _get_mux_reg (iomux_pin_name_t pin)
static void * _get_pad_reg (iomux_pin_name_t pin)
static DEFINE_SPINLOCK (gpio_mux_lock)
 EXPORT_SYMBOL (mxc_iomux_set_input)
 EXPORT_SYMBOL (mxc_iomux_get_pad)
 EXPORT_SYMBOL (mxc_iomux_set_pad)
 EXPORT_SYMBOL (mxc_free_iomux)
 EXPORT_SYMBOL (mxc_request_iomux)
static int iomux_config_mux (iomux_pin_name_t pin, iomux_pin_cfg_t config)
void mxc_free_iomux (iomux_pin_name_t pin, iomux_pin_cfg_t config)
unsigned int mxc_iomux_get_pad (iomux_pin_name_t pin)
void mxc_iomux_set_input (iomux_input_select_t input, u32 config)
void mxc_iomux_set_pad (iomux_pin_name_t pin, u32 config)
int mxc_request_iomux (iomux_pin_name_t pin, iomux_pin_cfg_t config)

Variables

static u8 iomux_pin_res_table [MUX_PIN_NUM_MAX]


Generated by  Doxygen 1.6.0   Back to index