]> git.sur5r.net Git - u-boot/blob - arch/riscv/include/asm/mach-types.h
f70b407998bcd66b128a7020971b74b65b620f1e
[u-boot] / arch / riscv / include / asm / mach-types.h
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
8 #ifndef __ASM_RISCV_MACH_TYPE_H
9 #define __ASM_RISCV_MACH_TYPE_H
10
11 #ifndef __ASSEMBLY__
12 /* The type of machine we're running on */
13 extern unsigned int __machine_arch_type;
14 #endif
15
16 #define MACH_TYPE_AE250         1
17
18 #ifdef CONFIG_ARCH_AE250
19 # ifdef machine_arch_type
20 #  undef machine_arch_type
21 #  define machine_arch_type __machine_arch_type
22 # else
23 #  define machine_arch_type MACH_TYPE_AE250
24 # endif
25 # define machine_is_ae250() (machine_arch_type == MACH_TYPE_AE250)
26 #else
27 # define machine_is_ae250() (1)
28 #endif
29
30 #endif /* __ASM_RISCV_MACH_TYPE_H */