1 /* 2 * system.h - SOPC Builder system and BSP software package information 3 * 4 * Machine generated for CPU 'nios2_gen2_0' in SOPC Builder design 'ghrd_10m50da' 5 * SOPC Builder design path: ../../ghrd_10m50da.sopcinfo 6 * 7 * Generated: Tue Dec 05 14:41:17 SGT 2017 8 */ 9 10 /* 11 * DO NOT MODIFY THIS FILE 12 * 13 * Changing this file will have subtle consequences 14 * which will almost certainly lead to a nonfunctioning 15 * system. If you do modify this file, be aware that your 16 * changes will be overwritten and lost when this file 17 * is generated again. 18 * 19 * DO NOT MODIFY THIS FILE 20 */ 21 22 /* 23 * License Agreement 24 * 25 * Copyright (c) 2008 26 * Altera Corporation, San Jose, California, USA. 27 * All rights reserved. 28 * 29 * Permission is hereby granted, free of charge, to any person obtaining a 30 * copy of this software and associated documentation files (the "Software"), 31 * to deal in the Software without restriction, including without limitation 32 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 33 * and/or sell copies of the Software, and to permit persons to whom the 34 * Software is furnished to do so, subject to the following conditions: 35 * 36 * The above copyright notice and this permission notice shall be included in 37 * all copies or substantial portions of the Software. 38 * 39 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 40 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 41 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 42 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 43 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 44 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 45 * DEALINGS IN THE SOFTWARE. 46 * 47 * This agreement shall be governed in all respects by the laws of the State 48 * of California and by the laws of the United States of America. 49 */ 50 51 #ifndef __SYSTEM_H_ 52 #define __SYSTEM_H_ 53 54 /* Include definitions from linker script generator */ 55 #include "linker.h" 56 57 58 /* 59 * CPU configuration 60 * 61 */ 62 63 #define ALT_CPU_ARCHITECTURE "altera_nios2_gen2" 64 #define ALT_CPU_BIG_ENDIAN 0 65 #define ALT_CPU_BREAK_ADDR 0x00200820 66 #define ALT_CPU_CPU_ARCH_NIOS2_R1 67 #define ALT_CPU_CPU_FREQ 50000000u 68 #define ALT_CPU_CPU_ID_SIZE 1 69 #define ALT_CPU_CPU_ID_VALUE 0x00000000 70 #define ALT_CPU_CPU_IMPLEMENTATION "fast" 71 #define ALT_CPU_DATA_ADDR_WIDTH 0x1c 72 #define ALT_CPU_DCACHE_BYPASS_MASK 0x80000000 73 #define ALT_CPU_DCACHE_LINE_SIZE 32 74 #define ALT_CPU_DCACHE_LINE_SIZE_LOG2 5 75 #define ALT_CPU_DCACHE_SIZE 2048 76 #define ALT_CPU_EXCEPTION_ADDR 0x00400020 77 #define ALT_CPU_FLASH_ACCELERATOR_LINES 0 78 #define ALT_CPU_FLASH_ACCELERATOR_LINE_SIZE 0 79 #define ALT_CPU_FLUSHDA_SUPPORTED 80 #define ALT_CPU_FREQ 50000000 81 #define ALT_CPU_HARDWARE_DIVIDE_PRESENT 1 82 #define ALT_CPU_HARDWARE_MULTIPLY_PRESENT 1 83 #define ALT_CPU_HARDWARE_MULX_PRESENT 0 84 #define ALT_CPU_HAS_DEBUG_CORE 1 85 #define ALT_CPU_HAS_DEBUG_STUB 86 #define ALT_CPU_HAS_DIVISION_ERROR_EXCEPTION 87 #define ALT_CPU_HAS_EXTRA_EXCEPTION_INFO 88 #define ALT_CPU_HAS_ILLEGAL_INSTRUCTION_EXCEPTION 89 #define ALT_CPU_HAS_JMPI_INSTRUCTION 90 #define ALT_CPU_ICACHE_LINE_SIZE 32 91 #define ALT_CPU_ICACHE_LINE_SIZE_LOG2 5 92 #define ALT_CPU_ICACHE_SIZE 4096 93 #define ALT_CPU_INITDA_SUPPORTED 94 #define ALT_CPU_INST_ADDR_WIDTH 0x1c 95 #define ALT_CPU_NAME "nios2_gen2_0" 96 #define ALT_CPU_NUM_OF_SHADOW_REG_SETS 0 97 #define ALT_CPU_OCI_VERSION 1 98 #define ALT_CPU_RESET_ADDR 0x00000000 99 100 101 /* 102 * CPU configuration (with legacy prefix - don't use these anymore) 103 * 104 */ 105 106 #define NIOS2_BIG_ENDIAN 0 107 #define NIOS2_BREAK_ADDR 0x00200820 108 #define NIOS2_CPU_ARCH_NIOS2_R1 109 #define NIOS2_CPU_FREQ 50000000u 110 #define NIOS2_CPU_ID_SIZE 1 111 #define NIOS2_CPU_ID_VALUE 0x00000000 112 #define NIOS2_CPU_IMPLEMENTATION "fast" 113 #define NIOS2_DATA_ADDR_WIDTH 0x1c 114 #define NIOS2_DCACHE_BYPASS_MASK 0x80000000 115 #define NIOS2_DCACHE_LINE_SIZE 32 116 #define NIOS2_DCACHE_LINE_SIZE_LOG2 5 117 #define NIOS2_DCACHE_SIZE 2048 118 #define NIOS2_EXCEPTION_ADDR 0x00400020 119 #define NIOS2_FLASH_ACCELERATOR_LINES 0 120 #define NIOS2_FLASH_ACCELERATOR_LINE_SIZE 0 121 #define NIOS2_FLUSHDA_SUPPORTED 122 #define NIOS2_HARDWARE_DIVIDE_PRESENT 1 123 #define NIOS2_HARDWARE_MULTIPLY_PRESENT 1 124 #define NIOS2_HARDWARE_MULX_PRESENT 0 125 #define NIOS2_HAS_DEBUG_CORE 1 126 #define NIOS2_HAS_DEBUG_STUB 127 #define NIOS2_HAS_DIVISION_ERROR_EXCEPTION 128 #define NIOS2_HAS_EXTRA_EXCEPTION_INFO 129 #define NIOS2_HAS_ILLEGAL_INSTRUCTION_EXCEPTION 130 #define NIOS2_HAS_JMPI_INSTRUCTION 131 #define NIOS2_ICACHE_LINE_SIZE 32 132 #define NIOS2_ICACHE_LINE_SIZE_LOG2 5 133 #define NIOS2_ICACHE_SIZE 4096 134 #define NIOS2_INITDA_SUPPORTED 135 #define NIOS2_INST_ADDR_WIDTH 0x1c 136 #define NIOS2_NUM_OF_SHADOW_REG_SETS 0 137 #define NIOS2_OCI_VERSION 1 138 #define NIOS2_RESET_ADDR 0x00000000 139 140 141 /* 142 * Define for each module class mastered by the CPU 143 * 144 */ 145 146 #define __ALTERA_16550_UART 147 #define __ALTERA_AVALON_I2C 148 #define __ALTERA_AVALON_JTAG_UART 149 #define __ALTERA_AVALON_ONCHIP_MEMORY2 150 #define __ALTERA_AVALON_PIO 151 #define __ALTERA_AVALON_SPI 152 #define __ALTERA_AVALON_SYSID_QSYS 153 #define __ALTERA_AVALON_TIMER 154 #define __ALTERA_GENERIC_QUAD_SPI_CONTROLLER2 155 #define __ALTERA_MSGDMA 156 #define __ALTERA_NIOS2_GEN2 157 #define __ALTERA_ONCHIP_FLASH 158 159 160 /* 161 * System configuration 162 * 163 */ 164 165 #define ALT_DEVICE_FAMILY "MAX 10" 166 #define ALT_ENHANCED_INTERRUPT_API_PRESENT 167 #define ALT_IRQ_BASE NULL 168 #define ALT_LOG_PORT "/dev/null" 169 #define ALT_LOG_PORT_BASE 0x0 170 #define ALT_LOG_PORT_DEV null 171 #define ALT_LOG_PORT_TYPE "" 172 #define ALT_NUM_EXTERNAL_INTERRUPT_CONTROLLERS 0 173 #define ALT_NUM_INTERNAL_INTERRUPT_CONTROLLERS 1 174 #define ALT_NUM_INTERRUPT_CONTROLLERS 1 175 #define ALT_STDERR "/dev/jtag_uart_0" 176 #define ALT_STDERR_BASE 0x201000 177 #define ALT_STDERR_DEV jtag_uart_0 178 #define ALT_STDERR_IS_JTAG_UART 179 #define ALT_STDERR_PRESENT 180 #define ALT_STDERR_TYPE "altera_avalon_jtag_uart" 181 #define ALT_STDIN "/dev/jtag_uart_0" 182 #define ALT_STDIN_BASE 0x201000 183 #define ALT_STDIN_DEV jtag_uart_0 184 #define ALT_STDIN_IS_JTAG_UART 185 #define ALT_STDIN_PRESENT 186 #define ALT_STDIN_TYPE "altera_avalon_jtag_uart" 187 #define ALT_STDOUT "/dev/jtag_uart_0" 188 #define ALT_STDOUT_BASE 0x201000 189 #define ALT_STDOUT_DEV jtag_uart_0 190 #define ALT_STDOUT_IS_JTAG_UART 191 #define ALT_STDOUT_PRESENT 192 #define ALT_STDOUT_TYPE "altera_avalon_jtag_uart" 193 #define ALT_SYSTEM_NAME "ghrd_10m50da" 194 195 196 /* 197 * a_16550_uart_0 configuration 198 * 199 */ 200 201 #define ALT_MODULE_CLASS_a_16550_uart_0 altera_16550_uart 202 #define A_16550_UART_0_BASE 0x100000 203 #define A_16550_UART_0_FIFO_DEPTH 64 204 #define A_16550_UART_0_FIFO_MODE 1 205 #define A_16550_UART_0_FIO_HWFC 0 206 #define A_16550_UART_0_FIO_SWFC 0 207 #define A_16550_UART_0_FREQ 50000000 208 #define A_16550_UART_0_IRQ 1 209 #define A_16550_UART_0_IRQ_INTERRUPT_CONTROLLER_ID 0 210 #define A_16550_UART_0_NAME "/dev/a_16550_uart_0" 211 #define A_16550_UART_0_SPAN 512 212 #define A_16550_UART_0_TYPE "altera_16550_uart" 213 214 215 /* 216 * ext_flash_avl_csr configuration 217 * 218 */ 219 220 #define ALT_MODULE_CLASS_ext_flash_avl_csr altera_generic_quad_spi_controller2 221 #define EXT_FLASH_AVL_CSR_BASE 0x100240 222 #define EXT_FLASH_AVL_CSR_FLASH_TYPE "Micron512" 223 #define EXT_FLASH_AVL_CSR_IRQ 6 224 #define EXT_FLASH_AVL_CSR_IRQ_INTERRUPT_CONTROLLER_ID 0 225 #define EXT_FLASH_AVL_CSR_IS_EPCS 0 226 #define EXT_FLASH_AVL_CSR_NAME "/dev/ext_flash_avl_csr" 227 #define EXT_FLASH_AVL_CSR_NUMBER_OF_SECTORS 1024 228 #define EXT_FLASH_AVL_CSR_PAGE_SIZE 256 229 #define EXT_FLASH_AVL_CSR_SECTOR_SIZE 65536 230 #define EXT_FLASH_AVL_CSR_SPAN 64 231 #define EXT_FLASH_AVL_CSR_SUBSECTOR_SIZE 4096 232 #define EXT_FLASH_AVL_CSR_TYPE "altera_generic_quad_spi_controller2" 233 234 235 /* 236 * ext_flash_avl_mem configuration 237 * 238 */ 239 240 #define ALT_MODULE_CLASS_ext_flash_avl_mem altera_generic_quad_spi_controller2 241 #define EXT_FLASH_AVL_MEM_BASE 0x8000000 242 #define EXT_FLASH_AVL_MEM_FLASH_TYPE "Micron512" 243 #define EXT_FLASH_AVL_MEM_IRQ -1 244 #define EXT_FLASH_AVL_MEM_IRQ_INTERRUPT_CONTROLLER_ID -1 245 #define EXT_FLASH_AVL_MEM_IS_EPCS 0 246 #define EXT_FLASH_AVL_MEM_NAME "/dev/ext_flash_avl_mem" 247 #define EXT_FLASH_AVL_MEM_NUMBER_OF_SECTORS 1024 248 #define EXT_FLASH_AVL_MEM_PAGE_SIZE 256 249 #define EXT_FLASH_AVL_MEM_SECTOR_SIZE 65536 250 #define EXT_FLASH_AVL_MEM_SPAN 67108864 251 #define EXT_FLASH_AVL_MEM_SUBSECTOR_SIZE 4096 252 #define EXT_FLASH_AVL_MEM_TYPE "altera_generic_quad_spi_controller2" 253 254 255 /* 256 * hal configuration 257 * 258 */ 259 260 #define ALT_INCLUDE_INSTRUCTION_RELATED_EXCEPTION_API 261 #define ALT_MAX_FD 32 262 #define ALT_SYS_CLK TIMER_0 263 #define ALT_TIMESTAMP_CLK none 264 265 266 /* 267 * i2c_0 configuration 268 * 269 */ 270 271 #define ALT_MODULE_CLASS_i2c_0 altera_avalon_i2c 272 #define I2C_0_BASE 0x100200 273 #define I2C_0_FIFO_DEPTH 16 274 #define I2C_0_FREQ 50000000 275 #define I2C_0_IRQ 4 276 #define I2C_0_IRQ_INTERRUPT_CONTROLLER_ID 0 277 #define I2C_0_NAME "/dev/i2c_0" 278 #define I2C_0_SPAN 64 279 #define I2C_0_TYPE "altera_avalon_i2c" 280 #define I2C_0_USE_AV_ST 0 281 282 283 /* 284 * jtag_uart_0 configuration 285 * 286 */ 287 288 #define ALT_MODULE_CLASS_jtag_uart_0 altera_avalon_jtag_uart 289 #define JTAG_UART_0_BASE 0x201000 290 #define JTAG_UART_0_IRQ 0 291 #define JTAG_UART_0_IRQ_INTERRUPT_CONTROLLER_ID 0 292 #define JTAG_UART_0_NAME "/dev/jtag_uart_0" 293 #define JTAG_UART_0_READ_DEPTH 64 294 #define JTAG_UART_0_READ_THRESHOLD 8 295 #define JTAG_UART_0_SPAN 8 296 #define JTAG_UART_0_TYPE "altera_avalon_jtag_uart" 297 #define JTAG_UART_0_WRITE_DEPTH 64 298 #define JTAG_UART_0_WRITE_THRESHOLD 8 299 300 301 /* 302 * led configuration 303 * 304 */ 305 306 #define ALT_MODULE_CLASS_led altera_avalon_pio 307 #define LED_BASE 0x1002e0 308 #define LED_BIT_CLEARING_EDGE_REGISTER 0 309 #define LED_BIT_MODIFYING_OUTPUT_REGISTER 0 310 #define LED_CAPTURE 0 311 #define LED_DATA_WIDTH 4 312 #define LED_DO_TEST_BENCH_WIRING 0 313 #define LED_DRIVEN_SIM_VALUE 0 314 #define LED_EDGE_TYPE "NONE" 315 #define LED_FREQ 50000000 316 #define LED_HAS_IN 0 317 #define LED_HAS_OUT 1 318 #define LED_HAS_TRI 0 319 #define LED_IRQ -1 320 #define LED_IRQ_INTERRUPT_CONTROLLER_ID -1 321 #define LED_IRQ_TYPE "NONE" 322 #define LED_NAME "/dev/led" 323 #define LED_RESET_VALUE 0 324 #define LED_SPAN 16 325 #define LED_TYPE "altera_avalon_pio" 326 327 328 /* 329 * msgdma_0_csr configuration 330 * 331 */ 332 333 #define ALT_MODULE_CLASS_msgdma_0_csr altera_msgdma 334 #define MSGDMA_0_CSR_BASE 0x1002c0 335 #define MSGDMA_0_CSR_BURST_ENABLE 1 336 #define MSGDMA_0_CSR_BURST_WRAPPING_SUPPORT 1 337 #define MSGDMA_0_CSR_CHANNEL_ENABLE 0 338 #define MSGDMA_0_CSR_CHANNEL_ENABLE_DERIVED 0 339 #define MSGDMA_0_CSR_CHANNEL_WIDTH 8 340 #define MSGDMA_0_CSR_DATA_FIFO_DEPTH 32 341 #define MSGDMA_0_CSR_DATA_WIDTH 32 342 #define MSGDMA_0_CSR_DESCRIPTOR_FIFO_DEPTH 128 343 #define MSGDMA_0_CSR_DMA_MODE 0 344 #define MSGDMA_0_CSR_ENHANCED_FEATURES 0 345 #define MSGDMA_0_CSR_ERROR_ENABLE 0 346 #define MSGDMA_0_CSR_ERROR_ENABLE_DERIVED 0 347 #define MSGDMA_0_CSR_ERROR_WIDTH 8 348 #define MSGDMA_0_CSR_IRQ 3 349 #define MSGDMA_0_CSR_IRQ_INTERRUPT_CONTROLLER_ID 0 350 #define MSGDMA_0_CSR_MAX_BURST_COUNT 2 351 #define MSGDMA_0_CSR_MAX_BYTE 1024 352 #define MSGDMA_0_CSR_MAX_STRIDE 1 353 #define MSGDMA_0_CSR_NAME "/dev/msgdma_0_csr" 354 #define MSGDMA_0_CSR_PACKET_ENABLE 0 355 #define MSGDMA_0_CSR_PACKET_ENABLE_DERIVED 0 356 #define MSGDMA_0_CSR_PREFETCHER_ENABLE 0 357 #define MSGDMA_0_CSR_PROGRAMMABLE_BURST_ENABLE 0 358 #define MSGDMA_0_CSR_RESPONSE_PORT 2 359 #define MSGDMA_0_CSR_SPAN 32 360 #define MSGDMA_0_CSR_STRIDE_ENABLE 0 361 #define MSGDMA_0_CSR_STRIDE_ENABLE_DERIVED 0 362 #define MSGDMA_0_CSR_TRANSFER_TYPE "Aligned Accesses" 363 #define MSGDMA_0_CSR_TYPE "altera_msgdma" 364 365 366 /* 367 * msgdma_0_descriptor_slave configuration 368 * 369 */ 370 371 #define ALT_MODULE_CLASS_msgdma_0_descriptor_slave altera_msgdma 372 #define MSGDMA_0_DESCRIPTOR_SLAVE_BASE 0x1002f0 373 #define MSGDMA_0_DESCRIPTOR_SLAVE_BURST_ENABLE 1 374 #define MSGDMA_0_DESCRIPTOR_SLAVE_BURST_WRAPPING_SUPPORT 1 375 #define MSGDMA_0_DESCRIPTOR_SLAVE_CHANNEL_ENABLE 0 376 #define MSGDMA_0_DESCRIPTOR_SLAVE_CHANNEL_ENABLE_DERIVED 0 377 #define MSGDMA_0_DESCRIPTOR_SLAVE_CHANNEL_WIDTH 8 378 #define MSGDMA_0_DESCRIPTOR_SLAVE_DATA_FIFO_DEPTH 32 379 #define MSGDMA_0_DESCRIPTOR_SLAVE_DATA_WIDTH 32 380 #define MSGDMA_0_DESCRIPTOR_SLAVE_DESCRIPTOR_FIFO_DEPTH 128 381 #define MSGDMA_0_DESCRIPTOR_SLAVE_DMA_MODE 0 382 #define MSGDMA_0_DESCRIPTOR_SLAVE_ENHANCED_FEATURES 0 383 #define MSGDMA_0_DESCRIPTOR_SLAVE_ERROR_ENABLE 0 384 #define MSGDMA_0_DESCRIPTOR_SLAVE_ERROR_ENABLE_DERIVED 0 385 #define MSGDMA_0_DESCRIPTOR_SLAVE_ERROR_WIDTH 8 386 #define MSGDMA_0_DESCRIPTOR_SLAVE_IRQ -1 387 #define MSGDMA_0_DESCRIPTOR_SLAVE_IRQ_INTERRUPT_CONTROLLER_ID -1 388 #define MSGDMA_0_DESCRIPTOR_SLAVE_MAX_BURST_COUNT 2 389 #define MSGDMA_0_DESCRIPTOR_SLAVE_MAX_BYTE 1024 390 #define MSGDMA_0_DESCRIPTOR_SLAVE_MAX_STRIDE 1 391 #define MSGDMA_0_DESCRIPTOR_SLAVE_NAME "/dev/msgdma_0_descriptor_slave" 392 #define MSGDMA_0_DESCRIPTOR_SLAVE_PACKET_ENABLE 0 393 #define MSGDMA_0_DESCRIPTOR_SLAVE_PACKET_ENABLE_DERIVED 0 394 #define MSGDMA_0_DESCRIPTOR_SLAVE_PREFETCHER_ENABLE 0 395 #define MSGDMA_0_DESCRIPTOR_SLAVE_PROGRAMMABLE_BURST_ENABLE 0 396 #define MSGDMA_0_DESCRIPTOR_SLAVE_RESPONSE_PORT 2 397 #define MSGDMA_0_DESCRIPTOR_SLAVE_SPAN 16 398 #define MSGDMA_0_DESCRIPTOR_SLAVE_STRIDE_ENABLE 0 399 #define MSGDMA_0_DESCRIPTOR_SLAVE_STRIDE_ENABLE_DERIVED 0 400 #define MSGDMA_0_DESCRIPTOR_SLAVE_TRANSFER_TYPE "Aligned Accesses" 401 #define MSGDMA_0_DESCRIPTOR_SLAVE_TYPE "altera_msgdma" 402 403 404 /* 405 * onchip_flash_0_csr configuration 406 * 407 */ 408 409 #define ALT_MODULE_CLASS_onchip_flash_0_csr altera_onchip_flash 410 #define ONCHIP_FLASH_0_CSR_BASE 0x200000 411 #define ONCHIP_FLASH_0_CSR_BYTES_PER_PAGE 8192 412 #define ONCHIP_FLASH_0_CSR_IRQ -1 413 #define ONCHIP_FLASH_0_CSR_IRQ_INTERRUPT_CONTROLLER_ID -1 414 #define ONCHIP_FLASH_0_CSR_NAME "/dev/onchip_flash_0_csr" 415 #define ONCHIP_FLASH_0_CSR_READ_ONLY_MODE 0 416 #define ONCHIP_FLASH_0_CSR_SECTOR1_ENABLED 1 417 #define ONCHIP_FLASH_0_CSR_SECTOR1_END_ADDR 0x7fff 418 #define ONCHIP_FLASH_0_CSR_SECTOR1_START_ADDR 0 419 #define ONCHIP_FLASH_0_CSR_SECTOR2_ENABLED 1 420 #define ONCHIP_FLASH_0_CSR_SECTOR2_END_ADDR 0xffff 421 #define ONCHIP_FLASH_0_CSR_SECTOR2_START_ADDR 0x8000 422 #define ONCHIP_FLASH_0_CSR_SECTOR3_ENABLED 1 423 #define ONCHIP_FLASH_0_CSR_SECTOR3_END_ADDR 0x6ffff 424 #define ONCHIP_FLASH_0_CSR_SECTOR3_START_ADDR 0x10000 425 #define ONCHIP_FLASH_0_CSR_SECTOR4_ENABLED 1 426 #define ONCHIP_FLASH_0_CSR_SECTOR4_END_ADDR 0xb7fff 427 #define ONCHIP_FLASH_0_CSR_SECTOR4_START_ADDR 0x70000 428 #define ONCHIP_FLASH_0_CSR_SECTOR5_ENABLED 0 429 #define ONCHIP_FLASH_0_CSR_SECTOR5_END_ADDR 0xffffffff 430 #define ONCHIP_FLASH_0_CSR_SECTOR5_START_ADDR 0xffffffff 431 #define ONCHIP_FLASH_0_CSR_SPAN 8 432 #define ONCHIP_FLASH_0_CSR_TYPE "altera_onchip_flash" 433 434 435 /* 436 * onchip_flash_0_data configuration 437 * 438 */ 439 440 #define ALT_MODULE_CLASS_onchip_flash_0_data altera_onchip_flash 441 #define ONCHIP_FLASH_0_DATA_BASE 0x0 442 #define ONCHIP_FLASH_0_DATA_BYTES_PER_PAGE 8192 443 #define ONCHIP_FLASH_0_DATA_IRQ -1 444 #define ONCHIP_FLASH_0_DATA_IRQ_INTERRUPT_CONTROLLER_ID -1 445 #define ONCHIP_FLASH_0_DATA_NAME "/dev/onchip_flash_0_data" 446 #define ONCHIP_FLASH_0_DATA_READ_ONLY_MODE 0 447 #define ONCHIP_FLASH_0_DATA_SECTOR1_ENABLED 1 448 #define ONCHIP_FLASH_0_DATA_SECTOR1_END_ADDR 0x7fff 449 #define ONCHIP_FLASH_0_DATA_SECTOR1_START_ADDR 0 450 #define ONCHIP_FLASH_0_DATA_SECTOR2_ENABLED 1 451 #define ONCHIP_FLASH_0_DATA_SECTOR2_END_ADDR 0xffff 452 #define ONCHIP_FLASH_0_DATA_SECTOR2_START_ADDR 0x8000 453 #define ONCHIP_FLASH_0_DATA_SECTOR3_ENABLED 1 454 #define ONCHIP_FLASH_0_DATA_SECTOR3_END_ADDR 0x6ffff 455 #define ONCHIP_FLASH_0_DATA_SECTOR3_START_ADDR 0x10000 456 #define ONCHIP_FLASH_0_DATA_SECTOR4_ENABLED 1 457 #define ONCHIP_FLASH_0_DATA_SECTOR4_END_ADDR 0xb7fff 458 #define ONCHIP_FLASH_0_DATA_SECTOR4_START_ADDR 0x70000 459 #define ONCHIP_FLASH_0_DATA_SECTOR5_ENABLED 0 460 #define ONCHIP_FLASH_0_DATA_SECTOR5_END_ADDR 0xffffffff 461 #define ONCHIP_FLASH_0_DATA_SECTOR5_START_ADDR 0xffffffff 462 #define ONCHIP_FLASH_0_DATA_SPAN 753664 463 #define ONCHIP_FLASH_0_DATA_TYPE "altera_onchip_flash" 464 465 466 /* 467 * onchip_memory2_0 configuration 468 * 469 */ 470 471 #define ALT_MODULE_CLASS_onchip_memory2_0 altera_avalon_onchip_memory2 472 #define ONCHIP_MEMORY2_0_ALLOW_IN_SYSTEM_MEMORY_CONTENT_EDITOR 0 473 #define ONCHIP_MEMORY2_0_ALLOW_MRAM_SIM_CONTENTS_ONLY_FILE 0 474 #define ONCHIP_MEMORY2_0_BASE 0x400000 475 #define ONCHIP_MEMORY2_0_CONTENTS_INFO "" 476 #define ONCHIP_MEMORY2_0_DUAL_PORT 0 477 #define ONCHIP_MEMORY2_0_GUI_RAM_BLOCK_TYPE "AUTO" 478 #define ONCHIP_MEMORY2_0_INIT_CONTENTS_FILE "ghrd_10m50da_onchip_memory2_0" 479 #define ONCHIP_MEMORY2_0_INIT_MEM_CONTENT 0 480 #define ONCHIP_MEMORY2_0_INSTANCE_ID "NONE" 481 #define ONCHIP_MEMORY2_0_IRQ -1 482 #define ONCHIP_MEMORY2_0_IRQ_INTERRUPT_CONTROLLER_ID -1 483 #define ONCHIP_MEMORY2_0_NAME "/dev/onchip_memory2_0" 484 #define ONCHIP_MEMORY2_0_NON_DEFAULT_INIT_FILE_ENABLED 0 485 #define ONCHIP_MEMORY2_0_RAM_BLOCK_TYPE "AUTO" 486 #define ONCHIP_MEMORY2_0_READ_DURING_WRITE_MODE "DONT_CARE" 487 #define ONCHIP_MEMORY2_0_SINGLE_CLOCK_OP 0 488 #define ONCHIP_MEMORY2_0_SIZE_MULTIPLE 1 489 #define ONCHIP_MEMORY2_0_SIZE_VALUE 131072 490 #define ONCHIP_MEMORY2_0_SPAN 131072 491 #define ONCHIP_MEMORY2_0_TYPE "altera_avalon_onchip_memory2" 492 #define ONCHIP_MEMORY2_0_WRITABLE 1 493 494 495 /* 496 * spi_0 configuration 497 * 498 */ 499 500 #define ALT_MODULE_CLASS_spi_0 altera_avalon_spi 501 #define SPI_0_BASE 0x100280 502 #define SPI_0_CLOCKMULT 1 503 #define SPI_0_CLOCKPHASE 1 504 #define SPI_0_CLOCKPOLARITY 0 505 #define SPI_0_CLOCKUNITS "Hz" 506 #define SPI_0_DATABITS 8 507 #define SPI_0_DATAWIDTH 16 508 #define SPI_0_DELAYMULT "1.0E-9" 509 #define SPI_0_DELAYUNITS "ns" 510 #define SPI_0_EXTRADELAY 0 511 #define SPI_0_INSERT_SYNC 0 512 #define SPI_0_IRQ 5 513 #define SPI_0_IRQ_INTERRUPT_CONTROLLER_ID 0 514 #define SPI_0_ISMASTER 1 515 #define SPI_0_LSBFIRST 0 516 #define SPI_0_NAME "/dev/spi_0" 517 #define SPI_0_NUMSLAVES 1 518 #define SPI_0_PREFIX "spi_" 519 #define SPI_0_SPAN 32 520 #define SPI_0_SYNC_REG_DEPTH 2 521 #define SPI_0_TARGETCLOCK 128000u 522 #define SPI_0_TARGETSSDELAY "0.0" 523 #define SPI_0_TYPE "altera_avalon_spi" 524 525 526 /* 527 * sysid configuration 528 * 529 */ 530 531 #define ALT_MODULE_CLASS_sysid altera_avalon_sysid_qsys 532 #define SYSID_BASE 0x100300 533 #define SYSID_ID 0 534 #define SYSID_IRQ -1 535 #define SYSID_IRQ_INTERRUPT_CONTROLLER_ID -1 536 #define SYSID_NAME "/dev/sysid" 537 #define SYSID_SPAN 8 538 #define SYSID_TIMESTAMP 1512455752 539 #define SYSID_TYPE "altera_avalon_sysid_qsys" 540 541 542 /* 543 * timer_0 configuration 544 * 545 */ 546 547 #define ALT_MODULE_CLASS_timer_0 altera_avalon_timer 548 #define TIMER_0_ALWAYS_RUN 0 549 #define TIMER_0_BASE 0x1002a0 550 #define TIMER_0_COUNTER_SIZE 32 551 #define TIMER_0_FIXED_PERIOD 0 552 #define TIMER_0_FREQ 50000000 553 #define TIMER_0_IRQ 2 554 #define TIMER_0_IRQ_INTERRUPT_CONTROLLER_ID 0 555 #define TIMER_0_LOAD_VALUE 49999 556 #define TIMER_0_MULT 0.001 557 #define TIMER_0_NAME "/dev/timer_0" 558 #define TIMER_0_PERIOD 1 559 #define TIMER_0_PERIOD_UNITS "ms" 560 #define TIMER_0_RESET_OUTPUT 0 561 #define TIMER_0_SNAPSHOT 1 562 #define TIMER_0_SPAN 32 563 #define TIMER_0_TICKS_PER_SEC 1000 564 #define TIMER_0_TIMEOUT_PULSE_OUTPUT 0 565 #define TIMER_0_TYPE "altera_avalon_timer" 566 567 #endif /* __SYSTEM_H_ */ 568