]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
6494d708 SG |
2 | /* |
3 | * Copyright (c) 2013 Google, Inc | |
4 | * | |
5 | * (C) Copyright 2012 | |
6 | * Pavel Herrmann <[email protected]> | |
6494d708 SG |
7 | */ |
8 | ||
9 | #ifndef _DM_UCLASS_ID_H | |
10 | #define _DM_UCLASS_ID_H | |
11 | ||
12 | /* TODO([email protected]): this could be compile-time generated */ | |
13 | enum uclass_id { | |
14 | /* These are used internally by driver model */ | |
15 | UCLASS_ROOT = 0, | |
16 | UCLASS_DEMO, | |
17 | UCLASS_TEST, | |
18 | UCLASS_TEST_FDT, | |
1ca7e206 | 19 | UCLASS_TEST_BUS, |
98561572 | 20 | UCLASS_TEST_PROBE, |
e8d52918 | 21 | UCLASS_TEST_DUMMY, |
c60e1f25 | 22 | UCLASS_SPI_EMUL, /* sandbox SPI device emulator */ |
c70c71d8 | 23 | UCLASS_I2C_EMUL, /* sandbox I2C device emulator */ |
36d0d3b4 | 24 | UCLASS_PCI_EMUL, /* sandbox PCI device emulator */ |
019808f9 | 25 | UCLASS_USB_EMUL, /* sandbox USB bus device emulator */ |
3d7cf419 | 26 | UCLASS_SIMPLE_BUS, /* bus with child devices */ |
6494d708 | 27 | |
3d7cf419 | 28 | /* U-Boot uclasses start here - in alphabetical order */ |
5decbf53 | 29 | UCLASS_ADC, /* Analog-to-digital converter */ |
a219639d | 30 | UCLASS_AHCI, /* SATA disk controller */ |
09d71aac | 31 | UCLASS_BLK, /* Block device */ |
f26c8a8e | 32 | UCLASS_CLK, /* Clock source, e.g. used by peripherals */ |
3d7cf419 SG |
33 | UCLASS_CPU, /* CPU, typically part of an SoC */ |
34 | UCLASS_CROS_EC, /* Chrome OS EC */ | |
2dcf1433 | 35 | UCLASS_DISPLAY, /* Display (e.g. DisplayPort, HDMI) */ |
a0594cef | 36 | UCLASS_DMA, /* Direct Memory Access */ |
05ef48a2 | 37 | UCLASS_EFI, /* EFI managed devices */ |
3d7cf419 | 38 | UCLASS_ETH, /* Ethernet device */ |
0040b944 | 39 | UCLASS_GPIO, /* Bank of general-purpose I/O pins */ |
573a3811 | 40 | UCLASS_FIRMWARE, /* Firmware */ |
c6202d85 | 41 | UCLASS_I2C, /* I2C bus */ |
20142019 | 42 | UCLASS_I2C_EEPROM, /* I2C EEPROM device */ |
3d7cf419 | 43 | UCLASS_I2C_GENERIC, /* Generic I2C device */ |
3d1957f0 | 44 | UCLASS_I2C_MUX, /* I2C multiplexer */ |
68e6f221 | 45 | UCLASS_IDE, /* IDE device */ |
e76187a3 | 46 | UCLASS_IRQ, /* Interrupt controller */ |
34ab37ee | 47 | UCLASS_KEYBOARD, /* Keyboard input device */ |
5917112c | 48 | UCLASS_LED, /* Light-emitting diode (LED) */ |
3d7cf419 | 49 | UCLASS_LPC, /* x86 'low pin count' interface */ |
6238935d | 50 | UCLASS_MAILBOX, /* Mailbox controller */ |
3d7cf419 | 51 | UCLASS_MASS_STORAGE, /* Mass storage device */ |
4395e06e | 52 | UCLASS_MISC, /* Miscellaneous device */ |
e7ecf7cb | 53 | UCLASS_MMC, /* SD / MMC card or chip */ |
31d2b4fd | 54 | UCLASS_MOD_EXP, /* RSA Mod Exp device */ |
d8587993 | 55 | UCLASS_MTD, /* Memory Technology Device (MTD) device */ |
5544757c | 56 | UCLASS_NORTHBRIDGE, /* Intel Northbridge / SDRAM controller */ |
ffab6945 | 57 | UCLASS_NVME, /* NVM Express device */ |
f563dc1d | 58 | UCLASS_PANEL, /* Display panel, such as an LCD */ |
363bf77a | 59 | UCLASS_PANEL_BACKLIGHT, /* Backlight controller for panel */ |
3d7cf419 | 60 | UCLASS_PCH, /* x86 platform controller hub */ |
ff3e077b SG |
61 | UCLASS_PCI, /* PCI bus */ |
62 | UCLASS_PCI_GENERIC, /* Generic PCI bus device */ | |
72e5016f | 63 | UCLASS_PHY, /* Physical Layer (PHY) device */ |
d90a5a30 | 64 | UCLASS_PINCONFIG, /* Pin configuration node device */ |
6f0e7a36 | 65 | UCLASS_PINCTRL, /* Pinctrl (pin muxing/configuration) device */ |
4e389366 | 66 | UCLASS_PMIC, /* PMIC I/O device */ |
fc760cb8 | 67 | UCLASS_PWM, /* Pulse-width modulator */ |
61f5ddcb | 68 | UCLASS_POWER_DOMAIN, /* (SoC) Power domains */ |
5fd6badb | 69 | UCLASS_PWRSEQ, /* Power sequence device */ |
6f0e7a36 | 70 | UCLASS_RAM, /* RAM controller */ |
4e389366 | 71 | UCLASS_REGULATOR, /* Regulator device */ |
ddf56bc7 | 72 | UCLASS_REMOTEPROC, /* Remote Processor device */ |
89c1e2da | 73 | UCLASS_RESET, /* Reset controller device */ |
3d7cf419 | 74 | UCLASS_RTC, /* Real time clock device */ |
e8a016b5 | 75 | UCLASS_SCSI, /* SCSI device */ |
3d7cf419 SG |
76 | UCLASS_SERIAL, /* Serial UART */ |
77 | UCLASS_SPI, /* SPI bus */ | |
04868b40 | 78 | UCLASS_SPMI, /* System Power Management Interface bus */ |
3d7cf419 | 79 | UCLASS_SPI_FLASH, /* SPI flash */ |
4e389366 | 80 | UCLASS_SPI_GENERIC, /* Generic SPI flash target */ |
57251285 | 81 | UCLASS_SYSCON, /* System configuration device */ |
11636258 | 82 | UCLASS_SYSRESET, /* System reset device */ |
3d7cf419 | 83 | UCLASS_THERMAL, /* Thermal sensor */ |
c8a7ba9e | 84 | UCLASS_TIMER, /* Timer device */ |
f255d31f | 85 | UCLASS_TPM, /* Trusted Platform Module TIS interface */ |
de31213f | 86 | UCLASS_USB, /* USB bus */ |
449230f0 | 87 | UCLASS_USB_DEV_GENERIC, /* USB generic device */ |
3d7cf419 | 88 | UCLASS_USB_HUB, /* USB hub */ |
1acafc73 | 89 | UCLASS_VIDEO, /* Video or LCD device */ |
801ab9e9 | 90 | UCLASS_VIDEO_BRIDGE, /* Video bridge, e.g. DisplayPort to LVDS */ |
83510766 | 91 | UCLASS_VIDEO_CONSOLE, /* Text console driver for video device */ |
0753bc2d | 92 | UCLASS_WDT, /* Watchdot Timer driver */ |
6494d708 SG |
93 | |
94 | UCLASS_COUNT, | |
95 | UCLASS_INVALID = -1, | |
96 | }; | |
97 | ||
98 | #endif |