URL
https://opencores.org/ocsvn/openarty/openarty/trunk
[/] [openarty/] [trunk/] [sw/] [host/] [flashdrvr.cpp] - Diff between revs 32 and 49
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 32 |
Rev 49 |
Line 162... |
Line 162... |
} // printf("\nVerify success\n");
|
} // printf("\nVerify success\n");
|
} return true;
|
} return true;
|
}
|
}
|
|
|
#define VCONF_VALUE 0x8b
|
#define VCONF_VALUE 0x8b
|
|
#define VCONF_VALUE_ALT 0x83
|
|
|
bool FLASHDRVR::verify_config(void) {
|
bool FLASHDRVR::verify_config(void) {
|
unsigned cfg = m_fpga->readio(R_QSPI_VCONF);
|
unsigned cfg = m_fpga->readio(R_QSPI_VCONF);
|
// printf("CFG = %02x\n", cfg);
|
if (cfg != VCONF_VALUE)
|
return (cfg == VCONF_VALUE);
|
printf("Unexpected volatile configuration = %02x\n", cfg);
|
|
return ((cfg == VCONF_VALUE)||(cfg == VCONF_VALUE_ALT));
|
}
|
}
|
|
|
void FLASHDRVR::set_config(void) {
|
void FLASHDRVR::set_config(void) {
|
// There is some delay associated with these commands, but it should
|
// There is some delay associated with these commands, but it should
|
// be dwarfed by the communication delay. If you wish to do this on the
|
// be dwarfed by the communication delay. If you wish to do this on the
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.