[U-Boot] [PATCH 1/3] imx25: Move MXC_GPIO_PORT_TO_NUM to imx-regs.h

Vikram Narayanan vikram186 at gmail.com
Fri Jun 15 20:10:41 CEST 2012


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<vikram186 at gmail.com>  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


More information about the U-Boot mailing list