csl_emif4f.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /**
  2. * @file csl_emif4.h
  3. *
  4. * @brief
  5. * This is the main header file for the EMIF4F Module which defines
  6. * all the data structures and exported API.
  7. *
  8. * \par
  9. * ============================================================================
  10. * @n (C) Copyright 2011-2017, Texas Instruments, Inc.
  11. *
  12. * Redistribution and use in source and binary forms, with or without
  13. * modification, are permitted provided that the following conditions
  14. * are met:
  15. *
  16. * Redistributions of source code must retain the above copyright
  17. * notice, this list of conditions and the following disclaimer.
  18. *
  19. * Redistributions in binary form must reproduce the above copyright
  20. * notice, this list of conditions and the following disclaimer in the
  21. * documentation and/or other materials provided with the
  22. * distribution.
  23. *
  24. * Neither the name of Texas Instruments Incorporated nor the names of
  25. * its contributors may be used to endorse or promote products derived
  26. * from this software without specific prior written permission.
  27. *
  28. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  29. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  30. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  31. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  32. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  33. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  34. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  35. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  36. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  37. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  38. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  39. *
  40. */
  41. /** @defgroup CSL_EMIF4F_API EMIF4F
  42. *
  43. * @section Introduction
  44. * The External Memory Interface (EMIF) is a TI developed re-usable IP component
  45. * targeted for SOC designs. The EMIF is a VBUSM slave peripheral providing an
  46. * interface to a wide variety of DDR SDRAM. This memory controller is a soft
  47. * macro and must be used with the DDR PHY hard macros to interface to the
  48. * DDR SDRAM.
  49. *
  50. * @subsection References
  51. * -# EMIF4F Functional Specification
  52. */
  53. #ifndef CSL_EMIF4F_TOP_H
  54. #define CSL_EMIF4F_TOP_H
  55. #ifdef __cplusplus
  56. extern "C" {
  57. #endif
  58. #include <ti/csl/csl.h>
  59. #include <ti/csl/tistdtypes.h>
  60. #if defined(SOC_K2K)
  61. #include <ti/csl/src/ip/emif4/V0/csl_emif4f.h>
  62. #elif defined(SOC_K2H)
  63. #include <ti/csl/src/ip/emif4/V0/csl_emif4f.h>
  64. #elif defined(SOC_K2E)
  65. #include <ti/csl/src/ip/emif4/V1/csl_emif4f.h>
  66. #elif defined(SOC_K2L)
  67. #include <ti/csl/src/ip/emif4/V1/csl_emif4f.h>
  68. #elif defined(SOC_K2G)
  69. #include <ti/csl/src/ip/emif4/V1/csl_emif4f.h>
  70. #elif defined(SOC_OMAPL137)
  71. #include <ti/csl/src/ip/emif4/V4/csl_emif4a.h>
  72. #include <ti/csl/src/ip/emif4/V4/csl_emif4b.h>
  73. #elif defined(SOC_OMAPL138)
  74. #include <ti/csl/src/ip/emif4/V4/csl_emif4a.h>
  75. #elif defined(SOC_C6657)||defined(SOC_C6678)
  76. #include <ti/csl/src/ip/emif4/V3/csl_emif4f.h>
  77. #elif defined (SOC_AM574x) || defined(SOC_AM572x) || defined(SOC_AM571x)
  78. #include <ti/csl/src/ip/emif4/V2/csl_emif4d5.h>
  79. #endif /* SOC_XXXXX */
  80. #ifdef __cplusplus
  81. }
  82. #endif
  83. #endif /* CSL_EMIF4F_TOP_H */