From 5fecb36ca0c5642259227bba9aed94727e084c17 Mon Sep 17 00:00:00 2001 From: Stefano Babic Date: Sun, 19 Aug 2012 21:33:50 +0000 Subject: MX: Set a common gpio.h for all i.MX Each i.MX has its own gpio.h, defining the same structure. The internal GPIO controller has the same layout (at least for the register used by u-boot) and can be shared. Signed-off-by: Stefano Babic Tested-by: Matt Sealey --- board/karo/tx25/tx25.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'board/karo/tx25') diff --git a/board/karo/tx25/tx25.c b/board/karo/tx25/tx25.c index 07fd98d604..0fd41c7732 100644 --- a/board/karo/tx25/tx25.c +++ b/board/karo/tx25/tx25.c @@ -34,8 +34,8 @@ DECLARE_GLOBAL_DATA_PTR; #ifdef CONFIG_FEC_MXC -#define GPIO_FEC_RESET_B MXC_GPIO_PORT_TO_NUM(4, 7) -#define GPIO_FEC_ENABLE_B MXC_GPIO_PORT_TO_NUM(4, 9) +#define GPIO_FEC_RESET_B IMX_GPIO_NR(4, 7) +#define GPIO_FEC_ENABLE_B IMX_GPIO_NR(4, 9) void tx25_fec_init(void) { struct iomuxc_mux_ctl *muxctl; @@ -103,9 +103,9 @@ void tx25_fec_init(void) /* * set each to 1 and make each an output */ - gpio_direction_output(MXC_GPIO_PORT_TO_NUM(3, 10), 1); - gpio_direction_output(MXC_GPIO_PORT_TO_NUM(3, 11), 1); - gpio_direction_output(MXC_GPIO_PORT_TO_NUM(3, 12), 1); + gpio_direction_output(IMX_GPIO_NR(3, 10), 1); + gpio_direction_output(IMX_GPIO_NR(3, 11), 1); + gpio_direction_output(IMX_GPIO_NR(3, 12), 1); mdelay(22); /* this value came from RedBoot */ -- cgit v1.2.1