sun8i.h 774 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2014 Chen-Yu Tsai <wens@csie.org>
  4. *
  5. * Configuration settings for the Allwinner A23 (sun8i) CPU
  6. */
  7. #ifndef __CONFIG_H
  8. #define __CONFIG_H
  9. /*
  10. * A23 specific configuration
  11. */
  12. #ifdef SUNXI_SRAM_A2_SIZE
  13. /*
  14. * If the SoC has enough SRAM A2, use that for the secure monitor.
  15. * Skip the first 16 KiB of SRAM A2, which is not usable, as only certain bytes
  16. * are writable. Reserve the last 17 KiB for the resume shim and SCP firmware.
  17. */
  18. #define CONFIG_ARMV7_SECURE_BASE (SUNXI_SRAM_A2_BASE + 16 * 1024)
  19. #define CONFIG_ARMV7_SECURE_MAX_SIZE (SUNXI_SRAM_A2_SIZE - 33 * 1024)
  20. #endif
  21. /*
  22. * Include common sunxi configuration where most the settings are
  23. */
  24. #include <configs/sunxi-common.h>
  25. #endif /* __CONFIG_H */