1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Support for Intel Camera Imaging ISP subsystem. 4 * Copyright (c) 2015, Intel Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms and conditions of the GNU General Public License, 8 * version 2, as published by the Free Software Foundation. 9 * 10 * This program is distributed in the hope it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13 * more details. 14 */ 15 16 #include <system_local.h> 17 #include "device_access.h" 18 #include "assert_support.h" 19 #include "ia_css_debug.h" 20 #include "isys_irq.h" 21 22 #ifndef __INLINE_ISYS2401_IRQ__ 23 /* 24 * Include definitions for isys irq private functions. isys_irq.h includes 25 * declarations of these functions by including isys_irq_public.h. 26 */ 27 #include "isys_irq_private.h" 28 #endif 29 30 /* Public interface */ 31 void isys_irqc_status_enable(const isys_irq_ID_t isys_irqc_id) 32 { 33 assert(isys_irqc_id < N_ISYS_IRQ_ID); 34 35 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "Setting irq mask for port %u\n", 36 isys_irqc_id); 37 isys_irqc_reg_store(isys_irqc_id, ISYS_IRQ_MASK_REG_IDX, 38 ISYS_IRQ_MASK_REG_VALUE); 39 isys_irqc_reg_store(isys_irqc_id, ISYS_IRQ_CLEAR_REG_IDX, 40 ISYS_IRQ_CLEAR_REG_VALUE); 41 isys_irqc_reg_store(isys_irqc_id, ISYS_IRQ_ENABLE_REG_IDX, 42 ISYS_IRQ_ENABLE_REG_VALUE); 43 } 44