tb100.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2011-2014 Pierrick Hascoet, Abilis Systems
  4. */
  5. #ifndef _CONFIG_TB100_H_
  6. #define _CONFIG_TB100_H_
  7. #include <linux/sizes.h>
  8. /*
  9. * Memory configuration
  10. */
  11. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
  12. #define CONFIG_SYS_DDR_SDRAM_BASE 0x80000000
  13. #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE
  14. #define CONFIG_SYS_SDRAM_SIZE SZ_128M
  15. #define CONFIG_SYS_INIT_SP_ADDR \
  16. (CONFIG_SYS_SDRAM_BASE + 0x1000 - GENERATED_GBL_DATA_SIZE)
  17. #define CONFIG_SYS_MALLOC_LEN SZ_128K
  18. #define CONFIG_SYS_BOOTM_LEN SZ_32M
  19. #define CONFIG_SYS_LOAD_ADDR 0x82000000
  20. /*
  21. * UART configuration
  22. */
  23. #define CONFIG_SYS_NS16550_SERIAL
  24. #define CONFIG_SYS_NS16550_CLK 166666666
  25. /*
  26. * Even though the board houses Realtek RTL8211E PHY
  27. * corresponding PHY driver (drivers/net/phy/realtek.c) behaves unexpectedly.
  28. * In particular "parse_status" reports link is down.
  29. *
  30. * Until Realtek PHY driver is fixed fall back to generic PHY driver
  31. * which implements all required functionality and behaves much more stable.
  32. *
  33. *
  34. */
  35. /*
  36. * Ethernet configuration
  37. */
  38. #define ETH0_BASE_ADDRESS 0xFE100000
  39. #define ETH1_BASE_ADDRESS 0xFE110000
  40. /*
  41. * Environment configuration
  42. */
  43. #define CONFIG_BOOTFILE "uImage"
  44. #define CONFIG_LOADADDR CONFIG_SYS_LOAD_ADDR
  45. /*
  46. * Console configuration
  47. */
  48. #endif /* _CONFIG_TB100_H_ */