lnls-dig / openMMC

Open source firmware for MMC controllers
GNU General Public License v3.0
39 stars 32 forks source link

Check if the clock configuration is successfully applied before FPGA_ON #189

Closed gustavosr8 closed 10 months ago

gustavosr8 commented 10 months ago

Only change the FPGA state if the clock is configured successfully. It can be done in AFCv4 since we can propagate the error checking of the clock switch config function. AFCv3 doesn't have an success check when clock is been configured, so it's not possible to apply this fix for it yet.

augustofg commented 10 months ago

:+1: