blob: 0160453b47f3c869947b85ddae55ee797b6d9ce8 [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
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef MISC_REGS_H
8#define MISC_REGS_H
Xing Zhengb4bcc1d2017-02-24 16:26:11 +08009
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
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000027#endif /* MISC_REGS_H */