Logo Search packages:      
Sourcecode: linux version File versions

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 "iomux.h"

Go to the source code of this file.

Defines

#define MUX_PIN_NUM_MAX   ((MUX_I_END >> 2) + 1)

Enumerations

enum  iomux_reg_addr {
  IOMUXGPR0 = IO_ADDRESS(IOMUXC_BASE_ADDR), IOMUXGPR1 = IO_ADDRESS(IOMUXC_BASE_ADDR) + 0x004, IOMUXSW_MUX_CTL = IO_ADDRESS(IOMUXC_BASE_ADDR), IOMUXSW_MUX_END = IO_ADDRESS(IOMUXC_BASE_ADDR) + MUX_I_END,
  IOMUXSW_PAD_CTL = IO_ADDRESS(IOMUXC_BASE_ADDR) + PAD_I_START, IOMUXSW_INPUT_CTL = IO_ADDRESS(IOMUXC_BASE_ADDR)
}

Functions

static u32 _get_mux_end (void)
static u32 _get_mux_reg (iomux_pin_name_t pin)
static u32 _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