rk356x: add rk3568 uvc config
Signed-off-by: Mark Huang <Mark Huang@rock-chips.com> Change-Id: I4df235e306f350136eeb63819d33583b59e7c845
This commit is contained in:
@ -2,10 +2,10 @@
|
||||
#
|
||||
|
||||
#vi_aging adjust
|
||||
io -4 0xfe801048 0x40
|
||||
#io -4 0xfe801048 0x40
|
||||
|
||||
export VIV_VX_ENABLE_NN_DDR_BURST_SIZE_256B=0
|
||||
export VIV_VX_MAX_SOC_OT_NUMBER=16
|
||||
#export VIV_VX_ENABLE_NN_DDR_BURST_SIZE_256B=0
|
||||
#export VIV_VX_MAX_SOC_OT_NUMBER=16
|
||||
|
||||
if [ -e /sys/firmware/devicetree/base/__symbols__/gc4c33 ] ;then
|
||||
echo "isp sensor is gc4c33,disable HDR"
|
||||
|
||||
@ -36,6 +36,9 @@ check_uvc_buffer()
|
||||
}
|
||||
check_alive()
|
||||
{
|
||||
if [[ ! -f "/oem/usr/bin/$1" && ! -f "/usr/bin/$1" ]]; then
|
||||
return 1
|
||||
fi
|
||||
PID=`busybox ps |grep $1 |grep -v grep | wc -l`
|
||||
if [ $PID -le 0 ];then
|
||||
if [ "$1"x == "uvc_app"x ];then
|
||||
@ -44,8 +47,9 @@ check_alive()
|
||||
rm -rf /sys/kernel/config/usb_gadget/rockchip/configs/b.1/f*
|
||||
echo none > /sys/kernel/config/usb_gadget/rockchip/UDC
|
||||
rmdir /sys/kernel/config/usb_gadget/rockchip/functions/rndis.gs0
|
||||
echo ffd00000.dwc3 > /sys/bus/platform/drivers/dwc3/unbind
|
||||
echo ffd00000.dwc3 > /sys/bus/platform/drivers/dwc3/bind
|
||||
UDC=`ls /sys/class/udc/| awk '{print $1}'`
|
||||
echo $UDC > /sys/bus/platform/drivers/dwc3/unbind
|
||||
echo $UDC > /sys/bus/platform/drivers/dwc3/bind
|
||||
/oem/usb_config.sh rndis off #disable adb
|
||||
usb_irq_set
|
||||
uvc_app &
|
||||
|
||||
Reference in New Issue
Block a user