blob: e83a147a000b6d919cd10d530e4b4b1ac209efe7 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Masahiro Yamada836c55d2017-04-14 11:10:24 +09002
Patrick Delaunay81313352021-04-27 11:02:19 +02003#define LOG_CATEGORY UCLASS_FIRMWARE
4
Simon Glass51a3ec32017-05-17 17:18:07 -06005#include <common.h>
Simon Glass11c89f32017-05-17 17:18:03 -06006#include <dm.h>
Masahiro Yamada836c55d2017-04-14 11:10:24 +09007
8/* Firmware access is platform-dependent. No generic code in uclass */
9UCLASS_DRIVER(firmware) = {
10 .id = UCLASS_FIRMWARE,
11 .name = "firmware",
Simon Glass3580f6d2021-08-07 07:24:03 -060012#if CONFIG_IS_ENABLED(OF_REAL)
Andreas Dannenberg85083242018-08-27 15:57:38 +053013 .post_bind = dm_scan_fdt_dev,
14#endif
Masahiro Yamada836c55d2017-04-14 11:10:24 +090015};