Home
last modified time | relevance | path

Searched hist:"14 ed32748f7d915493e31dbf01664c119fad91c6" (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/include/
H A Dio.h14ed32748f7d915493e31dbf01664c119fad91c6 Tue Jul 05 03:19:05 UTC 2016 Victor Chong <victor.chong@linaro.org> io.h: add io_mask{8,16,32} functions

When writing peripheral drivers, there's very often a need to read a
register value, set/clear some bits and then write the new value
back. Instead of having to 'manually' call read, do bit manipulations
and write every single time, add this helper function for convenience.

Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>