forked from xuos/xiuos
Adding files for RK3568 USB
This commit is contained in:
parent
86e600ba5e
commit
6fd90067a0
|
@ -0,0 +1,4 @@
|
||||||
|
SRC_DIR := rk3568
|
||||||
|
|
||||||
|
|
||||||
|
include $(KERNEL_ROOT)/compiler.mk
|
|
@ -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 $^
|
|
@ -0,0 +1,10 @@
|
||||||
|
#include "rk3568_usb.h"
|
||||||
|
|
||||||
|
|
||||||
|
int enable_dwc3_rk3568(){
|
||||||
|
return 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
int disable_dwc3_rk3568(){
|
||||||
|
return 0;
|
||||||
|
};
|
|
@ -0,0 +1,6 @@
|
||||||
|
#ifndef RK3568_USB_H_
|
||||||
|
#define RK3568_USB_H_
|
||||||
|
|
||||||
|
int enable_rk3568_usb = 0;
|
||||||
|
|
||||||
|
#endif
|
|
@ -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 \
|
||||||
|
|
Loading…
Reference in New Issue