summaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-29 22:21:22 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-29 22:21:22 +0000
commit8194aa23ac6468aa2ebb3f0655e50f8723a63b7e (patch)
tree2b8fadd0e48d77019fc5868f15764e05120a5b95 /target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h
parentf69503b99e9a1b377bf50bf94c800cbdaf021cf2 (diff)
Add definitions, add settings detection for SoCs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6759 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 */