Skip to content
Snippets Groups Projects
Commit 01643ec1 authored by Liu Hui-R64343's avatar Liu Hui-R64343 Committed by Albert Aribaud
Browse files

mxc_gpio: add support for MX53 processor


This patch add mxc_gpio support for Freescale MX53 processor

Signed-off-by: default avatarJason Liu <r64343@freescale.com>
parent 0c466ad0
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@
#ifdef CONFIG_MX31
#include <asm/arch/mx31-regs.h>
#endif
#ifdef CONFIG_MX51
#if defined(CONFIG_MX51) || defined(CONFIG_MX53)
#include <asm/arch/imx-regs.h>
#endif
#include <asm/io.h>
......@@ -35,9 +35,14 @@ static unsigned long gpio_ports[] = {
[0] = GPIO1_BASE_ADDR,
[1] = GPIO2_BASE_ADDR,
[2] = GPIO3_BASE_ADDR,
#ifdef CONFIG_MX51
#if defined(CONFIG_MX51) || defined(CONFIG_MX53)
[3] = GPIO4_BASE_ADDR,
#endif
#if defined(CONFIG_MX53)
[4] = GPIO5_BASE_ADDR,
[5] = GPIO6_BASE_ADDR,
[6] = GPIO7_BASE_ADDR,
#endif
};
int mxc_gpio_direction(unsigned int gpio, enum mxc_gpio_direction direction)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment