dragonboard820c.h 1.8 KB

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