Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mux.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/ctype.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/uaccess.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <plat/omap_hwmod.h>
#include "control.h"
#include "mux.h"
#include "prm.h"
#include "common.h"

Go to the source code of this file.

Data Structures

struct  omap_mux_entry
 

Macros

#define OMAP_MUX_BASE_OFFSET   0x30 /* Offset from CTRL_BASE */
 
#define OMAP_MUX_BASE_SZ   0x5ca
 

Functions

struct omap_mux_partitionomap_mux_get (const char *name)
 
u16 omap_mux_read (struct omap_mux_partition *partition, u16 reg)
 
void omap_mux_write (struct omap_mux_partition *partition, u16 val, u16 reg)
 
void omap_mux_write_array (struct omap_mux_partition *partition, struct omap_board_mux *board_mux)
 
u16 omap_mux_get_gpio (int gpio)
 
void omap_mux_set_gpio (u16 val, int gpio)
 
int __init omap_mux_init (const char *name, u32 flags, u32 mux_pbase, u32 mux_size, struct omap_mux *superset, struct omap_mux *package_subset, struct omap_board_mux *board_mux, struct omap_ball *package_balls)
 

Macro Definition Documentation

#define OMAP_MUX_BASE_OFFSET   0x30 /* Offset from CTRL_BASE */

Definition at line 46 of file mux.c.

#define OMAP_MUX_BASE_SZ   0x5ca

Definition at line 47 of file mux.c.

Function Documentation

struct omap_mux_partition* omap_mux_get ( const char name)
read

Definition at line 57 of file mux.c.

u16 omap_mux_get_gpio ( int  gpio)

omap_mux_get_gpio() - get mux register value based on GPIO number : GPIO number

Definition at line 986 of file mux.c.

int __init omap_mux_init ( const char name,
u32  flags,
u32  mux_pbase,
u32  mux_size,
struct omap_mux superset,
struct omap_mux package_subset,
struct omap_board_mux board_mux,
struct omap_ball package_balls 
)

omap_mux_init - private mux init function, do not call

Definition at line 1119 of file mux.c.

u16 omap_mux_read ( struct omap_mux_partition p,
u16  mux_offset 
)

omap_mux_read() - read mux register : Mux partition : Offset of the mux register

Definition at line 69 of file mux.c.

void omap_mux_set_gpio ( u16  val,
int  gpio 
)

omap_mux_set_gpio() - set mux register value based on GPIO number : New mux register value : GPIO number

Definition at line 1004 of file mux.c.

void omap_mux_write ( struct omap_mux_partition p,
u16  val,
u16  mux_offset 
)

omap_mux_write() - write mux register : Mux partition : New mux register value : Offset of the mux register

This should be only needed for dynamic remuxing of non-gpio signals.

Definition at line 77 of file mux.c.

void omap_mux_write_array ( struct omap_mux_partition p,
struct omap_board_mux board_mux 
)

omap_mux_write_array() - write an array of mux registers : Mux partition : Array of mux registers terminated by MAP_MUX_TERMINATOR

This should be only needed for dynamic remuxing of non-gpio signals.

Definition at line 86 of file mux.c.