#endif
}
-void dfii_reset(const struct gramCtx *ctx) {
- dfii_set_p0_address(ctx, 0);
- dfii_set_p0_baddress(ctx, 0);
- dfii_setcontrol(ctx, DFII_CONTROL_ODT|DFII_CONTROL_RESET);
-}
-
void dfii_setsw(const struct gramCtx *ctx, bool software_control) {
if (software_control) {
- dfii_setcontrol(ctx, DFII_CONTROL_CKE|DFII_CONTROL_ODT|
- DFII_CONTROL_RESET);
+ dfii_setcontrol(ctx, DFII_CONTROL_CKE|DFII_CONTROL_ODT|DFII_CONTROL_RESET|DFII_COMMAND_CS);
} else {
- dfii_setcontrol(ctx, DFII_CONTROL_SEL);
+ dfii_setcontrol(ctx, DFII_CONTROL_SEL|DFII_CONTROL_RESET);
}
}