xref: /openbmc/u-boot/arch/x86/lib/lpc-uclass.c (revision 2e3f1ff63f50f36e74d46f939823241856ebf1bd)
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 
11 DECLARE_GLOBAL_DATA_PTR;
12 
13 static int lpc_uclass_post_bind(struct udevice *bus)
14 {
15 	/*
16 	 * Scan the device tree for devices
17 	 *
18 	 * Before relocation, only bind devices marked for pre-relocation
19 	 * use.
20 	 */
21 	return dm_scan_fdt_dev(bus);
22 }
23 
24 UCLASS_DRIVER(lpc) = {
25 	.id		= UCLASS_LPC,
26 	.name		= "lpc",
27 	.post_bind	= lpc_uclass_post_bind,
28 };
29