aboutsummaryrefslogtreecommitdiff
path: root/plat/rockchip/rk3399/drivers/m0/include/rk3399_mcu.h
diff options
context:
space:
mode:
authorXing Zheng <zhengxing@rock-chips.com>2017-02-24 16:26:11 +0800
committerXing Zheng <zhengxing@rock-chips.com>2017-02-24 20:07:44 +0800
commit1830f7901e110a6407d449506a0fc93146af6833 (patch)
treeceeb62e1d32139ae6e9a3d97d00753f143245032 /plat/rockchip/rk3399/drivers/m0/include/rk3399_mcu.h
parenta7519b6bed22934a00370c608b5deca8221968cd (diff)
downloadarm-trusted-firmware-1830f7901e110a6407d449506a0fc93146af6833.tar.gz
rockchip: Clean up header and referenced files
So far, there are more and more features are supported on the RK3399, meanwhile, these features are increasingly being defined and intertwined. It's time to clean up and make them clearer. Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Diffstat (limited to 'plat/rockchip/rk3399/drivers/m0/include/rk3399_mcu.h')
-rw-r--r--plat/rockchip/rk3399/drivers/m0/include/rk3399_mcu.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/plat/rockchip/rk3399/drivers/m0/include/rk3399_mcu.h b/plat/rockchip/rk3399/drivers/m0/include/rk3399_mcu.h
index 23be3c3a..548d5f6c 100644
--- a/plat/rockchip/rk3399/drivers/m0/include/rk3399_mcu.h
+++ b/plat/rockchip/rk3399/drivers/m0/include/rk3399_mcu.h
@@ -31,6 +31,8 @@
#ifndef __RK3399_MCU_H__
#define __RK3399_MCU_H__
+#include <addressmap.h>
+
typedef unsigned int uint32_t;
#define mmio_read_32(c) ({unsigned int __v = \
@@ -44,18 +46,6 @@ 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))
-
-#define MCU_BASE 0x40000000
-#define PMU_BASE (MCU_BASE + 0x07310000)
-#define CRU_BASE_ADDR 0x47760000
-#define GRF_BASE_ADDR 0x47770000
-#define PMU_CRU_BASE_ADDR 0x47750000
-#define VOP_LITE_BASE_ADDR 0x478F0000
-#define VOP_BIG_BASE_ADDR 0x47900000
-#define CIC_BASE_ADDR 0x47620000
-
void handle_suspend(void);
void handle_dram(void);
void stopwatch_init_usecs_expire(unsigned int usecs);