sama5.c 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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,sama5d4",
  31. NULL
  32. };
  33. DT_MACHINE_START(sama5_alt_dt, "Atmel SAMA5")
  34. /* Maintainer: Atmel */
  35. .init_machine = sama5_dt_device_init,
  36. .dt_compat = sama5_alt_dt_board_compat,
  37. .l2c_aux_mask = ~0UL,
  38. MACHINE_END
  39. static void __init sama5d2_init(void)
  40. {
  41. of_platform_default_populate(NULL, NULL, NULL);
  42. sama5d2_pm_init();
  43. }
  44. static const char *const sama5d2_compat[] __initconst = {
  45. "atmel,sama5d2",
  46. NULL
  47. };
  48. DT_MACHINE_START(sama5d2, "Atmel SAMA5")
  49. /* Maintainer: Atmel */
  50. .init_machine = sama5d2_init,
  51. .dt_compat = sama5d2_compat,
  52. .l2c_aux_mask = ~0UL,
  53. MACHINE_END