]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/nds32/include/asm/mach-types.h
nds32/ag102: add header support of ag102 soc
[karo-tx-uboot.git] / arch / nds32 / include / asm / mach-types.h
index 7b52b989bc1f61ffb0ebc062c063f8e80a31e7bb..259e4e7ad942d805cb3ad3e1721ab9d25453f595 100644 (file)
@@ -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 */