common.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. static __init void sirfsoc_map_io(void)
  21. {
  22. sirfsoc_map_lluart();
  23. sirfsoc_map_scu();
  24. }
  25. #ifdef CONFIG_ARCH_ATLAS6
  26. static const char *atlas6_dt_match[] __initconst = {
  27. "sirf,atlas6",
  28. NULL
  29. };
  30. DT_MACHINE_START(ATLAS6_DT, "Generic ATLAS6 (Flattened Device Tree)")
  31. /* Maintainer: Barry Song <baohua.song@csr.com> */
  32. .l2c_aux_val = 0,
  33. .l2c_aux_mask = ~0,
  34. .map_io = sirfsoc_map_io,
  35. .init_late = sirfsoc_init_late,
  36. .dt_compat = atlas6_dt_match,
  37. MACHINE_END
  38. #endif
  39. #ifdef CONFIG_ARCH_PRIMA2
  40. static const char *prima2_dt_match[] __initconst = {
  41. "sirf,prima2",
  42. NULL
  43. };
  44. DT_MACHINE_START(PRIMA2_DT, "Generic PRIMA2 (Flattened Device Tree)")
  45. /* Maintainer: Barry Song <baohua.song@csr.com> */
  46. .l2c_aux_val = 0,
  47. .l2c_aux_mask = ~0,
  48. .map_io = sirfsoc_map_io,
  49. .dma_zone_size = SZ_256M,
  50. .init_late = sirfsoc_init_late,
  51. .dt_compat = prima2_dt_match,
  52. MACHINE_END
  53. #endif
  54. #ifdef CONFIG_ARCH_MARCO
  55. static const char *marco_dt_match[] __initconst = {
  56. "sirf,marco",
  57. NULL
  58. };
  59. DT_MACHINE_START(MARCO_DT, "Generic MARCO (Flattened Device Tree)")
  60. /* Maintainer: Barry Song <baohua.song@csr.com> */
  61. .l2c_aux_val = 0,
  62. .l2c_aux_mask = ~0,
  63. .smp = smp_ops(sirfsoc_smp_ops),
  64. .map_io = sirfsoc_map_io,
  65. .init_late = sirfsoc_init_late,
  66. .dt_compat = marco_dt_match,
  67. MACHINE_END
  68. #endif