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#ifndef __ASSEMBLY__ 11#include <linux/bitops.h> 12#endif 13 14struct 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 29/* SYSCFG peripheral mode configuration register */ 30#define SYSCFG_PMC_MII_RMII_SEL BIT(23) 31 32#endif 33