Re: [U-Boot] [PATCH v4 07/13] regmap: Add raw read/write functions

2018-08-08 Thread Mario Six
On Tue, Aug 7, 2018 at 4:31 PM Daniel Schwierzeck wrote: > > 2018-08-07 9:36 GMT+02:00 Mario Six : > > Hi Anatolij, > > On Mon, Aug 6, 2018 at 9:12 PM Anatolij Gustschin wrote: > >> > >> Hi Mario, > >> > >> On Fri, 3 Aug 2018 10:01:12 +0200 > >> Mario Six mario@gdsys.cc wrote: > >> ... > >>

Re: [U-Boot] [PATCH v4 07/13] regmap: Add raw read/write functions

2018-08-07 Thread Daniel Schwierzeck
2018-08-07 9:36 GMT+02:00 Mario Six : > Hi Anatolij, > On Mon, Aug 6, 2018 at 9:12 PM Anatolij Gustschin wrote: >> >> Hi Mario, >> >> On Fri, 3 Aug 2018 10:01:12 +0200 >> Mario Six mario@gdsys.cc wrote: >> ... >> > +int regmap_raw_read(struct regmap *map, uint offset, void *valp, size_t >>

Re: [U-Boot] [PATCH v4 07/13] regmap: Add raw read/write functions

2018-08-07 Thread Anatolij Gustschin
Hi Mario, On Tue, 7 Aug 2018 09:36:33 +0200 Mario Six mario@gdsys.cc wrote: ... > > this breaks building for MIPS: > > > > https://travis-ci.org/vdsao/u-boot-video/jobs/412722192#L869 > > > I see. MIPS apparently doesn't implement any of the in/out functions at all. > But since the

Re: [U-Boot] [PATCH v4 07/13] regmap: Add raw read/write functions

2018-08-07 Thread Mario Six
Hi Anatolij, On Mon, Aug 6, 2018 at 9:12 PM Anatolij Gustschin wrote: > > Hi Mario, > > On Fri, 3 Aug 2018 10:01:12 +0200 > Mario Six mario@gdsys.cc wrote: > ... > > +int regmap_raw_read(struct regmap *map, uint offset, void *valp, size_t > > val_len) > > +{ > > + void *ptr; > > + > > +

Re: [U-Boot] [PATCH v4 07/13] regmap: Add raw read/write functions

2018-08-06 Thread Anatolij Gustschin
Hi Mario, On Fri, 3 Aug 2018 10:01:12 +0200 Mario Six mario@gdsys.cc wrote: ... > +int regmap_raw_read(struct regmap *map, uint offset, void *valp, size_t > val_len) > +{ > + void *ptr; > + > + ptr = map_physmem(map->ranges[0].start + offset, val_len, MAP_NOCACHE); > + > +

Re: [U-Boot] [PATCH v4 07/13] regmap: Add raw read/write functions

2018-08-06 Thread Anatolij Gustschin
On Fri, 3 Aug 2018 10:01:12 +0200 Mario Six mario@gdsys.cc wrote: > The regmap functions currently assume that all register map accesses > have a data width of 32 bits, but there are maps that have different > widths. > > To rectify this, implement the regmap_raw_read and regmap_raw_write >

[U-Boot] [PATCH v4 07/13] regmap: Add raw read/write functions

2018-08-03 Thread Mario Six
The regmap functions currently assume that all register map accesses have a data width of 32 bits, but there are maps that have different widths. To rectify this, implement the regmap_raw_read and regmap_raw_write functions from the Linux kernel API that specify the width of a desired read or