[adm5120] lzma-loader improvements
[openwrt/svn-archive/archive.git] / target / linux / adm5120-2.6 / image / lzma-loader / src / config.h
1 #ifndef _CONFIG_H_
2 #define _CONFIG_H_
3
4 #define FLASH_2M (2<<20)
5 #define FLASH_4M (4<<20)
6
7 /*
8 * Cellvision/SparkLAN boards
9 */
10
11 #if defined(CONFIG_BOARD_CAS630)
12 # define CONFIG_BOARD_NAME "CAS-630"
13 # define CONFIG_FLASH_SIZE FLASH_4M
14 #endif
15
16 #if defined(CONFIG_BOARD_CAS670)
17 # define CONFIG_BOARD_NAME "CAS-670"
18 # define CONFIG_FLASH_SIZE FLASH_4M
19 #endif
20
21 #if defined(CONFIG_BOARD_CAS700)
22 # define CONFIG_BOARD_NAME "CAS-700"
23 # define CONFIG_FLASH_SIZE FLASH_4M
24 #endif
25
26 #if defined(CONFIG_BOARD_CAS790)
27 # define CONFIG_BOARD_NAME "CAS-790"
28 # define CONFIG_FLASH_SIZE FLASH_4M
29 #endif
30
31 #if defined(CONFIG_BOARD_CAS771)
32 # define CONFIG_BOARD_NAME "CAS-771"
33 # define CONFIG_FLASH_SIZE FLASH_4M
34 #endif
35
36 #if defined(CONFIG_BOARD_CAS861)
37 # define CONFIG_BOARD_NAME "CAS-861"
38 # define CONFIG_FLASH_SIZE FLASH_4M
39 #endif
40
41 #if defined(CONFIG_BOARD_NFS101U)
42 # define CONFIG_BOARD_NAME "NFS-101U"
43 # define CONFIG_FLASH_SIZE FLASH_4M
44 #endif
45
46 #if defined(CONFIG_BOARD_NFS202U)
47 # define CONFIG_BOARD_NAME "NFS-202U"
48 # define CONFIG_FLASH_SIZE FLASH_4M
49 #endif
50
51 /*
52 * Edimax boards
53 */
54 #if defined(CONFIG_BOARD_BR6104K)
55 # define CONFIG_BOARD_NAME "BR-6104K"
56 # define CONFIG_FLASH_SIZE FLASH_2M
57 #endif
58
59 #if defined(CONFIG_BOARD_BR6104KP)
60 # define CONFIG_BOARD_NAME "BR-6104KP"
61 # define CONFIG_FLASH_SIZE FLASH_2M
62 #endif
63
64 /*
65 * Infineon boards
66 */
67 #if defined(CONFIG_BOARD_EASY5120)
68 # define CONFIG_BOARD_NAME "EASY 5120"
69 #endif
70
71 #if defined(CONFIG_BOARD_EASY5120RT)
72 # define CONFIG_BOARD_NAME "EASY 5120-RT"
73 #endif
74
75 #if defined(CONFIG_BOARD_EASY5120PATA)
76 # define CONFIG_BOARD_NAME "EASY 5120P-ATA"
77 #endif
78
79 #if defined(CONFIG_BOARD_EASY83000)
80 # define CONFIG_BOARD_NAME "EASY 83000"
81 # define CONFIG_FLASH_SIZE FLASH_4M
82 #endif
83
84 /*
85 * ZyXEL boards
86 */
87 #if defined(CONFIG_BOARD_P334WT)
88 # define CONFIG_BOARD_NAME "P-334WT"
89 # define CONFIG_FLASH_SIZE FLASH_4M
90 #endif
91
92 #if defined(CONFIG_BOARD_P335)
93 # define CONFIG_BOARD_NAME "P-335"
94 # define CONFIG_FLASH_SIZE FLASH_4M
95 #endif
96
97 /*
98 * Default values
99 */
100 #ifndef CONFIG_BOARD_NAME
101 # define CONFIG_BOARD_NAME "ADM5120"
102 #endif
103
104 #ifndef CONFIG_FLASH_SIZE
105 # define CONFIG_FLASH_SIZE FLASH_2M
106 #endif
107
108 #endif /* _CONFIG_H_ */