am335x_sl50.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * am335x_sl50.h
  4. *
  5. * Copyright (C) 2015 Toby Churchill Ltd - http://www.toby-churchill.com/
  6. */
  7. #ifndef __CONFIG_AM335X_EVM_H
  8. #define __CONFIG_AM335X_EVM_H
  9. #include <configs/ti_am335x_common.h>
  10. #ifndef CONFIG_SPL_BUILD
  11. # define CONFIG_TIMESTAMP
  12. #endif
  13. #define CONFIG_SYS_BOOTM_LEN (16 << 20)
  14. /*#define CONFIG_MACH_TYPE 3589 Until the next sync */
  15. /* Clock Defines */
  16. #define V_OSCK 24000000 /* Clock output from T2 */
  17. #define V_SCLK (V_OSCK)
  18. #ifndef CONFIG_SPL_BUILD
  19. #define MEM_LAYOUT_ENV_SETTINGS \
  20. "scriptaddr=0x80000000\0" \
  21. "pxefile_addr_r=0x80100000\0" \
  22. "kernel_addr_r=0x82000000\0" \
  23. "fdt_addr_r=0x88000000\0" \
  24. "ramdisk_addr_r=0x88080000\0" \
  25. #define BOOT_TARGET_DEVICES(func) \
  26. func(MMC, mmc, 0) \
  27. func(MMC, mmc, 1)
  28. #define AM335XX_BOARD_FDTFILE \
  29. "fdtfile=am335x-sl50.dtb\0" \
  30. #include <config_distro_bootcmd.h>
  31. #define CONFIG_EXTRA_ENV_SETTINGS \
  32. AM335XX_BOARD_FDTFILE \
  33. MEM_LAYOUT_ENV_SETTINGS \
  34. BOOTENV
  35. #endif
  36. /* NS16550 Configuration */
  37. #define CONFIG_SYS_NS16550_COM1 0x44e09000 /* Base EVM has UART0 */
  38. #define CONFIG_SYS_NS16550_COM2 0x48022000 /* UART1 */
  39. #define CONFIG_SYS_NS16550_COM3 0x48024000 /* UART2 */
  40. #define CONFIG_SYS_NS16550_COM4 0x481a6000 /* UART3 */
  41. #define CONFIG_SYS_NS16550_COM5 0x481a8000 /* UART4 */
  42. #define CONFIG_SYS_NS16550_COM6 0x481aa000 /* UART5 */
  43. #define CONFIG_ENV_EEPROM_IS_ON_I2C
  44. #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 /* Main EEPROM */
  45. #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
  46. /* PMIC support */
  47. #define CONFIG_POWER_TPS65217
  48. #define CONFIG_POWER_TPS65910
  49. /* SPL */
  50. /* Bootcount using the RTC block */
  51. #define CONFIG_SYS_BOOTCOUNT_BE
  52. #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_USB_ETHER)
  53. /* Remove other SPL modes. */
  54. /* disable host part of MUSB in SPL */
  55. #undef CONFIG_MUSB_HOST
  56. /* disable EFI partitions and partition UUID support */
  57. #endif
  58. #if defined(CONFIG_EMMC_BOOT)
  59. #define CONFIG_SYS_MMC_ENV_DEV 1
  60. #define CONFIG_SYS_MMC_ENV_PART 2
  61. #endif
  62. /* Network. */
  63. #define CONFIG_PHY_SMSC
  64. #endif /* ! __CONFIG_AM335X_SL50_H */