xref: /OK3568_Linux_fs/u-boot/drivers/firmware/firmware-uclass.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * SPDX-License-Identifier:	GPL-2.0+
3  */
4 
5 #include <common.h>
6 #include <dm.h>
7 
8 /* Firmware access is platform-dependent.  No generic code in uclass */
9 UCLASS_DRIVER(firmware) = {
10 	.id		= UCLASS_FIRMWARE,
11 	.name		= "firmware",
12 };
13 
14 U_BOOT_DRIVER(firmware) = {
15 	.name	= "firmware",
16 	.id	= UCLASS_FIRMWARE,
17 #if !CONFIG_IS_ENABLED(OF_PLATDATA)
18 	.bind = dm_scan_fdt_dev,
19 #endif
20 };
21