custom_fpga.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * This file is generated by sopc-create-config-files.
  9. */
  10. #ifndef _CUSTOM_FPGA_H_
  11. #define _CUSTOM_FPGA_H_
  12. /* generated from std_1c20.sopc */
  13. /* cpu.data_master is a altera_nios2 */
  14. #define CONFIG_SYS_CLK_FREQ 50000000
  15. #define CONFIG_SYS_RESET_ADDR 0x00000000
  16. #define CONFIG_SYS_EXCEPTION_ADDR 0x01000020
  17. #define CONFIG_SYS_ICACHE_SIZE 4096
  18. #define CONFIG_SYS_ICACHELINE_SIZE 32
  19. #define CONFIG_SYS_DCACHE_SIZE 2048
  20. #define CONFIG_SYS_DCACHELINE_SIZE 4
  21. /* sdram.s1 is a altera_avalon_new_sdram_controller */
  22. #define CONFIG_SYS_SDRAM_BASE 0x01000000
  23. #define CONFIG_SYS_SDRAM_SIZE 0x01000000
  24. /* uart1.s1 is a altera_avalon_uart */
  25. #define CONFIG_SYS_UART_BASE 0x82120840
  26. #define CONFIG_SYS_UART_FREQ 50000000
  27. #define CONFIG_SYS_UART_BAUD 115200
  28. /* lan91c111.s1 is a altera_avalon_lan91c111 */
  29. #define CONFIG_SMC91111_BASE 0x82110300
  30. #define CONFIG_SMC91111
  31. #define CONFIG_SMC_USE_32_BIT
  32. /* jtag_uart.avalon_jtag_slave is a altera_avalon_jtag_uart */
  33. #define CONFIG_SYS_JTAG_UART_BASE 0x821208b0
  34. /* led_pio.s1 is a altera_avalon_pio */
  35. #define LED_PIO_BASE 0x82120870
  36. /* high_res_timer.s1 is a altera_avalon_timer */
  37. #define CONFIG_SYS_TIMER_BASE 0x82120820
  38. #define CONFIG_SYS_TIMER_IRQ 3
  39. #define CONFIG_SYS_TIMER_FREQ 50000000
  40. /* ext_flash.s1 is a altera_avalon_cfi_flash */
  41. #define CONFIG_SYS_FLASH_BASE 0x80000000
  42. #define CONFIG_FLASH_CFI_DRIVER
  43. #define CONFIG_SYS_CFI_FLASH_STATUS_POLL /* fix amd flash issue */
  44. #define CONFIG_SYS_FLASH_CFI
  45. #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
  46. #define CONFIG_SYS_FLASH_PROTECTION
  47. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  48. #define CONFIG_SYS_MAX_FLASH_SECT 1024
  49. /* ext_ram.s1 is a altera_nios_dev_kit_stratix_edition_sram2 */
  50. #define CONFIG_SYS_SRAM_BASE 0x02000000
  51. #define CONFIG_SYS_SRAM_SIZE 0x00100000
  52. /* sysid.control_slave is a altera_avalon_sysid */
  53. #define CONFIG_SYS_SYSID_BASE 0x821208b8
  54. #endif /* _CUSTOM_FPGA_H_ */