]> git.sur5r.net Git - u-boot/blob - arch/x86/lib/pch-uclass.c
x86: fsp: Set up init runtime buffer in update_fsp_configs()
[u-boot] / arch / x86 / lib / pch-uclass.c
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 DECLARE_GLOBAL_DATA_PTR;
13
14 static int pch_uclass_post_bind(struct udevice *bus)
15 {
16         /*
17          * Scan the device tree for devices
18          *
19          * Before relocation, only bind devices marked for pre-relocation
20          * use.
21          */
22         return dm_scan_fdt_node(bus, gd->fdt_blob, bus->of_offset,
23                                 gd->flags & GD_FLG_RELOC ? false : true);
24 }
25
26 UCLASS_DRIVER(pch) = {
27         .id             = UCLASS_PCH,
28         .name           = "pch",
29         .post_bind      = pch_uclass_post_bind,
30 };