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 <morpheus.ibis@gmail.com> | |
6494d708 SG |
7 | */ |
8 | ||
9 | #ifndef _DM_UCLASS_ID_H | |
10 | #define _DM_UCLASS_ID_H | |
11 | ||
12 | /* TODO(sjg@chromium.org): 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 */ |
b7c25b11 | 24 | UCLASS_I2C_EMUL_PARENT, /* parent for I2C device emulators */ |
36d0d3b4 | 25 | UCLASS_PCI_EMUL, /* sandbox PCI device emulator */ |
9b69ba4a | 26 | UCLASS_PCI_EMUL_PARENT, /* parent for PCI device emulators */ |
019808f9 | 27 | UCLASS_USB_EMUL, /* sandbox USB bus device emulator */ |
9a8bcabd | 28 | UCLASS_AXI_EMUL, /* sandbox AXI bus device emulator */ |
6494d708 | 29 | |
3d7cf419 | 30 | /* U-Boot uclasses start here - in alphabetical order */ |
6c6d88e1 | 31 | UCLASS_ACPI_PMC, /* (x86) Power-management controller (PMC) */ |
5decbf53 | 32 | UCLASS_ADC, /* Analog-to-digital converter */ |
a219639d | 33 | UCLASS_AHCI, /* SATA disk controller */ |
ce6d99a0 | 34 | UCLASS_AUDIO_CODEC, /* Audio codec with control and data path */ |
759a99c2 | 35 | UCLASS_AXI, /* AXI bus */ |
09d71aac | 36 | UCLASS_BLK, /* Block device */ |
5381c285 | 37 | UCLASS_BOARD, /* Device information from hardware */ |
ebb73de1 | 38 | UCLASS_BOOTCOUNT, /* Bootcount backing store */ |
84b124db | 39 | UCLASS_CACHE, /* Cache controller */ |
f26c8a8e | 40 | UCLASS_CLK, /* Clock source, e.g. used by peripherals */ |
3d7cf419 SG |
41 | UCLASS_CPU, /* CPU, typically part of an SoC */ |
42 | UCLASS_CROS_EC, /* Chrome OS EC */ | |
2dcf1433 | 43 | UCLASS_DISPLAY, /* Display (e.g. DisplayPort, HDMI) */ |
23f965a4 | 44 | UCLASS_DSI_HOST, /* Display Serial Interface host */ |
a0594cef | 45 | UCLASS_DMA, /* Direct Memory Access */ |
05ef48a2 | 46 | UCLASS_EFI, /* EFI managed devices */ |
3d7cf419 | 47 | UCLASS_ETH, /* Ethernet device */ |
759a99c2 | 48 | UCLASS_FIRMWARE, /* Firmware */ |
62030004 | 49 | UCLASS_FS_FIRMWARE_LOADER, /* Generic loader */ |
0040b944 | 50 | UCLASS_GPIO, /* Bank of general-purpose I/O pins */ |
7f84fc67 | 51 | UCLASS_HWSPINLOCK, /* Hardware semaphores */ |
c6202d85 | 52 | UCLASS_I2C, /* I2C bus */ |
20142019 | 53 | UCLASS_I2C_EEPROM, /* I2C EEPROM device */ |
3d7cf419 | 54 | UCLASS_I2C_GENERIC, /* Generic I2C device */ |
3d1957f0 | 55 | UCLASS_I2C_MUX, /* I2C multiplexer */ |
e96fa6c9 | 56 | UCLASS_I2S, /* I2S bus */ |
68e6f221 | 57 | UCLASS_IDE, /* IDE device */ |
e76187a3 | 58 | UCLASS_IRQ, /* Interrupt controller */ |
34ab37ee | 59 | UCLASS_KEYBOARD, /* Keyboard input device */ |
5917112c | 60 | UCLASS_LED, /* Light-emitting diode (LED) */ |
3d7cf419 | 61 | UCLASS_LPC, /* x86 'low pin count' interface */ |
6238935d | 62 | UCLASS_MAILBOX, /* Mailbox controller */ |
3d7cf419 | 63 | UCLASS_MASS_STORAGE, /* Mass storage device */ |
c3452b50 | 64 | UCLASS_MDIO, /* MDIO bus */ |
8880edba | 65 | UCLASS_MDIO_MUX, /* MDIO MUX/switch */ |
4395e06e | 66 | UCLASS_MISC, /* Miscellaneous device */ |
e7ecf7cb | 67 | UCLASS_MMC, /* SD / MMC card or chip */ |
31d2b4fd | 68 | UCLASS_MOD_EXP, /* RSA Mod Exp device */ |
d8587993 | 69 | UCLASS_MTD, /* Memory Technology Device (MTD) device */ |
07e33711 | 70 | UCLASS_NOP, /* No-op devices */ |
5544757c | 71 | UCLASS_NORTHBRIDGE, /* Intel Northbridge / SDRAM controller */ |
ffab6945 | 72 | UCLASS_NVME, /* NVM Express device */ |
5bee27aa | 73 | UCLASS_P2SB, /* (x86) Primary-to-Sideband Bus */ |
f563dc1d | 74 | UCLASS_PANEL, /* Display panel, such as an LCD */ |
363bf77a | 75 | UCLASS_PANEL_BACKLIGHT, /* Backlight controller for panel */ |
3d7cf419 | 76 | UCLASS_PCH, /* x86 platform controller hub */ |
ff3e077b | 77 | UCLASS_PCI, /* PCI bus */ |
914026d2 | 78 | UCLASS_PCI_EP, /* PCI endpoint device */ |
ff3e077b | 79 | UCLASS_PCI_GENERIC, /* Generic PCI bus device */ |
72e5016f | 80 | UCLASS_PHY, /* Physical Layer (PHY) device */ |
d90a5a30 | 81 | UCLASS_PINCONFIG, /* Pin configuration node device */ |
6f0e7a36 | 82 | UCLASS_PINCTRL, /* Pinctrl (pin muxing/configuration) device */ |
4e389366 | 83 | UCLASS_PMIC, /* PMIC I/O device */ |
61f5ddcb | 84 | UCLASS_POWER_DOMAIN, /* (SoC) Power domains */ |
759a99c2 | 85 | UCLASS_PWM, /* Pulse-width modulator */ |
5fd6badb | 86 | UCLASS_PWRSEQ, /* Power sequence device */ |
6f0e7a36 | 87 | UCLASS_RAM, /* RAM controller */ |
4e389366 | 88 | UCLASS_REGULATOR, /* Regulator device */ |
ddf56bc7 | 89 | UCLASS_REMOTEPROC, /* Remote Processor device */ |
89c1e2da | 90 | UCLASS_RESET, /* Reset controller device */ |
a2487684 | 91 | UCLASS_RNG, /* Random Number Generator */ |
3d7cf419 | 92 | UCLASS_RTC, /* Real time clock device */ |
e8a016b5 | 93 | UCLASS_SCSI, /* SCSI device */ |
3d7cf419 | 94 | UCLASS_SERIAL, /* Serial UART */ |
25cbb470 | 95 | UCLASS_SIMPLE_BUS, /* Bus with child devices */ |
7b384ecc | 96 | UCLASS_SMEM, /* Shared memory interface */ |
d4901898 | 97 | UCLASS_SOUND, /* Playing simple sounds */ |
3d7cf419 | 98 | UCLASS_SPI, /* SPI bus */ |
3d7cf419 | 99 | UCLASS_SPI_FLASH, /* SPI flash */ |
4e389366 | 100 | UCLASS_SPI_GENERIC, /* Generic SPI flash target */ |
759a99c2 | 101 | UCLASS_SPMI, /* System Power Management Interface bus */ |
57251285 | 102 | UCLASS_SYSCON, /* System configuration device */ |
11636258 | 103 | UCLASS_SYSRESET, /* System reset device */ |
9ff4a311 | 104 | UCLASS_TEE, /* Trusted Execution Environment device */ |
3d7cf419 | 105 | UCLASS_THERMAL, /* Thermal sensor */ |
c8a7ba9e | 106 | UCLASS_TIMER, /* Timer device */ |
f255d31f | 107 | UCLASS_TPM, /* Trusted Platform Module TIS interface */ |
7feafb0a | 108 | UCLASS_UFS, /* Universal Flash Storage */ |
de31213f | 109 | UCLASS_USB, /* USB bus */ |
449230f0 | 110 | UCLASS_USB_DEV_GENERIC, /* USB generic device */ |
3d7cf419 | 111 | UCLASS_USB_HUB, /* USB hub */ |
01311624 | 112 | UCLASS_USB_GADGET_GENERIC, /* USB generic device */ |
1acafc73 | 113 | UCLASS_VIDEO, /* Video or LCD device */ |
801ab9e9 | 114 | UCLASS_VIDEO_BRIDGE, /* Video bridge, e.g. DisplayPort to LVDS */ |
83510766 | 115 | UCLASS_VIDEO_CONSOLE, /* Text console driver for video device */ |
39a336f1 | 116 | UCLASS_VIDEO_OSD, /* On-screen display */ |
8fb49b4c | 117 | UCLASS_VIRTIO, /* VirtIO transport device */ |
d3e19cf9 | 118 | UCLASS_W1, /* Dallas 1-Wire bus */ |
c924ee25 | 119 | UCLASS_W1_EEPROM, /* one-wire EEPROMs */ |
72384ff2 | 120 | UCLASS_WDT, /* Watchdog Timer driver */ |
6494d708 SG |
121 | |
122 | UCLASS_COUNT, | |
123 | UCLASS_INVALID = -1, | |
124 | }; | |
125 | ||
126 | #endif |