Forgot adding infos header
[openwrt/openwrt.git] / target / linux / adm5120-2.6 / files / include / asm-mips / mach-adm5120 / adm5120_info.h
1 /*
2 * Copyright (C) 2007 OpenWrt.org
3 * Copyright (C) Gabor Juhos
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version.
9 */
10
11 #ifndef _ADM5120_INFO_H
12 #define _ADM5120_INFO_H
13
14 #include <linux/types.h>
15
16 struct adm5120_info {
17 unsigned long cpu_speed;
18 unsigned int cpu_package;
19 unsigned int boot_loader;
20 unsigned int board_type;
21 };
22
23 #define CPU_SPEED_175 175000000
24 #define CPU_SPEED_200 200000000
25 #define CPU_SPEED_225 225000000
26 #define CPU_SPEED_250 250000000
27
28 #define CPU_PACKAGE_PQFP 0
29 #define CPU_PACKAGE_BGA 1
30
31 #define BOOT_LOADER_UNKNOWN 0
32 #define BOOT_LOADER_CFE 1
33 #define BOOT_LOADER_UBOOT 2
34 #define BOOT_LOADER_MYLOADER 3
35 #define BOOT_LOADER_LAST 3
36
37 #define BOARD_TYPE_UNKNOWN 0
38 #define BOARD_TYPE_WP54G_WRT 1
39 #define BOARD_TYPE_WP54G 2
40 #define BOARD_TYPE_WP54AG 3
41 #define BOARD_TYPE_WPP54G 4
42 #define BOARD_TYPE_WPP54AG 5
43 #define BOARD_TYPE_NP28G 6
44 #define BOARD_TYPE_NP28GHS 7
45 #define BOARD_TYPE_NP27G 8
46 #define BOARD_TYPE_WP54Gv1C 9
47 #define BOARD_TYPE_RB_1xx 10
48
49 extern struct adm5120_info adm5120_info;
50 extern void adm5120_info_init(void);
51
52 #endif /* _ADM5120_INFO_H */