tb100.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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_SYS_TIMER_RATE CONFIG_SYS_CLK_FREQ
  13. /*
  14. * Memory configuration
  15. */
  16. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
  17. #define CONFIG_SYS_DDR_SDRAM_BASE 0x80000000
  18. #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE
  19. #define CONFIG_SYS_SDRAM_SIZE SZ_128M
  20. #define CONFIG_SYS_INIT_SP_ADDR \
  21. (CONFIG_SYS_SDRAM_BASE + 0x1000 - GENERATED_GBL_DATA_SIZE)
  22. #define CONFIG_SYS_MALLOC_LEN SZ_128K
  23. #define CONFIG_SYS_BOOTM_LEN SZ_32M
  24. #define CONFIG_SYS_LOAD_ADDR 0x82000000
  25. #define CONFIG_SYS_NO_FLASH
  26. /*
  27. * UART configuration
  28. */
  29. #define CONFIG_SYS_NS16550_SERIAL
  30. #define CONFIG_SYS_NS16550_CLK 166666666
  31. #define CONFIG_BAUDRATE 115200
  32. /*
  33. * Ethernet PHY configuration
  34. */
  35. #define CONFIG_PHY_GIGE
  36. /*
  37. * Even though the board houses Realtek RTL8211E PHY
  38. * corresponding PHY driver (drivers/net/phy/realtek.c) behaves unexpectedly.
  39. * In particular "parse_status" reports link is down.
  40. *
  41. * Until Realtek PHY driver is fixed fall back to generic PHY driver
  42. * which implements all required functionality and behaves much more stable.
  43. *
  44. * #define CONFIG_PHY_REALTEK
  45. *
  46. */
  47. /*
  48. * Ethernet configuration
  49. */
  50. #define ETH0_BASE_ADDRESS 0xFE100000
  51. #define ETH1_BASE_ADDRESS 0xFE110000
  52. /*
  53. * Command line configuration
  54. */
  55. #define CONFIG_AUTO_COMPLETE
  56. #define CONFIG_SYS_MAXARGS 16
  57. /*
  58. * Environment settings
  59. */
  60. #define CONFIG_ENV_IS_NOWHERE
  61. #define CONFIG_ENV_SIZE SZ_2K
  62. #define CONFIG_ENV_OFFSET 0
  63. /*
  64. * Environment configuration
  65. */
  66. #define CONFIG_BOOTFILE "uImage"
  67. #define CONFIG_BOOTARGS "console=ttyS0,115200n8"
  68. #define CONFIG_LOADADDR CONFIG_SYS_LOAD_ADDR
  69. /*
  70. * Console configuration
  71. */
  72. #define CONFIG_SYS_LONGHELP
  73. #define CONFIG_SYS_CBSIZE 256
  74. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  75. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
  76. sizeof(CONFIG_SYS_PROMPT) + 16)
  77. #endif /* _CONFIG_TB100_H_ */