blob: 2191b7d43a896885a0007f32e82039b25dcd0ae4 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Simon Glass932bc4a2015-08-30 16:55:28 -06002/*
3 * (C) Copyright 2015 Google, Inc
Simon Glass932bc4a2015-08-30 16:55:28 -06004 */
5
6#ifndef _ASM_ARCH_PERIPH_H
7#define _ASM_ARCH_PERIPH_H
8
9/*
10 * The peripherals supported by the hardware. This is used to specify clocks
11 * and pinctrl settings. Some SoCs will not support all of these, but it
12 * provides a common reference for common drivers to use.
13 */
14enum periph_id {
15 PERIPH_ID_PWM0,
16 PERIPH_ID_PWM1,
17 PERIPH_ID_PWM2,
18 PERIPH_ID_PWM3,
19 PERIPH_ID_PWM4,
20 PERIPH_ID_I2C0,
21 PERIPH_ID_I2C1,
22 PERIPH_ID_I2C2,
23 PERIPH_ID_I2C3,
24 PERIPH_ID_I2C4,
25 PERIPH_ID_I2C5,
Philipp Tomsicha37eed52017-11-22 19:47:37 +010026 PERIPH_ID_I2C6,
27 PERIPH_ID_I2C7,
28 PERIPH_ID_I2C8,
Simon Glass932bc4a2015-08-30 16:55:28 -060029 PERIPH_ID_SPI0,
30 PERIPH_ID_SPI1,
31 PERIPH_ID_SPI2,
Philipp Tomsichfa8d7bf2017-04-20 22:05:53 +020032 PERIPH_ID_SPI3,
33 PERIPH_ID_SPI4,
34 PERIPH_ID_SPI5,
Simon Glass932bc4a2015-08-30 16:55:28 -060035 PERIPH_ID_UART0,
36 PERIPH_ID_UART1,
37 PERIPH_ID_UART2,
38 PERIPH_ID_UART3,
39 PERIPH_ID_UART4,
40 PERIPH_ID_LCDC0,
41 PERIPH_ID_LCDC1,
42 PERIPH_ID_SDMMC0,
43 PERIPH_ID_SDMMC1,
44 PERIPH_ID_SDMMC2,
45 PERIPH_ID_HDMI,
Philipp Tomsich2be5abf2017-03-24 19:24:23 +010046 PERIPH_ID_GMAC,
Andy Yan6d95cd52017-06-01 18:00:36 +080047 PERIPH_ID_SFC,
Simon Glasscf6741b2018-12-27 20:15:20 -070048 PERIPH_ID_I2S,
Simon Glass932bc4a2015-08-30 16:55:28 -060049
50 PERIPH_ID_COUNT,
51
52 /* Some aliases */
53 PERIPH_ID_EMMC = PERIPH_ID_SDMMC0,
54 PERIPH_ID_SDCARD = PERIPH_ID_SDMMC1,
55 PERIPH_ID_UART_BT = PERIPH_ID_UART0,
56 PERIPH_ID_UART_BB = PERIPH_ID_UART1,
57 PERIPH_ID_UART_DBG = PERIPH_ID_UART2,
58 PERIPH_ID_UART_GPS = PERIPH_ID_UART3,
59 PERIPH_ID_UART_EXP = PERIPH_ID_UART4,
60};
61
62#endif