Skip to content

Commit

Permalink
hw/block: Introduce TC58128 eeprom Kconfig entry
Browse files Browse the repository at this point in the history
Add more fine-grained selection by adding a CONFIG_TC58128
selector for the TC58128 eeprom.

As this device is only used by the Shix machine, add an entry
to the proper section in MAINTAINERS.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210222141514.2646278-7-f4bug@amsat.org>
  • Loading branch information
philmd committed Mar 6, 2021
1 parent 25e7952 commit 475e70b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions MAINTAINERS
Expand Up @@ -1407,6 +1407,7 @@ Shix
M: Yoshinori Sato <ysato@users.sourceforge.jp>
R: Magnus Damm <magnus.damm@gmail.com>
S: Odd Fixes
F: hw/block/tc58128.c
F: hw/char/sh_serial.c
F: hw/sh4/shix.c
F: hw/intc/sh_intc.c
Expand Down
3 changes: 3 additions & 0 deletions hw/block/Kconfig
Expand Up @@ -22,6 +22,9 @@ config ECC
config ONENAND
bool

config TC58128
bool

config NVME_PCI
bool
default y if PCI_DEVICES
Expand Down
2 changes: 1 addition & 1 deletion hw/block/meson.build
Expand Up @@ -12,7 +12,7 @@ softmmu_ss.add(when: 'CONFIG_PFLASH_CFI02', if_true: files('pflash_cfi02.c'))
softmmu_ss.add(when: 'CONFIG_SSI_M25P80', if_true: files('m25p80.c'))
softmmu_ss.add(when: 'CONFIG_SWIM', if_true: files('swim.c'))
softmmu_ss.add(when: 'CONFIG_XEN', if_true: files('xen-block.c'))
softmmu_ss.add(when: 'CONFIG_SH4', if_true: files('tc58128.c'))
softmmu_ss.add(when: 'CONFIG_TC58128', if_true: files('tc58128.c'))
softmmu_ss.add(when: 'CONFIG_NVME_PCI', if_true: files('nvme.c', 'nvme-ns.c'))

specific_ss.add(when: 'CONFIG_VIRTIO_BLK', if_true: files('virtio-blk.c'))
Expand Down
1 change: 1 addition & 0 deletions hw/sh4/Kconfig
Expand Up @@ -16,6 +16,7 @@ config SHIX
bool
select SH7750
select SH4
select TC58128

config SH7750
bool
Expand Down

0 comments on commit 475e70b

Please sign in to comment.