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

Anatolij Gustschin
2018-08-06T19:11:47Z

Hi Mario,

On Fri, 3 Aug 2018 10:01:12 +0200
Mario Six mario.six at 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);
> +
> + switch (val_len) {
> + case REGMAP_SIZE_8:
> + *((u8 *)valp) = in_8((u8 *)ptr);
> + break;
> + case REGMAP_SIZE_16:
> + *((u16 *)valp) = in_le16((u16 *)ptr);
> + break;
> + case REGMAP_SIZE_32:
> + *((u32 *)valp) = in_le32((u32 *)ptr);

this breaks building for MIPS:

https://travis-ci.org/vdsao/u-boot-video/jobs/412722192#L869

--
Anatolij