blob: b8254ff48ce449848f132894202d8e4358b18146 [file] [log] [blame]
Simon Glassa274e9c2015-03-26 09:29:28 -06001/*
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>
Simon Glassa274e9c2015-03-26 09:29:28 -060010
Simon Glass8b097912015-07-31 09:31:31 -060011DECLARE_GLOBAL_DATA_PTR;
12
Simon Glassa274e9c2015-03-26 09:29:28 -060013static 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 */
Simon Glass2e3f1ff2016-07-05 17:10:09 -060021 return dm_scan_fdt_dev(bus);
Simon Glassa274e9c2015-03-26 09:29:28 -060022}
23
24UCLASS_DRIVER(lpc) = {
25 .id = UCLASS_LPC,
26 .name = "lpc",
27 .post_bind = lpc_uclass_post_bind,
28};