Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: configurator need to support configurable reg width for UART #8722

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dongpingx
Copy link
Contributor

We found sometime we need to configure reg width for mmio and we change the width by hand for workaround, now we can configure the width by configurator.

I defined a macro named CONFIG_SERIAL_MMIO_REG_WIDTH in uart16550.c, collected mmio ports, loaded them and made a judgement whether the current serial_console was a mmio serial, it will show an option for mmio and hide for other serial ports.

I tested three sorts of serials: portio, pci and mmio, built acrn and checked the content generated in build/hypervisor/include/config.h, I confirmed the results are correct.

Tracked-On: #8721

We found sometime we need to configure reg width for mmio and
we change the width by hand for workaround, now we can configure
the width by configurator.

I defined a macro named CONFIG_SERIAL_MMIO_REG_WIDTH in uart16550.c,
collected mmio ports, loaded them and made a judgement whether
the current serial_console was a mmio serial, it will show an option
for mmio and hide for other serial ports.

I tested three sorts of serials: portio, pci and mmio, built acrn and
checked the content generated in build/hypervisor/include/config.h,
I confirmed the results are correct.

Tracked-On: projectacrn#8721
Signed-off-by: dongpingx <[email protected]>
@yuhuanX
Copy link
Contributor

yuhuanX commented Sep 11, 2024

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants