sckc.c 633 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (C) 2016 Atmel Corporation
  3. * Wenyou.Yang <wenyou.yang@atmel.com>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #include <common.h>
  8. #include <clk-uclass.h>
  9. #include <dm/device.h>
  10. #include <dm/root.h>
  11. DECLARE_GLOBAL_DATA_PTR;
  12. static int at91_sckc_clk_bind(struct udevice *dev)
  13. {
  14. return dm_scan_fdt_node(dev, gd->fdt_blob, dev->of_offset, false);
  15. }
  16. static const struct udevice_id at91_sckc_clk_match[] = {
  17. { .compatible = "atmel,at91sam9x5-sckc" },
  18. {}
  19. };
  20. U_BOOT_DRIVER(at91_sckc_clk) = {
  21. .name = "at91_sckc_clk",
  22. .id = UCLASS_CLK,
  23. .of_match = at91_sckc_clk_match,
  24. .bind = at91_sckc_clk_bind,
  25. };