Simon Glass | 404bc5e | 2015-03-26 09:29:27 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015 Google, Inc |
| 3 | * Written by Simon Glass <sjg@chromium.org> |
| 4 | * |
| 5 | * SPDX-License-Identifier: GPL-2.0+ |
| 6 | */ |
| 7 | |
| 8 | #include <common.h> |
| 9 | #include <dm.h> |
| 10 | #include <dm/root.h> |
| 11 | |
| 12 | static int pch_uclass_post_bind(struct udevice *bus) |
| 13 | { |
| 14 | /* |
| 15 | * Scan the device tree for devices |
| 16 | * |
| 17 | * Before relocation, only bind devices marked for pre-relocation |
| 18 | * use. |
| 19 | */ |
| 20 | return dm_scan_fdt_node(bus, gd->fdt_blob, bus->of_offset, |
| 21 | gd->flags & GD_FLG_RELOC ? false : true); |
| 22 | } |
| 23 | |
| 24 | UCLASS_DRIVER(pch) = { |
| 25 | .id = UCLASS_PCH, |
| 26 | .name = "pch", |
| 27 | .post_bind = pch_uclass_post_bind, |
| 28 | }; |