Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
pinctrl-single.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/list.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/of_address.h>
#include <linux/pinctrl/pinctrl.h>
#include <linux/pinctrl/pinmux.h>
#include "core.h"

Go to the source code of this file.

Data Structures

struct  pcs_pingroup
 
struct  pcs_func_vals
 
struct  pcs_function
 
struct  pcs_data
 
struct  pcs_name
 
struct  pcs_device
 

Macros

#define DRIVER_NAME   "pinctrl-single"
 
#define PCS_MUX_PINS_NAME   "pinctrl-single,pins"
 
#define PCS_MUX_BITS_NAME   "pinctrl-single,bits"
 
#define PCS_REG_NAME_LEN   ((sizeof(unsigned long) * 2) + 1)
 
#define PCS_OFF_DISABLED   ~0U
 

: name of the pingroup

pcs_add_pingroup() - add a pingroup to the pingroup list : pcs driver instance : device node of the mux entry

: array of the pins that belong to the group : number of pins in the group

#define PCS_GET_PROP_U32(name, reg, err)
 
 MODULE_DEVICE_TABLE (of, pcs_of_match)
 
 module_platform_driver (pcs_driver)
 
 MODULE_AUTHOR ("Tony Lindgren <[email protected]>")
 
 MODULE_DESCRIPTION ("One-register-per-pin type device tree based pinctrl driver")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define DRIVER_NAME   "pinctrl-single"

Definition at line 28 of file pinctrl-single.c.

#define PCS_GET_PROP_U32 (   name,
  reg,
  err 
)
Value:
do { \
ret = of_property_read_u32(np, name, reg); \
if (ret) { \
dev_err(pcs->dev, err); \
return ret; \
} \
} while (0);

Definition at line 871 of file pinctrl-single.c.

#define PCS_MUX_BITS_NAME   "pinctrl-single,bits"

Definition at line 30 of file pinctrl-single.c.

#define PCS_MUX_PINS_NAME   "pinctrl-single,pins"

Definition at line 29 of file pinctrl-single.c.

#define PCS_OFF_DISABLED   ~0U

Definition at line 32 of file pinctrl-single.c.

#define PCS_REG_NAME_LEN   ((sizeof(unsigned long) * 2) + 1)

Definition at line 31 of file pinctrl-single.c.

Function Documentation

MODULE_AUTHOR ( "Tony Lindgren <[email protected]>"  )
MODULE_DESCRIPTION ( "One-register-per-pin type device tree based pinctrl driver )
MODULE_DEVICE_TABLE ( of  ,
pcs_of_match   
)
MODULE_LICENSE ( "GPL v2 )
module_platform_driver ( pcs_driver  )