tb100.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. * #define CONFIG_PHY_REALTEK
  34. *
  35. */
  36. /*
  37. * Ethernet configuration
  38. */
  39. #define ETH0_BASE_ADDRESS 0xFE100000
  40. #define ETH1_BASE_ADDRESS 0xFE110000
  41. /*
  42. * Command line configuration
  43. */
  44. /*
  45. * Environment configuration
  46. */
  47. #define CONFIG_BOOTFILE "uImage"
  48. #define CONFIG_LOADADDR CONFIG_SYS_LOAD_ADDR
  49. /*
  50. * Console configuration
  51. */
  52. #endif /* _CONFIG_TB100_H_ */