usb: enable cpu boost for specific class drivers

add needs_cpu_boost field to usb_class_driver and manage boost state in
usb_core, similar to needs_exclusive_storage.

Change-Id: Ieb0cd7bedda5b24bb0d209d5ce907db30f4815db
This commit is contained in:
mojyack 2025-12-19 22:45:47 +09:00
parent 732f7bcfd9
commit bbdada7690
9 changed files with 23 additions and 9 deletions

View file

@ -692,6 +692,7 @@ static void usb_iap_notify_event(intptr_t data) {
struct usb_class_driver usb_cdrv_iap = {
.needs_exclusive_storage = false,
.needs_cpu_boost = true,
.config = 2,
.ep_allocs_size = ARRAYLEN(usb_iap_ep_allocs),
.ep_allocs = usb_iap_ep_allocs,