From ef53f5db7cbf46a97269ac620e2ac2c383255056 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Thu, 29 Mar 2007 22:21:22 +0000 Subject: Add definitions, add settings detection for SoCs SVN-Revision: 6759 --- .../files/include/asm-mips/mach-adm5120/adm5120_info.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'target/linux/adm5120-2.6/files/include/asm-mips/mach-adm5120/adm5120_info.h') 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 30b9c7d..6d2c5c2 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 + * * 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 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 */ -- cgit v1.1