sifive-fu540.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (c) 2019 Western Digital Corporation or its affiliates.
  4. *
  5. * Authors:
  6. * Anup Patel <anup.patel@wdc.com>
  7. */
  8. #ifndef __CONFIG_H
  9. #define __CONFIG_H
  10. #include <linux/sizes.h>
  11. #define CONFIG_SYS_SDRAM_BASE 0x80000000
  12. #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_2M)
  13. #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_2M)
  14. #define CONFIG_SYS_MALLOC_LEN SZ_8M
  15. #define CONFIG_SYS_BOOTM_LEN SZ_64M
  16. #define CONFIG_STANDALONE_LOAD_ADDR 0x80200000
  17. /* Environment options */
  18. #define BOOT_TARGET_DEVICES(func) \
  19. func(MMC, mmc, 0) \
  20. func(DHCP, dhcp, na)
  21. #include <config_distro_bootcmd.h>
  22. #define CONFIG_EXTRA_ENV_SETTINGS \
  23. "fdt_high=0xffffffffffffffff\0" \
  24. "initrd_high=0xffffffffffffffff\0" \
  25. "kernel_addr_r=0x84000000\0" \
  26. "fdt_addr_r=0x88000000\0" \
  27. "scriptaddr=0x88100000\0" \
  28. "pxefile_addr_r=0x88200000\0" \
  29. "ramdisk_addr_r=0x88300000\0" \
  30. BOOTENV
  31. #define CONFIG_PREBOOT \
  32. "setenv fdt_addr ${fdtcontroladdr};" \
  33. "fdt addr ${fdtcontroladdr};"
  34. #endif /* __CONFIG_H */