Adding files for RK3568 USB

This commit is contained in:
xj 2024-09-08 20:00:37 -07:00
parent 86e600ba5e
commit 6fd90067a0
5 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,4 @@
SRC_DIR := rk3568
include $(KERNEL_ROOT)/compiler.mk

View File

@ -0,0 +1,11 @@
include $(KERNEL_ROOT)/services/drivers/usb/components/usb.mk
objs += rk3568_usb.o
all: ${objs}
@echo "generate $^"
@mv $^ $(KERNEL_ROOT)/services/drivers/usb/components
%.o: %.c
@echo "cc $^"
@${cc} ${cflags} ${c_useropts} ${INC_DIR} -o $@ -c $^

View File

@ -0,0 +1,10 @@
#include "rk3568_usb.h"
int enable_dwc3_rk3568(){
return 0;
};
int disable_dwc3_rk3568(){
return 0;
};

View File

@ -0,0 +1,6 @@
#ifndef RK3568_USB_H_
#define RK3568_USB_H_
int enable_rk3568_usb = 0;
#endif

View File

@ -42,6 +42,8 @@ INC_DIR = -I$(KERNEL_ROOT)/services/drivers/usb/ \
-I$(KERNEL_ROOT)/services/drivers/usb/components/osal \ -I$(KERNEL_ROOT)/services/drivers/usb/components/osal \
-I$(KERNEL_ROOT)/services/drivers/usb/components/port \ -I$(KERNEL_ROOT)/services/drivers/usb/components/port \
-I$(KERNEL_ROOT)/services/drivers/usb/components/port/xhci \ -I$(KERNEL_ROOT)/services/drivers/usb/components/port/xhci \
-I$(KERNEL_ROOT)/services/drivers/usb/components/dev \
-I$(KERNEL_ROOT)/services/drivers/usb/components/dev/rk3568 \
-I$(KERNEL_ROOT)/services/drivers/usb/usb_service \ -I$(KERNEL_ROOT)/services/drivers/usb/usb_service \
-I$(KERNEL_ROOT)/services//semaphore \ -I$(KERNEL_ROOT)/services//semaphore \
-I$(KERNEL_ROOT)/services/lib/ipc \ -I$(KERNEL_ROOT)/services/lib/ipc \