Linux Kernel
3.7.1
|
#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_partition * | omap_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) |
|
read |
omap_mux_get_gpio() - get mux register value based on GPIO number : GPIO number
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
omap_mux_set_gpio() - set mux register value based on GPIO number : New mux register value : GPIO number
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.
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.