Re: [U-Boot] [PATCH v2 3/5] regmap: Define regmap_{get,set}

2018-05-04 Thread Mario Six
Hi Simon, On Thu, May 3, 2018 at 4:33 AM, Simon Glass wrote: > Hi Mario, > > On 27 April 2018 at 06:52, Mario Six wrote: >> It would be convenient if one could use the regmap API in conjunction >> with register maps defined as structs (i.e. structs that directly mirror >> the memory layout of th

Re: [U-Boot] [PATCH v2 3/5] regmap: Define regmap_{get,set}

2018-05-02 Thread Simon Glass
Hi Mario, On 27 April 2018 at 06:52, Mario Six wrote: > It would be convenient if one could use the regmap API in conjunction > with register maps defined as structs (i.e. structs that directly mirror > the memory layout of the registers in question). A similar approach was > planned with the reg

[U-Boot] [PATCH v2 3/5] regmap: Define regmap_{get,set}

2018-04-27 Thread Mario Six
It would be convenient if one could use the regmap API in conjunction with register maps defined as structs (i.e. structs that directly mirror the memory layout of the registers in question). A similar approach was planned with the regmap_write32/regmap_read32 macros, but was never used. Hence, im