oleavr-rgl-a500-mini-linux-.../drivers/power/axp_power_legacy/nmi/sunxi-nmi.h
Ole André Vadla Ravnås 169c65d57e Initial commit
2022-05-07 01:01:45 +02:00

41 lines
1 KiB
C

/*
* Copyright (C) 2016
* Allwinner Technology Co., Ltd. <www.allwinnertech.com>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef _SUNXI_NMI_H
#define _SUNXI_NMI_H
#define NMI_MODULE_NAME "nmi"
typedef struct {
void __iomem *base_addr;
u32 nmi_irq_ctrl;
u32 nmi_irq_en;
u32 nmi_irq_status;
u32 nmi_irq_mask;
} nmi_struct;
#define NMI_IRQ_LOW_LEVEL (0x0)
#define NMI_IRQ_NE_EDGE (0x1)
#define NMI_IRQ_HIGH_LEVEL (0x2)
#define NMI_IRQ_PO_EDGE (0x3)
#define NMI_IRQ_MASK (0x1)
#define NMI_IRQ_ENABLE (0x1)
#define NMI_IRQ_PENDING (0x1)
enum {
DEBUG_INIT = 1U << 0,
DEBUG_INT = 1U << 1,
};
#endif