dnp5370.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*
  2. * U-Boot - Configuration file for SSV DNP5370 board
  3. */
  4. #ifndef __CONFIG_DNP5370_H__
  5. #define __CONFIG_DNP5370_H__
  6. /* this must come first */
  7. #include <asm/config-pre.h>
  8. /*
  9. * Processor Settings
  10. */
  11. #define CONFIG_BFIN_CPU bf537-0.3
  12. #define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_BYPASS
  13. /*
  14. * Clock Settings
  15. * CCLK = (CLKIN * VCO_MULT) / CCLK_DIV
  16. * SCLK = (CLKIN * VCO_MULT) / SCLK_DIV
  17. */
  18. #define CONFIG_CLKIN_HZ 25000000
  19. #define CONFIG_CLKIN_HALF 0
  20. #define CONFIG_PLL_BYPASS 0
  21. #define CONFIG_VCO_MULT 24
  22. #define CONFIG_CCLK_DIV 1
  23. #define CONFIG_SCLK_DIV 5
  24. /*
  25. * Memory Settings
  26. */
  27. #define CONFIG_MEM_ADD_WDTH 9
  28. #define CONFIG_MEM_SIZE 32
  29. #define CONFIG_EBIU_SDRRC_VAL 0x03a0
  30. #define CONFIG_EBIU_SDBCTL_VAL 0x0013
  31. #define CONFIG_EBIU_SDGCTL_VAL 0x8091998d
  32. #define CONFIG_EBIU_AMGCTL_VAL 0xF7
  33. #define CONFIG_EBIU_AMBCTL0_VAL 0x7BB07BB0
  34. #define CONFIG_EBIU_AMBCTL1_VAL 0xFFC27BB0
  35. #define CONFIG_SYS_MONITOR_LEN (256 * 1024)
  36. #define CONFIG_SYS_MALLOC_LEN (128 * 1024)
  37. /*
  38. * Network Settings
  39. */
  40. #ifndef __ADSPBF534__
  41. #define CONFIG_ROOTPATH "/romfs"
  42. #define CONFIG_BFIN_MAC 1
  43. #define CONFIG_PHY_ADDR 0
  44. #define CONFIG_RMII 1
  45. #endif
  46. /*
  47. * Flash Settings
  48. *
  49. * Only 3 MB of the 4 MB NOR flash are addressable.
  50. * But limiting the flash size does not seem to work.
  51. * It seems the CFI detection has precedence.
  52. */
  53. #define CONFIG_FLASH_CFI_DRIVER
  54. #define CONFIG_SYS_FLASH_BASE 0x20000000
  55. #define CONFIG_SYS_FLASH_CFI
  56. #define CONFIG_SYS_FLASH_PROTECTION
  57. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  58. #define CONFIG_SYS_MAX_FLASH_SECT 71 /* (M29W320EB) */
  59. /* 512k reserved for u-boot */
  60. #define CONFIG_SYS_JFFS2_FIRST_SECTOR 15
  61. /*
  62. * Env Storage Settings
  63. */
  64. #define CONFIG_ENV_IS_IN_FLASH 1
  65. #define CONFIG_ENV_ADDR 0x20004000
  66. #define CONFIG_ENV_SIZE 0x00002000
  67. #define CONFIG_ENV_SECT_SIZE 0x00002000 /* Total Size of Environment Sector */
  68. #define CONFIG_ENV_OFFSET 0x00004000 /* (CONFIG_ENV_ADDR - CONFIG_FLASH_BASE) */
  69. #define ENV_IS_EMBEDDED
  70. #define LDS_BOARD_TEXT \
  71. arch/blackfin/lib/built-in.o (.text*); \
  72. arch/blackfin/cpu/built-in.o (.text*); \
  73. . = DEFINED(env_offset) ? env_offset : .; \
  74. common/env_embedded.o (.text*);
  75. /*
  76. * Misc Settings
  77. */
  78. #define CONFIG_CMD_STRINGS
  79. #define CONFIG_MISC_INIT_R
  80. #define CONFIG_RTC_BFIN
  81. #define CONFIG_SYS_LONGHELP
  82. /* This disables the hardware watchdog (not inside the bfin) */
  83. #define CONFIG_DNP5370_EXT_WD_DISABLE 1
  84. #define CONFIG_UART_CONSOLE 0
  85. #define CONFIG_BFIN_SERIAL
  86. #define CONFIG_BAUDRATE 115200
  87. #define CONFIG_BOOTCOMMAND "bootm 0x20030000"
  88. #define CONFIG_BOOTARGS "console=ttyBF0,115200 root=/dev/mtdblock3 rootfstype=ext2"
  89. /* Convenience commands to update Linux in NOR flash */
  90. #define CONFIG_EXTRA_ENV_SETTINGS \
  91. "fetchme=tftpboot 0x01000000 uImage;" \
  92. "iminfo\0" \
  93. "flashme=protect off 0x20030000 0x2003ffff;" \
  94. "erase 0x20030000 0x202effff;" \
  95. "cp.b 0x01000000 0x20030000 0x2c0000\0" \
  96. "runme=bootm 0x01000000\0"
  97. #endif