Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Masahiro Yamada | 836c55d | 2017-04-14 11:10:24 +0900 | [diff] [blame] | 2 | |
Patrick Delaunay | 8131335 | 2021-04-27 11:02:19 +0200 | [diff] [blame] | 3 | #define LOG_CATEGORY UCLASS_FIRMWARE |
| 4 | |
Simon Glass | 11c89f3 | 2017-05-17 17:18:03 -0600 | [diff] [blame] | 5 | #include <dm.h> |
Masahiro Yamada | 836c55d | 2017-04-14 11:10:24 +0900 | [diff] [blame] | 6 | |
| 7 | /* Firmware access is platform-dependent. No generic code in uclass */ |
| 8 | UCLASS_DRIVER(firmware) = { |
| 9 | .id = UCLASS_FIRMWARE, |
| 10 | .name = "firmware", |
Simon Glass | 3580f6d | 2021-08-07 07:24:03 -0600 | [diff] [blame] | 11 | #if CONFIG_IS_ENABLED(OF_REAL) |
Andreas Dannenberg | 8508324 | 2018-08-27 15:57:38 +0530 | [diff] [blame] | 12 | .post_bind = dm_scan_fdt_dev, |
| 13 | #endif |
Masahiro Yamada | 836c55d | 2017-04-14 11:10:24 +0900 | [diff] [blame] | 14 | }; |