hw: add Serial re-init/resume support

Issue #4669
This commit is contained in:
Alexander Boettcher
2023-02-21 15:25:13 +01:00
committed by Christian Helmuth
parent 5587476b4e
commit 1da71afbf3
5 changed files with 29 additions and 13 deletions

View File

@ -247,6 +247,11 @@ class Genode::Imx_uart: Mmio
* \param base device MMIO base
*/
Imx_uart(addr_t base, uint32_t, uint32_t) : Mmio(base)
{
init();
}
void init()
{
write<Cr1>(Cr1::init_value());
write<Cr2>(Cr2::init_value());