Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pinmux.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/radix-tree.h>
#include <linux/err.h>
#include <linux/list.h>
#include <linux/string.h>
#include <linux/sysfs.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/pinctrl/machine.h>
#include <linux/pinctrl/pinmux.h>
#include "core.h"
#include "pinmux.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   "pinmux core: " fmt
 

Functions

int pinmux_check_ops (struct pinctrl_dev *pctldev)
 
int pinmux_validate_map (struct pinctrl_map const *map, int i)
 
int pinmux_request_gpio (struct pinctrl_dev *pctldev, struct pinctrl_gpio_range *range, unsigned pin, unsigned gpio)
 
void pinmux_free_gpio (struct pinctrl_dev *pctldev, unsigned pin, struct pinctrl_gpio_range *range)
 
int pinmux_gpio_direction (struct pinctrl_dev *pctldev, struct pinctrl_gpio_range *range, unsigned pin, bool input)
 
int pinmux_map_to_setting (struct pinctrl_map const *map, struct pinctrl_setting *setting)
 
void pinmux_free_setting (struct pinctrl_setting const *setting)
 
int pinmux_enable_setting (struct pinctrl_setting const *setting)
 
void pinmux_disable_setting (struct pinctrl_setting const *setting)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    "pinmux core: " fmt

Definition at line 14 of file pinmux.c.

Function Documentation

int pinmux_check_ops ( struct pinctrl_dev pctldev)

Definition at line 33 of file pinmux.c.

void pinmux_disable_setting ( struct pinctrl_setting const setting)

Definition at line 464 of file pinmux.c.

int pinmux_enable_setting ( struct pinctrl_setting const setting)

Definition at line 428 of file pinmux.c.

void pinmux_free_gpio ( struct pinctrl_dev pctldev,
unsigned  pin,
struct pinctrl_gpio_range *  range 
)

pinmux_free_gpio() - release a pin from GPIO muxing : the pin controller device for the pin : the affected currently GPIO-muxed in pin : applicable GPIO range

Definition at line 256 of file pinmux.c.

void pinmux_free_setting ( struct pinctrl_setting const setting)

Definition at line 406 of file pinmux.c.

int pinmux_gpio_direction ( struct pinctrl_dev pctldev,
struct pinctrl_gpio_range *  range,
unsigned  pin,
bool  input 
)

pinmux_gpio_direction() - set the direction of a single muxed-in GPIO pin : the pin controller handling this pin : applicable GPIO range : the affected GPIO pin in this controller : true if we set the pin as input, false for output

Definition at line 272 of file pinmux.c.

int pinmux_map_to_setting ( struct pinctrl_map const map,
struct pinctrl_setting setting 
)

Definition at line 312 of file pinmux.c.

int pinmux_request_gpio ( struct pinctrl_dev pctldev,
struct pinctrl_gpio_range *  range,
unsigned  pin,
unsigned  gpio 
)

pinmux_request_gpio() - request pinmuxing for a GPIO pin : pin controller device affected : the pin to mux in for GPIO : the applicable GPIO range

Definition at line 231 of file pinmux.c.

int pinmux_validate_map ( struct pinctrl_map const map,
int  i 
)

Definition at line 64 of file pinmux.c.