diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-03-29 22:21:22 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-03-29 22:21:22 +0000 |
commit | ef53f5db7cbf46a97269ac620e2ac2c383255056 (patch) | |
tree | 8b420951331c510aa7247476d4b27f55a0b65dac /target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h | |
parent | 56d10f7c3c517a59c8db4c984ef4a888219d8c8e (diff) | |
download | master-31e0f0ae-ef53f5db7cbf46a97269ac620e2ac2c383255056.tar.gz master-31e0f0ae-ef53f5db7cbf46a97269ac620e2ac2c383255056.tar.bz2 master-31e0f0ae-ef53f5db7cbf46a97269ac620e2ac2c383255056.zip |
Add definitions, add settings detection for SoCs
SVN-Revision: 6759
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.h | 16 |
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 30b9c7d830..6d2c5c248b 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 */ |