1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * (C) Copyright 2015 Google, Inc 4 */ 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 */ 14 enum 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, 26 PERIPH_ID_I2C6, 27 PERIPH_ID_I2C7, 28 PERIPH_ID_I2C8, 29 PERIPH_ID_SPI0, 30 PERIPH_ID_SPI1, 31 PERIPH_ID_SPI2, 32 PERIPH_ID_SPI3, 33 PERIPH_ID_SPI4, 34 PERIPH_ID_SPI5, 35 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, 46 PERIPH_ID_GMAC, 47 PERIPH_ID_SFC, 48 49 PERIPH_ID_COUNT, 50 51 /* Some aliases */ 52 PERIPH_ID_EMMC = PERIPH_ID_SDMMC0, 53 PERIPH_ID_SDCARD = PERIPH_ID_SDMMC1, 54 PERIPH_ID_UART_BT = PERIPH_ID_UART0, 55 PERIPH_ID_UART_BB = PERIPH_ID_UART1, 56 PERIPH_ID_UART_DBG = PERIPH_ID_UART2, 57 PERIPH_ID_UART_GPS = PERIPH_ID_UART3, 58 PERIPH_ID_UART_EXP = PERIPH_ID_UART4, 59 }; 60 61 #endif 62