blob: 3edbf89b779a65a2bae28a1eb608eb7f514e5e3e [file] [log] [blame]
Caesar Wangb4003742016-10-12 08:10:12 +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
Caesar Wangb4003742016-10-12 08:10:12 +08005 */
6
Xing Zheng93280b72016-10-26 21:25:26 +08007#ifndef __M0_PARAM_H__
8#define __M0_PARAM_H__
Caesar Wangb4003742016-10-12 08:10:12 +08009
Xing Zheng93280b72016-10-26 21:25:26 +080010#ifndef __LINKER__
11enum {
12 M0_FUNC_SUSPEND = 0,
13 M0_FUNC_DRAM = 1,
14};
15#endif /* __LINKER__ */
Caesar Wangb4003742016-10-12 08:10:12 +080016
Xing Zheng93280b72016-10-26 21:25:26 +080017#define PARAM_ADDR 0xc0
18
19#define PARAM_M0_FUNC 0x00
20#define PARAM_DRAM_FREQ 0x04
21#define PARAM_DPLL_CON0 0x08
22#define PARAM_DPLL_CON1 0x0c
23#define PARAM_DPLL_CON2 0x10
24#define PARAM_DPLL_CON3 0x14
25#define PARAM_DPLL_CON4 0x18
26#define PARAM_DPLL_CON5 0x1c
27#define PARAM_FREQ_SELECT 0x20
28#define PARAM_M0_DONE 0x24
29#define PARAM_M0_SIZE 0x28
30#define M0_DONE_FLAG 0xf59ec39a
Caesar Wangb4003742016-10-12 08:10:12 +080031
Xing Zheng93280b72016-10-26 21:25:26 +080032#endif /*__M0_PARAM_H__*/