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

Otavio Salvador
2014-08-20T21:11:49Z

On Wed, Aug 20, 2014 at 5:48 PM, Fabio Estevam <festevam@gmail.com> wrote:
> On Wed, Aug 20, 2014 at 4:38 PM, Otavio Salvador
> <otavio@ossystems.com.br> wrote:
>> On Wed, Aug 20, 2014 at 4:01 PM, Fabio Estevam <festevam@gmail.com> wrote:
>>> From: Fabio Estevam <fabio.estevam@freescale.com>
>>>
>>> mx6solox has a requirement for 64 bytes alignment for RX DMA transfer.
>>>
>>> Adjust it accordingly.
>>>
>>> Signed-off-by: Fabio Estevam <fabio.estevam@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