Konstantin Porotchkin | f69ec58 | 2018-06-07 18:31:14 +0300 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2018 Marvell International Ltd. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * https://spdx.org/licenses |
| 6 | */ |
| 7 | |
| 8 | #ifndef _MARVELL_PM_H_ |
| 9 | #define _MARVELL_PM_H_ |
| 10 | |
| 11 | #define MVEBU_MAILBOX_MAGIC_NUM PLAT_MARVELL_MAILBOX_MAGIC_NUM |
| 12 | #define MVEBU_MAILBOX_SUSPEND_STATE 0xb007de7c |
| 13 | |
| 14 | /* Mailbox entry indexes */ |
| 15 | /* Magic number for validity check */ |
| 16 | #define MBOX_IDX_MAGIC 0 |
| 17 | /* Recovery from suspend entry point */ |
| 18 | #define MBOX_IDX_SEC_ADDR 1 |
| 19 | /* Suspend state magic number */ |
| 20 | #define MBOX_IDX_SUSPEND_MAGIC 2 |
| 21 | /* Recovery jump address for ROM bypass */ |
| 22 | #define MBOX_IDX_ROM_EXIT_ADDR 3 |
| 23 | /* BLE execution start counter value */ |
| 24 | #define MBOX_IDX_START_CNT 4 |
| 25 | |
| 26 | #endif /* _MARVELL_PM_H_ */ |