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 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 8 | #ifndef MARVELL_PM_H |
| 9 | #define MARVELL_PM_H |
Konstantin Porotchkin | f69ec58 | 2018-06-07 18:31:14 +0300 | [diff] [blame] | 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 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 26 | #endif /* MARVELL_PM_H */ |