From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikram Narayanan Date: Mon, 11 Jun 2012 20:32:38 +0530 Subject: [U-Boot] [PATCH 1/3] imx25: Move MXC_GPIO_PORT_TO_NUM to imx-regs.h In-Reply-To: References: <4FD49AA5.7000303@gmail.com> <4FD49AF4.2090506@gmail.com> Message-ID: <4FD6088E.3040809@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Fabio, On 6/10/2012 8:33 PM, Fabio Estevam wrote: > On Sun, Jun 10, 2012 at 10:02 AM, Vikram Narayanan wrote: >> Move the macro to imx-regs.h so that the other mx25 boards can >> make use of it. >> >> Signed-off-by: Vikram Narayanan >> --- >> arch/arm/include/asm/arch-mx25/gpio.h | 4 ---- >> arch/arm/include/asm/arch-mx25/imx-regs.h | 6 ++++++ >> 2 files changed, 6 insertions(+), 4 deletions(-) > > Also, this macro is useful not only for mx25, and it would be nice to > let it avaible for the other i.MX SoCs as well. Agree. But I guess u-boot doesn't have a common folder where this can be put up something like plat-mxc. So, I should think where to place this macro to avoid duplicates in many header files. Any pointers? Thanks, Vikram