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

Go to the source code of this file.

Data Structures

struct  imx_pinctrl
 

Macros

#define IMX_PMX_DUMP(info, p, m, c, n)
 
#define IMX_NO_PAD_CTL   0x80000000 /* no pin config need */
 
#define IMX_PAD_SION   0x40000000 /* set SION */
 

Functions

int __devinit imx_pinctrl_probe (struct platform_device *pdev, struct imx_pinctrl_soc_info *info)
 
int __devexit imx_pinctrl_remove (struct platform_device *pdev)
 

Variables

struct pinconf_ops imx_pinconf_ops
 

Macro Definition Documentation

#define IMX_NO_PAD_CTL   0x80000000 /* no pin config need */

Definition at line 43 of file pinctrl-imx.c.

#define IMX_PAD_SION   0x40000000 /* set SION */

Definition at line 44 of file pinctrl-imx.c.

#define IMX_PMX_DUMP (   info,
  p,
  m,
  c,
  n 
)
Value:
{ \
int i, j; \
printk(KERN_DEBUG "Format: Pin Mux Config\n"); \
for (i = 0; i < n; i++) { \
j = p[i]; \
printk(KERN_DEBUG "%s %d 0x%lx\n", \
info->pins[j].name, \
m[i], c[i]); \
} \
}

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

Function Documentation

int __devinit imx_pinctrl_probe ( struct platform_device pdev,
struct imx_pinctrl_soc_info info 
)

Definition at line 563 of file pinctrl-imx.c.

int __devexit imx_pinctrl_remove ( struct platform_device pdev)

Definition at line 614 of file pinctrl-imx.c.

Variable Documentation

struct pinconf_ops imx_pinconf_ops
Initial value:
= {
.pin_config_get = imx_pinconf_get,
.pin_config_set = imx_pinconf_set,
.pin_config_dbg_show = imx_pinconf_dbg_show,
.pin_config_group_dbg_show = imx_pinconf_group_dbg_show,
}

Definition at line 400 of file pinctrl-imx.c.