diff options
author | Zhang Jiejing <jiejing.zhang@freescale.com> | 2012-05-18 11:08:05 +0800 |
---|---|---|
committer | Zhang Jiejing <jiejing.zhang@freescale.com> | 2012-05-21 09:50:11 +0800 |
commit | 500e69df9073a8bc2773274c1139bb036b1a4195 (patch) | |
tree | 0aa8fd108e80d33af583382948c3a8fc774d3c92 /include/asm-arm/arch-mx6/iomux.h | |
parent | 9b6dfc4b6f0d30b7284511a962e64e83c426b854 (diff) | |
download | u-boot-imx-500e69df9073a8bc2773274c1139bb036b1a4195.zip u-boot-imx-500e69df9073a8bc2773274c1139bb036b1a4195.tar.gz u-boot-imx-500e69df9073a8bc2773274c1139bb036b1a4195.tar.bz2 |
ENGR00209899-1 mx6x: add generic gpio interface.
Add generic gpio interface in uboot.
Seems more and more gpio operation invoke in uboot,
without RAW register operation, we should
use generic gpio interface.
you should define the CONFIG_MXC_GPIO
use generic gpio interface:
gpio_request,
gpio_direction_output,
gpio_direction_input,
gpio_set_value,
gpio_get_value, etc.
Test on MX6Q, MX6DL.
Other MX6X should also define this config.
Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
Diffstat (limited to 'include/asm-arm/arch-mx6/iomux.h')
-rw-r--r-- | include/asm-arm/arch-mx6/iomux.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/asm-arm/arch-mx6/iomux.h b/include/asm-arm/arch-mx6/iomux.h new file mode 100644 index 0000000..9c1e053 --- /dev/null +++ b/include/asm-arm/arch-mx6/iomux.h @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Auto Generate file, please don't edit it + * + */ + +#include "iomux-v3.h" |