]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blob - drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_csi2p_system/host/isys_irq.c
staging/atomisp: Add support for the Intel IPU v2
[mirror_ubuntu-hirsute-kernel.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / css_2401_csi2p_system / host / isys_irq.c
1 /*
2 * Support for Intel Camera Imaging ISP subsystem.
3 * Copyright (c) 2015, Intel Corporation.
4 *
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.
8 *
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
12 * more details.
13 */
14
15 #include <system_local.h>
16 #include "device_access.h"
17 #include "assert_support.h"
18 #include "ia_css_debug.h"
19 #include "isys_irq.h"
20
21 #ifndef __INLINE_ISYS2401_IRQ__
22 /*
23 * Include definitions for isys irq private functions. isys_irq.h includes
24 * declarations of these functions by including isys_irq_public.h.
25 */
26 #include "isys_irq_private.h"
27 #endif
28
29 /** Public interface */
30 STORAGE_CLASS_ISYS2401_IRQ_C void isys_irqc_status_enable(
31 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", 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);
39 }