[U-Boot] [PATCH 1/2] net: fec_mxc: Adjust RX DMA alignment for mx6solox

Otavio Salvador otavio at ossystems.com.br
Wed Aug 20 23:11:49 CEST 2014


On Wed, Aug 20, 2014 at 5:48 PM, Fabio Estevam <festevam at gmail.com> wrote:
> On Wed, Aug 20, 2014 at 4:38 PM, Otavio Salvador
> <otavio at ossystems.com.br> wrote:
>> On Wed, Aug 20, 2014 at 4:01 PM, Fabio Estevam <festevam at gmail.com> wrote:
>>> From: Fabio Estevam <fabio.estevam at freescale.com>
>>>
>>> mx6solox has a requirement for 64 bytes alignment for RX DMA transfer.
>>>
>>> Adjust it accordingly.
>>>
>>> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
>>
>> I'd use a static method to return the value, so you avoid some of #ifdef
>
> Not sure I understood your suggestion. Care to provide an example?

static int _rx_alignment()
{
#ifdef SX
    static int v = ??;
#else
    static int v = ??;
#endif

    return v;
}

?
-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


More information about the U-Boot mailing list