lpc-uclass.c 574 B

12345678910111213141516171819202122232425262728
  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. #include <common.h>
  8. #include <dm.h>
  9. #include <dm/root.h>
  10. static int lpc_uclass_post_bind(struct udevice *bus)
  11. {
  12. /*
  13. * Scan the device tree for devices
  14. *
  15. * Before relocation, only bind devices marked for pre-relocation
  16. * use.
  17. */
  18. return dm_scan_fdt_node(bus, gd->fdt_blob, bus->of_offset,
  19. gd->flags & GD_FLG_RELOC ? false : true);
  20. }
  21. UCLASS_DRIVER(lpc) = {
  22. .id = UCLASS_LPC,
  23. .name = "lpc",
  24. .post_bind = lpc_uclass_post_bind,
  25. };