]> git.sur5r.net Git - u-boot/commit
rockchip: Tidy up the register-access macros
authorSimon Glass <sjg@chromium.org>
Fri, 22 Jan 2016 02:45:12 +0000 (19:45 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 22 Jan 2016 03:42:37 +0000 (20:42 -0700)
commitaffd4a9fa0c4f84758b2d2cdf801256f2c566bbc
tree5b45afbf5cc9dd87a41e5b67d5c8ab1015749f83
parent2460d18c3383b7b024566dd60bf6a725ae37a661
rockchip: Tidy up the register-access macros

These work reasonable well, but there are a few errors:

- Brackets should be used to avoid unexpected side-effects
- When setting bits, the corresponding upper 16 bits should be set also

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/include/asm/arch-rockchip/hardware.h