diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-12-03 14:16:33 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-12-10 12:15:01 +0100 |
commit | f601b74d015b6b428eba82544b11661c72dc25d8 (patch) | |
tree | b9d0f2af657481bde9f490be58147baee57445dc /arch/arm/mach-imx/imx1.c | |
parent | 6bd5caf6c662b7e91bc94070e085fa96e6dd994a (diff) | |
download | barebox-f601b74d015b6b428eba82544b11661c72dc25d8.tar.gz barebox-f601b74d015b6b428eba82544b11661c72dc25d8.tar.xz |
complete i.MX GPIO support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/imx1.c')
-rw-r--r-- | arch/arm/mach-imx/imx1.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/imx1.c b/arch/arm/mach-imx/imx1.c new file mode 100644 index 0000000000..742a260f0a --- /dev/null +++ b/arch/arm/mach-imx/imx1.c @@ -0,0 +1,31 @@ +/* + * 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., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + +#include <common.h> + +#include "gpio.h" + +void *imx_gpio_base[] = { + (void *)0x0021c000, + (void *)0x0021c100, + (void *)0x0021c200, + (void *)0x0021c300, +}; + +int imx_gpio_count = ARRAY_SIZE(imx_gpio_base) * 32; + + |