hikey960.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2019 Linaro
  4. * Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
  5. */
  6. #ifndef __HIKEY_H
  7. #define __HIKEY_H
  8. #include <linux/sizes.h>
  9. #define CONFIG_SYS_BOOTM_LEN SZ_64M
  10. /* Physical Memory Map */
  11. /* CONFIG_SYS_TEXT_BASE needs to align with where ATF loads bl33.bin */
  12. #define PHYS_SDRAM_1 0x00000000
  13. #define PHYS_SDRAM_1_SIZE 0xC0000000
  14. #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
  15. #define CONFIG_SYS_INIT_RAM_SIZE 0x1000
  16. #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7fff0)
  17. #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x80000)
  18. /* Generic Timer Definitions */
  19. #define COUNTER_FREQUENCY 19000000
  20. /* Generic Interrupt Controller Definitions */
  21. #define GICD_BASE 0xe82b1000
  22. #define GICC_BASE 0xe82b2000
  23. /* Size of malloc() pool */
  24. #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + SZ_8M)
  25. #define BOOT_TARGET_DEVICES(func) \
  26. func(MMC, mmc, 0)
  27. #include <config_distro_bootcmd.h>
  28. #define CONFIG_EXTRA_ENV_SETTINGS \
  29. "image=Image\0" \
  30. "fdtfile=hi3660-hikey960.dtb\0" \
  31. "fdt_addr_r=0x10000000\0" \
  32. "kernel_addr_r=0x11000000\0" \
  33. "scriptaddr=0x00020000\0" \
  34. "fdt_high=0xffffffffffffffff\0" \
  35. "initrd_high=0xffffffffffffffff\0" \
  36. BOOTENV
  37. /* TODO: Remove this once the SD clock is fixed */
  38. #define CONFIG_SYS_MMC_MAX_BLK_COUNT 1024
  39. #endif /* __HIKEY_H */