Michael Kurz | 812962b | 2017-01-22 16:04:27 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2016 |
| 3 | * Michael Kurz, michi.kurz@gmail.com. |
| 4 | * |
| 5 | * SPDX-License-Identifier: GPL-2.0+ |
| 6 | */ |
| 7 | |
| 8 | #ifndef _STM32_SYSCFG_H |
| 9 | #define _STM32_SYSCFG_H |
| 10 | |
| 11 | struct stm32_syscfg_regs { |
| 12 | u32 memrmp; |
| 13 | u32 pmc; |
| 14 | u32 exticr1; |
| 15 | u32 exticr2; |
| 16 | u32 exticr3; |
| 17 | u32 exticr4; |
| 18 | u32 cmpcr; |
| 19 | }; |
| 20 | |
| 21 | /* |
| 22 | * SYSCFG registers base |
| 23 | */ |
| 24 | #define STM32_SYSCFG ((struct stm32_syscfg_regs *)STM32_SYSCFG_BASE) |
| 25 | |
Michael Kurz | 812962b | 2017-01-22 16:04:27 +0100 | [diff] [blame] | 26 | /* SYSCFG peripheral mode configuration register */ |
Michael Kurz | 812962b | 2017-01-22 16:04:27 +0100 | [diff] [blame] | 27 | #define SYSCFG_PMC_MII_RMII_SEL BIT(23) |
| 28 | |
Michael Kurz | 812962b | 2017-01-22 16:04:27 +0100 | [diff] [blame] | 29 | #endif |