Caesar Wang | b400374 | 2016-10-12 08:10:12 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Caesar Wang | b400374 | 2016-10-12 08:10:12 +0800 | [diff] [blame] | 5 | */ |
| 6 | |
Xing Zheng | 93280b7 | 2016-10-26 21:25:26 +0800 | [diff] [blame] | 7 | #ifndef __M0_PARAM_H__ |
| 8 | #define __M0_PARAM_H__ |
Caesar Wang | b400374 | 2016-10-12 08:10:12 +0800 | [diff] [blame] | 9 | |
Xing Zheng | 93280b7 | 2016-10-26 21:25:26 +0800 | [diff] [blame] | 10 | #ifndef __LINKER__ |
| 11 | enum { |
| 12 | M0_FUNC_SUSPEND = 0, |
| 13 | M0_FUNC_DRAM = 1, |
| 14 | }; |
| 15 | #endif /* __LINKER__ */ |
Caesar Wang | b400374 | 2016-10-12 08:10:12 +0800 | [diff] [blame] | 16 | |
Xing Zheng | 93280b7 | 2016-10-26 21:25:26 +0800 | [diff] [blame] | 17 | #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 Wang | b400374 | 2016-10-12 08:10:12 +0800 | [diff] [blame] | 31 | |
Xing Zheng | 93280b7 | 2016-10-26 21:25:26 +0800 | [diff] [blame] | 32 | #endif /*__M0_PARAM_H__*/ |