mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-18 18:53:22 +09:00
6f4dd62f33
Andes has rearranged the product combinations. nx25 and ax25 both are RISC-V architecture cpu core. But ax25 has MMU unit inside, and nx25 is not. Cpu nx25 and platform ae250 are arranged in pairs. Cpu ax25 and platform ae350 are arranged in pairs. This patch will rename nx25 as ax25 ae250 as ae350 nx25-ae250 as ax25-ae350 including filename, variable, string and definition. Then u-boot can boot linux kernel in ae350 platform reasonably. Signed-off-by: Rick Chen <rick@andestech.com> Signed-off-by: Rick Chen <rickchen36@gmail.com> Cc: Greentime Hu <green.hu@gmail.com>
30 lines
704 B
C
30 lines
704 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2017 Andes Technology Corporation
|
|
* Rick Chen, Andes Technology Corporation <rick@andestech.com>
|
|
*/
|
|
|
|
#ifndef __ASM_RISCV_MACH_TYPE_H
|
|
#define __ASM_RISCV_MACH_TYPE_H
|
|
|
|
#ifndef __ASSEMBLY__
|
|
/* The type of machine we're running on */
|
|
extern unsigned int __machine_arch_type;
|
|
#endif
|
|
|
|
#define MACH_TYPE_AE350 1
|
|
|
|
#ifdef CONFIG_ARCH_AE350
|
|
# ifdef machine_arch_type
|
|
# undef machine_arch_type
|
|
# define machine_arch_type __machine_arch_type
|
|
# else
|
|
# define machine_arch_type MACH_TYPE_AE350
|
|
# endif
|
|
# define machine_is_ae350() (machine_arch_type == MACH_TYPE_AE350)
|
|
#else
|
|
# define machine_is_ae350() (1)
|
|
#endif
|
|
|
|
#endif /* __ASM_RISCV_MACH_TYPE_H */
|