summaryrefslogtreecommitdiff
path: root/src/soc/rockchip/rk3288/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/rockchip/rk3288/cpu.h')
-rw-r--r--src/soc/rockchip/rk3288/cpu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/soc/rockchip/rk3288/cpu.h b/src/soc/rockchip/rk3288/cpu.h
index ed629c975f..c42bbe8752 100644
--- a/src/soc/rockchip/rk3288/cpu.h
+++ b/src/soc/rockchip/rk3288/cpu.h
@@ -20,7 +20,9 @@
#ifndef __SOC_ROCKCHIP_RK3288_CPU_H__
#define __SOC_ROCKCHIP_RK3288_CPU_H__
-#define RK_SETBITS(val, msk) (((msk) << 16) | (val))
+#define RK_CLRSETBITS(clr, set) ((((clr) | (set)) << 16) | set)
+#define RK_SETBITS(set) RK_CLRSETBITS(0, set)
+#define RK_CLRBITS(clr) RK_CLRSETBITS(clr, 0)
#endif /* __SOC_ROCKCHIP_RK3288_CPU_H__ */