Lines Matching refs:lasat_board_info
34 struct lasat_info lasat_board_info;
60 unsigned long *lb = lasat_board_info.li_flashpart_base;
61 unsigned long *ls = lasat_board_info.li_flashpart_size;
68 lasat_board_info.li_flash_base = 0x1e000000;
72 if (lasat_board_info.li_flash_size > 0x200000) {
77 lasat_board_info.li_flash_base = 0x10000000;
79 if (lasat_board_info.li_flash_size < 0x1000000) {
82 if (lasat_board_info.li_flash_size >= 0x400000) {
83 ls[LASAT_MTD_FS] = lasat_board_info.li_flash_size - 0x300000;
102 memset(&lasat_board_info, 0, sizeof(lasat_board_info));
105 EEPROMRead(0, (unsigned char *)&lasat_board_info.li_eeprom_info,
109 crc = EEPROM_CRC((unsigned char *)(&lasat_board_info.li_eeprom_info),
112 if (crc != lasat_board_info.li_eeprom_info.crc32) {
117 if (lasat_board_info.li_eeprom_info.version != LASAT_EEPROM_VERSION) {
120 (unsigned int)lasat_board_info.li_eeprom_info.version,
124 cfg0 = lasat_board_info.li_eeprom_info.cfg[0];
125 cfg1 = lasat_board_info.li_eeprom_info.cfg[1];
136 lasat_board_info.li_memsize = 0x0800000;
139 lasat_board_info.li_memsize = 0x1000000;
142 lasat_board_info.li_memsize = 0x2000000;
145 lasat_board_info.li_memsize = 0x4000000;
148 lasat_board_info.li_memsize = 0x8000000;
151 lasat_board_info.li_memsize = 0;
158 lasat_board_info.li_memsize *= 2;
166 lasat_board_info.li_bus_hz = 60000000;
169 lasat_board_info.li_bus_hz = 66000000;
172 lasat_board_info.li_bus_hz = 66666667;
175 lasat_board_info.li_bus_hz = 80000000;
178 lasat_board_info.li_bus_hz = 83333333;
181 lasat_board_info.li_bus_hz = 100000000;
187 lasat_board_info.li_cpu_hz =
188 lasat_board_info.li_bus_hz;
191 lasat_board_info.li_cpu_hz =
192 lasat_board_info.li_bus_hz +
193 (lasat_board_info.li_bus_hz >> 1);
196 lasat_board_info.li_cpu_hz =
197 lasat_board_info.li_bus_hz +
198 lasat_board_info.li_bus_hz;
201 lasat_board_info.li_cpu_hz =
202 lasat_board_info.li_bus_hz +
203 lasat_board_info.li_bus_hz +
204 (lasat_board_info.li_bus_hz >> 1);
207 lasat_board_info.li_cpu_hz =
208 lasat_board_info.li_bus_hz +
209 lasat_board_info.li_bus_hz +
210 lasat_board_info.li_bus_hz;
217 lasat_board_info.li_flash_size = 0x200000;
220 lasat_board_info.li_flash_size = 0x400000;
223 lasat_board_info.li_flash_size = 0x800000;
226 lasat_board_info.li_flash_size = 0x1000000;
229 lasat_board_info.li_flash_size = 0x2000000;
235 lasat_board_info.li_bmid = LASAT_W0_BMID(cfg0);
236 lasat_board_info.li_prid = lasat_board_info.li_eeprom_info.prid;
237 if (lasat_board_info.li_prid == 0xffff || lasat_board_info.li_prid == 0)
238 lasat_board_info.li_prid = lasat_board_info.li_bmid;
241 if (lasat_board_info.li_bmid > i_n_base_models)
242 lasat_board_info.li_bmid = i_n_base_models;
243 strcpy(lasat_board_info.li_bmstr, i_txt_base_models[lasat_board_info.li_bmid]);
246 c = lasat_board_info.li_prid;
248 strcpy(lasat_board_info.li_namestr, "Unknown Model");
249 strcpy(lasat_board_info.li_typestr, "Unknown Type");
252 strcpy(lasat_board_info.li_namestr, ppi->pi_name);
254 strcpy(lasat_board_info.li_typestr, ppi->pi_type);
256 sprintf(lasat_board_info.li_typestr, "%d",10*c);
271 crc = EEPROM_CRC((unsigned char *)(&lasat_board_info.li_eeprom_info),
273 lasat_board_info.li_eeprom_info.crc32 = crc;
276 EEPROMWrite(0, (unsigned char *)&lasat_board_info.li_eeprom_info,