bf609-ezkit.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. /*
  2. * U-Boot - Configuration file for BF609 EZ-Kit board
  3. */
  4. #ifndef __CONFIG_BF609_EZKIT_H__
  5. #define __CONFIG_BF609_EZKIT_H__
  6. #include <asm/config-pre.h>
  7. /*
  8. * Processor Settings
  9. */
  10. #define CONFIG_BFIN_CPU bf609-0.0
  11. #define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_PARA
  12. /* For ez-board version 1.0, else undef this */
  13. #define CONFIG_BFIN_BOARD_VERSION_1_0
  14. /*
  15. * Clock Settings
  16. * CCLK = (CLKIN * VCO_MULT) / CCLK_DIV
  17. * SCLK = (CLKIN * VCO_MULT) / SYSCLK_DIV
  18. * SCLK0 = SCLK / SCLK0_DIV
  19. * SCLK1 = SCLK / SCLK1_DIV
  20. */
  21. /* CONFIG_CLKIN_HZ is any value in Hz */
  22. #define CONFIG_CLKIN_HZ (25000000)
  23. /* CLKIN_HALF controls the DF bit in PLL_CTL 0 = CLKIN */
  24. /* 1 = CLKIN / 2 */
  25. #define CONFIG_CLKIN_HALF (0)
  26. /* VCO_MULT controls the MSEL (multiplier) bits in PLL_CTL */
  27. /* Values can range from 0-127 (where 0 means 128) */
  28. #define CONFIG_VCO_MULT (20)
  29. /* CCLK_DIV controls the core clock divider */
  30. /* Values can range from 0-31 (where 0 means 32) */
  31. #define CONFIG_CCLK_DIV (1)
  32. /* SCLK_DIV controls the system clock divider */
  33. /* Values can range from 0-31 (where 0 means 32) */
  34. #define CONFIG_SCLK_DIV (4)
  35. /* Values can range from 0-7 (where 0 means 8) */
  36. #define CONFIG_SCLK0_DIV (1)
  37. #define CONFIG_SCLK1_DIV (1)
  38. /* DCLK_DIV controls the DDR clock divider */
  39. /* Values can range from 0-31 (where 0 means 32) */
  40. #define CONFIG_DCLK_DIV (2)
  41. /* OCLK_DIV controls the output clock divider */
  42. /* Values can range from 0-127 (where 0 means 128) */
  43. #define CONFIG_OCLK_DIV (16)
  44. /*
  45. * Memory Settings
  46. */
  47. #define CONFIG_MEM_SIZE 128
  48. #define CONFIG_SMC_GCTL_VAL 0x00000010
  49. #define CONFIG_SMC_B0CTL_VAL 0x01007011
  50. #define CONFIG_SMC_B0TIM_VAL 0x08170977
  51. #define CONFIG_SMC_B0ETIM_VAL 0x00092231
  52. #define CONFIG_SYS_MONITOR_LEN (768 * 1024)
  53. #define CONFIG_SYS_MALLOC_LEN (512 * 1024)
  54. #define CONFIG_HW_WATCHDOG
  55. /*
  56. * Network Settings
  57. */
  58. #define ADI_CMDS_NETWORK
  59. #define CONFIG_NETCONSOLE
  60. #define CONFIG_HOSTNAME "bf609-ezkit"
  61. #define CONFIG_PHY_ADDR 1
  62. #define CONFIG_DW_PORTS 1
  63. #define CONFIG_DW_ALTDESCRIPTOR
  64. #define CONFIG_MII
  65. /* i2c Settings */
  66. #define CONFIG_SYS_I2C
  67. #define CONFIG_SYS_I2C_ADI
  68. /*
  69. * Flash Settings
  70. */
  71. #undef CONFIG_CMD_JFFS2
  72. #define CONFIG_SYS_FLASH_CFI_WIDTH 2
  73. #define CONFIG_FLASH_CFI_DRIVER
  74. #define CONFIG_SYS_FLASH_BASE 0xb0000000
  75. #define CONFIG_SYS_FLASH_CFI
  76. #define CONFIG_SYS_FLASH_PROTECTION
  77. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  78. #define CONFIG_SYS_MAX_FLASH_SECT 131
  79. #define CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS
  80. /*
  81. * SPI Settings
  82. */
  83. #define CONFIG_BFIN_SPI6XX
  84. #define CONFIG_ENV_SPI_MAX_HZ 25000000
  85. #define CONFIG_SF_DEFAULT_SPEED 25000000
  86. #define CONFIG_SPI_FLASH_ALL
  87. /*
  88. * Env Storage Settings
  89. */
  90. #if (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_SPI_MASTER)
  91. #define CONFIG_ENV_IS_IN_SPI_FLASH
  92. #define CONFIG_ENV_OFFSET 0x10000
  93. #define CONFIG_ENV_SIZE 0x2000
  94. #define CONFIG_ENV_SECT_SIZE 0x10000
  95. #define CONFIG_ENV_IS_EMBEDDED_IN_LDR
  96. #elif (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_NAND)
  97. #define CONFIG_ENV_IS_IN_NAND
  98. #define CONFIG_ENV_OFFSET 0x60000
  99. #define CONFIG_ENV_SIZE 0x20000
  100. #else
  101. #define CONFIG_ENV_IS_IN_FLASH
  102. #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
  103. #define CONFIG_ENV_OFFSET 0x8000
  104. #define CONFIG_ENV_SIZE 0x8000
  105. #define CONFIG_ENV_SECT_SIZE 0x8000
  106. #define CONFIG_ENV_IS_EMBEDDED_IN_LDR
  107. #endif
  108. #define FLASHBOOT_ENV_SETTINGS "flashboot=bootm 0xB0100000\0"
  109. /*
  110. * SDH Settings
  111. */
  112. #define CONFIG_GENERIC_MMC
  113. #define CONFIG_BFIN_SDH
  114. /*
  115. * Misc Settings
  116. */
  117. #define CONFIG_BOARD_EARLY_INIT_F
  118. #define CONFIG_UART_CONSOLE 0
  119. #define CONFIG_CMD_SOFTSWITCH
  120. #define CONFIG_SYS_MEMTEST_END (CONFIG_STACKBASE - 20*1024*1024 + 4)
  121. #define CONFIG_BFIN_SOFT_SWITCH
  122. #define CONFIG_ADI_GPIO2
  123. #if 0
  124. #define CONFIG_UART_MEM 1024
  125. #undef CONFIG_UART_CONSOLE
  126. #undef CONFIG_JTAG_CONSOLE
  127. #undef CONFIG_UART_CONSOLE_IS_JTAG
  128. #endif
  129. #define CONFIG_BOARD_SIZE_LIMIT $$((512 * 1024))
  130. /*
  131. * Run core 1 from L1 SRAM start address when init uboot on core 0
  132. */
  133. /* #define CONFIG_CORE1_RUN 1 */
  134. /*
  135. * Pull in common ADI header for remaining command/environment setup
  136. */
  137. #include <configs/bfin_adi_common.h>
  138. #endif