mirror of https://github.com/OpenIPC/firmware.git
Fix GK7205V200
parent
2dd18c8a34
commit
7b9991bcd9
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# on EV200:
|
# on GK7205V200:
|
||||||
# GPIO1_0 -> GPIO8 (1*8+0 = 8)
|
# GPIO1_0 -> GPIO8 (1*8+0 = 8)
|
||||||
# GPIO1_1 -> GPIO9 (1*8+1 = 9)
|
# GPIO1_1 -> GPIO9 (1*8+1 = 9)
|
||||||
|
|
||||||
# on EV300:
|
# on GK7205V300:
|
||||||
# GPIO1_3 -> GPIO11
|
# GPIO1_3 -> GPIO11
|
||||||
# GPIO1_2 -> GPIO10
|
# GPIO1_2 -> GPIO10
|
||||||
|
|
||||||
|
@ -62,16 +62,16 @@ gpio_1=0
|
||||||
if [ $# -lt 2 ]; then
|
if [ $# -lt 2 ]; then
|
||||||
echo "usage : ./ircut_demo <chip> <mode>"
|
echo "usage : ./ircut_demo <chip> <mode>"
|
||||||
echo "for example:"
|
echo "for example:"
|
||||||
echo "ir mode : ./ircut_demo hi3516ev200 1"
|
echo "ir mode : ./ircut_demo gk7205v200 1"
|
||||||
else
|
else
|
||||||
if [ $1 = "hi3516ev200" ]; then
|
if [ $1 = "gk7205v200" ]; then
|
||||||
gpio_0=8
|
gpio_0=8
|
||||||
gpio_1=9
|
gpio_1=9
|
||||||
elif [ $1 = "hi3516ev300" ]; then
|
elif [ $1 = "gk7205v300" ]; then
|
||||||
gpio_0=11
|
gpio_0=11
|
||||||
gpio_1=10
|
gpio_1=10
|
||||||
else
|
else
|
||||||
echo "wrong chipid: $1, please select: hi3516ev200 or hi3516ev300."
|
echo "wrong chipid: $1, please select: gk7205v200 or gk7205v300."
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ insert_adv7179()
|
||||||
|
|
||||||
insert_ko()
|
insert_ko()
|
||||||
{
|
{
|
||||||
|
cd /lib/modules/4.9.37/goke/
|
||||||
insmod sysconfig.ko chip=$CHIP_TYPE sensors=$SNS_TYPE0 g_cmos_yuv_flag=$YUV_TYPE0 board=$BOARD
|
insmod sysconfig.ko chip=$CHIP_TYPE sensors=$SNS_TYPE0 g_cmos_yuv_flag=$YUV_TYPE0 board=$BOARD
|
||||||
insmod osal.ko anony=1 mmz_allocator=gk mmz=anonymous,0,$mmz_start,$mmz_size || report_error
|
insmod osal.ko anony=1 mmz_allocator=gk mmz=anonymous,0,$mmz_start,$mmz_size || report_error
|
||||||
insmod gk7205v200_base.ko
|
insmod gk7205v200_base.ko
|
||||||
|
@ -92,8 +92,8 @@ insert_ko()
|
||||||
insmod gk7205v200_vi.ko
|
insmod gk7205v200_vi.ko
|
||||||
insert_isp;
|
insert_isp;
|
||||||
insmod gk7205v200_vpss.ko
|
insmod gk7205v200_vpss.ko
|
||||||
insmod gk7205v200_vo.ko
|
# insmod gk7205v200_vo.ko # unused on OpenIPC
|
||||||
insmod gfbg.ko video="gfbg:vram0_size:1620" # default fb0:D1
|
# insmod gfbg.ko video="gfbg:vram0_size:1620" # unused on OpenIPC # default fb0:D1
|
||||||
insmod gk7205v200_chnl.ko
|
insmod gk7205v200_chnl.ko
|
||||||
insmod gk7205v200_vedu.ko
|
insmod gk7205v200_vedu.ko
|
||||||
insmod gk7205v200_rc.ko
|
insmod gk7205v200_rc.ko
|
||||||
|
@ -102,19 +102,19 @@ insert_ko()
|
||||||
insmod gk7205v200_h265e.ko
|
insmod gk7205v200_h265e.ko
|
||||||
insmod gk7205v200_jpege.ko
|
insmod gk7205v200_jpege.ko
|
||||||
insmod gk7205v200_ive.ko save_power=0
|
insmod gk7205v200_ive.ko save_power=0
|
||||||
insmod isp_pwm.ko
|
# insmod isp_pwm.ko # unused on OpenIPC
|
||||||
insmod isp_sensor_i2c.ko
|
insmod isp_sensor_i2c.ko
|
||||||
insmod isp_sensor_spi.ko
|
insmod isp_sensor_spi.ko
|
||||||
insert_sil9024; # BT1120
|
# insert_sil9024; # unused on OpenIPC # BT1120
|
||||||
insert_audio
|
insert_audio
|
||||||
insmod mipi_rx.ko
|
# insmod mipi_rx.ko # unused on OpenIPC
|
||||||
}
|
}
|
||||||
|
|
||||||
remove_ko()
|
remove_ko()
|
||||||
{
|
{
|
||||||
remove_audio
|
remove_audio
|
||||||
rmmod mipi_rx
|
# rmmod mipi_rx # unused on OpenIPC
|
||||||
rmmod sil9024 &> /dev/null
|
# rmmod sil9024 &> /dev/null # unused on OpenIPC
|
||||||
rmmod gk7205v200_ive
|
rmmod gk7205v200_ive
|
||||||
rmmod gk7205v200_rc
|
rmmod gk7205v200_rc
|
||||||
rmmod gk7205v200_jpege
|
rmmod gk7205v200_jpege
|
||||||
|
@ -123,8 +123,8 @@ remove_ko()
|
||||||
rmmod gk7205v200_venc
|
rmmod gk7205v200_venc
|
||||||
rmmod gk7205v200_vedu
|
rmmod gk7205v200_vedu
|
||||||
rmmod gk7205v200_chnl
|
rmmod gk7205v200_chnl
|
||||||
rmmod gfbg
|
# rmmod gfbg # unused on OpenIPC
|
||||||
rmmod gk7205v200_vo
|
# rmmod gk7205v200_vo # unused on OpenIPC
|
||||||
rmmod gk7205v200_vpss
|
rmmod gk7205v200_vpss
|
||||||
rmmod gk7205v200_isp
|
rmmod gk7205v200_isp
|
||||||
rmmod gk7205v200_vi
|
rmmod gk7205v200_vi
|
||||||
|
@ -133,7 +133,7 @@ remove_ko()
|
||||||
rmmod gk7205v200_tde
|
rmmod gk7205v200_tde
|
||||||
rmmod isp_sensor_i2c &> /dev/null
|
rmmod isp_sensor_i2c &> /dev/null
|
||||||
rmmod isp_sensor_spi &> /dev/null
|
rmmod isp_sensor_spi &> /dev/null
|
||||||
rmmod isp_pwm
|
# rmmod isp_pwm # unused on OpenIPC
|
||||||
rmmod gk7205v200_sys
|
rmmod gk7205v200_sys
|
||||||
rmmod gk7205v200_base
|
rmmod gk7205v200_base
|
||||||
rmmod osal
|
rmmod osal
|
||||||
|
|
Loading…
Reference in New Issue