From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikram Narayanan Date: Fri, 15 Jun 2012 23:40:41 +0530 Subject: [U-Boot] [PATCH 1/3] imx25: Move MXC_GPIO_PORT_TO_NUM to imx-regs.h In-Reply-To: <4FDB4CF3.9020208@denx.de> References: <4FD49AA5.7000303@gmail.com> <4FD49AF4.2090506@gmail.com> <4FD6088E.3040809@gmail.com> <4FDB4CF3.9020208@denx.de> Message-ID: <4FDB7AA1.9010705@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 Hi Stefano, On 6/15/2012 8:25 PM, Stefano Babic wrote: > On 13/06/2012 13:37, Fabio Estevam wrote: >> On Mon, Jun 11, 2012 at 12:02 PM, Vikram Narayanan wrote: >> >>>> 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? >> >> Yes, a common folder would help indeed. >> >> Copying Stefano, so that he could provide us some suggestion on this. > > A general common folder helps - we have already an imx-common, whose > name was copied from omap-common we already head. At the moment, it > contains files common to i.MX5 and i.MX6. However, it is located under > armv7, and it is not accessible for other i.MX. > > Really I am for a solution like in kernel, with a plat-mxc into > include/asm/, where we can put common things for all i.MX. I'm with the same idea too. In this way we can avoid duplicate datastructures spread across many arch directories. So, are there any opposers for this? Regards, Vikram