blob: 985ae2544deb188d58dac3f8113c925c128dddb5 [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
Simon Glass4dcacfc2020-05-10 11:40:13 -060010#ifndef __ASSEMBLY__
11#include <linux/bitops.h>
12#endif
13
Michael Kurz812962b2017-01-22 16:04:27 +010014struct 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 Kurz812962b2017-01-22 16:04:27 +010029/* SYSCFG peripheral mode configuration register */
Michael Kurz812962b2017-01-22 16:04:27 +010030#define SYSCFG_PMC_MII_RMII_SEL BIT(23)
31
Michael Kurz812962b2017-01-22 16:04:27 +010032#endif