diff options
author | Macpaul Lin <macpaul@andestech.com> | 2010-10-19 17:05:51 +0800 |
---|---|---|
committer | Macpaul Lin <macpaul@andestech.com> | 2011-11-10 10:46:54 +0800 |
commit | 6cb144bc26ce13a0c53dedb0215bd6852e8bd771 (patch) | |
tree | c7e92754e1af2e40e205acfdf2528ada5fd05ff4 /arch/nds32 | |
parent | c4f40546649f8f5fb715a80a6c32a47c4872478c (diff) | |
download | u-boot-6cb144bc26ce13a0c53dedb0215bd6852e8bd771.zip u-boot-6cb144bc26ce13a0c53dedb0215bd6852e8bd771.tar.gz u-boot-6cb144bc26ce13a0c53dedb0215bd6852e8bd771.tar.bz2 |
adp-ag101p: Add SoC and board support of ag101p
Add softcore SoC ag101p and the board adp-ag101p support.
Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Diffstat (limited to 'arch/nds32')
-rw-r--r-- | arch/nds32/include/asm/mach-types.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/nds32/include/asm/mach-types.h b/arch/nds32/include/asm/mach-types.h index a6f1c93..7b52b98 100644 --- a/arch/nds32/include/asm/mach-types.h +++ b/arch/nds32/include/asm/mach-types.h @@ -26,4 +26,18 @@ extern unsigned int __machine_arch_type; # define machine_is_adpag101() (0) #endif +#define MACH_TYPE_ADPAG101P 1 + +#ifdef CONFIG_ARCH_ADPAG101P +# ifdef machine_arch_type +# undef machine_arch_type +# define machine_arch_type __machine_arch_type +# else +# define machine_arch_type MACH_TYPE_ADPAG101P +# endif +# define machine_is_adpag101p() (machine_arch_type == MACH_TYPE_ADPAG101P) +#else +# define machine_is_adpag101p() (1) +#endif + #endif /* __ASM_NDS32_MACH_TYPE_H */ |