1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2017 Andes Technology Corporation
4 * Rick Chen, Andes Technology Corporation <rick@andestech.com>
7 #ifndef __ASM_RISCV_MACH_TYPE_H
8 #define __ASM_RISCV_MACH_TYPE_H
11 /* The type of machine we're running on */
12 extern unsigned int __machine_arch_type;
15 #define MACH_TYPE_AE350 1
17 #ifdef CONFIG_ARCH_AE350
18 # ifdef machine_arch_type
19 # undef machine_arch_type
20 # define machine_arch_type __machine_arch_type
22 # define machine_arch_type MACH_TYPE_AE350
24 # define machine_is_ae350() (machine_arch_type == MACH_TYPE_AE350)
26 # define machine_is_ae350() (1)
29 #endif /* __ASM_RISCV_MACH_TYPE_H */