arch_def.h 856 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2024, Mediatek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef ARCH_DEF_H
  7. #define ARCH_DEF_H
  8. #include <arch.h>
  9. /* Topology constants */
  10. #ifndef PLAT_MAX_PWR_LVL
  11. #define PLAT_MAX_PWR_LVL MPIDR_AFFLVL2
  12. #endif
  13. #define PLAT_MAX_RET_STATE MPIDR_AFFLVL1
  14. #ifndef PLAT_MAX_OFF_STATE
  15. #define PLAT_MAX_OFF_STATE MPIDR_AFFLVL2
  16. #endif
  17. #define PLATFORM_SYSTEM_COUNT 1
  18. #define PLATFORM_CLUSTER_COUNT 1
  19. #define PLATFORM_CLUSTER0_CORE_COUNT 8
  20. #define PLATFORM_CORE_COUNT (PLATFORM_CLUSTER0_CORE_COUNT)
  21. #define PLATFORM_MAX_CPUS_PER_CLUSTER 8
  22. #define PLATFORM_NUM_AFFS (PLATFORM_SYSTEM_COUNT + \
  23. PLATFORM_CLUSTER_COUNT + \
  24. PLATFORM_CORE_COUNT)
  25. /* Cachline size */
  26. #define CACHE_WRITEBACK_SHIFT 6
  27. #define CACHE_WRITEBACK_GRANULE (1 << CACHE_WRITEBACK_SHIFT)
  28. #endif /* ARCH_DEF_H */