poplar.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2017 Linaro
  4. *
  5. * Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
  6. *
  7. * Configuration for Poplar 96boards CE. Parts were derived from other ARM
  8. * configurations.
  9. */
  10. #ifndef _POPLAR_H_
  11. #define _POPLAR_H_
  12. #include <linux/sizes.h>
  13. /* DRAM banks */
  14. /* SYS */
  15. #define CONFIG_SYS_BOOTM_LEN SZ_64M
  16. #define CONFIG_SYS_INIT_SP_ADDR 0x200000
  17. #define CONFIG_SYS_LOAD_ADDR 0x800000
  18. #define CONFIG_SYS_MALLOC_LEN SZ_32M
  19. /* ATF bl33.bin load address (must match) */
  20. /* USB configuration */
  21. #define CONFIG_USB_MAX_CONTROLLER_COUNT 2
  22. /*****************************************************************************
  23. * Initial environment variables
  24. *****************************************************************************/
  25. #define BOOT_TARGET_DEVICES(func) \
  26. func(USB, usb, 0) \
  27. func(MMC, mmc, 0) \
  28. func(DHCP, dhcp, na)
  29. #ifndef CONFIG_SPL_BUILD
  30. #include <config_distro_bootcmd.h>
  31. #endif
  32. #define CONFIG_EXTRA_ENV_SETTINGS \
  33. "loader_mmc_blknum=0x0\0" \
  34. "loader_mmc_nblks=0x780\0" \
  35. "env_mmc_blknum=0xf80\0" \
  36. "env_mmc_nblks=0x80\0" \
  37. "kernel_addr_r=0x30000000\0" \
  38. "pxefile_addr_r=0x32000000\0" \
  39. "scriptaddr=0x32000000\0" \
  40. "fdt_addr_r=0x32200000\0" \
  41. "fdtfile=hisilicon/hi3798cv200-poplar.dtb\0" \
  42. "ramdisk_addr_r=0x32400000\0" \
  43. BOOTENV
  44. /* Monitor Command Prompt */
  45. #define CONFIG_SYS_CBSIZE 512
  46. #define CONFIG_SYS_MAXARGS 64
  47. #endif /* _POPLAR_H_ */