common.c 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Defines machines for CSR SiRFprimaII
  3. *
  4. * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
  5. *
  6. * Licensed under GPLv2 or later.
  7. */
  8. #include <linux/init.h>
  9. #include <linux/kernel.h>
  10. #include <asm/sizes.h>
  11. #include <asm/mach-types.h>
  12. #include <asm/mach/arch.h>
  13. #include <linux/of.h>
  14. #include <linux/of_platform.h>
  15. #include "common.h"
  16. static void __init sirfsoc_init_late(void)
  17. {
  18. sirfsoc_pm_init();
  19. }
  20. #ifdef CONFIG_ARCH_ATLAS6
  21. static const char *const atlas6_dt_match[] __initconst = {
  22. "sirf,atlas6",
  23. NULL
  24. };
  25. DT_MACHINE_START(ATLAS6_DT, "Generic ATLAS6 (Flattened Device Tree)")
  26. /* Maintainer: Barry Song <baohua.song@csr.com> */
  27. .l2c_aux_val = 0,
  28. .l2c_aux_mask = ~0,
  29. .init_late = sirfsoc_init_late,
  30. .dt_compat = atlas6_dt_match,
  31. MACHINE_END
  32. #endif
  33. #ifdef CONFIG_ARCH_PRIMA2
  34. static const char *const prima2_dt_match[] __initconst = {
  35. "sirf,prima2",
  36. NULL
  37. };
  38. DT_MACHINE_START(PRIMA2_DT, "Generic PRIMA2 (Flattened Device Tree)")
  39. /* Maintainer: Barry Song <baohua.song@csr.com> */
  40. .l2c_aux_val = 0,
  41. .l2c_aux_mask = ~0,
  42. .dma_zone_size = SZ_256M,
  43. .init_late = sirfsoc_init_late,
  44. .dt_compat = prima2_dt_match,
  45. MACHINE_END
  46. #endif
  47. #ifdef CONFIG_ARCH_ATLAS7
  48. static const char *const atlas7_dt_match[] __initconst = {
  49. "sirf,atlas7",
  50. NULL
  51. };
  52. DT_MACHINE_START(ATLAS7_DT, "Generic ATLAS7 (Flattened Device Tree)")
  53. /* Maintainer: Barry Song <baohua.song@csr.com> */
  54. .smp = smp_ops(sirfsoc_smp_ops),
  55. .dt_compat = atlas7_dt_match,
  56. MACHINE_END
  57. #endif