upadte(driver): update sensor driver and delete unused script.

This commit is contained in:
kangjun 2024-08-30 17:49:48 +08:00
parent 6e4b2234c8
commit 113ad77c3b
17 changed files with 29 additions and 309 deletions

View File

@ -1443,11 +1443,11 @@
ctp_revert_x_flag = <0x0>;
ctp_revert_y_flag = <0x1>;
ctp_exchange_x_y_flag = <0x1>;
ctp_int_port = <&pio PH 13 6 1 3 0xffffffff>;
ctp_int_port = <&pio PH 13 7 1 3 0xffffffff>;
ctp_wakeup = <&pio PH 14 1 1 3 0xffffffff>;
ctp_power_ldo_vol = <3300>;
hynitron,irq-gpio = <&pio PH 13 6 1 3 0xffffffff>;
hynitron,irq-gpio = <&pio PH 13 7 1 3 0xffffffff>;
//<&pio PH 13 0 0 1 0>;
hynitron,reset-gpio = <&pio PH 14 1 1 3 0xffffffff>;
//<&pio PH 14 1 0 1 0>;

View File

@ -81,7 +81,7 @@ static struct regval_list sensor_720p_30fps_regs[] = {
{0xfd, 0x01},
{0x0e, 0x04},
{0x0f, 0xc5}, //exp
{0x12, 0x03}, //mirror and flip
{0x12, 0x01}, //mirror and flip
{0x14, 0x01},
{0x15, 0xe8},
{0x18, 0x00}, //un fixed-fps
@ -203,7 +203,7 @@ static struct regval_list sensor_720p_15fps_regs[] = {
{0xfd, 0x01},
{0x0e, 0x04},
{0x0f, 0xb0}, //exp
{0x12, 0x03}, //mirror and flip
{0x12, 0x01}, //mirror and flip
{0x14, 0x05},
{0x15, 0xd4},
{0x18, 0x00}, //un fixed-fps
@ -322,7 +322,7 @@ static struct regval_list sensor_800x600_15fps_regs[] = {
{0xfd, 0x01},
{0x0e, 0x02},
{0x0f, 0x1a}, //exp
{0x12, 0x03}, //mirror and flip
{0x12, 0x01}, //mirror and flip
{0x14, 0x06},
{0x15, 0x4c},
{0x18, 0x00}, //un fixed-fps
@ -437,7 +437,7 @@ static struct regval_list sensor_640x480_30fps_regs[] = {
{0xfd, 0x01},
{0x0e, 0x04},
{0x0f, 0xb0}, //exp
{0x12, 0x03}, //mirror and flip
{0x12, 0x01}, //mirror and flip
{0x14, 0x0a},
{0x15, 0x8e},
{0x18, 0x00}, //un fixed-fps
@ -666,7 +666,7 @@ static struct regval_list sensor_1600x1200_30fps_regs[] = {
{0xfd, 0x01},
{0x0e, 0x02},
{0x0f, 0x1a},
{0x12, 0x03}, //mirror and flip
{0x12, 0x01}, //mirror and flip
{0x18, 0x00},
{0x22, 0xff},
{0x23, 0x02},

View File

@ -193,7 +193,7 @@ static struct regval_list sensor_1600x1200_30fps_regs[] = {
{0xfd, 0x01},
{0x0e, 0x02},
{0x0f, 0x1a},
{0x12, 0x03}, //mirror and flip
{0x12, 0x01}, //mirror and flip
{0x18, 0x00},
{0x22, 0xff},
{0x23, 0x02},
@ -307,7 +307,7 @@ static struct regval_list sensor_720p_30fps_regs[] = {
{0xfd, 0x01},
{0x0e, 0x04},
{0x0f, 0xc5}, //exp
{0x12, 0x03}, //mirror and flip
{0x12, 0x01}, //mirror and flip
{0x14, 0x01},
{0x15, 0xe8},
{0x18, 0x00}, //un fixed-fps
@ -430,7 +430,7 @@ static struct regval_list sensor_720p_15fps_regs[] = {
{0xfd, 0x01},
{0x0e, 0x04},
{0x0f, 0xb0}, //exp
{0x12, 0x03}, //mirror and flip
{0x12, 0x01}, //mirror and flip
{0x14, 0x05},
{0x15, 0xd4},
{0x18, 0x00}, //un fixed-fps
@ -552,7 +552,7 @@ static struct regval_list sensor_vga_30fps_regs[] = {
{0xfd, 0x01},
{0x0e, 0x04},
{0x0f, 0xb0}, //exp
{0x12, 0x03}, //mirror and flip
{0x12, 0x01}, //mirror and flip
{0x14, 0x0a},
{0x15, 0x8e},
{0x18, 0x00}, //un fixed-fps

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 825 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -1 +1 @@
‰çg=XµQ^䯸"’ÓŒ|åóC/F*ÞƒûXÏ<58>#æ£ka̸€«ƒû'85h<35>íÇsÜ<<E2809A>¼ŒÂTh}΀Igãéù½Öé_—ÉØZ-D#ó³¬Ã<C2AC>A#›±ó“óâúctNaÆwYS52xªÀ:¡çFn<46>
jpΐ@Ι υ<>€¦Ο?ΥrφΓ V7³‡7ς«Λ£κΔEΖ®Δ¤rι6ΎxΦΝ… c“z„<7A>1™α ΑϊΎ2BΕΙ~<7E>ε%Mh<4D>SΡ)4S ")Ξ±Ιν*<2A>ϋ<'ΊJi:TZ<54>ΚG<CE9A>4+W­'<27>7†`Φ4Ψ2ξ<32>F

View File

@ -1,34 +0,0 @@
#!/bin/sh
#
# Start wifi_deamon....
#
start() {
printf "Starting wifi_deamon....: "
#wifi_daemon
#sleep 0.2
#wifi -o sta
#wifi -a enable
}
stop() {
printf "Stopping wifi_deamon: "
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?

View File

@ -1,38 +0,0 @@
#!/bin/sh
#
# Load mmc modules....
#
MODULES_DIR="/lib/modules/`uname -r`"
start() {
printf "Load mmc modules\n"
#insmod $MODULES_DIR/mmc_core.ko
#insmod $MODULES_DIR/mmc_block.ko
#insmod $MODULES_DIR/sunxi_mmc_host.ko
}
stop() {
printf "Unload mmc modules\n"
#rmmod $MODULES_DIR/mmc_core.ko
#rmmod $MODULES_DIR/block.ko
#rmmod $MODULES_DIR/sunxi_mmc_host.ko
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?

View File

@ -100,16 +100,17 @@ echo out > /sys/class/gpio/gpio160/direction
echo 0 > /sys/class/gpio/gpio160/value
echo 164 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio164/direction
echo 0 > /sys/class/gpio/gpio164/value
# echo out > /sys/class/gpio/gpio164/direction
echo in > /sys/class/gpio/gpio164/direction
# echo 0 > /sys/class/gpio/gpio164/value
echo 0 > /sys/class/pwm/pwmchip0/export
echo 100000 > /sys/class/pwm/pwmchip0/pwm0/period
echo 40000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle
echo 60000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle
echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable
# echo 1 > /sys/class/gpio/gpio160/value
echo 1 > /sys/class/gpio/gpio164/value
# echo 1 > /sys/class/gpio/gpio164/value
# run_usb_adb
@ -138,4 +139,4 @@ if [ ! -f "/mnt/UDISK/pix_auth_key.bin" ]; then
cp /APP/res/pix_auth_key.bin /mnt/UDISK/pix_auth_key.bin
fi
/APP/SL100FRONTPANEL &
/APP/SL100FRONTPANEL &

View File

@ -31,7 +31,7 @@ insmod $MODULES_DIR/snd_soc_sunxi_internal_codec.ko
insmod $MODULES_DIR/snd_soc_sunxi_machine.ko
echo "------insmod audio modules end-----"
# insmod $MODULES_DIR/rt-media.ko
insmod $MODULES_DIR/cst9220.ko
# insmod $MODULES_DIR/cst9220.ko
#ctp
#echo "------insmod ctp modules gslx680 start-----"

View File

@ -32,14 +32,14 @@ mount -t debugfs none /sys/kernel/debug
[ -x /bin/ll ] || alias ll='ls -al'
#export TSLIB_ROOT=/usr/local/tslib
export TSLIB_TSDEVICE=/dev/input/event2
export TSLIB_TSEVENTTYPE=input
export TSLIB_CONFFILE=/mnt/ts.conf
# export TSLIB_TSDEVICE=/dev/input/event2
# export TSLIB_TSEVENTTYPE=input
# export TSLIB_CONFFILE=/mnt/ts.conf
#export TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
#export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CALIBFILE=/mnt/pointercal
# export TSLIB_CALIBFILE=/mnt/pointercal
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
# export TSLIB_PLUGINDIR=/usr/lib/ts
# export TSLIB_CONSOLEDEVICE=none
# export TSLIB_FBDEVICE=/dev/fb0

View File

@ -1,42 +0,0 @@
#!/bin/sh
: <<'COMMENTBLOCK'
# remove
if [ "${ACTION}" == "remove" ]; then
MOUNTPOINT="$(grep -w "^/dev/${MDEV}" /proc/mounts | awk '{print $2}')"
[ -n "${MOUNTPOINT}" ] \
&& /bin/umount -l ${MOUNTPOINT} 2>/dev/null 1>/dev/null
exit 0
fi
# add
if [ "${ACTION}" == "add" ]; then
case ${MDEV} in
mmcblk[0-9])
[ -d "/sys/block/${MDEV}/${MDEV}p1" ] && exit 0
MOUNTPOINT=/mnt/SDCARD
;;
mmcblk[0-9]p[0-9])
MOUNTPOINT=/mnt/SDCARD
;;
sd[a-z])
[ -d "/sys/block/${MDEV}/${MDEV}1" ] && exit 0
MOUNTPOINT=/mnt/exUDISK
;;
sd[a-z][0-9])
MOUNTPOINT=/mnt/exUDISK
;;
*)
exit 0
;;
esac
for fstype in vfat ext4
do
[ "${fstype}" = "ext4" -a -x "/usr/sbin/e2fsck" ] \
&& e2fsck -p /dev/${MDEV} >/dev/null
/bin/mount -t ${fstype} -o utf8 /dev/${MDEV} ${MOUNTPOINT} && exit 0
done
[ ! -b "/dev/${MDEV}" -a -f "/sys/block/${MDEV%p*}/${MDEV}/uevent" ] \
&& echo add > /sys/block/${MDEV%p*}/${MDEV}/uevent
fi
COMMENTBLOCK
exit 0

View File

@ -1,68 +0,0 @@
#!/bin/sh
MODULES_DIR="/lib/modules/`uname -r`"
#insmod $MODULES_DIR/sunxi_usb_udc.ko
#insmod $MODULES_DIR/sunxi_usbc.ko
mount -t configfs none /sys/kernel/config
mkdir /sys/kernel/config/usb_gadget/g1
echo "0x1f3a" > /sys/kernel/config/usb_gadget/g1/idVendor
echo "0x100f" > /sys/kernel/config/usb_gadget/g1/idProduct
mkdir /sys/kernel/config/usb_gadget/g1/strings/0x409
echo "20080411" > /sys/kernel/config/usb_gadget/g1/strings/0x409/serialnumber
echo "Android" > /sys/kernel/config/usb_gadget/g1/strings/0x409/manufacturer
mkdir /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0
mkdir -p /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/mjpeg/m/720p
echo 1280 > /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/mjpeg/m/720p/wWidth
echo 720 > /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/mjpeg/m/720p/wHeight
echo 333333 > /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/mjpeg/m/720p/dwFrameInterval
echo 333333 > /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/mjpeg/m/720p/dwDefaultFrameInterval
echo 442368000 > /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/mjpeg/m/720p/dwMinBitRate
echo 442368000 > /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/mjpeg/m/720p/dwMaxBitRate
echo 1843200 > /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/mjpeg/m/720p/dwMaxVideoFrameBufferSize
mkdir /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/header/h
ln -s /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/mjpeg/m/ /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/header/h/
ln -s /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/header/h/ /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/class/fs
ln -s /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/header/h/ /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/streaming/class/hs
mkdir /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/control/header/h
ln -s /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/control/header/h/ /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/control/class/fs/
ln -s /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/control/header/h/ /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/control/class/ss/
mkdir /sys/kernel/config/usb_gadget/g1/functions/ffs.adb
mkdir /sys/kernel/config/usb_gadget/g1/configs/c.1
echo 0xc0 > /sys/kernel/config/usb_gadget/g1/configs/c.1/bmAttributes
echo 500 > /sys/kernel/config/usb_gadget/g1/configs/c.1/MaxPower
mkdir /sys/kernel/config/usb_gadget/g1/configs/c.1/strings/0x409
mkdir /sys/kernel/config/usb_gadget/g1/functions/mass_storage.usb0
ln -s /sys/kernel/config/usb_gadget/g1/functions/mass_storage.usb0/ /sys/kernel/config/usb_gadget/g1/configs/c.1/mass_storage.usb0
mkdir /dev/usb-ffs
mkdir /dev/usb-ffs/adb
mount -o uid=2000,gid=2000 -t functionfs adb /dev/usb-ffs/adb/
udc=`ls /sys/class/udc`
isudc=0
start(){
while [ 1 ]
do
sleep 1
otg_role=`cat /sys/devices/platform/soc/usbc0/otg_role`
if [ "$otg_role" = "usb_device" ]
then
if [ $isudc == 0 ]
then
echo $udc > /sys/kernel/config/usb_gadget/g1/UDC
isudc=1
fi
else
isudc=0
fi
done
}
start &
echo > /sys/kernel/config/usb_gadget/g1/UDC
echo 0x100d > /sys/kernel/config/usb_gadget/g1/idProduct
rm /sys/kernel/config/usb_gadget/g1/configs/c.1/mass_storage.usb0
rm /sys/kernel/config/usb_gadget/g1/configs/c.1/uvc.usb0
ln -s /sys/kernel/config/usb_gadget/g1/functions/uvc.usb0/ /sys/kernel/config/usb_gadget/g1/configs/c.1/uvc.usb0
ls /sys/class/udc | xargs echo > /sys/kernel/config/usb_gadget/g1/UDC

View File

@ -1,37 +0,0 @@
#!/bin/sh
MODULES_DIR="/lib/modules/`uname -r`"
insmod $MODULES_DIR/configfs.ko
insmod $MODULES_DIR/usb-common.ko
insmod $MODULES_DIR/usbcore.ko
insmod $MODULES_DIR/sunxi_hci.ko
insmod $MODULES_DIR/ehci-hcd.ko
insmod $MODULES_DIR/ohci-hcd.ko
insmod $MODULES_DIR/udc-core.ko
insmod $MODULES_DIR/libcomposite.ko
insmod $MODULES_DIR/sunxi_usb_udc.ko
insmod $MODULES_DIR/usb_f_fs.ko
insmod $MODULES_DIR/usb_f_mass_storage.ko
insmod $MODULES_DIR/usb_f_hid.ko
insmod $MODULES_DIR/sunxi_usbc.ko
insmod $MODULES_DIR/scsi_mod.ko
insmod $MODULES_DIR/sd_mod.ko
insmod $MODULES_DIR/usb-storage.ko
insmod $MODULES_DIR/uas.ko
insmod $MODULES_DIR/ums-realtek.ko
insmod $MODULES_DIR/ums-datafab.ko
insmod $MODULES_DIR/ums-freecom.ko
insmod $MODULES_DIR/ums-isd200.ko
insmod $MODULES_DIR/ums-usbat.ko
insmod $MODULES_DIR/ums-sddr09.ko
insmod $MODULES_DIR/ums-sddr55.ko
insmod $MODULES_DIR/ums-jumpshot.ko
insmod $MODULES_DIR/ums-alauda.ko
insmod $MODULES_DIR/ums-karma.ko
insmod $MODULES_DIR/ums-cypress.ko
insmod $MODULES_DIR/ums-eneub6250.ko
cat /sys/devices/platform/soc/usbc0/usb_host

View File

@ -2331,56 +2331,7 @@ CONFIG_mpp_compile_static_lib=y
# CONFIG_mpp_systrace is not set
CONFIG_mpp_filerepair=y
CONFIG_mpp_sample_configfileparser=y
CONFIG_mpp_sample=y
# CONFIG_mpp_sample_aec is not set
# CONFIG_mpp_sample_aenc is not set
# CONFIG_mpp_sample_ai is not set
# CONFIG_mpp_sample_ai2aenc is not set
# CONFIG_mpp_sample_ai2aenc2muxer is not set
# CONFIG_mpp_sample_ao is not set
# CONFIG_mpp_sample_aoSync is not set
# CONFIG_mpp_sample_CodecParallel is not set
# CONFIG_mpp_sample_demux is not set
# CONFIG_mpp_sample_demux2adec is not set
# CONFIG_mpp_sample_demux2adec2ao is not set
# CONFIG_mpp_sample_demux2vdec is not set
# CONFIG_mpp_sample_demux2vdec_saveFrame is not set
# CONFIG_mpp_sample_demux2vdec2vo is not set
# CONFIG_mpp_sample_driverVipp is not set
# CONFIG_mpp_sample_file_repair is not set
# CONFIG_mpp_sample_g2d is not set
# CONFIG_mpp_sample_glog is not set
# CONFIG_mpp_sample_MotionDetect is not set
# CONFIG_mpp_sample_multi_vi2venc2muxer is not set
# CONFIG_mpp_sample_muxer_multi_stream is not set
# CONFIG_mpp_sample_facekit_demo is not set
# CONFIG_mpp_sample_OnlineVenc is not set
# CONFIG_mpp_sample_PersonDetect is not set
# CONFIG_mpp_sample_recorder is not set
# CONFIG_mpp_sample_region is not set
# CONFIG_mpp_sample_RegionDetect is not set
# CONFIG_mpp_sample_rtsp is not set
# CONFIG_mpp_sample_smartIPC_demo is not set
# CONFIG_mpp_sample_select is not set
# CONFIG_mpp_sample_takePicture is not set
# CONFIG_mpp_sample_timelapse is not set
# CONFIG_mpp_sample_UILayer is not set
# CONFIG_mpp_sample_uvcin is not set
CONFIG_mpp_sample_uvcout=y
# CONFIG_mpp_sample_uac is not set
# CONFIG_mpp_sample_vdec is not set
# CONFIG_mpp_sample_venc is not set
# CONFIG_mpp_sample_vencGdcZoom is not set
# CONFIG_mpp_sample_EncppGdcOffline is not set
# CONFIG_mpp_sample_virvi is not set
# CONFIG_mpp_sample_virvi2venc is not set
# CONFIG_mpp_sample_virvi2vencSync is not set
# CONFIG_mpp_sample_virvi2venc2ce is not set
# CONFIG_mpp_sample_twinchn_virvi2venc2ce is not set
# CONFIG_mpp_sample_virvi2venc2muxer is not set
# CONFIG_mpp_sample_virvi2vo is not set
# CONFIG_mpp_sample_vo is not set
# CONFIG_mpp_uncommonly_samples is not set
# CONFIG_mpp_sample is not set
# CONFIG_PACKAGE_eyesee-mpp-private-onvif is not set
CONFIG_PACKAGE_eyesee-mpp-private-rtsp=y
CONFIG_PACKAGE_eyesee-mpp-system=y
@ -2403,20 +2354,7 @@ CONFIG_wifi_disable=y
#
CONFIG_PACKAGE_rt_media=y
CONFIG_rt_media_support_venc_param_debug=y
CONFIG_rt_media_demo=y
# CONFIG_rt_media_demo_video_in is not set
# CONFIG_rt_media_demo_video_in_3chn is not set
# CONFIG_rt_media_demo_roi is not set
# CONFIG_rt_media_demo_force_i_frame is not set
# CONFIG_rt_media_demo_motion_search is not set
# CONFIG_rt_media_demo_encoder is not set
# CONFIG_rt_media_demo_get_yuv is not set
# CONFIG_rt_media_demo_osd is not set
# CONFIG_rt_media_demo_orl is not set
# CONFIG_rt_media_demo_reset_size is not set
# CONFIG_rt_media_demo_gdc is not set
# CONFIG_rt_media_demo_isp_api is not set
# CONFIG_rt_media_demo_face_recognition is not set
# CONFIG_rt_media_demo is not set
#
# rt_media-mpp-demo
@ -2428,7 +2366,7 @@ CONFIG_rt_media_demo=y
#
# rt_media-uvc
#
CONFIG_PACKAGE_rt_media-uvc=y
# CONFIG_PACKAGE_rt_media-uvc is not set
#
# smart_card