multi.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /*
  2. * Support for compiling in multiple OMAP processors
  3. *
  4. * Copyright (C) 2010 Nokia Corporation
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. *
  20. */
  21. #ifndef __PLAT_OMAP_MULTI_H
  22. #define __PLAT_OMAP_MULTI_H
  23. /*
  24. * Test if multicore OMAP support is needed
  25. */
  26. #undef MULTI_OMAP1
  27. #undef MULTI_OMAP2
  28. #undef OMAP_NAME
  29. #ifdef CONFIG_ARCH_OMAP730
  30. # ifdef OMAP_NAME
  31. # undef MULTI_OMAP1
  32. # define MULTI_OMAP1
  33. # else
  34. # define OMAP_NAME omap730
  35. # endif
  36. #endif
  37. #ifdef CONFIG_ARCH_OMAP850
  38. # ifdef OMAP_NAME
  39. # undef MULTI_OMAP1
  40. # define MULTI_OMAP1
  41. # else
  42. # define OMAP_NAME omap850
  43. # endif
  44. #endif
  45. #ifdef CONFIG_ARCH_OMAP15XX
  46. # ifdef OMAP_NAME
  47. # undef MULTI_OMAP1
  48. # define MULTI_OMAP1
  49. # else
  50. # define OMAP_NAME omap1510
  51. # endif
  52. #endif
  53. #ifdef CONFIG_ARCH_OMAP16XX
  54. # ifdef OMAP_NAME
  55. # undef MULTI_OMAP1
  56. # define MULTI_OMAP1
  57. # else
  58. # define OMAP_NAME omap16xx
  59. # endif
  60. #endif
  61. #ifdef CONFIG_ARCH_OMAP2PLUS
  62. # if (defined(OMAP_NAME) || defined(MULTI_OMAP1))
  63. # error "OMAP1 and OMAP2PLUS can't be selected at the same time"
  64. # endif
  65. #endif
  66. #ifdef CONFIG_SOC_OMAP2420
  67. # ifdef OMAP_NAME
  68. # undef MULTI_OMAP2
  69. # define MULTI_OMAP2
  70. # else
  71. # define OMAP_NAME omap2420
  72. # endif
  73. #endif
  74. #ifdef CONFIG_SOC_OMAP2430
  75. # ifdef OMAP_NAME
  76. # undef MULTI_OMAP2
  77. # define MULTI_OMAP2
  78. # else
  79. # define OMAP_NAME omap2430
  80. # endif
  81. #endif
  82. #ifdef CONFIG_ARCH_OMAP3
  83. # ifdef OMAP_NAME
  84. # undef MULTI_OMAP2
  85. # define MULTI_OMAP2
  86. # else
  87. # define OMAP_NAME omap3
  88. # endif
  89. #endif
  90. #ifdef CONFIG_ARCH_OMAP4
  91. # ifdef OMAP_NAME
  92. # undef MULTI_OMAP2
  93. # define MULTI_OMAP2
  94. # else
  95. # define OMAP_NAME omap4
  96. # endif
  97. #endif
  98. #endif /* __PLAT_OMAP_MULTI_H */