bf525-ucr2.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. * U-Boot - Configuration file for bf525-ucr2 board
  3. * The board includes ADSP-BF525 rev. 0.2,
  4. * 32-bit SDRAM (SAMSUNG K4S561632H-UC75),
  5. * USB 2.0 High Speed OTG USB WIFI,
  6. * SPI flash (cFeon EN25Q128 16 MB),
  7. * Support PPI and ITU-R656,
  8. * See http://www.ucrobotics.com/?q=cn/ucr2
  9. */
  10. #ifndef __CONFIG_BF525_UCR2_H__
  11. #define __CONFIG_BF525_UCR2_H__
  12. #include <asm/config-pre.h>
  13. /*
  14. * Processor Settings
  15. */
  16. #define CONFIG_BFIN_CPU bf525-0.2
  17. #define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_SPI_MASTER
  18. /*
  19. * Clock Settings
  20. * CCLK = (CLKIN * VCO_MULT) / CCLK_DIV
  21. * SCLK = (CLKIN * VCO_MULT) / SCLK_DIV
  22. */
  23. /* CONFIG_CLKIN_HZ is any value in Hz */
  24. #define CONFIG_CLKIN_HZ 24000000
  25. /* CLKIN_HALF controls the DF bit in PLL_CTL 0 = CLKIN */
  26. /* 1 = CLKIN / 2 */
  27. #define CONFIG_CLKIN_HALF 0
  28. /* PLL_BYPASS controls the BYPASS bit in PLL_CTL 0 = do not bypass */
  29. /* 1 = bypass PLL */
  30. #define CONFIG_PLL_BYPASS 0
  31. /* VCO_MULT controls the MSEL (multiplier) bits in PLL_CTL */
  32. /* Values can range from 0-63 (where 0 means 64) */
  33. #define CONFIG_VCO_MULT 20
  34. /* CCLK_DIV controls the core clock divider */
  35. /* Values can be 1, 2, 4, or 8 ONLY */
  36. #define CONFIG_CCLK_DIV 1
  37. /* SCLK_DIV controls the system clock divider */
  38. /* Values can range from 1-15 */
  39. #define CONFIG_SCLK_DIV 4
  40. /*
  41. * Memory Settings
  42. */
  43. #define CONFIG_MEM_ADD_WDTH 9
  44. #define CONFIG_MEM_SIZE 32
  45. /*
  46. * SDRAM reference page
  47. * http://docs.blackfin.uclinux.org/doku.php?id=bfin:sdram
  48. */
  49. #define CONFIG_EBIU_SDRRC_VAL 0x3f8
  50. #define CONFIG_EBIU_SDGCTL_VAL 0x9111cd
  51. #define CONFIG_EBIU_AMGCTL_VAL (AMBEN_ALL)
  52. #define CONFIG_EBIU_AMBCTL0_VAL (B1WAT_7 | B1RAT_11 | B1HT_2 | B1ST_3 | B0WAT_7 | B0RAT_11 | B0HT_2 | B0ST_3)
  53. #define CONFIG_EBIU_AMBCTL1_VAL (B3WAT_7 | B3RAT_11 | B3HT_2 | B3ST_3 | B2WAT_7 | B2RAT_11 | B2HT_2 | B2ST_3)
  54. #define CONFIG_SYS_MONITOR_LEN (320 * 1024)
  55. #define CONFIG_SYS_MALLOC_LEN (320 * 1024)
  56. /* We don't have a parallel flash chip */
  57. #define CONFIG_SYS_NO_FLASH
  58. /* support for serial flash */
  59. #define CONFIG_BFIN_SPI
  60. #define CONFIG_SF_DEFAULT_HZ 30000000
  61. #define CONFIG_ENV_IS_IN_SPI_FLASH
  62. #define CONFIG_ENV_SPI_MAX_HZ 30000000
  63. #define CONFIG_ENV_OFFSET 0x10000
  64. #define CONFIG_ENV_SIZE 0x10000
  65. #define CONFIG_ENV_SECT_SIZE 0x10000
  66. #define CONFIG_ENV_OVERWRITE 1
  67. /*
  68. * Misc Settings
  69. */
  70. #define CONFIG_UART_CONSOLE 0
  71. #define CONFIG_BAUDRATE 115200
  72. #define CONFIG_BFIN_SERIAL
  73. #define CONFIG_BOOTARGS "root=/dev/mtdblock0 rw"
  74. #define CONFIG_BOOTCOMMAND "run sfboot"
  75. #define CONFIG_EXTRA_ENV_SETTINGS \
  76. "sfboot=sf probe 1;" \
  77. "sf read 0x1000000 0x20000 0x300000;" \
  78. "bootm 0x1000000\0"
  79. #endif