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