dragonboard820c.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Board configuration file for Dragonboard 410C
  4. *
  5. * (C) Copyright 2017 Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
  6. */
  7. #ifndef __CONFIGS_DRAGONBOARD820C_H
  8. #define __CONFIGS_DRAGONBOARD820C_H
  9. #include <linux/sizes.h>
  10. #include <asm/arch/sysmap-apq8096.h>
  11. /* Physical Memory Map */
  12. #define PHYS_SDRAM_SIZE 0xC0000000
  13. #define PHYS_SDRAM_1 0x80000000
  14. #define PHYS_SDRAM_1_SIZE 0x60000000
  15. #define PHYS_SDRAM_2 0x100000000
  16. #define PHYS_SDRAM_2_SIZE 0x5ea4ffff
  17. #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
  18. #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
  19. #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x80000)
  20. #define CONFIG_SYS_BOOTM_LEN SZ_64M
  21. /* Generic Timer Definitions */
  22. #define COUNTER_FREQUENCY 19000000
  23. /* BOOTP options */
  24. #define CONFIG_BOOTP_BOOTFILESIZE
  25. #ifndef CONFIG_SPL_BUILD
  26. #include <config_distro_bootcmd.h>
  27. #endif
  28. #define BOOT_TARGET_DEVICES(func) \
  29. func(MMC, mmc, 0)
  30. #define CONFIG_EXTRA_ENV_SETTINGS \
  31. "loadaddr=0x95000000\0" \
  32. "fdt_high=0xffffffffffffffff\0" \
  33. "initrd_high=0xffffffffffffffff\0" \
  34. "linux_image=uImage\0" \
  35. "kernel_addr_r=0x95000000\0"\
  36. "fdtfile=qcom/apq8096-db820c.dtb\0" \
  37. "fdt_addr_r=0x93000000\0"\
  38. "ramdisk_addr_r=0x91000000\0"\
  39. "scriptaddr=0x90000000\0"\
  40. "pxefile_addr_r=0x90100000\0"\
  41. BOOTENV
  42. /* Size of malloc() pool */
  43. #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + SZ_8M)
  44. /* Monitor Command Prompt */
  45. #define CONFIG_SYS_CBSIZE 512
  46. #define CONFIG_SYS_MAXARGS 64
  47. #endif