Yann Gautier | 091eab5 | 2019-06-04 18:06:34 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015-2019, STMicroelectronics - All Rights Reserved |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef STM32MP1_DBGMCU_H |
| 8 | #define STM32MP1_DBGMCU_H |
| 9 | |
Yann Gautier | c737405 | 2019-06-04 18:02:37 +0200 | [diff] [blame] | 10 | #include <stdint.h> |
| 11 | |
| 12 | /* Get chip version and ID from DBGMCU registers */ |
| 13 | int stm32mp1_dbgmcu_get_chip_version(uint32_t *chip_version); |
| 14 | int stm32mp1_dbgmcu_get_chip_dev_id(uint32_t *chip_dev_id); |
| 15 | |
Yann Gautier | 091eab5 | 2019-06-04 18:06:34 +0200 | [diff] [blame] | 16 | /* |
| 17 | * Freeze watchdog when a debugger is attached, if the security configuration |
| 18 | * allows it. |
| 19 | * Return 0 on success, a negative error value otherwise. |
| 20 | */ |
| 21 | int stm32mp1_dbgmcu_freeze_iwdg2(void); |
| 22 | |
| 23 | #endif /* STM32MP1_DBGMCU_H */ |