blob: ce2a952f787b652624f9e32b2adc73df2b121b23 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Michael Kurz812962b2017-01-22 16:04:27 +01002/*
3 * (C) Copyright 2016
4 * Michael Kurz, michi.kurz@gmail.com.
Michael Kurz812962b2017-01-22 16:04:27 +01005 */
6
7#ifndef _STM32_SYSCFG_H
8#define _STM32_SYSCFG_H
9
10struct 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 Kurz812962b2017-01-22 16:04:27 +010025/* SYSCFG peripheral mode configuration register */
Michael Kurz812962b2017-01-22 16:04:27 +010026#define SYSCFG_PMC_MII_RMII_SEL BIT(23)
27
Michael Kurz812962b2017-01-22 16:04:27 +010028#endif