diff options
author | Julius Werner <jwerner@chromium.org> | 2017-01-30 18:26:07 -0800 |
---|---|---|
committer | Xing Zheng <zhengxing@rock-chips.com> | 2017-02-24 20:07:45 +0800 |
commit | 4dbab5d27f1768873c5f5342098be1c3a840a130 (patch) | |
tree | f877c372bdd2664ef81eaa862cef704601b51ec9 /plat/rockchip | |
parent | 2d051d2f96e26a2dad71870acc2334aff8723276 (diff) |
rockchip: Add MIN() and MAX() macros back to M0 code
These macros were accidentally deleted in a previous cleanup. This
slipped through because the code using them is currently unused, but
that may change in the future.
Signed-off-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'plat/rockchip')
-rw-r--r-- | plat/rockchip/rk3399/drivers/m0/include/rk3399_mcu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plat/rockchip/rk3399/drivers/m0/include/rk3399_mcu.h b/plat/rockchip/rk3399/drivers/m0/include/rk3399_mcu.h index 548d5f6c..b6ea3e88 100644 --- a/plat/rockchip/rk3399/drivers/m0/include/rk3399_mcu.h +++ b/plat/rockchip/rk3399/drivers/m0/include/rk3399_mcu.h @@ -46,6 +46,9 @@ typedef unsigned int uint32_t; #define mmio_clrsetbits_32(addr, clear, set) \ mmio_write_32(addr, (mmio_read_32(addr) & ~(clear)) | (set)) +#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#define MAX(a, b) ((a) > (b) ? (a) : (b)) + void handle_suspend(void); void handle_dram(void); void stopwatch_init_usecs_expire(unsigned int usecs); |