calculationAnalysisOfCablePower.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. * OMAP cpu type detection
  3. *
  4. * Copyright (C) 2004, 2008 Nokia Corporation
  5. *
  6. * Copyright (C) 2009-11 Texas Instruments.
  7. *
  8. * Written by Tony Lindgren <tony.lindgren@nokia.com>
  9. *
  10. * Added OMAP4/5 specific defines - Santosh Shilimkar<santosh.shilimkar@ti.com>
  11. *
  12. * This program is free software; you can redistribute it and/or modify
  13. * it under the terms of the GNU General Public License as published by
  14. * the Free Software Foundation; either version 2 of the License, or
  15. * (at your option) any later version.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU General Public License
  23. * along with this program; if not, write to the Free Software
  24. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  25. *
  26. */
  27. #include "omap24xx.h"
  28. #include "omap34xx.h"
  29. #include "omap44xx.h"
  30. #include "ti81xx.h"
  31. #include "am33xx.h"
  32. #include "omap54xx.h"
  33. #ifndef __ASSEMBLY__
  34. #include <linux/bitops.h>
  35. /*
  36. * Test if multicore OMAP support is needed
  37. */
  38. #undef MULTI_OMAP2
  39. #undef OMAP_NAME
  40. #ifdef CONFIG_SOC_OMAP2420
  41. # ifdef OMAP_NAME
  42. # undef MULTI_OMAP2
  43. # define MULTI_OMAP2
  44. # else
  45. # define OMAP_NAME omap2420
  46. # endif
  47. #endif
  48. #ifdef CONFIG_SOC_OMAP2430
  49. # ifdef OMAP_NAME
  50. # undef MULTI_OMAP2
  51. # define MULTI_OMAP2
  52. # else
  53. # define OMAP_NAME omap2430
  54. # endif
  55. #endif
  56. #ifdef CONFIG_ARCH_OMAP3
  57. # ifdef OMAP_NAME
  58. # undef MULTI_OMAP2
  59. # define MULTI_OMAP2
  60. # else
  61. # define OMAP_NAME omap3
  62. # endif
  63. #endif
  64. #ifdef CONFIG_ARCH_OMAP4
  65. # ifdef OMAP_NAME
  66. # undef MULTI_OMAP2
  67. # define MULTI_OMAP2
  68. # else
  69. # define OMAP_NAME omap4
  70. # endif
  71. #endif
  72. #ifdef CONFIG_SOC_OMAP5
  73. # ifdef OMAP_NAME
  74. # undef MULTI_OMAP2
  75. # define MULTI_OMAP2
  76. # else
  77. # define OMAP_NAME omap5
  78. # endif
  79. #endif
  80. #ifdef CONFIG_SOC_AM33XX
  81. # ifdef OMAP_NAME