am65x_evm.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Configuration header file for K3 AM654 EVM
  4. *
  5. * Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/
  6. * Lokesh Vutla <lokeshvutla@ti.com>
  7. */
  8. #ifndef __CONFIG_AM654_EVM_H
  9. #define __CONFIG_AM654_EVM_H
  10. #include <linux/sizes.h>
  11. #include <config_distro_bootcmd.h>
  12. #include <environment/ti/mmc.h>
  13. #define CONFIG_ENV_SIZE (128 << 10)
  14. /* DDR Configuration */
  15. #define CONFIG_SYS_SDRAM_BASE1 0x880000000
  16. /* SPL Loader Configuration */
  17. #ifdef CONFIG_TARGET_AM654_A53_EVM
  18. #define CONFIG_SPL_TEXT_BASE 0x80080000
  19. #else
  20. #define CONFIG_SPL_TEXT_BASE 0x41c00000
  21. #endif
  22. #ifdef CONFIG_SYS_K3_SPL_ATF
  23. #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "tispl.bin"
  24. #endif
  25. #ifndef CONFIG_CPU_V7R
  26. #define CONFIG_SKIP_LOWLEVEL_INIT
  27. #endif
  28. #define CONFIG_SPL_MAX_SIZE CONFIG_SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE
  29. #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SPL_TEXT_BASE + \
  30. CONFIG_SYS_K3_NON_SECURE_MSRAM_SIZE - 4)
  31. /* U-Boot general configuration */
  32. #define EXTRA_ENV_AM65X_BOARD_SETTINGS \
  33. "findfdt=" \
  34. "if test $board_name = am65x; then " \
  35. "setenv name_fdt k3-am654-base-board.dtb; " \
  36. "else if test $name_fdt = undefined; then " \
  37. "echo WARNING: Could not determine device tree to use;"\
  38. "fi; fi; " \
  39. "setenv fdtfile ${name_fdt}\0" \
  40. "loadaddr=0x80080000\0" \
  41. "fdtaddr=0x82000000\0" \
  42. "name_kern=Image\0" \
  43. "console=ttyS2,115200n8\0" \
  44. "args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000\0" \
  45. "run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}\0"
  46. /* U-Boot MMC-specific configuration */
  47. #define EXTRA_ENV_AM65X_BOARD_SETTINGS_MMC \
  48. "boot=mmc\0" \
  49. "mmcdev=1\0" \
  50. "bootpart=1:2\0" \
  51. "bootdir=/boot\0" \
  52. "rd_spec=-\0" \
  53. "init_mmc=run args_all args_mmc\0" \
  54. "get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}\0" \
  55. "get_kern_mmc=load mmc ${bootpart} ${loadaddr} " \
  56. "${bootdir}/${name_kern}\0"
  57. /* Incorporate settings into the U-Boot environment */
  58. #define CONFIG_EXTRA_ENV_SETTINGS \
  59. DEFAULT_MMC_TI_ARGS \
  60. EXTRA_ENV_AM65X_BOARD_SETTINGS \
  61. EXTRA_ENV_AM65X_BOARD_SETTINGS_MMC
  62. /* Now for the remaining common defines */
  63. #include <configs/ti_armv7_common.h>
  64. #endif /* __CONFIG_AM654_EVM_H */