complete the onboard RTC Port Address and IRQ selection passing for Multitech PC-500 and PC-500+

This commit is contained in:
Bozo Scum
2025-10-30 15:46:37 +08:00
parent 811cdcdb9a
commit 2bf3c5a864
2 changed files with 4 additions and 6 deletions

View File

@@ -680,11 +680,9 @@ isartc_init(const device_t *info)
case ISARTC_RTC58167: /* Multitech PC-500/PC-500+ onboard RTC */
dev->flags |= FLAG_YEARBCD;
//dev->base_addr = machine_get_config_int("rtc_port");
dev->base_addr = 0x2c0;
dev->base_addr = machine_get_config_int("rtc_port");
dev->base_addrsz = 8;
//dev->irq = machine_get_config_int("rtc_irq");
dev->irq = -1;
dev->irq = machine_get_config_int("rtc_irq");
dev->f_rd = rtc58167_read;
dev->f_wr = rtc58167_write;
dev->nvr.reset = mm67_reset;

View File

@@ -1259,7 +1259,7 @@ static const device_config_t pc500_config[] = {
{
.name = "rtc_port",
.description = "RTC Port Address",
.type = CONFIG_HEX16,
.type = CONFIG_SELECTION,
.default_string = NULL,
.default_int = 0,
.file_filter = NULL,
@@ -1379,7 +1379,7 @@ static const device_config_t pc500plus_config[] = {
{
.name = "rtc_port",
.description = "Onboard RTC",
.type = CONFIG_HEX16,
.type = CONFIG_SELECTION,
.default_string = NULL,
.default_int = 0,
.file_filter = NULL,