Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
pinctrl-tegra.h File Reference

Go to the source code of this file.

Data Structures

struct  tegra_function
 
struct  tegra_pingroup
 
struct  tegra_pinctrl_soc_data
 

Macros

#define TEGRA_PINCONF_PACK(_param_, _arg_)   ((_param_) << 16 | (_arg_))
 
#define TEGRA_PINCONF_UNPACK_PARAM(_conf_)   ((_conf_) >> 16)
 
#define TEGRA_PINCONF_UNPACK_ARG(_conf_)   ((_conf_) & 0xffff)
 

Enumerations

enum  tegra_pinconf_param {
  TEGRA_PINCONF_PARAM_PULL, TEGRA_PINCONF_PARAM_TRISTATE, TEGRA_PINCONF_PARAM_ENABLE_INPUT, TEGRA_PINCONF_PARAM_OPEN_DRAIN,
  TEGRA_PINCONF_PARAM_LOCK, TEGRA_PINCONF_PARAM_IORESET, TEGRA_PINCONF_PARAM_HIGH_SPEED_MODE, TEGRA_PINCONF_PARAM_SCHMITT,
  TEGRA_PINCONF_PARAM_LOW_POWER_MODE, TEGRA_PINCONF_PARAM_DRIVE_DOWN_STRENGTH, TEGRA_PINCONF_PARAM_DRIVE_UP_STRENGTH, TEGRA_PINCONF_PARAM_SLEW_RATE_FALLING,
  TEGRA_PINCONF_PARAM_SLEW_RATE_RISING
}
 
enum  tegra_pinconf_pull { TEGRA_PINCONFIG_PULL_NONE, TEGRA_PINCONFIG_PULL_DOWN, TEGRA_PINCONFIG_PULL_UP }
 
enum  tegra_pinconf_tristate { TEGRA_PINCONFIG_DRIVEN, TEGRA_PINCONFIG_TRISTATE }
 

Functions

: The name of the function, exported to pinctrl core.

struct tegra_function - Tegra pinctrl mux function

: An array of pin groups that may select this function. : The number of entries in .

int tegra_pinctrl_probe (struct platform_device *pdev, const struct tegra_pinctrl_soc_data *soc_data)
 
int tegra_pinctrl_remove (struct platform_device *pdev)
 

Macro Definition Documentation

#define TEGRA_PINCONF_PACK (   _param_,
  _arg_ 
)    ((_param_) << 16 | (_arg_))

Definition at line 59 of file pinctrl-tegra.h.

#define TEGRA_PINCONF_UNPACK_ARG (   _conf_)    ((_conf_) & 0xffff)

Definition at line 61 of file pinctrl-tegra.h.

#define TEGRA_PINCONF_UNPACK_PARAM (   _conf_)    ((_conf_) >> 16)

Definition at line 60 of file pinctrl-tegra.h.

Enumeration Type Documentation

Enumerator:
TEGRA_PINCONF_PARAM_PULL 
TEGRA_PINCONF_PARAM_TRISTATE 
TEGRA_PINCONF_PARAM_ENABLE_INPUT 
TEGRA_PINCONF_PARAM_OPEN_DRAIN 
TEGRA_PINCONF_PARAM_LOCK 
TEGRA_PINCONF_PARAM_IORESET 
TEGRA_PINCONF_PARAM_HIGH_SPEED_MODE 
TEGRA_PINCONF_PARAM_SCHMITT 
TEGRA_PINCONF_PARAM_LOW_POWER_MODE 
TEGRA_PINCONF_PARAM_DRIVE_DOWN_STRENGTH 
TEGRA_PINCONF_PARAM_DRIVE_UP_STRENGTH 
TEGRA_PINCONF_PARAM_SLEW_RATE_FALLING 
TEGRA_PINCONF_PARAM_SLEW_RATE_RISING 

Definition at line 19 of file pinctrl-tegra.h.

Enumerator:
TEGRA_PINCONFIG_PULL_NONE 
TEGRA_PINCONFIG_PULL_DOWN 
TEGRA_PINCONFIG_PULL_UP 

Definition at line 48 of file pinctrl-tegra.h.

Enumerator:
TEGRA_PINCONFIG_DRIVEN 
TEGRA_PINCONFIG_TRISTATE 

Definition at line 54 of file pinctrl-tegra.h.

Function Documentation

int tegra_pinctrl_probe ( struct platform_device pdev,
const struct tegra_pinctrl_soc_data soc_data 
)

Definition at line 688 of file pinctrl-tegra.c.

int tegra_pinctrl_remove ( struct platform_device pdev)

Definition at line 761 of file pinctrl-tegra.c.