Sync from enjoy-digital/litex@caf399a2998f https://github.com/enjoy-digital/litex/commit/caf399a2998fb9108bd100307ddcbbb84ce6971d