151 |
|
|
152 |
/* IOFPGA manages simultaneously CPU and Midplane EEPROM */ |
/* IOFPGA manages simultaneously CPU and Midplane EEPROM */ |
153 |
static const struct nmc93cX6_group eeprom_cpu_midplane = { |
static const struct nmc93cX6_group eeprom_cpu_midplane = { |
154 |
EEPROM_TYPE_NMC93C46, 2, 0, "CPU and Midplane EEPROM", 0, |
EEPROM_TYPE_NMC93C46, 2, 0, |
155 |
|
EEPROM_DORD_NORMAL, |
156 |
|
EEPROM_DOUT_HIGH, |
157 |
|
EEPROM_DEBUG_DISABLED, |
158 |
|
"CPU and Midplane EEPROM", |
159 |
{ &eeprom_cpu_def, &eeprom_midplane_def }, |
{ &eeprom_cpu_def, &eeprom_midplane_def }, |
160 |
}; |
}; |
161 |
|
|
165 |
* http://www.cisco.com/en/US/products/hw/routers/ps341/products_field_notice09186a00801cb26d.shtml |
* http://www.cisco.com/en/US/products/hw/routers/ps341/products_field_notice09186a00801cb26d.shtml |
166 |
*/ |
*/ |
167 |
static const struct nmc93cX6_group eeprom_pem_npeb = { |
static const struct nmc93cX6_group eeprom_pem_npeb = { |
168 |
EEPROM_TYPE_NMC93C46, 1, 0, "PEM (NPE-B) EEPROM", 0, { &eeprom_pem_def }, |
EEPROM_TYPE_NMC93C46, 1, 0, |
169 |
|
EEPROM_DORD_NORMAL, |
170 |
|
EEPROM_DOUT_HIGH, |
171 |
|
EEPROM_DEBUG_DISABLED, |
172 |
|
"PEM (NPE-B) EEPROM", |
173 |
|
{ &eeprom_pem_def }, |
174 |
}; |
}; |
175 |
|
|
176 |
/* Reset DS1620 */ |
/* Reset DS1620 */ |
442 |
*data = 0x0102; |
*data = 0x0102; |
443 |
|
|
444 |
/* If we have an I/O slot, we use the I/O slot DUART */ |
/* If we have an I/O slot, we use the I/O slot DUART */ |
445 |
if (c7200_pa_check_eeprom(d->router,0)) |
if (vm_slot_check_eeprom(d->router->vm,0,0)) |
446 |
*data |= 0x01000000; |
*data |= 0x01000000; |
447 |
} |
} |
448 |
break; |
break; |
716 |
return NULL; |
return NULL; |
717 |
} |
} |
718 |
|
|
719 |
/* Initialize EEPROM groups */ |
/* Initialize system EEPROM groups */ |
720 |
void c7200_init_eeprom_groups(c7200_t *router) |
void c7200_init_sys_eeprom_groups(c7200_t *router) |
721 |
{ |
{ |
722 |
router->sys_eeprom_g1 = eeprom_cpu_midplane; |
router->sys_eeprom_g1 = eeprom_cpu_midplane; |
723 |
router->sys_eeprom_g2 = eeprom_pem_npeb; |
router->sys_eeprom_g2 = eeprom_pem_npeb; |
787 |
d->dev.priv_data = d; |
d->dev.priv_data = d; |
788 |
|
|
789 |
/* If we have an I/O slot, we use the I/O slot DUART */ |
/* If we have an I/O slot, we use the I/O slot DUART */ |
790 |
if (c7200_pa_check_eeprom(d->router,0)) { |
if (vm_slot_check_eeprom(vm,0,0)) { |
791 |
vm_log(vm,"CONSOLE","console managed by I/O board\n"); |
vm_log(vm,"CONSOLE","console managed by I/O board\n"); |
792 |
|
|
793 |
/* Set console and AUX port notifying functions */ |
/* Set console and AUX port notifying functions */ |