ipam390-ais-uart.cfg 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. ; General settings that can be overwritten in the host code
  2. ; that calls the AISGen library.
  3. [General]
  4. ; Can be 8 or 16 - used in emifa
  5. busWidth=8
  6. ; SPIMASTER,I2CMASTER,EMIFA,NAND,EMAC,UART,PCI,HPI,USB,MMC_SD,VLYNQ,RAW
  7. BootMode=UART
  8. ; 8,16,24 - used for SPI,I2C
  9. ;AddrWidth=8
  10. ; NO_CRC,SECTION_CRC,SINGLE_CRC
  11. crcCheckType=NO_CRC
  12. ; This section allows setting the PLL0 system clock with a
  13. ; specified multiplier and divider as shown. The clock source
  14. ; can also be chosen for internal or external.
  15. ; |------24|------16|-------8|-------0|
  16. ; PLL0CFG0: | CLKMODE| PLLM | PREDIV | POSTDIV|
  17. ; PLL0CFG1: | RSVD | PLLDIV1| PLLDIV3| PLLDIV7|
  18. ;[PLL0CONFIG]
  19. ;PLL0CFG0 = 0x00180001
  20. ;PLL0CFG1 = 0x00000205
  21. [PLLANDCLOCKCONFIG]
  22. PLL0CFG0 = 0x00180001
  23. PLL0CFG1 = 0x00000205
  24. PERIPHCLKCFG = 0x00000051
  25. ; This section allows setting up the PLL1. Usually this will
  26. ; take place as part of the EMIF3a DDR setup. The format of
  27. ; the input args is as follows:
  28. ; |------24|------16|-------8|-------0|
  29. ; PLL1CFG0: | PLLM| POSTDIV| PLLDIV1| PLLDIV2|
  30. ; PLL1CFG1: | RSVD | PLLDIV3|
  31. [PLL1CONFIG]
  32. PLL1CFG0 = 0x18010001
  33. PLL1CFG1 = 0x00000002
  34. ; This section lets us configure the peripheral interface
  35. ; of the current booting peripheral (I2C, SPI, or UART).
  36. ; Use with caution. The format of the PERIPHCLKCFG field
  37. ; is as follows:
  38. ; SPI: |------24|------16|-------8|-------0|
  39. ; | RSVD |PRESCALE|
  40. ;
  41. ; I2C: |------24|------16|-------8|-------0|
  42. ; | RSVD |PRESCALE| CLKL | CLKH |
  43. ;
  44. ; UART: |------24|------16|-------8|-------0|
  45. ; | RSVD | OSR | DLH | DLL |
  46. [PERIPHCLKCFG]
  47. PERIPHCLKCFG = 0x00000051
  48. ; This section can be used to configure the PLL1 and the EMIF3a registers
  49. ; for starting the DDR2 interface.
  50. ; See PLL1CONFIG section for the format of the PLL1CFG fields.
  51. ; |------24|------16|-------8|-------0|
  52. ; PLL1CFG0: | PLL1CFG |
  53. ; PLL1CFG1: | PLL1CFG |
  54. ; DDRPHYC1R: | DDRPHYC1R |
  55. ; SDCR: | SDCR |
  56. ; SDTIMR: | SDTIMR |
  57. ; SDTIMR2: | SDTIMR2 |
  58. ; SDRCR: | SDRCR |
  59. ; CLK2XSRC: | CLK2XSRC |
  60. [EMIF3DDR]
  61. PLL1CFG0 = 0x18010001
  62. PLL1CFG1 = 0x00000002
  63. DDRPHYC1R = 0x000000C2
  64. SDCR = 0x0017C432
  65. SDTIMR = 0x26922A09
  66. SDTIMR2 = 0x4414C722
  67. SDRCR = 0x00000498
  68. CLK2XSRC = 0x00000000
  69. ; This section can be used to configure the EMIFA to use
  70. ; CS0 as an SDRAM interface. The fields required to do this
  71. ; are given below.
  72. ; |------24|------16|-------8|-------0|
  73. ; SDBCR: | SDBCR |
  74. ; SDTIMR: | SDTIMR |
  75. ; SDRSRPDEXIT: | SDRSRPDEXIT |
  76. ; SDRCR: | SDRCR |
  77. ; DIV4p5_CLK_ENABLE: | DIV4p5_CLK_ENABLE |
  78. ;[EMIF25SDRAM]
  79. ;SDBCR = 0x00004421
  80. ;SDTIMR = 0x42215810
  81. ;SDRSRPDEXIT = 0x00000009
  82. ;SDRCR = 0x00000410
  83. ;DIV4p5_CLK_ENABLE = 0x00000001
  84. ; This section can be used to configure the async chip selects
  85. ; of the EMIFA (CS2-CS5). The fields required to do this
  86. ; are given below.
  87. ; |------24|------16|-------8|-------0|
  88. ; A1CR: | A1CR |
  89. ; A2CR: | A2CR |
  90. ; A3CR: | A3CR |
  91. ; A4CR: | A4CR |
  92. ; NANDFCR: | NANDFCR |
  93. ;[EMIF25ASYNC]
  94. ;A1CR = 0x00000000
  95. ;A2CR = 0x00000000
  96. ;A3CR = 0x00000000
  97. ;A4CR = 0x00000000
  98. ;NANDFCR = 0x00000000
  99. [EMIF25ASYNC]
  100. A1CR = 0x00000000
  101. A2CR = 0x04202110
  102. A3CR = 0x00000000
  103. A4CR = 0x00000000
  104. NANDFCR = 0x00000012
  105. ; This section should be used in place of PLL0CONFIG when
  106. ; the I2C, SPI, or UART modes are being used. This ensures that
  107. ; the system PLL and the peripheral's clocks are changed together.
  108. ; See PLL0CONFIG section for the format of the PLL0CFG fields.
  109. ; See PERIPHCLKCFG section for the format of the CLKCFG field.
  110. ; |------24|------16|-------8|-------0|
  111. ; PLL0CFG0: | PLL0CFG |
  112. ; PLL0CFG1: | PLL0CFG |
  113. ; PERIPHCLKCFG: | CLKCFG |
  114. ;[PLLANDCLOCKCONFIG]
  115. ;PLL0CFG0 = 0x00180001
  116. ;PLL0CFG1 = 0x00000205
  117. ;PERIPHCLKCFG = 0x00010032
  118. ; This section should be used to setup the power state of modules
  119. ; of the two PSCs. This section can be included multiple times to
  120. ; allow the configuration of any or all of the device modules.
  121. ; |------24|------16|-------8|-------0|
  122. ; LPSCCFG: | PSCNUM | MODULE | PD | STATE |
  123. ;[PSCCONFIG]
  124. ;LPSCCFG=
  125. ; This section allows setting of a single PINMUX register.
  126. ; This section can be included multiple times to allow setting
  127. ; as many PINMUX registers as needed.
  128. ; |------24|------16|-------8|-------0|
  129. ; REGNUM: | regNum |
  130. ; MASK: | mask |
  131. ; VALUE: | value |
  132. ;[PINMUX]
  133. ;REGNUM = 5
  134. ;MASK = 0x00FF0000
  135. ;VALUE = 0x00880000
  136. ; No Params required - simply include this section for the fast boot
  137. ; function to be called
  138. ;[FASTBOOT]
  139. ; This section allows setting up the PLL1. Usually this will
  140. ; take place as part of the EMIF3a DDR setup. The format of
  141. ; the input args is as follows:
  142. ; |------24|------16|-------8|-------0|
  143. ; PLL1CFG0: | PLLM| POSTDIV| PLLDIV1| PLLDIV2|
  144. ; PLL1CFG1: | RSVD | PLLDIV3|
  145. ;[PLL1CONFIG]
  146. ;PLL1CFG0 = 0x15010001
  147. ;PLL1CFG1 = 0x00000002
  148. ; This section can be used to configure the PLL1 and the EMIF3a registers
  149. ; for starting the DDR2 interface on ARM-boot D800K002 devices.
  150. ; |------24|------16|-------8|-------0|
  151. ; DDRPHYC1R: | DDRPHYC1R |
  152. ; SDCR: | SDCR |
  153. ; SDTIMR: | SDTIMR |
  154. ; SDTIMR2: | SDTIMR2 |
  155. ; SDRCR: | SDRCR |
  156. ; CLK2XSRC: | CLK2XSRC |
  157. ;[ARM_EMIF3DDR_PATCHFXN]
  158. ;DDRPHYC1R = 0x000000C2
  159. ;SDCR = 0x0017C432
  160. ;SDTIMR = 0x26922A09
  161. ;SDTIMR2 = 0x4414C722
  162. ;SDRCR = 0x00000498
  163. ;CLK2XSRC = 0x00000000
  164. ; This section can be used to configure the PLL1 and the EMIF3a registers
  165. ; for starting the DDR2 interface on DSP-boot D800K002 devices.
  166. ; |------24|------16|-------8|-------0|
  167. ; DDRPHYC1R: | DDRPHYC1R |
  168. ; SDCR: | SDCR |
  169. ; SDTIMR: | SDTIMR |
  170. ; SDTIMR2: | SDTIMR2 |
  171. ; SDRCR: | SDRCR |
  172. ; CLK2XSRC: | CLK2XSRC |
  173. ;[DSP_EMIF3DDR_PATCHFXN]
  174. ;DDRPHYC1R = 0x000000C4
  175. ;SDCR = 0x08134632
  176. ;SDTIMR = 0x26922A09
  177. ;SDTIMR2 = 0x0014C722
  178. ;SDRCR = 0x00000492
  179. ;CLK2XSRC = 0x00000000
  180. ;[INPUTFILE]
  181. ;FILENAME=u-boot.bin
  182. ;LOADADDRESS=0xC1080000
  183. ;ENTRYPOINTADDRESS=0xC1080000