sama5.c 999 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Setup code for SAMA5
  3. *
  4. * Copyright (C) 2013 Atmel,
  5. * 2013 Ludovic Desroches <ludovic.desroches@atmel.com>
  6. *
  7. * Licensed under GPLv2 or later.
  8. */
  9. #include <linux/of.h>
  10. #include <linux/of_platform.h>
  11. #include <asm/mach/arch.h>
  12. #include <asm/mach/map.h>
  13. #include <asm/system_misc.h>
  14. #include "generic.h"
  15. static void __init sama5_dt_device_init(void)
  16. {
  17. of_platform_default_populate(NULL, NULL, NULL);
  18. sama5_pm_init();
  19. }
  20. static const char *const sama5_dt_board_compat[] __initconst = {
  21. "atmel,sama5",
  22. NULL
  23. };
  24. DT_MACHINE_START(sama5_dt, "Atmel SAMA5")
  25. /* Maintainer: Atmel */
  26. .init_machine = sama5_dt_device_init,
  27. .dt_compat = sama5_dt_board_compat,
  28. MACHINE_END
  29. static const char *const sama5_alt_dt_board_compat[] __initconst = {
  30. "atmel,sama5d2",
  31. "atmel,sama5d4",
  32. NULL
  33. };
  34. DT_MACHINE_START(sama5_alt_dt, "Atmel SAMA5")
  35. /* Maintainer: Atmel */
  36. .init_machine = sama5_dt_device_init,
  37. .dt_compat = sama5_alt_dt_board_compat,
  38. .l2c_aux_mask = ~0UL,
  39. MACHINE_END