lkml.org 
[lkml]   [2014]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH] regmap: Add REGMAP_ENDIAN_SWAP support for values.
Date
> Subject: Re: [PATCH] regmap: Add REGMAP_ENDIAN_SWAP support for values.
>
> On Thu, Mar 27, 2014 at 04:17:39PM +0800, Xiubo Li wrote:
>
> > And using the REGMAP_ENDIAN_BIG and REGMAP_ENDIAN_LITTLE will make
> > the driver a bit more complex, and also the usage of it.
>
> What's the complexity here?

Well, maybe it not as complex as it likes, just relatively:

For some drivers that may support the following cases:

For the DT node:

CPU Dev LE/BE property need ?
----------------------------------------------
LE LE No
LE BE 'big-endian' property
BE BE No
BE LE 'little-endian' property

The driver will adapt to this too.

Thanks :)

Best Regards,
Xiubo




\
 
 \ /
  Last update: 2014-03-28 08:01    [W:0.042 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site