blob: 77cf5b945009998c539815f6a902531b36cf24a8 [file] [log] [blame]
Simon Glass932bc4a2015-08-30 16:55:28 -06001/*
2 * (C) Copyright 2015 Google, Inc
3 *
4 * SPDX-License-Identifier: GPL-2.0
5 */
6
7#ifndef _ASM_ARCH_PERIPH_H
8#define _ASM_ARCH_PERIPH_H
9
10/*
11 * The peripherals supported by the hardware. This is used to specify clocks
12 * and pinctrl settings. Some SoCs will not support all of these, but it
13 * provides a common reference for common drivers to use.
14 */
15enum periph_id {
16 PERIPH_ID_PWM0,
17 PERIPH_ID_PWM1,
18 PERIPH_ID_PWM2,
19 PERIPH_ID_PWM3,
20 PERIPH_ID_PWM4,
21 PERIPH_ID_I2C0,
22 PERIPH_ID_I2C1,
23 PERIPH_ID_I2C2,
24 PERIPH_ID_I2C3,
25 PERIPH_ID_I2C4,
26 PERIPH_ID_I2C5,
Philipp Tomsicha37eed52017-11-22 19:47:37 +010027 PERIPH_ID_I2C6,
28 PERIPH_ID_I2C7,
29 PERIPH_ID_I2C8,
Simon Glass932bc4a2015-08-30 16:55:28 -060030 PERIPH_ID_SPI0,
31 PERIPH_ID_SPI1,
32 PERIPH_ID_SPI2,
Philipp Tomsichfa8d7bf2017-04-20 22:05:53 +020033 PERIPH_ID_SPI3,
34 PERIPH_ID_SPI4,
35 PERIPH_ID_SPI5,
Simon Glass932bc4a2015-08-30 16:55:28 -060036 PERIPH_ID_UART0,
37 PERIPH_ID_UART1,
38 PERIPH_ID_UART2,
39 PERIPH_ID_UART3,
40 PERIPH_ID_UART4,
41 PERIPH_ID_LCDC0,
42 PERIPH_ID_LCDC1,
43 PERIPH_ID_SDMMC0,
44 PERIPH_ID_SDMMC1,
45 PERIPH_ID_SDMMC2,
46 PERIPH_ID_HDMI,
Philipp Tomsich2be5abf2017-03-24 19:24:23 +010047 PERIPH_ID_GMAC,
Andy Yan6d95cd52017-06-01 18:00:36 +080048 PERIPH_ID_SFC,
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