mt8183.h 922 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Configuration for MT8183 based boards
  4. *
  5. * Copyright (C) 2021 BayLibre, SAS
  6. * Author: Fabien Parent <fparent@baylibre.com
  7. */
  8. #ifndef __MT8183_H
  9. #define __MT8183_H
  10. #include <linux/sizes.h>
  11. #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_TEXT_BASE
  12. #define CONFIG_SYS_MALLOC_LEN SZ_4M
  13. #define CONFIG_CPU_ARMV8
  14. #define COUNTER_FREQUENCY 13000000
  15. #define CONFIG_SYS_NS16550_SERIAL
  16. #define CONFIG_SYS_NS16550_REG_SIZE -4
  17. #define CONFIG_SYS_NS16550_MEM32
  18. #define CONFIG_SYS_NS16550_COM1 0x11005200
  19. #define CONFIG_SYS_NS16550_CLK 26000000
  20. #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE + SZ_2M - \
  21. GENERATED_GBL_DATA_SIZE)
  22. #define CONFIG_SYS_BOOTM_LEN SZ_64M
  23. /* Environment settings */
  24. #include <config_distro_bootcmd.h>
  25. #define BOOT_TARGET_DEVICES(func) \
  26. func(MMC, mmc, 0)
  27. #define CONFIG_EXTRA_ENV_SETTINGS \
  28. "scriptaddr=0x40000000\0" \
  29. BOOTENV
  30. #endif