mach-types.h 704 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (C) 2017 Andes Technology Corporation
  3. * Rick Chen, Andes Technology Corporation <rick@andestech.com>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef __ASM_RISCV_MACH_TYPE_H
  8. #define __ASM_RISCV_MACH_TYPE_H
  9. #ifndef __ASSEMBLY__
  10. /* The type of machine we're running on */
  11. extern unsigned int __machine_arch_type;
  12. #endif
  13. #define MACH_TYPE_AE250 1
  14. #ifdef CONFIG_ARCH_AE250
  15. # ifdef machine_arch_type
  16. # undef machine_arch_type
  17. # define machine_arch_type __machine_arch_type
  18. # else
  19. # define machine_arch_type MACH_TYPE_AE250
  20. # endif
  21. # define machine_is_ae250() (machine_arch_type == MACH_TYPE_AE250)
  22. #else
  23. # define machine_is_ae250() (1)
  24. #endif
  25. #endif /* __ASM_RISCV_MACH_TYPE_H */