blob: 02e001b5599daf82fb0f916ea3dd3e7bd3657cec [file] [log] [blame]
Xing Zhengb4bcc1d2017-02-24 16:26:11 +08001/*
2 * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
3 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Xing Zhengb4bcc1d2017-02-24 16:26:11 +08005 */
6
7#ifndef __ROCKCHIP_RK3399_INCLUDE_SHARED_MISC_REGS_H__
8#define __ROCKCHIP_RK3399_INCLUDE_SHARED_MISC_REGS_H__
9
10/* CRU */
11#define CRU_DPLL_CON0 0x40
12#define CRU_DPLL_CON1 0x44
13#define CRU_DPLL_CON2 0x48
14#define CRU_DPLL_CON3 0x4c
15#define CRU_DPLL_CON4 0x50
16#define CRU_DPLL_CON5 0x54
17
18/* CRU_PLL_CON3 */
19#define PLL_SLOW_MODE 0
20#define PLL_NORMAL_MODE 1
21#define PLL_MODE(n) ((0x3 << (8 + 16)) | ((n) << 8))
22#define PLL_POWER_DOWN(n) ((0x1 << (0 + 16)) | ((n) << 0))
23
24/* PMU CRU */
25#define PMU_CRU_GATEDIS_CON0 0x130
26
27#endif /* __ROCKCHIP_RK3399_INCLUDE_SHARED_MISC_REGS_H__ */