~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/arm/mach-tegra/board-trimslice-pinmux.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
#include <linux/kernel.h>
18
18
#include <linux/init.h>
 
19
 
19
20
#include <mach/pinmux.h>
 
21
#include <mach/gpio.h>
20
22
 
 
23
#include "gpio-names.h"
21
24
#include "board-trimslice.h"
22
25
 
23
26
static __initdata struct tegra_pingroup_config trimslice_pinmux[] = {
139
142
        {TEGRA_PINGROUP_XM2D,  TEGRA_MUX_NONE,          TEGRA_PUPD_NORMAL,      TEGRA_TRI_NORMAL},
140
143
};
141
144
 
 
145
static struct tegra_gpio_table gpio_table[] = {
 
146
        { .gpio = TRIMSLICE_GPIO_SD4_CD, .enable = true }, /* mmc4 cd */
 
147
        { .gpio = TRIMSLICE_GPIO_SD4_WP, .enable = true }, /* mmc4 wp */
 
148
};
 
149
 
142
150
void __init trimslice_pinmux_init(void)
143
151
{
144
152
        tegra_pinmux_config_table(trimslice_pinmux, ARRAY_SIZE(trimslice_pinmux));
 
153
        tegra_gpio_config(gpio_table, ARRAY_SIZE(gpio_table));
145
154
}