3 * Michael Kurz, michi.kurz@gmail.com.
5 * SPDX-License-Identifier: GPL-2.0+
8 #ifndef _STM32_SYSCFG_H
9 #define _STM32_SYSCFG_H
11 struct stm32_syscfg_regs {
22 * SYSCFG registers base
24 #define STM32_SYSCFG ((struct stm32_syscfg_regs *)STM32_SYSCFG_BASE)
26 /* SYSCFG memory remap register */
27 #define SYSCFG_MEMRMP_MEM_BOOT BIT(0)
28 #define SYSCFG_MEMRMP_SWP_FMC BIT(10)
30 /* SYSCFG peripheral mode configuration register */
31 #define SYSCFG_PMC_ADCXDC2 BIT(16)
32 #define SYSCFG_PMC_MII_RMII_SEL BIT(23)
34 /* Compensation cell control register */
35 #define SYSCFG_CMPCR_CMP_PD BIT(0)
36 #define SYSCFG_CMPCR_READY BIT(8)