blob: a33f8cf9bc3cf377de98e91d7d85a30929af63ce [file] [log] [blame]
Vikas Manocha1b51c932016-02-11 15:47:20 -08001/*
2 * (C) Copyright 2016
3 * Vikas Manocha, ST Micoelectronics, vikas.manocha@st.com.
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8#ifndef _STM32_RCC_H
9#define _STM32_RCC_H
10
Patrice Chotard7bdf9712017-07-18 09:29:05 +020011#include <dt-bindings/mfd/stm32f7-rcc.h>
12
Michael Kurzc204fb72017-01-22 16:04:24 +010013/*
14 * RCC AHB1ENR specific definitions
15 */
Michael Kurzc204fb72017-01-22 16:04:24 +010016#define RCC_AHB1ENR_ETHMAC_EN BIT(25)
17#define RCC_AHB1ENR_ETHMAC_TX_EN BIT(26)
18#define RCC_AHB1ENR_ETHMAC_RX_EN BIT(27)
Vikas Manocha1b51c932016-02-11 15:47:20 -080019
Michael Kurzc204fb72017-01-22 16:04:24 +010020/*
Michael Kurzc204fb72017-01-22 16:04:24 +010021 * RCC APB1ENR specific definitions
Vikas Manocha1b51c932016-02-11 15:47:20 -080022 */
Michael Kurzc204fb72017-01-22 16:04:24 +010023#define RCC_APB1ENR_TIM2EN BIT(0)
Michael Kurzc204fb72017-01-22 16:04:24 +010024#define RCC_APB1ENR_PWREN BIT(28)
Vikas Manocha1b51c932016-02-11 15:47:20 -080025
26/*
Michael Kurzc204fb72017-01-22 16:04:24 +010027 * RCC APB2ENR specific definitions
Vikas Manocha1b51c932016-02-11 15:47:20 -080028 */
Michael Kurzc204fb72017-01-22 16:04:24 +010029#define RCC_APB2ENR_SYSCFGEN BIT(14)
Vikas Manocha1b51c932016-02-11 15:47:20 -080030
31#endif