lpc-uclass.c 503 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. DECLARE_GLOBAL_DATA_PTR;
  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_dev(bus);
  19. }
  20. UCLASS_DRIVER(lpc) = {
  21. .id = UCLASS_LPC,
  22. .name = "lpc",
  23. .post_bind = lpc_uclass_post_bind,
  24. };