mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
Add definitions, add settings detection for SoCs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6759 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user