common.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. 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[] __initdata = {
  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. .map_io = sirfsoc_map_io,
  33. .init_late = sirfsoc_init_late,
  34. .dt_compat = atlas6_dt_match,
  35. .restart = sirfsoc_restart,
  36. MACHINE_END
  37. #endif
  38. #ifdef CONFIG_ARCH_PRIMA2
  39. static const char *prima2_dt_match[] __initdata = {
  40. "sirf,prima2",
  41. NULL
  42. };
  43. DT_MACHINE_START(PRIMA2_DT, "Generic PRIMA2 (Flattened Device Tree)")
  44. /* Maintainer: Barry Song <baohua.song@csr.com> */
  45. .map_io = sirfsoc_map_io,
  46. .dma_zone_size = SZ_256M,
  47. .init_late = sirfsoc_init_late,
  48. .dt_compat = prima2_dt_match,
  49. .restart = sirfsoc_restart,
  50. MACHINE_END
  51. #endif
  52. #ifdef CONFIG_ARCH_MARCO
  53. static const char *marco_dt_match[] __initdata = {
  54. "sirf,marco",
  55. NULL
  56. };
  57. DT_MACHINE_START(MARCO_DT, "Generic MARCO (Flattened Device Tree)")
  58. /* Maintainer: Barry Song <baohua.song@csr.com> */
  59. .smp = smp_ops(sirfsoc_smp_ops),
  60. .map_io = sirfsoc_map_io,
  61. .init_late = sirfsoc_init_late,
  62. .dt_compat = marco_dt_match,
  63. .restart = sirfsoc_restart,
  64. MACHINE_END
  65. #endif