Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Vikas Manocha | 33913c5 | 2014-11-18 10:42:22 -0800 | [diff] [blame] | 2 | /* |
Patrice Chotard | cc55116 | 2017-10-23 09:53:59 +0200 | [diff] [blame] | 3 | * Copyright (C) 2014, STMicroelectronics - All Rights Reserved |
| 4 | * Author(s): Vikas Manocha, <vikas.manocha@st.com> for STMicroelectronics. |
Vikas Manocha | 33913c5 | 2014-11-18 10:42:22 -0800 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __ASM_ARM_ARCH_PERIPH_H |
| 8 | #define __ASM_ARM_ARCH_PERIPH_H |
| 9 | |
| 10 | /* |
| 11 | * Peripherals required for pinmux configuration. List will |
| 12 | * grow with support for more devices getting added. |
| 13 | * Numbering based on interrupt table. |
| 14 | * |
| 15 | */ |
| 16 | enum periph_id { |
| 17 | UART_GPIOC_30_31 = 0, |
| 18 | UART_GPIOB_16_17, |
Vikas Manocha | 32b9e71 | 2014-11-18 10:42:23 -0800 | [diff] [blame] | 19 | ETH_GPIOB_10_31_C_0_4, |
Vikas Manocha | 20cdba5 | 2015-07-02 18:29:40 -0700 | [diff] [blame] | 20 | QSPI_CS_CLK_PAD, |
Vikas Manocha | 33913c5 | 2014-11-18 10:42:22 -0800 | [diff] [blame] | 21 | PERIPH_ID_I2C0, |
| 22 | PERIPH_ID_I2C1, |
| 23 | PERIPH_ID_I2C2, |
| 24 | PERIPH_ID_I2C3, |
| 25 | PERIPH_ID_I2C4, |
| 26 | PERIPH_ID_I2C5, |
| 27 | PERIPH_ID_I2C6, |
| 28 | PERIPH_ID_I2C7, |
| 29 | PERIPH_ID_SPI0, |
| 30 | PERIPH_ID_SPI1, |
| 31 | PERIPH_ID_SPI2, |
| 32 | PERIPH_ID_SDMMC0, |
| 33 | PERIPH_ID_SDMMC1, |
| 34 | PERIPH_ID_SDMMC2, |
| 35 | PERIPH_ID_SDMMC3, |
| 36 | PERIPH_ID_I2S1, |
| 37 | }; |
| 38 | |
| 39 | enum periph_clock { |
| 40 | UART_CLOCK_CFG = 0, |
| 41 | ETH_CLOCK_CFG, |
Vikas Manocha | 20cdba5 | 2015-07-02 18:29:40 -0700 | [diff] [blame] | 42 | QSPI_CLOCK_CFG, |
Vikas Manocha | 33913c5 | 2014-11-18 10:42:22 -0800 | [diff] [blame] | 43 | }; |
| 44 | |
| 45 | #endif /* __ASM_ARM_ARCH_PERIPH_H */ |