Yann Gautier | 4b0c72a | 2018-07-16 10:54:09 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017-2018, STMicroelectronics - All Rights Reserved |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef STM32MP1_PWR_H |
| 8 | #define STM32MP1_PWR_H |
Yann Gautier | 4b0c72a | 2018-07-16 10:54:09 +0200 | [diff] [blame] | 9 | |
| 10 | #include <utils_def.h> |
| 11 | |
| 12 | #define PWR_CR1 U(0x00) |
| 13 | #define PWR_CR2 U(0x08) |
| 14 | #define PWR_CR3 U(0x0C) |
| 15 | #define PWR_MPUCR U(0x10) |
| 16 | #define PWR_WKUPCR U(0x20) |
| 17 | #define PWR_MPUWKUPENR U(0x28) |
| 18 | |
| 19 | #define PWR_CR1_LPDS BIT(0) |
| 20 | #define PWR_CR1_LPCFG BIT(1) |
| 21 | #define PWR_CR1_LVDS BIT(2) |
| 22 | #define PWR_CR1_DBP BIT(8) |
| 23 | |
| 24 | #define PWR_CR3_DDRSREN BIT(10) |
| 25 | #define PWR_CR3_DDRSRDIS BIT(11) |
| 26 | #define PWR_CR3_DDRRETEN BIT(12) |
| 27 | |
| 28 | #define PWR_MPUCR_PDDS BIT(0) |
| 29 | #define PWR_MPUCR_CSTDBYDIS BIT(3) |
| 30 | #define PWR_MPUCR_CSSF BIT(9) |
| 31 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 32 | #endif /* STM32MP1_PWR_H */ |