Based on commits by: - Jedrzej Boczar <jboczar@antmicro.com> - Karol Gugala <kgugala@antmicro.com> Tested serial and networking on a DC-SCM with mor1k and vexriscv.