| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 | | // SPDX-License-Identifier:     GPL-2.0+ |  | /* |  |  * (C) Copyright 2018 Rockchip Electronics Co., Ltd |  |  */ |  |   |  | #include <common.h> |  | #include <console.h> |  | #include <io-domain.h> |  |   |  | int io_domain_init(void) |  | { |  |     struct udevice *dev; |  |     struct uclass *uc; |  |     int ret; |  |   |  |     ret = uclass_get(UCLASS_IO_DOMAIN, &uc); |  |     if (ret) |  |         return ret; |  |   |  |     for (uclass_first_device(UCLASS_IO_DOMAIN, &dev); |  |          dev; |  |          uclass_next_device(&dev)) |  |         ; |  |   |  |     printf("io-domain: OK\n"); |  |   |  |     return 0; |  | } |  |   |  | UCLASS_DRIVER(io_domain) = { |  |     .id        = UCLASS_IO_DOMAIN, |  |     .name        = "io_domain", |  | }; | 
 |