summaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h')
-rw-r--r--target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h b/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h
index 30b9c7d83..6d2c5c248 100644
--- a/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h
+++ b/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h
@@ -1,7 +1,9 @@
/*
+ * $Id$
+ *
* Copyright (C) 2007 OpenWrt.org
- * Copyright (C) Gabor Juhos
- *
+ * Copyright (C) Gabor Juhos <juhosg@freemail.hu>
+ *
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
@@ -14,8 +16,11 @@
#include <linux/types.h>
struct adm5120_info {
- unsigned long cpu_speed;
+ unsigned int product_code;
+ unsigned int revision;
unsigned int cpu_package;
+ unsigned int nand_boot;
+ unsigned long cpu_speed;
unsigned int boot_loader;
unsigned int board_type;
};
@@ -49,4 +54,9 @@ struct adm5120_info {
extern struct adm5120_info adm5120_info;
extern void adm5120_info_init(void);
+static inline int adm5120_has_pci(void)
+{
+ return (adm5120_info.cpu_package == CPU_PACKAGE_BGA);
+}
+
#endif /* _ADM5120_INFO_H */