[linux] porting cvitek asic chips.

1. update cv182x/cv183x configuration file
	2. update cv181x/cv180x configuration file
	3. update clk driver for cvitek
	4. update dma driver for cvitek
	5. update soc driver for cvitek
	6. porting cvitek ion driver from kernel-4.19
	7. compatible with riscv

Change-Id: Icff9fafe0ebe7d6bab824bbadb952e08bdc66c19
This commit is contained in:
wangliang.wang
2023-03-09 14:38:25 +08:00
committed by sam.xiang
parent 4bc998a131
commit 4f810186ab
2062 changed files with 544892 additions and 2134 deletions

View File

@ -412,6 +412,22 @@ struct hc_driver {
};
#if defined(CONFIG_CVITEK_USB_LEGACY)
/**
* struct otg_hcd_ops - Interface between OTG core and HCD
*
* Provided by the HCD core to allow the OTG core to start/stop the HCD
*
* @add: function to add the HCD
* @remove: function to remove the HCD
*/
struct otg_hcd_ops {
int (*add)(struct usb_hcd *hcd,
unsigned int irqnum, unsigned long irqflags);
void (*remove)(struct usb_hcd *hcd);
};
#endif
static inline int hcd_giveback_urb_in_bh(struct usb_hcd *hcd)
{
return hcd->driver->flags & HCD_BH;