diff options
author | Etienne Carriere <etienne.carriere@linaro.org> | 2019-02-12 09:42:39 +0100 |
---|---|---|
committer | Jérôme Forissier <jerome.forissier@linaro.org> | 2019-02-12 10:48:33 +0100 |
commit | 4d22155ce81bb04e3bcf171193eabf7b7e63f8ca (patch) | |
tree | 9a1e8eb02b2b25d891b9801c7149de028083831b /core/include | |
parent | fff9beb40dc9a3346b5ff0dc70759ec042a08fc3 (diff) |
core: change io_{clr|set|clrset}bits32() address argument type
Change API for io_clrbits32(), io_setbits32() and io_clrsetbits32() to
have a vaddr_t type address argument, rather than uintptr_t as
previously.
This change updates accordingly the callers of these functions
that cover only stm32mp1 related resources.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'core/include')
-rw-r--r-- | core/include/io.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/include/io.h b/core/include/io.h index 334ac8b0..77caa3be 100644 --- a/core/include/io.h +++ b/core/include/io.h @@ -104,17 +104,17 @@ static inline void put_be16(void *p, uint16_t val) * io_clrsetbits32() clears then sets the target bits in this order. If a bit * position is defined by both @set_mask and @clear_mask, the bit will be set. */ -static inline void io_setbits32(uintptr_t addr, uint32_t set_mask) +static inline void io_setbits32(vaddr_t addr, uint32_t set_mask) { write32(read32(addr) | set_mask, addr); } -static inline void io_clrbits32(uintptr_t addr, uint32_t clear_mask) +static inline void io_clrbits32(vaddr_t addr, uint32_t clear_mask) { write32(read32(addr) & ~clear_mask, addr); } -static inline void io_clrsetbits32(uintptr_t addr, uint32_t clear_mask, +static inline void io_clrsetbits32(vaddr_t addr, uint32_t clear_mask, uint32_t set_mask) { write32((read32(addr) & ~clear_mask) | set_mask, addr); |