Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix problems with TCR register access
Per SC16IS752/762 manual Table 10, MCR and TCR are part of the General register set, which is "accessible only when LCR[7] = logic 0." Therefore, clear bit 7 of LCR before attempting to write MCR (to enable access to TCR), and TCR (to set flow control thresholds). Additionally, this function was leaving the register set in TCR/TLR mode. Turn that off after writing TCR. Note that it's also leaving the EFR_ENABLE bit set, but that's also done in a couple other places, so I left it be. I am not sure the `regcache_cache_bypass(s->regmap, false);` is in the right place, someone in the know should check that.
- Loading branch information