Lines Matching refs:lasat_board_info
40 struct lasat_info lasat_board_info; variable
66 unsigned long *lb = lasat_board_info.li_flashpart_base; in init_flash_sizes()
67 unsigned long *ls = lasat_board_info.li_flashpart_size; in init_flash_sizes()
74 lasat_board_info.li_flash_base = 0x1e000000; in init_flash_sizes()
78 if (lasat_board_info.li_flash_size > 0x200000) { in init_flash_sizes()
83 lasat_board_info.li_flash_base = 0x10000000; in init_flash_sizes()
85 if (lasat_board_info.li_flash_size < 0x1000000) { in init_flash_sizes()
88 if (lasat_board_info.li_flash_size >= 0x400000) { in init_flash_sizes()
89 ls[LASAT_MTD_FS] = lasat_board_info.li_flash_size - 0x300000; in init_flash_sizes()
108 memset(&lasat_board_info, 0, sizeof(lasat_board_info)); in lasat_init_board_info()
111 EEPROMRead(0, (unsigned char *)&lasat_board_info.li_eeprom_info, in lasat_init_board_info()
115 crc = EEPROM_CRC((unsigned char *)(&lasat_board_info.li_eeprom_info), in lasat_init_board_info()
118 if (crc != lasat_board_info.li_eeprom_info.crc32) { in lasat_init_board_info()
122 if (lasat_board_info.li_eeprom_info.version != LASAT_EEPROM_VERSION) in lasat_init_board_info()
125 (unsigned int)lasat_board_info.li_eeprom_info.version, in lasat_init_board_info()
129 cfg0 = lasat_board_info.li_eeprom_info.cfg[0]; in lasat_init_board_info()
130 cfg1 = lasat_board_info.li_eeprom_info.cfg[1]; in lasat_init_board_info()
139 lasat_board_info.li_memsize = 0x0800000; in lasat_init_board_info()
142 lasat_board_info.li_memsize = 0x1000000; in lasat_init_board_info()
145 lasat_board_info.li_memsize = 0x2000000; in lasat_init_board_info()
148 lasat_board_info.li_memsize = 0x4000000; in lasat_init_board_info()
151 lasat_board_info.li_memsize = 0x8000000; in lasat_init_board_info()
154 lasat_board_info.li_memsize = 0; in lasat_init_board_info()
161 lasat_board_info.li_memsize *= 2; in lasat_init_board_info()
169 lasat_board_info.li_bus_hz = 60000000; in lasat_init_board_info()
172 lasat_board_info.li_bus_hz = 66000000; in lasat_init_board_info()
175 lasat_board_info.li_bus_hz = 66666667; in lasat_init_board_info()
178 lasat_board_info.li_bus_hz = 80000000; in lasat_init_board_info()
181 lasat_board_info.li_bus_hz = 83333333; in lasat_init_board_info()
184 lasat_board_info.li_bus_hz = 100000000; in lasat_init_board_info()
190 lasat_board_info.li_cpu_hz = in lasat_init_board_info()
191 lasat_board_info.li_bus_hz; in lasat_init_board_info()
194 lasat_board_info.li_cpu_hz = in lasat_init_board_info()
195 lasat_board_info.li_bus_hz + in lasat_init_board_info()
196 (lasat_board_info.li_bus_hz >> 1); in lasat_init_board_info()
199 lasat_board_info.li_cpu_hz = in lasat_init_board_info()
200 lasat_board_info.li_bus_hz + in lasat_init_board_info()
201 lasat_board_info.li_bus_hz; in lasat_init_board_info()
204 lasat_board_info.li_cpu_hz = in lasat_init_board_info()
205 lasat_board_info.li_bus_hz + in lasat_init_board_info()
206 lasat_board_info.li_bus_hz + in lasat_init_board_info()
207 (lasat_board_info.li_bus_hz >> 1); in lasat_init_board_info()
210 lasat_board_info.li_cpu_hz = in lasat_init_board_info()
211 lasat_board_info.li_bus_hz + in lasat_init_board_info()
212 lasat_board_info.li_bus_hz + in lasat_init_board_info()
213 lasat_board_info.li_bus_hz; in lasat_init_board_info()
220 lasat_board_info.li_flash_size = 0x200000; in lasat_init_board_info()
223 lasat_board_info.li_flash_size = 0x400000; in lasat_init_board_info()
226 lasat_board_info.li_flash_size = 0x800000; in lasat_init_board_info()
229 lasat_board_info.li_flash_size = 0x1000000; in lasat_init_board_info()
232 lasat_board_info.li_flash_size = 0x2000000; in lasat_init_board_info()
238 lasat_board_info.li_bmid = LASAT_W0_BMID(cfg0); in lasat_init_board_info()
239 lasat_board_info.li_prid = lasat_board_info.li_eeprom_info.prid; in lasat_init_board_info()
240 if (lasat_board_info.li_prid == 0xffff || lasat_board_info.li_prid == 0) in lasat_init_board_info()
241 lasat_board_info.li_prid = lasat_board_info.li_bmid; in lasat_init_board_info()
244 if (lasat_board_info.li_bmid > i_n_base_models) in lasat_init_board_info()
245 lasat_board_info.li_bmid = i_n_base_models; in lasat_init_board_info()
246 strcpy(lasat_board_info.li_bmstr, i_txt_base_models[lasat_board_info.li_bmid]); in lasat_init_board_info()
249 c = lasat_board_info.li_prid; in lasat_init_board_info()
251 strcpy(lasat_board_info.li_namestr, "Unknown Model"); in lasat_init_board_info()
252 strcpy(lasat_board_info.li_typestr, "Unknown Type"); in lasat_init_board_info()
255 strcpy(lasat_board_info.li_namestr, ppi->pi_name); in lasat_init_board_info()
257 strcpy(lasat_board_info.li_typestr, ppi->pi_type); in lasat_init_board_info()
259 sprintf(lasat_board_info.li_typestr, "%d",10*c); in lasat_init_board_info()
274 crc = EEPROM_CRC((unsigned char *)(&lasat_board_info.li_eeprom_info), in lasat_write_eeprom_info()
276 lasat_board_info.li_eeprom_info.crc32 = crc; in lasat_write_eeprom_info()
279 EEPROMWrite(0, (unsigned char *)&lasat_board_info.li_eeprom_info, in lasat_write_eeprom_info()