summaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-mx25/gpio.h
blob: 69eb987e98d79a3222811229babd2d40bf55bf4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * Copyright 2009 Freescale Semiconductor, Inc. All Rights Reserved.
 */

/*
 * The code contained herein is licensed under the GNU General Public
 * License. You may obtain a copy of the GNU General Public License
 * Version 2 or later at the following locations:
 *
 * http://www.opensource.org/licenses/gpl-license.html
 * http://www.gnu.org/copyleft/gpl.html
 */
#ifndef __MACH_MX25_GPIO_H__
#define __MACH_MX25_GPIO_H__

#include <asm/arch/mx25.h>

static void _set_gpio_direction(u32 port, u32 index, int is_input);

void mxc_set_gpio_direction(iomux_pin_name_t pin, int is_input);

static void _set_gpio_dataout(u32 port, u32 index, u32 data);

void mxc_set_gpio_dataout(iomux_pin_name_t pin, u32 data);

/*!
 * @file mach-mx25/gpio.h
 *
 * @brief Simple GPIO definitions and functions
 *
 * @ingroup GPIO_MX25
 */
#endif