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 | |
Simon Glass | 4dcacfc | 2020-05-10 11:40:13 -0600 | [diff] [blame] | 10 | #ifndef __ASSEMBLY__ |
| 11 | #include <linux/bitops.h> |
| 12 | #endif |
| 13 | |
Michael Kurz | 812962b | 2017-01-22 16:04:27 +0100 | [diff] [blame] | 14 | struct stm32_syscfg_regs { |
| 15 | u32 memrmp; |
| 16 | u32 pmc; |
| 17 | u32 exticr1; |
| 18 | u32 exticr2; |
| 19 | u32 exticr3; |
| 20 | u32 exticr4; |
| 21 | u32 cmpcr; |
| 22 | }; |
| 23 | |
| 24 | /* |
| 25 | * SYSCFG registers base |
| 26 | */ |
| 27 | #define STM32_SYSCFG ((struct stm32_syscfg_regs *)STM32_SYSCFG_BASE) |
| 28 | |
Michael Kurz | 812962b | 2017-01-22 16:04:27 +0100 | [diff] [blame] | 29 | /* SYSCFG peripheral mode configuration register */ |
Michael Kurz | 812962b | 2017-01-22 16:04:27 +0100 | [diff] [blame] | 30 | #define SYSCFG_PMC_MII_RMII_SEL BIT(23) |
| 31 | |
Michael Kurz | 812962b | 2017-01-22 16:04:27 +0100 | [diff] [blame] | 32 | #endif |