diff options
author | Macpaul Lin <macpaul@andestech.com> | 2011-10-11 22:33:15 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-10-22 00:51:37 +0200 |
commit | 00f892fcc9726b8b299c1da2383fc9bf4a3618c5 (patch) | |
tree | 92062ed81c38fab9863705477df899d9e1072d2b /arch/nds32/include/asm/mach-types.h | |
parent | 0c277ef9f92b41b41a78682330b6c35673a1819b (diff) | |
download | blackbird-obmc-uboot-00f892fcc9726b8b299c1da2383fc9bf4a3618c5.tar.gz blackbird-obmc-uboot-00f892fcc9726b8b299c1da2383fc9bf4a3618c5.zip |
nds32: add header files support for nds32
Add generic header files support for nds32 architecture.
Cache, ptregs, data type and other definitions are included.
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 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/nds32/include/asm/mach-types.h b/arch/nds32/include/asm/mach-types.h new file mode 100644 index 0000000000..a6f1c93494 --- /dev/null +++ b/arch/nds32/include/asm/mach-types.h @@ -0,0 +1,29 @@ +/* + * This was automagically generated from arch/nds/tools/mach-types! + * Do NOT edit + */ + +#ifndef __ASM_NDS32_MACH_TYPE_H +#define __ASM_NDS32_MACH_TYPE_H + +#ifndef __ASSEMBLY__ +/* The type of machine we're running on */ +extern unsigned int __machine_arch_type; +#endif + +/* see arch/arm/kernel/arch.c for a description of these */ +#define MACH_TYPE_ADPAG101 0 + +#ifdef CONFIG_ARCH_ADPAG101 +# ifdef machine_arch_type +# undef machine_arch_type +# define machine_arch_type __machine_arch_type +# else +# define machine_arch_type MACH_TYPE_ADPAG101 +# endif +# define machine_is_adpag101() (machine_arch_type == MACH_TYPE_ADPAG101) +#else +# define machine_is_adpag101() (0) +#endif + +#endif /* __ASM_NDS32_MACH_TYPE_H */ |