// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2023 Loongson Technology Corporation Limited */ #include <drm/drm_vblank.h> #include "lsdc_irq.h" /* * For the DC in LS7A2000, clearing interrupt status is achieved by * write "1" to LSDC_INT_REG. * * For the DC in LS7A1000, clear interrupt status is achieved by write "0" * to LSDC_INT_REG. * * Two different hardware engineers modify it as their will. */ irqreturn_t ls7a2000_dc_irq_handler(int irq, void *arg) { … } /* For the DC in LS7A1000 and LS2K1000 */ irqreturn_t ls7a1000_dc_irq_handler(int irq, void *arg) { … }