rk3328_common.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2016 Rockchip Electronics Co., Ltd
  4. */
  5. #ifndef __CONFIG_RK3328_COMMON_H
  6. #define __CONFIG_RK3328_COMMON_H
  7. #include "rockchip-common.h"
  8. #define CONFIG_SYS_MALLOC_LEN (32 << 20)
  9. #define CONFIG_SYS_CBSIZE 1024
  10. #define CONFIG_SKIP_LOWLEVEL_INIT
  11. #define CONFIG_SYS_NS16550_MEM32
  12. #define CONFIG_SYS_INIT_SP_ADDR 0x00300000
  13. #define CONFIG_SYS_LOAD_ADDR 0x00800800
  14. #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* 64M */
  15. /* MMC/SD IP block */
  16. #define CONFIG_BOUNCE_BUFFER
  17. /* RAW SD card / eMMC locations. */
  18. #define CONFIG_SYS_SPI_U_BOOT_OFFS (128 << 10)
  19. /* FAT sd card locations. */
  20. #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
  21. #define CONFIG_SYS_SDRAM_BASE 0
  22. #define CONFIG_NR_DRAM_BANKS 1
  23. #define SDRAM_MAX_SIZE 0xff000000
  24. #define CONFIG_SPI_FLASH
  25. #define CONFIG_SF_DEFAULT_SPEED 20000000
  26. #ifndef CONFIG_SPL_BUILD
  27. #define ENV_MEM_LAYOUT_SETTINGS \
  28. "scriptaddr=0x00500000\0" \
  29. "pxefile_addr_r=0x00600000\0" \
  30. "fdt_addr_r=0x01f00000\0" \
  31. "kernel_addr_r=0x02080000\0" \
  32. "ramdisk_addr_r=0x04000000\0"
  33. #include <config_distro_bootcmd.h>
  34. #define CONFIG_EXTRA_ENV_SETTINGS \
  35. ENV_MEM_LAYOUT_SETTINGS \
  36. "partitions=" PARTS_DEFAULT \
  37. BOOTENV
  38. #endif
  39. /* rockchip ohci host driver */
  40. #define CONFIG_USB_OHCI_NEW
  41. #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1
  42. #endif