diff options
Diffstat (limited to 'roms/u-boot/drivers/firmware/firmware-uclass.c')
-rw-r--r-- | roms/u-boot/drivers/firmware/firmware-uclass.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/roms/u-boot/drivers/firmware/firmware-uclass.c b/roms/u-boot/drivers/firmware/firmware-uclass.c new file mode 100644 index 000000000..7fcd7fb90 --- /dev/null +++ b/roms/u-boot/drivers/firmware/firmware-uclass.c @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0+ + +#include <common.h> +#include <dm.h> + +/* Firmware access is platform-dependent. No generic code in uclass */ +UCLASS_DRIVER(firmware) = { + .id = UCLASS_FIRMWARE, + .name = "firmware", +#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA) + .post_bind = dm_scan_fdt_dev, +#endif +}; |