project:cfg:BoardConfig_IPC: Added fastboot BoardConfig file and firmware post-scripts, distinguishing between the BoardConfigs for Luckfox Pico Pro and Luckfox Pico Max. project:app: Added fastboot_client and rk_smart_door for quick boot applications; updated rkipc app to adapt to the latest media library. media:samples: Added more usage examples. media:rockit: Fixed bugs; removed support for retrieving data frames from VPSS. media:isp: Updated rkaiq library and related tools to support connection to RKISP_Tuner. sysdrv:Makefile: Added support for compiling drv_ko on Luckfox Pico Ultra W using Ubuntu; added support for custom root filesystem. sysdrv:tools:board: Updated Buildroot optional mirror sources, updated some software versions, and stored device tree files and configuration files that undergo multiple modifications for U-Boot and kernel separately. sysdrv:source:mcu: Used RISC-V MCU SDK with RT-Thread system, mainly for initializing camera AE during quick boot. sysdrv:source:uboot: Added support for fastboot; added high baud rate DDR bin for serial firmware upgrades. sysdrv:source:kernel: Upgraded to version 5.10.160; increased NPU frequency for RV1106G3; added support for fastboot. Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
48 lines
1.5 KiB
C
48 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* drivers/parisc/gsc.h
|
|
* Declarations for functions in gsc.c
|
|
* Copyright (c) 2000-2002 Helge Deller, Matthew Wilcox
|
|
*/
|
|
|
|
#include <linux/interrupt.h>
|
|
#include <asm/hardware.h>
|
|
#include <asm/parisc-device.h>
|
|
|
|
#define OFFSET_IRR 0x0000 /* Interrupt request register */
|
|
#define OFFSET_IMR 0x0004 /* Interrupt mask register */
|
|
#define OFFSET_IPR 0x0008 /* Interrupt pending register */
|
|
#define OFFSET_ICR 0x000C /* Interrupt control register */
|
|
#define OFFSET_IAR 0x0010 /* Interrupt address register */
|
|
|
|
/* PA I/O Architected devices support at least 5 bits in the EIM register. */
|
|
#define GSC_EIM_WIDTH 5
|
|
|
|
struct gsc_irq {
|
|
unsigned long txn_addr; /* IRQ "target" */
|
|
int txn_data; /* HW "IRQ" */
|
|
int irq; /* virtual IRQ */
|
|
};
|
|
|
|
struct gsc_asic {
|
|
struct parisc_device *gsc;
|
|
unsigned long hpa;
|
|
char *name;
|
|
int version;
|
|
int type;
|
|
int eim;
|
|
struct gsc_irq gsc_irq;
|
|
int global_irq[32];
|
|
};
|
|
|
|
int gsc_common_setup(struct parisc_device *parent, struct gsc_asic *gsc_asic);
|
|
int gsc_alloc_irq(struct gsc_irq *dev); /* dev needs an irq */
|
|
int gsc_claim_irq(struct gsc_irq *dev, int irq); /* dev needs this irq */
|
|
int gsc_assign_irq(struct irq_chip *type, void *data);
|
|
int gsc_find_local_irq(unsigned int irq, int *global_irq, int limit);
|
|
void gsc_fixup_irqs(struct parisc_device *parent, void *ctrl,
|
|
void (*choose)(struct parisc_device *child, void *ctrl));
|
|
void gsc_asic_assign_irq(struct gsc_asic *asic, int local_irq, int *irqp);
|
|
|
|
irqreturn_t gsc_asic_intr(int irq, void *dev);
|