tb100.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /*
  2. * Copyright (C) 2011-2014 Pierrick Hascoet, Abilis Systems
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef _CONFIG_TB100_H_
  7. #define _CONFIG_TB100_H_
  8. #include <linux/sizes.h>
  9. /*
  10. * CPU configuration
  11. */
  12. #define CONFIG_ARC700
  13. #define CONFIG_ARC_MMU_VER 3
  14. #define CONFIG_SYS_CACHELINE_SIZE 32
  15. #define CONFIG_SYS_TIMER_RATE CONFIG_SYS_CLK_FREQ
  16. /*
  17. * Board configuration
  18. */
  19. #define CONFIG_SYS_GENERIC_BOARD
  20. #define CONFIG_ARCH_EARLY_INIT_R
  21. /*
  22. * Memory configuration
  23. */
  24. #define CONFIG_SYS_TEXT_BASE 0x84000000
  25. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
  26. #define CONFIG_SYS_DDR_SDRAM_BASE 0x80000000
  27. #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE
  28. #define CONFIG_SYS_SDRAM_SIZE SZ_128M
  29. #define CONFIG_SYS_INIT_SP_ADDR \
  30. (CONFIG_SYS_SDRAM_BASE + 0x1000 - GENERATED_GBL_DATA_SIZE)
  31. #define CONFIG_SYS_MALLOC_LEN SZ_128K
  32. #define CONFIG_SYS_BOOTM_LEN SZ_32M
  33. #define CONFIG_SYS_LOAD_ADDR 0x82000000
  34. #define CONFIG_SYS_NO_FLASH
  35. /*
  36. * UART configuration
  37. */
  38. #define CONFIG_CONS_INDEX 1
  39. #define CONFIG_SYS_NS16550
  40. #define CONFIG_SYS_NS16550_SERIAL
  41. #define CONFIG_SYS_NS16550_REG_SIZE -4
  42. #define CONFIG_SYS_NS16550_CLK 166666666
  43. #define CONFIG_SYS_NS16550_COM1 0xFF100000
  44. #define CONFIG_SYS_NS16550_MEM32
  45. #define CONFIG_BAUDRATE 115200
  46. /*
  47. * Ethernet PHY configuration
  48. */
  49. #define CONFIG_PHYLIB
  50. #define CONFIG_PHY_GIGE
  51. /*
  52. * Even though the board houses Realtek RTL8211E PHY
  53. * corresponding PHY driver (drivers/net/phy/realtek.c) behaves unexpectedly.
  54. * In particular "parse_status" reports link is down.
  55. *
  56. * Until Realtek PHY driver is fixed fall back to generic PHY driver
  57. * which implements all required functionality and behaves much more stable.
  58. *
  59. * #define CONFIG_PHY_REALTEK
  60. *
  61. */
  62. /*
  63. * Ethernet configuration
  64. */
  65. #define CONFIG_DESIGNWARE_ETH
  66. #define ETH0_BASE_ADDRESS 0xFE100000
  67. #define ETH1_BASE_ADDRESS 0xFE110000
  68. /*
  69. * Command line configuration
  70. */
  71. #include <config_cmd_default.h>
  72. #define CONFIG_CMD_DHCP
  73. #define CONFIG_CMD_ELF
  74. #define CONFIG_CMD_PING
  75. #define CONFIG_OF_LIBFDT
  76. #define CONFIG_AUTO_COMPLETE
  77. #define CONFIG_SYS_MAXARGS 16
  78. /*
  79. * Environment settings
  80. */
  81. #define CONFIG_ENV_IS_NOWHERE
  82. #define CONFIG_ENV_SIZE SZ_2K
  83. #define CONFIG_ENV_OFFSET 0
  84. /*
  85. * Environment configuration
  86. */
  87. #define CONFIG_BOOTDELAY 3
  88. #define CONFIG_BOOTFILE "uImage"
  89. #define CONFIG_BOOTARGS "console=ttyS0,115200n8"
  90. #define CONFIG_LOADADDR CONFIG_SYS_LOAD_ADDR
  91. /*
  92. * Console configuration
  93. */
  94. #define CONFIG_SYS_LONGHELP
  95. #define CONFIG_SYS_PROMPT "[tb100]:~# "
  96. #define CONFIG_SYS_CBSIZE 256
  97. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  98. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
  99. sizeof(CONFIG_SYS_PROMPT) + 16)
  100. #endif /* _CONFIG_TB100_H_ */