1 /* 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 */ 15 enum 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, 27 PERIPH_ID_I2C6, 28 PERIPH_ID_I2C7, 29 PERIPH_ID_I2C8, 30 PERIPH_ID_SPI0, 31 PERIPH_ID_SPI1, 32 PERIPH_ID_SPI2, 33 PERIPH_ID_SPI3, 34 PERIPH_ID_SPI4, 35 PERIPH_ID_SPI5, 36 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, 47 PERIPH_ID_GMAC, 48 PERIPH_ID_SFC, 49 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 63