]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: CPS: Introduce register modify (set/clear/change) accessors
authorPaul Burton <paul.burton@imgtec.com>
Sun, 13 Aug 2017 02:49:30 +0000 (19:49 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 29 Aug 2017 22:57:26 +0000 (00:57 +0200)
commitd08fccf57f6b8a16872446f22bdcfed2bf7198ae
treee1208966a790a3651b8fb07f60afd15786bd2031
parent62e4b2fa9819e37f18aca605c96ca439cbf77499
MIPS: CPS: Introduce register modify (set/clear/change) accessors

For read-write registers introduce accessor functions that simplify the
task of modifying a subset of bits within the register. set_* functions
set bits to 1, clear_* functions clear bits to 0 & change_* functions
set bits specified in a mask to an arbitrary value.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17004/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mips-cps.h