From 7837724dd8b3309b5037847a3e8f4183c7c3e635 Mon Sep 17 00:00:00 2001 From: Mateusz Faderewski Date: Thu, 14 Dec 2023 00:10:03 +0100 Subject: [PATCH] fix broken 64dd direct mode --- sw/controller/src/cic.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sw/controller/src/cic.c b/sw/controller/src/cic.c index 30511e1..d67ac5d 100644 --- a/sw/controller/src/cic.c +++ b/sw/controller/src/cic.c @@ -38,14 +38,11 @@ void cic_reset_parameters (void) { } void cic_set_parameters (uint32_t *args) { - cic_region_t region = rtc_get_region(); - uint32_t cic_config_0 = args[0] & (0x00FFFFFF); uint32_t cic_config_1 = args[1]; - if (region == REGION_PAL) { - cic_config_0 |= CIC_REGION; - } + cic_config_0 |= fpga_reg_get(REG_CIC_0) & (CIC_64DD_MODE | CIC_REGION); + if (args[0] & (1 << 24)) { cic_config_0 |= CIC_DISABLED; }