cslr_rw_table.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /********************************************************************
  2. * Copyright (C) 2013-2014 Texas Instruments Incorporated.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. *
  8. * Redistributions of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. *
  11. * Redistributions in binary form must reproduce the above copyright
  12. * notice, this list of conditions and the following disclaimer in the
  13. * documentation and/or other materials provided with the
  14. * distribution.
  15. *
  16. * Neither the name of Texas Instruments Incorporated nor the names of
  17. * its contributors may be used to endorse or promote products derived
  18. * from this software without specific prior written permission.
  19. *
  20. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  22. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  23. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  24. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  26. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. *
  32. */
  33. #ifndef CSLR_RWTABLE_H_
  34. #define CSLR_RWTABLE_H_
  35. #ifdef __cplusplus
  36. extern "C"
  37. {
  38. #endif
  39. #include <ti/csl/cslr.h>
  40. #include <ti/csl/tistdtypes.h>
  41. /**************************************************************************
  42. * Register Overlay Structure for __ALL__
  43. **************************************************************************/
  44. typedef struct {
  45. volatile Uint32 DUCATI_RW_PID1;
  46. volatile Uint32 DUCATI_RW_PID2;
  47. volatile Uint32 DMLED_SW_CTRL_REG;
  48. } CSL_RwTableRegs;
  49. /**************************************************************************
  50. * Register Macros
  51. **************************************************************************/
  52. /* DUCATI_RW_PID1 */
  53. #define CSL_RWTABLE_DUCATI_RW_PID1 (0x0U)
  54. /* DUCATI_RW_PID2 */
  55. #define CSL_RWTABLE_DUCATI_RW_PID2 (0x4U)
  56. /* Reserved for DMLED testing */
  57. #define CSL_RWTABLE_DMLED_SW_CTRL_REG (0x8U)
  58. /**************************************************************************
  59. * Field Definition Macros
  60. **************************************************************************/
  61. /* DUCATI_RW_PID1 */
  62. #define CSL_RWTABLE_DUCATI_RW_PID1_BASEADD1_MASK (0xFFFFFFFFU)
  63. #define CSL_RWTABLE_DUCATI_RW_PID1_BASEADD1_SHIFT (0U)
  64. #define CSL_RWTABLE_DUCATI_RW_PID1_BASEADD1_RESETVAL (0x00000000U)
  65. #define CSL_RWTABLE_DUCATI_RW_PID1_BASEADD1_MAX (0xffffffffU)
  66. #define CSL_RWTABLE_DUCATI_RW_PID1_RESETVAL (0x00000000U)
  67. /* DUCATI_RW_PID2 */
  68. #define CSL_RWTABLE_DUCATI_RW_PID2_BASEADD2_MASK (0xFFFFFFFFU)
  69. #define CSL_RWTABLE_DUCATI_RW_PID2_BASEADD2_SHIFT (0U)
  70. #define CSL_RWTABLE_DUCATI_RW_PID2_BASEADD2_RESETVAL (0x00000000U)
  71. #define CSL_RWTABLE_DUCATI_RW_PID2_BASEADD2_MAX (0xffffffffU)
  72. #define CSL_RWTABLE_DUCATI_RW_PID2_RESETVAL (0x00000000U)
  73. /* DMLED_SW_CTRL_REG */
  74. #define CSL_RWTABLE_DMLED_SW_CTRL_REG_STATUSBIT_MASK (0x00000001U)
  75. #define CSL_RWTABLE_DMLED_SW_CTRL_REG_STATUSBIT_SHIFT (0U)
  76. #define CSL_RWTABLE_DMLED_SW_CTRL_REG_STATUSBIT_RESETVAL (0x00000000U)
  77. #define CSL_RWTABLE_DMLED_SW_CTRL_REG_STATUSBIT_MAX (0x00000001U)
  78. #define CSL_RWTABLE_DMLED_SW_CTRL_REG_EXECBIT_MASK (0x00000002U)
  79. #define CSL_RWTABLE_DMLED_SW_CTRL_REG_EXECBIT_SHIFT (1U)
  80. #define CSL_RWTABLE_DMLED_SW_CTRL_REG_EXECBIT_RESETVAL (0x00000000U)
  81. #define CSL_RWTABLE_DMLED_SW_CTRL_REG_EXECBIT_MAX (0x00000001U)
  82. #define CSL_RWTABLE_DMLED_SW_CTRL_REG_SYNCBIT_MASK (0x00000004U)
  83. #define CSL_RWTABLE_DMLED_SW_CTRL_REG_SYNCBIT_SHIFT (2U)
  84. #define CSL_RWTABLE_DMLED_SW_CTRL_REG_SYNCBIT_RESETVAL (0x00000000U)
  85. #define CSL_RWTABLE_DMLED_SW_CTRL_REG_SYNCBIT_MAX (0x00000001U)
  86. #define CSL_RWTABLE_DMLED_SW_CTRL_REG_RESETVAL (0x00000000U)
  87. #ifdef __cplusplus
  88. }
  89. #endif
  90. #endif