aboutsummaryrefslogtreecommitdiff
path: root/hw/char
diff options
context:
space:
mode:
authorVijai Kumar K <vijai@behindbytes.com>2021-08-01 00:32:29 +0530
committerAlistair Francis <alistair.francis@wdc.com>2021-09-01 11:59:12 +1000
commit46b3e2548bd49f9bc8866bf5e20f74c86948cefc (patch)
tree1d9dbb510c990d45c11daf3822c7e5c19c3583d4 /hw/char
parentd52dff5d8048d4982437db9606c27bb4127cf9d0 (diff)
downloadqemu-46b3e2548bd49f9bc8866bf5e20f74c86948cefc.zip
qemu-46b3e2548bd49f9bc8866bf5e20f74c86948cefc.tar.gz
qemu-46b3e2548bd49f9bc8866bf5e20f74c86948cefc.tar.bz2
hw/char: Add config for shakti uart
Use a dedicated UART config(CONFIG_SHAKTI_UART) to select shakti uart. Signed-off-by: Vijai Kumar K <vijai@behindbytes.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20210731190229.137483-1-vijai@behindbytes.com Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/char')
-rw-r--r--hw/char/Kconfig3
-rw-r--r--hw/char/meson.build2
2 files changed, 4 insertions, 1 deletions
diff --git a/hw/char/Kconfig b/hw/char/Kconfig
index 2e4f620b..6b6cf2f 100644
--- a/hw/char/Kconfig
+++ b/hw/char/Kconfig
@@ -68,3 +68,6 @@ config SIFIVE_UART
config GOLDFISH_TTY
bool
+
+config SHAKTI_UART
+ bool
diff --git a/hw/char/meson.build b/hw/char/meson.build
index 8361d0a..7b594f5 100644
--- a/hw/char/meson.build
+++ b/hw/char/meson.build
@@ -16,7 +16,7 @@ softmmu_ss.add(when: 'CONFIG_SERIAL', if_true: files('serial.c'))
softmmu_ss.add(when: 'CONFIG_SERIAL_ISA', if_true: files('serial-isa.c'))
softmmu_ss.add(when: 'CONFIG_SERIAL_PCI', if_true: files('serial-pci.c'))
softmmu_ss.add(when: 'CONFIG_SERIAL_PCI_MULTI', if_true: files('serial-pci-multi.c'))
-softmmu_ss.add(when: 'CONFIG_SHAKTI', if_true: files('shakti_uart.c'))
+softmmu_ss.add(when: 'CONFIG_SHAKTI_UART', if_true: files('shakti_uart.c'))
softmmu_ss.add(when: 'CONFIG_VIRTIO_SERIAL', if_true: files('virtio-console.c'))
softmmu_ss.add(when: 'CONFIG_XEN', if_true: files('xen_console.c'))
softmmu_ss.add(when: 'CONFIG_XILINX', if_true: files('xilinx_uartlite.c'))