From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Mon, 6 Aug 2018 21:11:47 +0200 Subject: [U-Boot] [PATCH v4 07/13] regmap: Add raw read/write functions In-Reply-To: <20180803080118.27748-7-mario.six@gdsys.cc> References: <20180803080118.27748-1-mario.six@gdsys.cc> <20180803080118.27748-7-mario.six@gdsys.cc> Message-ID: <20180806211147.764a0646@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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