1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2016
4  * Michael Kurz, michi.kurz@gmail.com.
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 
25 /* SYSCFG peripheral mode configuration register */
26 #define SYSCFG_PMC_MII_RMII_SEL	BIT(23)
27 
28 #endif
29