DK1S10_mtx_ldk_20.h 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /*
  2. * (C) Copyright 2003, Li-Pro.Net <www.li-pro.net>
  3. * Stephan Linz <linz@li-pro.net>
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. */
  23. #ifndef __CONFIG_DK1S10_MTX_LDK_20_H
  24. #define __CONFIG_DK1S10_MTX_LDK_20_H
  25. /*
  26. * NIOS CPU configuration. (PART OF configs/DK1S10.h)
  27. *
  28. * Here we must define CPU dependencies. Any unsupported option have to
  29. * be defined with zero, example CPU without data cache / OCI:
  30. *
  31. * #define CONFIG_SYS_NIOS_CPU_ICACHE 4096
  32. * #define CONFIG_SYS_NIOS_CPU_DCACHE 0
  33. * #define CONFIG_SYS_NIOS_CPU_OCI_BASE 0
  34. * #define CONFIG_SYS_NIOS_CPU_OCI_SIZE 0
  35. */
  36. /* CPU core */
  37. #define CONFIG_SYS_NIOS_CPU_CLK 75000000 /* NIOS CPU clock */
  38. #define CONFIG_SYS_NIOS_CPU_ICACHE (0) /* instruction cache */
  39. #define CONFIG_SYS_NIOS_CPU_DCACHE (0) /* data cache */
  40. #define CONFIG_SYS_NIOS_CPU_REG_NUMS 512 /* number of register */
  41. #define CONFIG_SYS_NIOS_CPU_MUL 0 /* 16x16 MUL: no(0) */
  42. /* yes(1) */
  43. #define CONFIG_SYS_NIOS_CPU_MSTEP 1 /* 16x16 MSTEP: no(0) */
  44. /* yes(1) */
  45. #define CONFIG_SYS_NIOS_CPU_STACK 0x02000000 /* stack top addr */
  46. #define CONFIG_SYS_NIOS_CPU_VEC_BASE 0x01000000 /* IRQ vectors addr */
  47. #define CONFIG_SYS_NIOS_CPU_VEC_SIZE 256 /* size */
  48. #define CONFIG_SYS_NIOS_CPU_VEC_NUMS 64 /* numbers */
  49. #define CONFIG_SYS_NIOS_CPU_RST_VECT 0x00000000 /* RESET vector addr */
  50. #define CONFIG_SYS_NIOS_CPU_DBG_CORE 0 /* CPU debug: no(0) */
  51. /* yes(1) */
  52. /* The offset address in flash to check for the Nios signature "Ni".
  53. * (see GM_FlashExec in germs_monitor.s) */
  54. #define CONFIG_SYS_NIOS_CPU_EXES_OFFS 0x0C
  55. /* on-chip extensions */
  56. #undef CONFIG_SYS_NIOS_CPU_RAM_BASE /* on chip RAM addr */
  57. #undef CONFIG_SYS_NIOS_CPU_RAM_SIZE /* 64 KB size */
  58. #define CONFIG_SYS_NIOS_CPU_ROM_BASE 0x00000000 /* on chip ROM addr */
  59. #define CONFIG_SYS_NIOS_CPU_ROM_SIZE (2 * 1024) /* 2 KB size */
  60. #undef CONFIG_SYS_NIOS_CPU_OCI_BASE /* OCI core addr */
  61. #undef CONFIG_SYS_NIOS_CPU_OCI_SIZE /* size */
  62. /* timer */
  63. #define CONFIG_SYS_NIOS_CPU_TIMER_NUMS 1 /* number of timer */
  64. #define CONFIG_SYS_NIOS_CPU_TIMER0 0x00000840 /* TIMER0 addr */
  65. #define CONFIG_SYS_NIOS_CPU_TIMER0_IRQ 16 /* IRQ */
  66. #define CONFIG_SYS_NIOS_CPU_TIMER0_PER 1000 /* periode usec */
  67. #define CONFIG_SYS_NIOS_CPU_TIMER0_AR 0 /* always run: no(0) */
  68. /* yes(1) */
  69. #define CONFIG_SYS_NIOS_CPU_TIMER0_FP 0 /* fixed per: no(0) */
  70. /* yes(1) */
  71. #define CONFIG_SYS_NIOS_CPU_TIMER0_SS 1 /* snaphot: no(0) */
  72. /* yes(1) */
  73. /* serial i/o */
  74. #define CONFIG_SYS_NIOS_CPU_UART_NUMS 2 /* number of uarts */
  75. #define CONFIG_SYS_NIOS_CPU_UART0 0x00000800 /* UART0 addr */
  76. #define CONFIG_SYS_NIOS_CPU_UART0_IRQ 17 /* IRQ */
  77. #define CONFIG_SYS_NIOS_CPU_UART0_BR 115200 /* baudrate var(0) */
  78. #define CONFIG_SYS_NIOS_CPU_UART0_DB 8 /* data bit */
  79. #define CONFIG_SYS_NIOS_CPU_UART0_SB 2 /* stop bit */
  80. #define CONFIG_SYS_NIOS_CPU_UART0_PA 0 /* parity none(0) */
  81. /* odd(1) */
  82. /* even(2) */
  83. #define CONFIG_SYS_NIOS_CPU_UART0_HS 0 /* handshake: no(0) */
  84. /* crts(1) */
  85. #define CONFIG_SYS_NIOS_CPU_UART0_EOP 0 /* eop reg: no(0) */
  86. /* yes(1) */
  87. #define CONFIG_SYS_NIOS_CPU_UART1 0x000008a0 /* UART1 addr */
  88. #define CONFIG_SYS_NIOS_CPU_UART1_IRQ 18 /* IRQ */
  89. #define CONFIG_SYS_NIOS_CPU_UART1_BR 115200 /* baudrate var(0) */
  90. #define CONFIG_SYS_NIOS_CPU_UART1_DB 8 /* data bit */
  91. #define CONFIG_SYS_NIOS_CPU_UART1_SB 1 /* stop bit */
  92. #define CONFIG_SYS_NIOS_CPU_UART1_PA 0 /* parity none(0) */
  93. /* odd(1) */
  94. /* even(2) */
  95. #define CONFIG_SYS_NIOS_CPU_UART1_HS 0 /* handshake: no(0) */
  96. /* crts(1) */
  97. #define CONFIG_SYS_NIOS_CPU_UART1_EOP 0 /* eop reg: no(0) */
  98. /* yes(1) */
  99. /* parallel i/o */
  100. #define CONFIG_SYS_NIOS_CPU_PIO_NUMS 2 /* number of parports */
  101. #define CONFIG_SYS_NIOS_CPU_PIO0 0x00000860 /* PIO0 addr */
  102. #undef CONFIG_SYS_NIOS_CPU_PIO0_IRQ /* w/o IRQ */
  103. #define CONFIG_SYS_NIOS_CPU_PIO0_BITS 1 /* number of bits */
  104. #define CONFIG_SYS_NIOS_CPU_PIO0_TYPE 1 /* io type: tris(0) */
  105. /* out(1) */
  106. /* in(2) */
  107. #define CONFIG_SYS_NIOS_CPU_PIO0_CAP 0 /* capture: no(0) */
  108. /* yes(1) */
  109. #define CONFIG_SYS_NIOS_CPU_PIO0_EDGE 0 /* edge type: none(0) */
  110. /* fall(1) */
  111. /* rise(2) */
  112. /* any(3) */
  113. #define CONFIG_SYS_NIOS_CPU_PIO0_ITYPE 0 /* IRQ type: none(0) */
  114. /* level(1)*/
  115. /* edge(2) */
  116. #define CONFIG_SYS_NIOS_CPU_PIO1 0x00000870 /* PIO1 addr */
  117. #undef CONFIG_SYS_NIOS_CPU_PIO1_IRQ /* w/o IRQ */
  118. #define CONFIG_SYS_NIOS_CPU_PIO1_BITS 4 /* number of bits */
  119. #define CONFIG_SYS_NIOS_CPU_PIO1_TYPE 2 /* io type: tris(0) */
  120. /* out(1) */
  121. /* in(2) */
  122. #define CONFIG_SYS_NIOS_CPU_PIO1_CAP 0 /* capture: no(0) */
  123. /* yes(1) */
  124. #define CONFIG_SYS_NIOS_CPU_PIO1_EDGE 0 /* edge type: none(0) */
  125. /* fall(1) */
  126. /* rise(2) */
  127. /* any(3) */
  128. #define CONFIG_SYS_NIOS_CPU_PIO1_ITYPE 0 /* IRQ type: none(0) */
  129. /* level(1)*/
  130. /* edge(2) */
  131. /* IDE i/f */
  132. #define CONFIG_SYS_NIOS_CPU_IDE_NUMS 1 /* number of IDE contr. */
  133. #define CONFIG_SYS_NIOS_CPU_IDE0 0x00000900 /* IDE0 addr */
  134. #define CONFIG_SYS_NIOS_CPU_IDE0_IRQ 25 /* IRQ */
  135. /* memory accessibility */
  136. #undef CONFIG_SYS_NIOS_CPU_SRAM_BASE /* board SRAM addr */
  137. #undef CONFIG_SYS_NIOS_CPU_SRAM_SIZE /* 1 MB size */
  138. #define CONFIG_SYS_NIOS_CPU_SDRAM_BASE 0x01000000 /* board SDRAM addr */
  139. #define CONFIG_SYS_NIOS_CPU_SDRAM_SIZE (16*1024*1024) /* 16 MB size */
  140. #define CONFIG_SYS_NIOS_CPU_FLASH_BASE 0x00800000 /* board Flash addr */
  141. #define CONFIG_SYS_NIOS_CPU_FLASH_SIZE (8*1024*1024) /* 8 MB size */
  142. /* LAN */
  143. #define CONFIG_SYS_NIOS_CPU_LAN_NUMS 1 /* number of LAN i/f */
  144. #define CONFIG_SYS_NIOS_CPU_LAN0_BASE 0x00010000 /* LAN0 addr */
  145. #define CONFIG_SYS_NIOS_CPU_LAN0_OFFS 0x0300 /* offset */
  146. #define CONFIG_SYS_NIOS_CPU_LAN0_IRQ 20 /* IRQ */
  147. #define CONFIG_SYS_NIOS_CPU_LAN0_BUSW 32 /* buswidth*/
  148. #define CONFIG_SYS_NIOS_CPU_LAN0_TYPE 0 /* smc91111(0) */
  149. /* cs8900(1) */
  150. /* ex: openmac(2) */
  151. /* ex: alteramac(3) */
  152. /* symbolic redefinition (undef, if not present) */
  153. #define CONFIG_SYS_NIOS_CPU_TICK_TIMER 0 /* TIMER0: tick (needed)*/
  154. #undef CONFIG_SYS_NIOS_CPU_USER_TIMER /* TIMERx: users choice */
  155. #define CONFIG_SYS_NIOS_CPU_CFPOWER_PIO 0 /* PIO0: CF power/sw. */
  156. #define CONFIG_SYS_NIOS_CPU_BUTTON_PIO 1 /* PIO1: buttons */
  157. #undef CONFIG_SYS_NIOS_CPU_LCD_PIO /* PIOx: ASCII LCD */
  158. #undef CONFIG_SYS_NIOS_CPU_LED_PIO /* PIOx: LED bar */
  159. #undef CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO /* PIOx: 7-seg. display */
  160. #undef CONFIG_SYS_NIOS_CPU_RECONF_PIO /* PIOx: reconf pin */
  161. #undef CONFIG_SYS_NIOS_CPU_CFPRESENT_PIO /* PIOx: CF present IRQ */
  162. #undef CONFIG_SYS_NIOS_CPU_CFATASEL_PIO /* PIOx: CF ATA select */
  163. #endif /* __CONFIG_DK1S10_MTX_LDK_20_H */