drivers/wifi: Remove unnecessary data structure copy
[coreboot2.git] / src / soc / mediatek / mt8196 / irq2axi.c
blobe0250a97f2b5f4a070364814d8e2a9526f330e86
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
4 #include <device/mmio.h>
5 #include <soc/irq2axi.h>
7 void irq2axi_disable(void)
9 printk(BIOS_DEBUG, "%s\n", __func__);
10 /* disable IRQ2AXI */
11 write32p(IRQ2AXI_CFG1, 0x0);
13 /* disable mcusys ack */
14 clrbits32p(MCUSYS_ACK_REG, MCUSYS_ACK_CLR);
16 /* switch to legacy channel */
17 clrbits32p(CIRQ_AXI_MODE, CIRQ_AXI_MODE_LEGACY);