diff options
author | Macpaul Lin <macpaul@andestech.com> | 2011-09-23 17:31:27 +0800 |
---|---|---|
committer | Macpaul Lin <macpaul@gmail.com> | 2012-04-22 16:58:23 +0800 |
commit | 1e52fea33ab3fadf459cc4919b32a136d4280d26 (patch) | |
tree | 9dd386b193b6a43553ca25c2f031ed06957bfd55 /arch/nds32/include/asm/mach-types.h | |
parent | 2790bf69dc12fb9aeb9836904e5f57c7f83d5552 (diff) | |
download | u-boot-imx-1e52fea33ab3fadf459cc4919b32a136d4280d26.zip u-boot-imx-1e52fea33ab3fadf459cc4919b32a136d4280d26.tar.gz u-boot-imx-1e52fea33ab3fadf459cc4919b32a136d4280d26.tar.bz2 |
nds32/ag102: add header support of ag102 soc
Add device address offsets header of ag102 soc.
Add ag102 into mach-types.h.
Add asm-offsets.c for helping convert C headers into asm.
Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Diffstat (limited to 'arch/nds32/include/asm/mach-types.h')
-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 7b52b98..259e4e7 100644 --- a/arch/nds32/include/asm/mach-types.h +++ b/arch/nds32/include/asm/mach-types.h @@ -40,4 +40,18 @@ extern unsigned int __machine_arch_type; # define machine_is_adpag101p() (1) #endif +#define MACH_TYPE_ADPAG102 2 + +#ifdef CONFIG_ARCH_ADPAG102 +# ifdef machine_arch_type +# undef machine_arch_type +# define machine_arch_type __machine_arch_type +# else +# define machine_arch_type MACH_TYPE_ADPAG102 +# endif +# define machine_is_adpag102() (machine_arch_type == MACH_TYPE_ADPAG102) +#else +# define machine_is_adpag102() (2) +#endif + #endif /* __ASM_NDS32_MACH_TYPE_H */ |