sama7.c 663 B

123456789101112131415161718192021222324252627282930313233
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Setup code for SAMA7
  4. *
  5. * Copyright (C) 2021 Microchip Technology, Inc. and its subsidiaries
  6. *
  7. */
  8. #include <linux/of.h>
  9. #include <linux/of_platform.h>
  10. #include <asm/mach/arch.h>
  11. #include <asm/system_misc.h>
  12. #include "generic.h"
  13. static void __init sama7_dt_device_init(void)
  14. {
  15. of_platform_default_populate(NULL, NULL, NULL);
  16. sama7_pm_init();
  17. }
  18. static const char *const sama7_dt_board_compat[] __initconst = {
  19. "microchip,sama7",
  20. NULL
  21. };
  22. DT_MACHINE_START(sama7_dt, "Microchip SAMA7")
  23. /* Maintainer: Microchip */
  24. .init_machine = sama7_dt_device_init,
  25. .dt_compat = sama7_dt_board_compat,
  26. MACHINE_END