blob: 6475f9d5c89179ce526a26d1c1c18c9c62e35354 [file] [log] [blame]
Vikas Manocha1b51c932016-02-11 15:47:20 -08001/*
Patrice Chotard789ee0e2017-10-23 09:53:58 +02002 * Copyright (C) 2016, STMicroelectronics - All Rights Reserved
3 * Author(s): Vikas Manocha, <vikas.manocha@st.com> for STMicroelectronics.
Vikas Manocha1b51c932016-02-11 15:47:20 -08004 *
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