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