add(system): gpadc config and startup speed.
This commit is contained in:
parent
cfba011b94
commit
967c888c64
|
@ -1630,9 +1630,9 @@
|
||||||
channel0_compare_higdata = <0>;
|
channel0_compare_higdata = <0>;
|
||||||
/*channel1_compare_lowdata = <460000>;*/
|
/*channel1_compare_lowdata = <460000>;*/
|
||||||
/*channel1_compare_higdata = <1200000>;*/
|
/*channel1_compare_higdata = <1200000>;*/
|
||||||
/*key_cnt = <5>;*/
|
key_cnt = <1>;
|
||||||
/*key0_vol = <210>;*/
|
key0_vol = <1800>;
|
||||||
/*key0_val = <115>;*/
|
key0_val = <115>;
|
||||||
/*key1_vol = <410>;*/
|
/*key1_vol = <410>;*/
|
||||||
/*key1_val = <114>;*/
|
/*key1_val = <114>;*/
|
||||||
/*key2_vol = <590>;*/
|
/*key2_vol = <590>;*/
|
||||||
|
@ -1641,7 +1641,7 @@
|
||||||
/*key3_val = <28>;*/
|
/*key3_val = <28>;*/
|
||||||
/*key4_vol = <880>;*/
|
/*key4_vol = <880>;*/
|
||||||
/*key4_val = <102>;*/
|
/*key4_val = <102>;*/
|
||||||
status = "disabled";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&wiegand {
|
&wiegand {
|
||||||
|
|
|
@ -1174,7 +1174,19 @@ CONFIG_INPUT_TOUCHSCREEN=y
|
||||||
CONFIG_TOUCHSCREEN_CST9220_HYNITRON_TS=m
|
CONFIG_TOUCHSCREEN_CST9220_HYNITRON_TS=m
|
||||||
# CONFIG_INPUT_MISC is not set
|
# CONFIG_INPUT_MISC is not set
|
||||||
# CONFIG_RMI4_CORE is not set
|
# CONFIG_RMI4_CORE is not set
|
||||||
# CONFIG_INPUT_SENSOR is not set
|
CONFIG_INPUT_SENSOR=y
|
||||||
|
# CONFIG_SENSORS_BMA250 is not set
|
||||||
|
# CONFIG_SENSORS_SC7A30 is not set
|
||||||
|
# CONFIG_SENSORS_MMA7660 is not set
|
||||||
|
# CONFIG_SENSORS_MIR3DA is not set
|
||||||
|
# CONFIG_SENSORS_MXC622X is not set
|
||||||
|
# CONFIG_SENSORS_MMA8452 is not set
|
||||||
|
# CONFIG_SENSORS_MMA865X is not set
|
||||||
|
# CONFIG_SENSORS_MC32X0 is not set
|
||||||
|
CONFIG_SENSORS_GPADC=y
|
||||||
|
# CONFIG_SENSORS_GPADC_TEST is not set
|
||||||
|
# CONFIG_KEY_GPIO is not set
|
||||||
|
# CONFIG_SENSORS_DA380 is not set
|
||||||
# CONFIG_SENSORS_BMA2X2 is not set
|
# CONFIG_SENSORS_BMA2X2 is not set
|
||||||
# CONFIG_SENSORS_BMA2X2_ENABLE_INT1 is not set
|
# CONFIG_SENSORS_BMA2X2_ENABLE_INT1 is not set
|
||||||
# CONFIG_SENSORS_BMA2X2_ENABLE_INT2 is not set
|
# CONFIG_SENSORS_BMA2X2_ENABLE_INT2 is not set
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
Before Width: | Height: | Size: 665 B After Width: | Height: | Size: 316 B |
Binary file not shown.
Before Width: | Height: | Size: 665 B |
|
@ -17,6 +17,10 @@ for i in /etc/init.d/S??* ;do
|
||||||
# Ignore dangling symlinks (if any).
|
# Ignore dangling symlinks (if any).
|
||||||
[ ! -f "$i" ] && continue
|
[ ! -f "$i" ] && continue
|
||||||
|
|
||||||
|
if [ "$i" = "/etc/init.d/S99swupdate_autorun" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
case "$i" in
|
case "$i" in
|
||||||
*.sh)
|
*.sh)
|
||||||
# Source shell script for speed.
|
# Source shell script for speed.
|
||||||
|
@ -83,6 +87,14 @@ done
|
||||||
#echo "---/mnt/extsd/---"
|
#echo "---/mnt/extsd/---"
|
||||||
#ls /mnt/extsd/
|
#ls /mnt/extsd/
|
||||||
|
|
||||||
|
echo 161 > /sys/class/gpio/export
|
||||||
|
echo out > /sys/class/gpio/gpio161/direction
|
||||||
|
echo 0 > /sys/class/gpio/gpio161/value
|
||||||
|
|
||||||
|
echo 162 > /sys/class/gpio/export
|
||||||
|
echo out > /sys/class/gpio/gpio162/direction
|
||||||
|
echo 0 > /sys/class/gpio/gpio162/value
|
||||||
|
|
||||||
echo 160 > /sys/class/gpio/export
|
echo 160 > /sys/class/gpio/export
|
||||||
echo out > /sys/class/gpio/gpio160/direction
|
echo out > /sys/class/gpio/gpio160/direction
|
||||||
echo 0 > /sys/class/gpio/gpio160/value
|
echo 0 > /sys/class/gpio/gpio160/value
|
||||||
|
@ -94,17 +106,28 @@ echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable
|
||||||
|
|
||||||
echo 1 > /sys/class/gpio/gpio160/value
|
echo 1 > /sys/class/gpio/gpio160/value
|
||||||
|
|
||||||
run_usb_adb
|
# run_usb_adb
|
||||||
|
|
||||||
setusbconfig rndis
|
# setusbconfig rndis
|
||||||
|
|
||||||
ifconfig usb0 up
|
# ifconfig usb0 up
|
||||||
|
|
||||||
ifconfig usb0 10.10.10.235
|
# ifconfig usb0 10.10.10.235
|
||||||
|
|
||||||
cp /APP/picture /mnt/UDISK/ -rf
|
if [ ! -d "/mnt/UDISK/picture" ]; then
|
||||||
|
mkdir /mnt/UDISK/picture
|
||||||
|
echo "mkdir /mnt/UDISK/picture."
|
||||||
|
cp -r /APP/picture/* /mnt/UDISK/picture
|
||||||
|
fi
|
||||||
|
|
||||||
cp /APP/res/*.aac /mnt/UDISK/
|
for file in "/APP/res"/*.aac; do
|
||||||
|
if [ -f "$file" ]; then
|
||||||
|
dest_file="/mnt/UDISK/$(basename "$file")"
|
||||||
|
if [ ! -f "$dest_file" ]; then
|
||||||
|
cp "$file" "$dest_file"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
if [ ! -f "/mnt/UDISK/pix_auth_key.bin" ]; then
|
if [ ! -f "/mnt/UDISK/pix_auth_key.bin" ]; then
|
||||||
cp /APP/res/pix_auth_key.bin /mnt/UDISK/pix_auth_key.bin
|
cp /APP/res/pix_auth_key.bin /mnt/UDISK/pix_auth_key.bin
|
||||||
|
|
|
@ -2,20 +2,20 @@
|
||||||
|
|
||||||
MODULES_DIR="/lib/modules/`uname -r`"
|
MODULES_DIR="/lib/modules/`uname -r`"
|
||||||
|
|
||||||
insmod $MODULES_DIR/configfs.ko
|
# insmod $MODULES_DIR/configfs.ko
|
||||||
insmod $MODULES_DIR/videobuf2-vmalloc.ko
|
# insmod $MODULES_DIR/videobuf2-vmalloc.ko
|
||||||
insmod $MODULES_DIR/usb-common.ko
|
# insmod $MODULES_DIR/usb-common.ko
|
||||||
insmod $MODULES_DIR/usbcore.ko
|
insmod $MODULES_DIR/usbcore.ko
|
||||||
insmod $MODULES_DIR/sunxi_hci.ko
|
insmod $MODULES_DIR/sunxi_hci.ko
|
||||||
insmod $MODULES_DIR/ehci-hcd.ko
|
insmod $MODULES_DIR/ehci-hcd.ko
|
||||||
insmod $MODULES_DIR/ohci-hcd.ko
|
insmod $MODULES_DIR/ohci-hcd.ko
|
||||||
insmod $MODULES_DIR/udc-core.ko
|
# insmod $MODULES_DIR/udc-core.ko
|
||||||
insmod $MODULES_DIR/libcomposite.ko
|
# insmod $MODULES_DIR/libcomposite.ko
|
||||||
insmod $MODULES_DIR/sunxi_usb_udc.ko
|
# insmod $MODULES_DIR/sunxi_usb_udc.ko
|
||||||
insmod $MODULES_DIR/usb_f_fs.ko
|
# insmod $MODULES_DIR/usb_f_fs.ko
|
||||||
insmod $MODULES_DIR/usb_f_mass_storage.ko
|
# insmod $MODULES_DIR/usb_f_mass_storage.ko
|
||||||
insmod $MODULES_DIR/usb_f_hid.ko
|
# insmod $MODULES_DIR/usb_f_hid.ko
|
||||||
insmod $MODULES_DIR/usb_f_uvc.ko
|
# insmod $MODULES_DIR/usb_f_uvc.ko
|
||||||
insmod $MODULES_DIR/sunxi_usbc.ko
|
insmod $MODULES_DIR/sunxi_usbc.ko
|
||||||
|
|
||||||
if [ -f /lib/modules/4.9.191/videobuf2-vmalloc.ko ];then
|
if [ -f /lib/modules/4.9.191/videobuf2-vmalloc.ko ];then
|
||||||
|
@ -46,7 +46,7 @@ if [ -f /lib/modules/4.9.191/snd-usb-audio.ko ];then
|
||||||
insmod $MODULES_DIR/snd-usb-audio.ko
|
insmod $MODULES_DIR/snd-usb-audio.ko
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat /sys/devices/platform/soc/usbc0/usb_device
|
# cat /sys/devices/platform/soc/usbc0/usb_device
|
||||||
setusbconfig adb
|
# setusbconfig adb
|
||||||
adbd > /dev/null &
|
# adbd > /dev/null &
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue