]> git.sur5r.net Git - u-boot/blob - arch/riscv/include/asm/mach-types.h
Merge git://git.denx.de/u-boot-riscv
[u-boot] / arch / riscv / include / asm / mach-types.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2017 Andes Technology Corporation
4  * Rick Chen, Andes Technology Corporation <rick@andestech.com>
5  */
6
7 #ifndef __ASM_RISCV_MACH_TYPE_H
8 #define __ASM_RISCV_MACH_TYPE_H
9
10 #ifndef __ASSEMBLY__
11 /* The type of machine we're running on */
12 extern unsigned int __machine_arch_type;
13 #endif
14
15 #define MACH_TYPE_AE350         1
16
17 #ifdef CONFIG_ARCH_AE350
18 # ifdef machine_arch_type
19 #  undef machine_arch_type
20 #  define machine_arch_type __machine_arch_type
21 # else
22 #  define machine_arch_type MACH_TYPE_AE350
23 # endif
24 # define machine_is_ae350() (machine_arch_type == MACH_TYPE_AE350)
25 #else
26 # define machine_is_ae350() (1)
27 #endif
28
29 #endif /* __ASM_RISCV_MACH_TYPE_H */