diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/dev/Makefile b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/dev/Makefile new file mode 100644 index 000000000..c778bcc85 --- /dev/null +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/dev/Makefile @@ -0,0 +1,4 @@ +SRC_DIR := rk3568 + + +include $(KERNEL_ROOT)/compiler.mk diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/dev/rk3568/Makefile b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/dev/rk3568/Makefile new file mode 100644 index 000000000..12cd004c6 --- /dev/null +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/dev/rk3568/Makefile @@ -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 $^ diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/dev/rk3568/rk3568_usb.c b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/dev/rk3568/rk3568_usb.c new file mode 100644 index 000000000..1a6761c42 --- /dev/null +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/dev/rk3568/rk3568_usb.c @@ -0,0 +1,10 @@ +#include "rk3568_usb.h" + + +int enable_dwc3_rk3568(){ + return 0; +}; + +int disable_dwc3_rk3568(){ + return 0; +}; diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/dev/rk3568/rk3568_usb.h b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/dev/rk3568/rk3568_usb.h new file mode 100644 index 000000000..52eddeff1 --- /dev/null +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/dev/rk3568/rk3568_usb.h @@ -0,0 +1,6 @@ +#ifndef RK3568_USB_H_ +#define RK3568_USB_H_ + +int enable_rk3568_usb = 0; + +#endif diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/usb.mk b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/usb.mk index 21d6d5b7b..c11893355 100644 --- a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/usb.mk +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/usb.mk @@ -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/port \ -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//semaphore \ -I$(KERNEL_ROOT)/services/lib/ipc \