Bravis NP844 - Обсуждение | Планшет, 7.85"



Реп: (422)
Обсуждение Bravis NP844
Изображение Bravis NP844
Описание | Обсуждение »

  • Перед тем как задать вопрос, посмотрите FAQ по Android OS и Глоссарий. Уважайте своё и чужое время.
  • Для обсуждения и поиска сторонних программ/игр пользуйтесь разделами: Программы и Игры.
  • Для сравнения устройства с конкурентами и по вопросам выбора устройств обращайтесь в раздел: Выбор и сравнение.
  • Доступный объем оперативной памяти и памяти для установки приложений обсуждается в теме: Сколько памяти у вас в аппарате?
  • Результаты тестов производительности Android устройств смотрите в теме: Benchmark
  • Перед размещением фотографии ознакомьтесь с темой Работа с изображениями на форуме
  • Сообщения, не относящиеся к теме обсуждения (оффтоп), удаляются без предупреждения.

Технические характеристики
Дисплей 7,85 "
Разрешение экрана 1024 x 768 пикс
Тип матрицы TN
Процессор Allwinner A33 (Cortex-A7)
Частота процессора 1,3 ГГц
Операц. система Android 4.4
Оперативная память 1024 Мб
Встроенная память 8 Гб
Тыловая камера 2 Мпикс
Фронтальная камера 0,3 Мпикс
WiFi +
Музыкальный плеер +
Видеоплеер +
Разъемы micro-USB; аудиовыход 3.5 мм
Емкость батареи 3000 мАч
Размеры 200.5x135.2x8.6 мм
Вес 750 г

Фотографии
Прикрепленное изображение
Прикрепленное изображение

Полезное


В теме нет куратора. По вопросам наполнения шапки обращайтесь к модераторам раздела через кнопку Изображение под сообщениями, на которые необходимо добавить ссылки.

Сообщение отредактировал АлександрL - 27.02.18, 17:27
Причина редактирования: Прошивка и инструкция



Реп: (422)
gomer.g94 @ 06.09.2015, 17:26 *
нужен оригинальный script.bin

Где он находится?



Реп: (17)
* vpmzb,

батник создай и туда впиши
adb root
adb remount
adb shell mkdir /mnt/sdcard/nanda
adb shell mount -t vfat /dev/block/nanda /mnt/sdcard/nanda
adb pull /mnt/sdcard/nanda/script0.bin "script0.bin"
adb pull /mnt/sdcard/nanda/script.bin "script.bin"
echo smontirovano i skopirovano script v papku
adb shell umount /mnt/sdcard/nanda
adb shell rmdir /mnt/sdcard/nanda
echo otmontirovano i udalena papka nanda

ах да,для работы нужен адб =)
В папке должен ваш батник быть и adb.exe AdbWinApi.dll AdbWinUsbApi.dll


или с терминала андроида
mkdir /mnt/sdcard/nanda
mount -t vfat /dev/block/nanda /mnt/sdcard/nanda

копируй с папки скрипт бин и отмонтируй!!
и отмонтирование папки

umount /mnt/sdcard/nanda
rmdir /mnt/sdcard/nanda


п.с. мне бы тоже этот бин не помешал бы 0=)
Люди,скинте lsmod сюда (подгружаемые модули) тогда смогу включить необходимые модули на тач и сделать образ!!!сейчас пробую тыкать на угад, ведь оригинал модулей у меня есть, но конфига нету :P
gomer.g94 @ 03.09.2015, 14:26 *
Максимум что получилось на прошивке от A85-AMPE так это.

A85-AMPE_a33_v1.0rc7_4.4.2_2014121701_[1024x768_ctp_Camera_gsensor_ddr480_odt]_001
подменив модули с бекапа на тач смог тыкать,но его нужно отколибровать а это не пробовал :blush:
но, уже живой был и реагировал на тыкание :lol:


вот включённые модули в нахимиченой прошивке..завтра буду ctp_para ковырять
[ctp_para]
ctp_used = 1
ctp_name = "gsl3675"
ctp_twi_id = 0
ctp_twi_addr = 0x40
ctp_screen_max_x = 1024
ctp_screen_max_y = 600
ctp_revert_x_flag = 0
ctp_revert_y_flag = 1
ctp_exchange_x_y_flag = 1

ctp_int_port = port:PB05<4><default><default><default>
ctp_wakeup = port:PH01<1><default><default><1>
ctp_power_ldo = "axp22_eldo1"
ctp_power_ldo_vol = 3000
ctp_power_io =

;--------------------------------------------------------------------------------
; CTP automatic detection configuration
;ctp_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[ctp_list_para]
ctp_det_used = 1
ft5x_ts = 1
gt82x = 1
gslX680 = 1
gslX680new = 0
gt9xx_ts = 1
gt9xxf_ts = 0
tu_ts = 0
gt818_ts = 1
zet622x = 1
aw5306_ts = 1
icn83xx_ts = 0


gslX680new 3371273 0 - Live 0x00000000 (F)
bma250 7151 0 - Live 0x00000000
sunxi_schw 12559 0 - Live 0x00000000 (O)
cdc_ether 5099 0 - Live 0x00000000
rtl8150 9023 0 - Live 0x00000000
mcs7830 6292 0 - Live 0x00000000
qf9700 7805 0 - Live 0x00000000
asix 17150 0 - Live 0x00000000
usbnet 17700 4 cdc_ether,mcs7830,qf9700,asix, Live 0x00000000
sunxi_keyboard 3021 0 - Live 0x00000000
sw_device 14152 1 gslX680new, Live 0x00000000
vfe_v4l2 447068 0 - Live 0x00000000
gc2035 12397 0 - Live 0x00000000
gc0312 9933 0 - Live 0x00000000
gc0328 10743 0 - Live 0x00000000
gc0308 10670 0 - Live 0x00000000
vfe_subdev 4523 5 vfe_v4l2,gc2035,gc0312,gc0328,gc0308, Live 0x00000000
vfe_os 4099 2 vfe_v4l2,vfe_subdev, Live 0x00000000
cci 21594 6 gc2035,gc0312,gc0328,gc0308, Live 0x00000000
cam_detect 49777 1 vfe_v4l2, Live 0x00000000
videobuf_dma_contig 5535 1 vfe_v4l2, Live 0x00000000
videobuf_core 16520 2 vfe_v4l2,videobuf_dma_contig, Live 0x00000000
leds_sunxi 1351 0 - Live 0x00000000
mali 209378 15 - Live 0x00000000 (O)
lcd 64124 0 - Live 0x00000000
disp 993841 8 mali,lcd, Live 0x00000000
nand 283592 10 - Live 0x00000000 (O)


вот буилд пропер
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=KVT49L
ro.build.display.id=astar_y3-eng 4.4.2 KVT49L 20141224 test-keys
ro.build.version.incremental=20141224
ro.build.version.sdk=19
ro.build.version.codename=REL
ro.build.version.release=4.4.2
ro.build.date=2014? 12? 24? ??? 15:25:23 CST
ro.build.date.utc=1419405923
ro.build.type=eng
ro.build.user=ytx
ro.build.host=Android
ro.build.tags=test-keys
ro.product.model=V11
ro.product.brand=Allwinner
ro.product.name=astar_y3
ro.product.device=astar-y3
ro.product.board=exdroid
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=softwinner
ro.product.locale.language=en
ro.product.locale.region=US
ro.wifi.channels=
ro.board.platform=polaris
# ro.build.product is obsolete; use ro.product.device
ro.build.product=astar-y3
# Do not try to parse ro.build.description or .fingerprint
ro.build.description=astar_y3-eng 4.4.2 KVT49L 20141224 test-keys
ro.build.fingerprint=Allwinner/astar_y3/astar-y3:4.4.2/KVT49L/20141224:eng/test-keys
ro.build.characteristics=tablet
# end build properties

#
# ADDITIONAL_BUILD_PROPERTIES
#
ro.com.android.dateformat=MM-dd-yyyy
ro.config.ringtone=Ring_Synth_04.ogg
ro.config.notification_sound=pixiedust.ogg
ro.carrier=unknown
ro.config.alarm_alert=Alarm_Classic.ogg
ro.zygote.disable_gl_preload=true
persist.sys.strictmode.visual=0
persist.sys.strictmode.disable=1
ro.opengles.version=131072
ro.kernel.android.checkjni=0
ro.reversion.aw_sdk_tag=exdroid4.4.2_r2-a33-v2.0
ro.sys.cputype=QuadCore-A33
wifi.interface=wlan0
wifi.supplicant_scan_interval=15
keyguard.no_require_sim=true
ro.sys.network_location=true
persist.demo.hdmirotationlock=0
drm.service.enabled=true
dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=64m
dalvik.vm.heapsize=384m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=512k
dalvik.vm.heapmaxfree=8m
ro.sw.embeded.telephony=false
persist.sys.timezone=Europe/London
persist.sys.language=en
persist.sys.country=US
ro.product.8723b_bt.used=true
persist.sys.usb.config=mass_storage,adb
ro.udisk.lable=Polaris
ro.font.scale=1.15
ro.hwa.force=false
rw.logger=0
ro.sys.bootfast=true
ro.move.enable=true
ro.wmt.homepage_base=http://www.baidu.com
debug.hwc.showfps=0
eken.board.platform=exDroid
eken.device.telephone=false
eken.hardware=sun7i
eken.hardware.screen.size=11
eken.hardware.screen.res=1024x768
eken.build.version.release=4.4.1
eken.build.version.sdk=19
eken.product.model=V11
eken.product.device=astar_y3
eken.product.name=astar_y3
eken.product.manufacturer=eken
debug.hwui.render_dirty_regions=false
ro.sys.mutedrm=true
ro.sf.lcd_density=160
ro.product.firmware=v2.0
ro.setupwizard.mode=OPTIONAL
ro.com.google.gmsversion=4.4_r3
persist.sys.dalvik.vm.lib=libdvm.so
dalvik.vm.dexopt-flags=v=n,m=y
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt


скрины нормальные а вот на таче половина :sveta:
Прикрепленное изображение


и новый день o.O обнаружил что тач не работает от скриптбина!!на других образах монтировал нанда и менял от а85-амре,тач работал но криво...

здесь нарыл аналог бравису, но прошивку не искал и не пробовал
вот модули от QUAD-CORE A33 y3
rda_wlan 113983 0 - Live 0x00000000
gslX680new 247542 0 - Live 0x00000000 (F)
bma250 7928 0 - Live 0x00000000
sunxi_schw 12559 0 - Live 0x00000000 (O)
cdc_ether 5099 0 - Live 0x00000000
rtl8150 9023 0 - Live 0x00000000
mcs7830 6292 0 - Live 0x00000000
qf9700 7805 0 - Live 0x00000000
asix 17150 0 - Live 0x00000000
usbnet 17700 4 cdc_ether,mcs7830,qf9700,asix, Live 0x00000000
sunxi_keyboard 3021 0 - Live 0x00000000
sw_device 13604 0 - Live 0x00000000
vfe_v4l2 445476 0 - Live 0x00000000
gc2035 13488 0 - Live 0x00000000
gc0329 9565 0 - Live 0x00000000
gc0308 11478 0 - Live 0x00000000
gc0312_r 11737 0 - Live 0x00000000
gc0312 11729 0 - Live 0x00000000
vfe_subdev 4579 6 vfe_v4l2,gc2035,gc0329,gc0308,gc0312_r,gc0312, Live 0x00000000
vfe_os 4099 2 vfe_v4l2,vfe_subdev, Live 0x00000000
cci 21594 7 gc2035,gc0329,gc0308,gc0312_r,gc0312, Live 0x00000000
videobuf_dma_contig 5535 1 vfe_v4l2, Live 0x00000000
videobuf_core 16520 2 vfe_v4l2,videobuf_dma_contig, Live 0x00000000
leds_sunxi 1351 0 - Live 0x00000000
mali 209762 60 - Live 0x00000000 (O)
lcd 38180 0 - Live 0x00000000
disp 993096 8 mali,lcd, Live 0x00000000
nand 280614 10 - Live 0x00000000 (O)

вот и буилд проп от него
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=KVT49L
ro.build.display.id=astar_y3-eng 4.4.2 KVT49L 20141022 test-keys
ro.build.version.incremental=20141022
ro.build.version.sdk=19
ro.build.version.codename=REL
ro.build.version.release=4.4.2
ro.build.date=2014�� 10�� 22�� ������ 18:52:34 CST
ro.build.date.utc=1413975154
ro.build.type=eng
ro.build.user=chqw
ro.build.host=ubuntu13
ro.build.tags=test-keys
ro.product.model=QUAD-CORE A33 y3
ro.product.brand=Allwinner
ro.product.name=astar_y3
ro.product.device=astar-y3
ro.product.board=exdroid
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=softwinner
ro.product.locale.language=en
ro.product.locale.region=US
ro.wifi.channels=
ro.board.platform=polaris
# ro.build.product is obsolete; use ro.product.device
ro.build.product=astar-y3
# Do not try to parse ro.build.description or .fingerprint
ro.build.description=astar_y3-eng 4.4.2 KVT49L 20141022 test-keys
ro.build.fingerprint=Allwinner/astar_y3/astar-y3:4.4.2/KVT49L/20141022:eng/test-keys
ro.build.characteristics=tablet
# end build properties
#
# ADDITIONAL_BUILD_PROPERTIES
#
ro.com.android.dateformat=MM-dd-yyyy
ro.config.ringtone=Ring_Synth_04.ogg
ro.config.notification_sound=pixiedust.ogg
ro.carrier=wifi-only
ro.config.alarm_alert=Alarm_Classic.ogg
ro.zygote.disable_gl_preload=true
persist.sys.strictmode.visual=0
persist.sys.strictmode.disable=1
ro.opengles.version=131072
ro.kernel.android.checkjni=0
ro.reversion.aw_sdk_tag=exdroid4.4.2_r2-a33-v2.0
ro.sys.cputype=QuadCore-A33
wifi.interface=wlan0
wifi.supplicant_scan_interval=15
keyguard.no_require_sim=true
ro.sys.network_location=true
persist.demo.hdmirotationlock=0
drm.service.enabled=true
dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=64m
dalvik.vm.heapsize=384m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=512k
dalvik.vm.heapmaxfree=8m
ro.sw.embeded.telephony=false
persist.sys.timezone=Asia/Shanghai
persist.sys.language=en
persist.sys.country=US
ro.product.8723b_bt.used=true
persist.sys.usb.config=mass_storage,adb
ro.udisk.lable=astar
ro.font.scale=1.0
ro.hwa.force=false
rw.logger=0
ro.sys.bootfast=true
debug.hwc.showfps=0
debug.hwui.render_dirty_regions=false
ro.sys.mutedrm=true
ro.adb.secure=0
ro.sf.lcd_density=160
ro.product.firmware=v2.0
ro.setupwizard.mode=OPTIONAL
ro.com.google.gmsversion=4.4_r3
persist.sys.dalvik.vm.lib=libdvm.so
dalvik.vm.dexopt-flags=v=n,m=y
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt

опять новый день ;) с калибровкой разобрался,отображение нормальное,но тач не работает :sveta: нужно в конфиге вписывать сканируемые драйвера :blush: главное что результат есть,осталось совместить два конфига где работает тач и где отображение нормальное, и будет счастье :rofl: жаль что тут нету собеседников с кем можно советоваться..видимо мало у кого есть бравис o.O а модель сама отличная!!несколько раз падал и нормально работает :blush: Качественно сделали его!!! }-) раз все жмут инфу по бравису, доделаю конфиг и не дам образ прошивки... :beee: по ходу, на бравис подходят все прошивки а33, главное конфиг правильный с подгружаемыми модулями!интересно,смогу ли сделать универсальный конфиг для многих моделей :blush: просто буду вписывать в него все драйвера и ставить автоопределение...а бы модули были и конфиг определит их.. :D
M
Ознакомьтесь с Правилами Форума!
4.16. Запрещен ответ без текста (смайлом, включая текстовые смайлы). А также ответы состоящие только из смайлов, либо перегруженные ими (более трех смайлов в одном сообщении) во всех разделах, кроме раздела "Трепалка".


Сообщение отредактировал tredem1 - 28.10.15, 10:41
Причина редактирования: не хочу флудить



Реп: (13)
* gomer.g94,
я же написал =\ пиши в терминале андроида
mkdir /mnt/sdcard/nanda
mount -t vfat /dev/block/nanda /mnt/sdcard/nanda

копируй с папки нанда (которая на сдкард) script0.bin и отмонтируй!! если не отмонтируешь и перезагрузишь, будет кирпич (после унмоунт в папке нанда будет чисто)
и отмонтирование папки

umount /mnt/sdcard/nanda
rmdir /mnt/sdcard/nanda


этот script0.bin мне и нужен, там все настройки =) (самое главное для меня)
и в корне андроида есть init.sun8i.rc в этом файле можно посмотреть какие модули подгружает система (или в терминале набери lsmod) мне бы и это не помешало!!

а вот это нарыл в самом модуле..gslX680new

=============gsl_load_fw start==============
FW_798_GSL915_7681024_OGS_DZ
U798_GSL915_7681024_OGS_XCL
U798_GSL915_7681024_OGS_SG
GSLX680_FW_TEST
FW_D81_GSL3675B_PG_800480_CLGD
FW_D90_GSL3675B_PG_800480_FC
FW_D90_GSL3675B_PG_800480_DPT
FW_D791C_GSL915_1024768_OGS_DZ_79D4
FW_D791C_GSL915_1024768_OGS_SG5908A
D791C_GSL915_1024768_PG_CTD
D791C_GSL915_1024768_PG_XLL
D92_GSL3675B_GG_QSD_800480
D92_GSL3675B_PG_DH_800480
FW_D92_GSL3675B_PG_800480_QSD
FW_D92_GSL3675B_PG_800480_LHJ
D92_GSL3675B_PG_FC_800480
D92_GSL3675B_GG_DH_1024600
D92_GSL3675B_PG_DH_1024600
D92_GSL3675B_GG_QSD_1024600
FW_D92_GSL3675B_PG_1024600_QSD
D92_GSL3675B_PG_LHJ_1024600
D92_GSL3675B_PG_FC_1024600
U92C_GSL3675B_GG_6001024_QSD
D102_GSL3675B_GG_QSD_1024600
D102_GSL3675B_GG_DH_1024600
D102_GSL3675B_PG_DH_1024600
D102_GSL3675B_PG_QSD_1024600
D102_GSL3675B_PG_LHJ_1024600
D102_GSL3675B_PG_DPT_1024600
D102_GSL3675B_OGS_SG_1024600
D102_GSL3675B_PG_XLL_1024600
D100_GSL3675B_GG_DH_1024600
D100_GSL3675B_PG_YTG_1024600
D100_GSL3675B_GG_QSD_1024600
D100_GSL3675B_PG_QSD_1024600
D100_GSL3675B_PG_DPT_1024600
FW_U680_GSL3676B_1280800_OGS_DZ
FW_U680_GSL3676B_1280800_OGS_SG
U680_GSL3676B_1280800_OGS_XCL
D705_GSL1681E_PG_SG_800480
D705_GSL1681E_PG_CTD_800480
D705_GSL1681E_PG_QLT_800480
=============gsl_load_fw end==============



после я вскрыл планшет и увидел почему ctp_para не подхватывал сенсор.. у меня был чип GSL915 а на плате была наклейка INET-D791C-REVG1 zeng-gc 2014-08-08
итог понятен: GSL915 !!!! в модуле искал другой чип

вот параметры нормальные для LCD

lcd_used = 1

lcd_driver_name = "default_lcd"
lcd_if = 3
lcd_x = 768
lcd_y = 1024
lcd_width = 120
lcd_height = 160
lcd_dclk_freq = 59
lcd_pwm_used = 1
lcd_pwm_ch = 0
lcd_pwm_freq = 50000
lcd_pwm_pol = 0
lcd_hbp = 80
lcd_ht = 928
lcd_hspw = 60
lcd_vbp = 23
lcd_vt = 1065
lcd_vspw = 8
lcd_lvds_if = 0
lcd_lvds_colordepth = 0
lcd_lvds_mode = 0
lcd_frm = 1
lcd_gamma_en = 0
lcd_bright_curve_en = 0
lcd_cmap_en = 0

deu_mode = 0
lcdgamma4iep = 22
smart_color = 90


теперь вы будете видеть установку ;)

осталось с цтп_пара разобраться :blush: (как то так )


[ctp_para]
ctp_used = 1
ctp_name = "gsl915"
ctp_twi_id = 0
ctp_twi_addr = 0x5d
ctp_screen_max_x = 768
ctp_screen_max_y = 1024
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 0

ctp_int_port = port:PB05<4><default><default><default>
ctp_wakeup = port:PH01<1><default><default><1>
ctp_power_ldo = "axp22_ldoio1"
ctp_power_ldo_vol = 3000
ctp_power_io =



если бы не ребёнок, я бы давно собрал образ рабочий, а пока, время в другое русло работает..
....в буилд проперти есть упоминание что а23, вот там можно поискать настройки на тачскрин...а самый простой способ будет это найти прошивки и с них собрать один конфиг.. (батарея на сколько ма,тачскрин с х и у,кнопки,вайфай,частота и т д)

если бы не * gomer.g94, я бы не копал в нужном направлении! так что ему я поставлю плюсик..

вот с этими параметрами подхватывает тач


;Behind the equals sign said detected equipment corresponding to the name of the driver
;Note: don't change the file format!
gsensor_module_name="bma250"
ctp_module_name="gslX680new"
light sensor_module_name=""
gyr sensor_module_name=""



теперь можно пробовать на других прошивках ;) основа заложена...

Сообщение отредактировал PSYZuM - 30.10.15, 17:46



Реп: (13)
не знаю почему редактировать не могу сообщение, значит добавлю ещё инфу к бравису..
вот что ещё нарыл.. конфиг к а33 a-star_kv49l :D поможет в сборке образа ;)

[product]
version = "100"
machine = "evb"

[platform]
eraseflag = 0
next_work = 2

[target]
boot_clock = 1008
storage_type = 0

[key_detect_en]
keyen_flag = 1

[power_sply]
dcdc1_vol = 3000
dcdc2_vol = 1100
dcdc3_vol = 1200
dcdc4_vol = 0
dcdc5_vol = 1500
aldo2_vol = 2500
aldo3_vol = 3000

[card_boot]
logical_start = 40960
sprite_gpio0 =

[card0_boot_para]
card_ctrl = 0
card_high_speed = 1
card_line = 4
sdc_d1 = port:PF00<2><1><2><default>
sdc_d0 = port:PF01<2><1><2><default>
sdc_clk = port:PF02<2><1><2><default>
sdc_cmd = port:PF03<2><1><2><default>
sdc_d3 = port:PF04<2><1><2><default>
sdc_d2 = port:PF05<2><1><2><default>

[card2_boot_para]
card_ctrl = 2
card_high_speed = 1
card_line = 4
sdc_2xmode = 1
sdc_clk = port:PC05<3><1><2><default>
sdc_cmd = port:PC06<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>

[twi_para]
twi_port = 0
twi_scl = port:PH02<2><default><default><default>
twi_sda = port:PH03<2><default><default><default>

[uart_para]
uart_debug_port = 0
uart_debug_tx = port:PF02<3><1><default><default>
uart_debug_rx = port:PF04<3><1><default><default>

[jtag_para]
jtag_enable = 1
jtag_ms = port:PF00<3><default><default><default>
jtag_ck = port:PF05<3><default><default><default>
jtag_do = port:PF03<3><default><default><default>
jtag_di = port:PF01<3><default><default><default>

[clock]
pll3 = 297
pll4 = 300
pll6 = 600
pll8 = 408
pll9 = 480
pll10 = 297
pll_cpupat = 0
pll_gpupat = -1002379674
pll_videopat = 0
pll_vepat = 0
pll_hsicpat = 0
pll_depat = 0
pll_mipipat = 0

[pm_para]
standby_mode = 1

[dram_para]
dram_clk = 552
dram_type = 3
dram_zq = 0x3bbb
dram_odt_en = 1
dram_para1 = 285344768
dram_para2 = 16
dram_mr0 = 7280
dram_mr1 = 64
dram_mr2 = 24
dram_mr3 = 0
dram_tpr0 = 0x47214f
dram_tpr1 = 0x1c2294b
dram_tpr2 = 0x61043
dram_tpr3 = 0x0
dram_tpr4 = 0x0
dram_tpr5 = 0x0
dram_tpr6 = 0x0
dram_tpr7 = 0x0
dram_tpr8 = 0x0
dram_tpr9 = 0x0
dram_tpr10 = 0x0
dram_tpr11 = 0x0
dram_tpr12 = 0xa8
dram_tpr13 = 0x901

[pm_para]
standby_mode = 1

[wakeup_src_para]
cpu_en = 0
cpu_freq = 48
pll_ratio = 273
dram_selfresh_en = 1
dram_freq = 36
wakeup_src_wl = port:PL07<4><default><default><0>
wakeup_src_bt = port:PL09<4><default><default><0>

[twi0]
twi_used = 1
twi_scl = port:PH02<2><default><default><default>
twi_sda = port:PH03<2><default><default><default>

[twi1]
twi_used = 1
twi_scl = port:PH04<2><default><default><default>
twi_sda = port:PH05<2><default><default><default>

[twi2]
twi_used = 1
twi_scl = port:PE12<3><default><default><default>
twi_sda = port:PE13<3><default><default><default>

[uart0]
uart_used = 1
uart_port = 0
uart_type = 2
uart_tx = port:PF02<3><1><default><default>
uart_rx = port:PF04<3><1><default><default>

[uart1]
uart_used = 1
uart_type = 4
uart_tx = port:PG06<2><1><default><default>
uart_rx = port:PG07<2><1><default><default>
uart_rts = port:PG08<2><1><default><default>
uart_cts = port:PG09<2><1><default><default>

[uart2]
uart_used = 0
uart_type = 4
uart_tx = port:PB00<2><1><default><default>
uart_rx = port:PB01<2><1><default><default>
uart_rts = port:PB02<2><1><default><default>
uart_cts = port:PB03<2><1><default><default>

[uart3]
uart_used = 0
uart_type = 4
uart_tx = port:PH06<3><1><default><default>
uart_rx = port:PH07<3><1><default><default>
uart_rts = port:PH08<3><1><default><default>
uart_cts = port:PH09<3><1><default><default>

[uart4]
uart_used = 0
uart_port = 4
uart_type = 2
uart_tx = port:PA04<2><1><default><default>
uart_rx = port:PA05<2><1><default><default>
uart_rts = port:PA06<2><1><default><default>
uart_cts = port:PA07<2><1><default><default>

[spi0]
spi_used = 0
spi_cs_bitmap = 1
spi_mosi = port:PC00<3><default><default><default>
spi_miso = port:PC01<3><default><default><default>
spi_sclk = port:PC02<3><default><default><default>
spi_cs0 = port:PC03<3><1><default><default>

[spi1]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA00<2><1><default><default>
spi_sclk = port:PA01<2><default><default><default>
spi_mosi = port:PA02<2><default><default><default>
spi_miso = port:PA03<2><default><default><default>

[spi_devices]
spi_dev_num = 1

[spi_board0]
modalias = "at25df641"
max_speed_hz = 50000000
bus_num = 0
chip_select = 0
mode = 0

[ctp_para]
ctp_used = 1
ctp_name = "gslX680_inetd71"
ctp_twi_id = 0
ctp_twi_addr = 0x40
ctp_screen_max_x = 1024
ctp_screen_max_y = 600
ctp_revert_x_flag = 1
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 1
ctp_int_port = port:PB05<4><default><default><default>
ctp_wakeup = port:PH01<1><default><default><1>
ctp_power_ldo = "axp22_ldoio1"
ctp_power_ldo_vol = 3300
ctp_power_io =

[ctp_list_para]
ctp_det_used = 1
ft5x_ts = 0
gt82x = 0
gslX680 = 0
gslX680new = 1
gt9xx_ts = 0
gt9xxf_ts = 0
tu_ts = 0
gt818_ts = 0
zet622x = 0
aw5306_ts = 0
icn83xx_ts = 0

[tkey_para]
tkey_used = 0
tkey_twi_id =
tkey_twi_addr =
tkey_int =

[motor_para]
motor_used = 0
motor_shake = port:power3<1><default><default><0>
motor_ldo = ""
motor_ldo_voltage = 3300

[ths_para]
ths_used = 1
ths_trip1_count = 3
ths_trip1_0 = 75
ths_trip1_1 = 90
ths_trip1_2 = 110
ths_trip1_0_min = 0
ths_trip1_0_max = 1
ths_trip1_1_min = 1
ths_trip1_1_max = 3
ths_trip1_2_min = 0
ths_trip1_2_max = 0

[cooler_table]
cooler_count = 4
cooler0 = "1344000 4 4294967295 0"
cooler1 = "1200000 4 4294967295 0"
cooler2 = "1008000 4 4294967295 0"
cooler3 = "648000 4 4294967295 0"

[nand0_para]
nand_support_2ch = 0
nand0_used = 1
nand0_we = port:PC00<2><default><default><default>
nand0_ale = port:PC01<2><default><default><default>
nand0_cle = port:PC02<2><default><default><default>
nand0_ce1 = port:PC03<2><default><default><default>
nand0_ce0 = port:PC04<2><default><default><default>
nand0_nre = port:PC05<2><default><default><default>
nand0_rb0 = port:PC06<2><default><default><default>
nand0_rb1 = port:PC07<2><default><default><default>
nand0_d0 = port:PC08<2><default><default><default>
nand0_d1 = port:PC09<2><default><default><default>
nand0_d2 = port:PC10<2><default><default><default>
nand0_d3 = port:PC11<2><default><default><default>
nand0_d4 = port:PC12<2><default><default><default>
nand0_d5 = port:PC13<2><default><default><default>
nand0_d6 = port:PC14<2><default><default><default>
nand0_d7 = port:PC15<2><default><default><default>
nand0_ndqs = port:PC16<2><default><default><default>
nand0_ce2 = port:PC17<2><default><default><default>
nand0_ce3 = port:PC18<2><default><default><default>

[disp_init]
disp_init_enable = 1
disp_mode = 0
screen0_output_type = 1
screen0_output_mode = 4
screen1_output_type = 1
screen1_output_mode = 4
fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0
fb0_width = 0
fb0_height = 0
fb1_format = 10
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 0
fb1_width = 0
fb1_height = 0
lcd0_backlight = 102
lcd1_backlight = 102
lcd0_bright = 50
lcd0_contrast = 50
lcd0_saturation = 57
lcd0_hue = 50
lcd1_bright = 50
lcd1_contrast = 50
lcd1_saturation = 57
lcd1_hue = 50

[lcd0_para]
lcd_used = 1
lcd_driver_name = "default_lcd"
lcd_if = 3
lcd_x = 1024
lcd_y = 600
lcd_width = 120
lcd_height = 160
lcd_dclk_freq = 52
lcd_pwm_used = 1
lcd_pwm_ch = 0
lcd_pwm_freq = 50000
lcd_pwm_pol = 1
lcd_hbp = 160
lcd_ht = 1344
lcd_hspw = 10
lcd_vbp = 23
lcd_vt = 635
lcd_vspw = 3
lcd_lvds_if = 0
lcd_lvds_colordepth = 0
lcd_lvds_mode = 0
lcd_frm = 1
lcd_gamma_en = 0
lcd_bright_curve_en = 0
lcd_cmap_en = 0
deu_mode = 0
lcdgamma4iep = 22
smart_color = 90
lcd_bl_en = port:PH06<1><0><default><1>
lcd_power = "axp22_dc1sw"
lcd_gpio_0 = port:PH07<1><0><default><0>
lcd_gpio_1 = port:PL04<1><0><default><1>
lcd_gpio_2 = port:PL11<1><0><default><0>
lcdd0 = port:PD18<3><0><default><default>
lcdd1 = port:PD19<3><0><default><default>
lcdd2 = port:PD20<3><0><default><default>
lcdd3 = port:PD21<3><0><default><default>
lcdd4 = port:PD22<3><0><default><default>
lcdd5 = port:PD23<3><0><default><default>
lcdd6 = port:PD24<3><0><default><default>
lcdd7 = port:PD25<3><0><default><default>
lcdd8 = port:PD26<3><0><default><default>
lcdd9 = port:PD27<3><0><default><default>

[pwm0_para]
pwm_used = 1
pwm_positive = port:PH00<2><0><default><default>

[pwm1_para]
pwm_used = 0
pwm_positive = port:PH01<2><0><default><default>

[csi0]
vip_used = 1
vip_mode = 0
vip_dev_qty = 2
vip_define_sensor_list = 0
vip_csi_pck = port:PE00<2><default><default><default>
vip_csi_mck = port:PE01<2><default><default><default>
vip_csi_hsync = port:PE02<2><default><default><default>
vip_csi_vsync = port:PE03<2><default><default><default>
vip_csi_d0 = port:PE04<2><default><default><default>
vip_csi_d1 = port:PE05<2><default><default><default>
vip_csi_d2 = port:PE06<2><default><default><default>
vip_csi_d3 = port:PE07<2><default><default><default>
vip_csi_d4 = port:PE08<2><default><default><default>
vip_csi_d5 = port:PE09<2><default><default><default>
vip_csi_d6 = port:PE10<2><default><default><default>
vip_csi_d7 = port:PE11<2><default><default><default>
vip_dev0_mname = "gc2035"
vip_dev0_pos = "rear"
vip_dev0_lane = 1
vip_dev0_twi_id = 2
vip_dev0_twi_addr = 120
vip_dev0_isp_used = 0
vip_dev0_fmt = 0
vip_dev0_stby_mode = 0
vip_dev0_vflip = 0
vip_dev0_hflip = 0
vip_dev0_iovdd = "axp22_dldo3"
vip_dev0_iovdd_vol = 2800000
vip_dev0_avdd = "axp22_ldoio0"
vip_dev0_avdd_vol = 2800000
vip_dev0_dvdd = "axp22_eldo2"
vip_dev0_dvdd_vol = 1800000
vip_dev0_afvdd = "axp22_dldo3"
vip_dev0_afvdd_vol = 2800000
vip_dev0_power_en =
vip_dev0_reset = port:PE16<1><default><default><0>
vip_dev0_pwdn = port:PE15<1><default><default><1>
vip_dev0_flash_en =
vip_dev0_flash_mode =
vip_dev0_af_pwdn =
vip_dev1_mname = "gc0308"
vip_dev1_pos = "front"
vip_dev1_lane = 1
vip_dev1_twi_id = 2
vip_dev1_twi_addr = 66
vip_dev1_isp_used = 0
vip_dev1_fmt = 0
vip_dev1_stby_mode = 0
vip_dev1_vflip = 1
vip_dev1_hflip = 1
vip_dev1_iovdd = "axp22_dldo3"
vip_dev1_iovdd_vol = 2800000
vip_dev1_avdd = "axp22_ldoio0"
vip_dev1_avdd_vol = 2800000
vip_dev1_dvdd = "axp22_eldo2"
vip_dev1_dvdd_vol = 1800000
vip_dev1_afvdd = "axp22_dldo3"
vip_dev1_afvdd_vol = 2800000
vip_dev1_power_en =
vip_dev1_reset = port:PE14<1><default><default><0>
vip_dev1_pwdn = port:PE17<1><default><default><1>
vip_dev1_flash_en =
vip_dev1_flash_mode =
vip_dev1_af_pwdn =

[mmc0_para]
sdc_used = 1
sdc_detmode = 2
sdc_buswidth = 4
sdc_d1 = port:PF00<2><1><2><default>
sdc_d0 = port:PF01<2><1><2><default>
sdc_clk = port:PF02<2><1><2><default>
sdc_cmd = port:PF03<2><1><2><default>
sdc_d3 = port:PF04<2><1><2><default>
sdc_d2 = port:PF05<2><1><2><default>
sdc_det = port:PB04<4><1><2><default>
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc1_para]
sdc_used = 1
sdc_detmode = 4
sdc_buswidth = 4
sdc_clk = port:PG00<2><1><1><default>
sdc_cmd = port:PG01<2><1><1><default>
sdc_d0 = port:PG02<2><1><1><default>
sdc_d1 = port:PG03<2><1><1><default>
sdc_d2 = port:PG04<2><1><1><default>
sdc_d3 = port:PG05<2><1><1><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 1
sdc_regulator = "none"

[mmc2_para]
sdc_used = 0
sdc_detmode = 3
sdc_buswidth = 8
sdc_2xmode = 1
sdc_clk = port:PC05<3><1><2><default>
sdc_cmd = port:PC06<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>
sdc_d4 = port:PC12<3><1><2><default>
sdc_d5 = port:PC13<3><1><2><default>
sdc_d6 = port:PC14<3><1><2><default>
sdc_d7 = port:PC15<3><1><2><default>
emmc_rst = port:PC16<3><1><2><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[usbc0]
usb_used = 1
usb_port_type = 2
usb_detect_type = 1
usb_id_gpio = port:PH08<0><1><default><default>
usb_det_vbus_gpio = "axp_ctrl"
usb_drv_vbus_gpio = port:power4<1><0><default><0>
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0
usb_restric_voltage = 3550000
usb_restric_capacity = 5
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_regulator_id_vbus = "axp22_dcdc1"
usb_regulator_id_vbus_vol = 3000000

[usbc1]
usb_used = 0
usb_drv_vbus_gpio =
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_not_suspend = 0

[usb_feature]
vendor_id = 7994
mass_storage_id = 4096
adb_id = 4097
manufacturer_name = "USB Developer"
product_name = "Android"
serial_number = "20080411"

[msc_feature]
vendor_name = "USB 2.0"
product_name = "USB Flash Driver"
release = 100
luns = 3

[serial_feature]
serial_unique = 1

[gsensor_para]
gsensor_used = 1
gsensor_twi_id = 1
gsensor_twi_addr = 0x18
gsensor_int1 = port:PB06<4><1><default><default>
gsensor_int2 =

[gsensor_list_para]
gsensor_det_used = 1
bma250 = 1
stk831x = 1
mma8452 = 1
mma7660 = 1
mma865x = 1
mc32x0 = 0
afa750 = 1
lis3de_acc = 1
lis3dh_acc = 1
kxtik = 1
dmard10 = 0
dmard06 = 1
mxc622x = 1
fxos8700 = 1
lsm303d = 1

[gps_para]

[wifi_para]
wifi_used = 1
wifi_sdc_id = 1
wifi_usbc_id = 1
wifi_usbc_type = 1
wifi_mod_sel = 6
wifi_power = "axp22_dldo1"
wifi_power_ext1 = ""
wifi_power_ext2 = ""
rtl8723bs_wl_regon = port:PL06<1><default><default><0>
rtl8723bs_wl_host_wake = port:PL07<4><default><default><0>
rtl8723bs_bt_regon = port:PL08<1><default><default><0>
rtl8723bs_bt_wake = port:PL10<1><default><default><0>
rtl8723bs_bt_host_wake = port:PL09<4><default><default><0>
rtl8723bs_lpo_use_apclk = 0
esp_wl_chip_en = port:PL06<1><default><default><0>
esp_wl_rst = port:PL05<1><default><default><0>

[bt_para]
bt_used = 1
bt_uart_id = 1

[3g_para]
3g_used = 0
3g_usbc_num = 1
3g_uart_num = 2
bb_name = "em66"
bb_vbat =
bb_on =
bb_pwr_on = port:PL03<1><default><default><0>
bb_wake = port:PL04<1><default><default><0>
bb_rf_dis = port:PL11<1><default><default><0>
bb_rst = port:PL05<1><default><default><0>
bb_dldo = "axp22_aldo1"
bb_dldo_min_uV = 2800000
bb_dldo_max_uV = 2800000

[gy_para]
gy_used = 0
gy_twi_id = 1
gy_twi_addr = 106
gy_int1 =
gy_int2 =

[gy_list_para]
gy_det_used = 1
l3gd20_gyr = 1

[ls_para]
ls_used = 0
ls_twi_id = 1
ls_twi_addr = 35
ls_int = port:PB07<4><1><default><default>

[ls_list_para]
ls_det_used = 1
ltr_501als = 1
jsa1212 = 1

[compass_para]
compass_used = 0
compass_twi_id = 1
compass_twi_addr = 13
compass_int =

[i2s0]
i2s0_used = 0
i2s0_channel = 2
i2s0_master = 4
i2s0_select = 1
audio_format = 1
signal_inversion = 1
over_sample_rate = 512
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 256
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 1
rx_data_mode = 1
i2s0_mclk =
i2s0_bclk = port:PB04<2><1><default><default>
i2s0_lrclk = port:PB05<2><1><default><default>
i2s0_dout0 = port:PB06<2><1><default><default>
i2s0_dout1 =
i2s0_dout2 =
i2s0_dout3 =
i2s0_din = port:PB07<2><1><default><default>

[i2s1]
i2s1_used = 0
i2s1_channel = 2
i2s1_master = 4
i2s1_select = 1
audio_format = 1
signal_inversion = 1
over_sample_rate = 512
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 64
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 0
rx_data_mode = 0
i2s1_mclk =
i2s1_bclk = port:PG11<2><1><default><default>
i2s1_lrclk = port:PG10<2><1><default><default>
i2s1_dout = port:PG12<2><1><default><default>
i2s1_din = port:PG13<2><1><default><default>

[audio0]
audio_used = 1
headphone_vol = 59
earpiece_vol = 59
cap_vol = 5
pa_single_vol = 63
pa_double_used = 1
pa_double_vol = 63
headphone_direct_used = 0
headset_mic_vol = 6
main_mic_vol = 6
audio_hp_ldo = "none"
audio_pa_ctrl = port:PH09<1><default><default><0>
aif2_used = 0
aif3_used = 0
headphone_mute_used = 0
DAC_VOL_CTRL_SPK = 39064
DAC_VOL_CTRL_HEADPHONE = 41120

[pmu1_para]
pmu_used = 1
pmu_twi_addr = 52
pmu_twi_id = 1
pmu_irq_id = 0
pmu_battery_rdc = 100
pmu_battery_cap = 4000
pmu_batdeten = 1
pmu_runtime_chgcur = 300
pmu_earlysuspend_chgcur = 1200
pmu_suspend_chgcur = 1200
pmu_shutdown_chgcur = 1200
pmu_init_chgvol = 4200
pmu_init_chgend_rate = 15
pmu_init_chg_enabled = 1
pmu_init_adc_freq = 800
pmu_init_adcts_freq = 800
pmu_init_chg_pretime = 70
pmu_init_chg_csttime = 720
pmu_batt_cap_correct = 1
pmu_bat_regu_en = 0
pmu_bat_para1 = 0
pmu_bat_para2 = 0
pmu_bat_para3 = 0
pmu_bat_para4 = 0
pmu_bat_para5 = 0
pmu_bat_para6 = 0
pmu_bat_para7 = 0
pmu_bat_para8 = 0
pmu_bat_para9 = 0
pmu_bat_para10 = 0
pmu_bat_para11 = 0
pmu_bat_para12 = 0
pmu_bat_para13 = 0
pmu_bat_para14 = 0
pmu_bat_para15 = 0
pmu_bat_para16 = 0
pmu_bat_para17 = 0
pmu_bat_para18 = 0
pmu_bat_para19 = 0
pmu_bat_para20 = 0
pmu_bat_para21 = 0
pmu_bat_para22 = 0
pmu_bat_para23 = 0
pmu_bat_para24 = 0
pmu_bat_para25 = 0
pmu_bat_para26 = 0
pmu_bat_para27 = 0
pmu_bat_para28 = 0
pmu_bat_para29 = 0
pmu_bat_para30 = 0
pmu_bat_para31 = 0
pmu_bat_para32 = 0
pmu_usbvol_limit = 0
pmu_usbcur_limit = 0
pmu_usbvol = 0
pmu_usbcur = 0
pmu_usbvol_pc = 0
pmu_usbcur_pc = 0
pmu_pwroff_vol = 0
pmu_pwron_vol = 0
pmu_pekoff_time = 0
pmu_pekoff_func = 0
pmu_pekoff_en = 0
pmu_peklong_time = 0
pmu_pekon_time = 0
pmu_pwrok_time = 0
pmu_battery_warning_level1 = 0
pmu_battery_warning_level2 = 0
pmu_restvol_adjust_time = 0
pmu_ocv_cou_adjust_time = 0
pmu_chgled_func = 0
pmu_chgled_type = 0
pmu_vbusen_func = 0
pmu_reset = 0
pmu_IRQ_wakeup = 0
pmu_hot_shutdowm = 0
pmu_inshort = 0
power_start = 0
pmu_temp_enable = 0
pmu_charge_ltf = 0
pmu_charge_htf = 0
pmu_discharge_ltf = 0
pmu_discharge_htf = 0
pmu_temp_para1 = 0
pmu_temp_para2 = 0
pmu_temp_para3 = 0
pmu_temp_para4 = 0
pmu_temp_para5 = 0
pmu_temp_para6 = 0
pmu_temp_para7 = 0
pmu_temp_para8 = 0
pmu_temp_para9 = 0
pmu_temp_para10 = 0
pmu_temp_para11 = 0
pmu_temp_para12 = 0
pmu_temp_para13 = 0
pmu_temp_para14 = 0
pmu_temp_para15 = 0
pmu_temp_para16 = 0

[pmu2_para]
pmu_used = 0
pmu_twi_addr = 0
pmu_twi_id = 0
pmu_irq_id = 0

[recovery_key]
key_min = 0
key_max = 0

[dvfs_table]
extremity_freq = 0
max_freq = 0
min_freq = 0
LV_count = 0
LV1_freq = 0
LV1_volt = 0
LV2_freq = 0
LV2_volt = 0
LV3_freq = 0
LV3_volt = 0
LV4_freq = 0
LV4_volt = 0
LV5_freq = 0
LV5_volt = 0
LV6_freq = 0
LV6_volt = 0
LV7_freq = 0
LV7_volt = 0
LV8_freq = 0
LV8_volt = 0

[Vdevice]
Vdevice_used = 0
Vdevice_0 = port:P@00<0><0><0><0>
Vdevice_1 = port:P@00<0><0><0><0>

[s_uart0]
s_uart_used = 0
s_uart_tx = port:P@00<0><0><0><0>
s_uart_rx = port:P@00<0><0><0><0>

[s_rsb0]
s_rsb_used = 0
s_rsb_sck = port:P@00<0><0><0><0>
s_rsb_sda = port:P@00<0><0><0><0>

[s_jtag0]
s_jtag_used = 0
s_jtag_tms = port:P@00<0><0><0><0>
s_jtag_tck = port:P@00<0><0><0><0>
s_jtag_tdo = port:P@00<0><0><0><0>
s_jtag_tdi = port:P@00<0><0><0><0>

[s_powchk]
s_powchk_used = 0
s_power_reg = 0
s_system_power = 0

[mali_para]
mali_used = 0
mali_clkdiv = 0
mali_extreme_freq = 0
mali_extreme_vol = 0

[dram_dvfs_table]
LV_count = 0
LV1_freq = 0
LV1_volt = 0
LV2_freq = 0
LV2_volt = 0
LV3_freq = 0
LV3_volt = 0

[charging_type]
charging_type = 0

[leds_para]
leds_used = 0
;red_led = port:P@00<0><0><0><0>
;red_led_active_low = 0
;green_led_active_low = 0
;blue_led =
;blue_led_active_low = 0





Реп: (13)
вот нарыл ещё инфы
#define NOTE_INFO1 ";Behind the equals sign said detected equipment corresponding to the name of the driver\n"
#define NOTE_INFO2 ";Note: don't change the file format!\n"
#define GSENSOR_DEVICE_KEY_NAME "gsensor_module_name"
#define LSENSOR_DEVICE_KEY_NAME "light sensor_module_name"
#define GYR_SENSOR_DEVICE_KEY_NAME "gyr sensor_module_name"
#define CTP_DEVICE_KEY_NAME "ctp_module_name"
#define FILE_DIR "data/device.info"

#define STRING_LENGTH (128)
#define FILE_LENGTH (1024)
#define NAME_LENGTH (32)
#define ADDRESS_NUMBER (5)
#define REG_VALUE_NUMBER (5)
#define DEFAULT_TOTAL_ROW (6)

static char gsensor_name[NAME_LENGTH] = {'\0'};
static char ctp_name[NAME_LENGTH] = {'\0'};
static char lsensor_name[NAME_LENGTH] = {'\0'};
static char gyr_sensor_name[NAME_LENGTH] = {'\0'};
static int g_support_number = 0;
static int c_support_number = 0;
static int l_support_number = 0;
static int gyr_support_number = 0;
static int g_device_used = 0;
static int c_device_used = 0;
static int l_device_used = 0;
static int gyr_device_used = 0;
static int write = 0;
static int total_raw = DEFAULT_TOTAL_ROW;
static struct i2c_client *temp_client;
static struct file *filp = NULL;
static __u32 gsensor_twi_id = 0;
static __u32 ctp_twi_id = 0;
static __u32 lsensor_twi_id = 0;
static __u32 gyr_sensor_twi_id = 0;

enum twi_device_type{
TWI_GSENSOR = 0,
TWI_CTP,
TWI_LSENSOR,
TWI_GYR_SENSOR,
};

struct id{
int gsensor_id;
int ctp_id;
int lsensor_id;
int gyr_sensor_id;
}write_id = {2,3,4,5};

struct device_config_info{
char str_info[STRING_LENGTH];
int str_id;
};

static struct device_config_info config_info[STRING_LENGTH];

struct base_info{
char name[NAME_LENGTH];
unsigned short i2c_address[ADDRESS_NUMBER];
unsigned short chip_id_reg;
unsigned short chip_id_reg_value[REG_VALUE_NUMBER];
};
static struct base_info sensors[] = {
{ "bma250", {0x18, 0x19, 0x08, 0x38}, 0x00, {0x02,0x03,0xf9}},
{ "mma8452", {0x1c, 0x1d }, 0x0d, {0x2A }},
{ "mma7660", {0x4c }, 0x00, {0x00 }},
{ "mma865x", {0x1d }, 0x0d, {0x4A,0x5A }},
{ "afa750", {0x3d }, 0x37, {0x3d,0x3c }},
{"lis3de_acc", {0x28, 0x29 }, 0x0f, {0x33 }},
{"lis3dh_acc", {0x18, 0x19 }, 0x0f, {0x33 }},
{ "kxtik", {0x0f }, 0x0f, {0x05,0x08 }},
{ "dmard10", {0x18 }, 0x00, {0x00 }},
{ "dmard06", {0x1c }, 0x0f, {0x06 }},
{ "mxc622x", {0x15 }, 0x00, {0x00 }},
{ "fxos8700", {0x1c, 0x1d, 0x1e, 0x1f}, 0x0d, {0xc7 }},
{ "lsm303d", {0x1e, 0x1d }, 0x0f, {0x49 }},
};

static struct base_info ctps[] = {
{ "ft5x_ts", { 0x38}, 0xa3, {0x55,0x08,0x02,0x06,0xa3}},
{ "gt82x", { 0x5d}, 0xf7d, {0x13,0x27,0x28 }},
{ "gslX680", { 0x40}, 0x00, {0x00 }},
{"gt9xx_ts", {0x14, 0x5d}, 0x8140, {0x39 }},
{ "gt811", { 0x5d}, 0x715, {0x11 }},
{"aw5306_ts", { 0x38}, 0x01, {0xA8 }},
};

static struct base_info lsensors[] = {
{"ltr_501als", {0x23 }, 0x87, {0x05 }},
};

static struct base_info gyr_sensors[] = {
{"l3gd20_gyr", {0x6a, 0x6b}, 0x0F, {0x00D4 }},
};



и ещё инфы =)

[rtp_para]
rtp_used: 0 to disable; 1 to enable
rtp_screen_size: diagonal screen size rounded to full inches
rtp_regidity_level: touchscreen regidty in 10 ms units
rtp_press_threshold_enable: 0 to disable; 1 to enable
rtp_press_threshold: defines the press-threshold sensitivity; (0x0 is least sensitive, 0xffffff is most sensitive) using TP Pressure Management threshold control (PRE_MEA_THRE_CNT register in A20 User Manual)
rtp_sensitive_level: defines the sensitivity (0x0 is least sensitive, 0xf is most sensitive) using internal pull-up resistor control (TP_SENSITIVE_ADJUST register in A20 User Manual)
rtp_exchange_x_y_flag: 0 for normal operation; 1 to flip X and Y coordinates

rtp_used = 0
rtp_screen_size = 7
rtp_regidity_level = 7
rtp_press_threshold_enable = 0
rtp_press_threshold = 0x1f40
rtp_sensitive_level = 0xf
rtp_exchange_x_y_flag = 0
capacitive touch panel configuration

[ctp_para]
Several touch panel's can be configured. Their name must match to the linux ctp-driver!

ctp_used: 0 to disable; 1 to enable
ctp_name: Name of the touch panel driver to use
ctp_twi_id: twi controller to use
ctp_twi_addr: hardware specfic twi address in hex
ctp_screen_rotate: 0 for normal operation; 1 for 180° rotation
ctp_screen_max_x: Maximum X screen resolution
ctp_screen_max_y: Maximum Y screen resolution
ctp_revert_x_flag: 0 for normal operation; 1 to flip the X axis
ctp_revert_y_flag: 0 for normal operation; 1 to flip the Y axis
ctp_havekey: 0 for normal operation; 1 if the touch panel also has touch-keys.
ctp_int_port: interrupt line GPIO configuration
ctp_wakeup: screen wake up GPIO configuration
ctp_io_port: I/O port GPIO configuration

[ctp_para]
ctp_used = 1
ctp_twi_id = 2
ctp_name = "ft5x_ts"
ctp_twi_addr = 0x38

ctp1_used = 1
ctp1_name = "Goodix-TS"
ctp1_twi_addr = 0x55

ctp2_used = 1
ctp2_name = "ssd253x-ts"
ctp2_twi_addr = 0x48

ctp3_used = 1
ctp3_name = "novatek-ts"
ctp3_twi_addr = 0x09

ctp4_used = 1
ctp4_name = "zet622x-ts"
ctp4_twi_addr = 0x76

ctp5_used = 1
ctp5_name = "byd693x-ts"
ctp5_twi_addr = 0x52

ctp6_used = 0
ctp6_name = "gt82x"
ctp6_twi_addr = 0x5d

ctp7_used = 0
ctp7_name = "px811"
ctp7_twi_addr = 0x5c

ctp_screen_rotate = 0
ctp_screen_max_x = 800
ctp_screen_max_y = 480
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 0
ctp_havekey = 0
ctp_int_port = port: PH21<6><default><default><default>
ctp_wakeup = port: PB13<1><default><default><1>
ctp_io_port = port: PH21<0><default><default><default>
touch key configuration

[tkey_para]
Touch 'key', only for "hv_keypad" for now

tkey_used: 0 to disable; 1 to enable
tkey_name: driver name, must match linux driver name
tkey_twi_id: twi controller to use
tkey_twi_addr: hardware specfic twi address in hex
tkey_int: interrupt line GPIO configuration

[tkey_para]
tkey_used = 0
tkey_name = "hv_keypad"
tkey_twi_id = 2
tkey_twi_addr = 0x62
tkey_int = port: PI13<6><default><default><default>



[ctp_para]
ctp_boxchip_type = 0xA10
ctp_used =1
ctp_twi_id = 2

ctp_name = "ft5x_ts"
ctp_twi_addr =0x38

;97F compibility TP
ctp1_used =1
ctp1_name ="Goodix-TS"
ctp1_twi_addr =0x55


ctp2_used =1
ctp2_name ="ssd253x-ts"
ctp2_twi_addr =0x48
ctp2_ssd_type =70101

;ctp2_ssd_type =70101 ;Inet 97F M701C内嵌TP,瑞森思
;ctp2_ssd_type =70102 ;Inet 97F M701C 平贴TP,带触摸按键TP,瑞森思
;ctp2_ssd_type =716 ;Inet 97F M701C 平贴TP,带触摸按键TP,瑞森思
;ctp2_ssd_type =719 ;Inet 86F-M716: A10,FPC从左上角出PIN
;ctp2_ssd_type =75802 ;Inet 86V-758B: A13,FPC从16左上角出PIN
;ctp2_ssd_type =75801 ;Inet 86V-758A 平贴合力泰TP,不带触摸按键 A13,FPC从右下角出PIN
;ctp2_ssd_type =1001 ;Inet M1F,M1001 平贴TP,不带触摸按键
;ctp2_ssd_type =1005 ;Inet M10F,M1005 平贴TP,不带触摸按键
;ctp2_ssd_type =970 ;Inet 3F主板, 平贴TP,不带触摸按键
;ctp2_ssd_type =4302 ;Inet 66V主板, 内嵌TP,不带触摸按键

ctp3_used =1
ctp3_name ="novatek-ts"
ctp3_twi_addr =0x09


ctp4_used =1
ctp4_name ="zet622x-ts"
ctp4_twi_addr =0x76

ctp5_used =1
ctp5_name ="byd693x-ts"
ctp5_twi_addr =0x52

;goodix_touch_3F.c
ctp6_used =0
ctp6_name ="Goodix-TS"
ctp6_twi_addr =0x55

ctp7_used =0
ctp7_name ="gt82x"
ctp7_twi_addr =0x5d

ctp10_used =0
ctp10_name ="px811"
ctp10_twi_addr =0x5c

cpt_screen_rotate = 0
ctp_screen_max_x = 800
ctp_screen_max_y = 480
;ctp_screen_max_x = 600
;ctp_screen_max_y = 800
;ctp_screen_max_x = 600
;ctp_screen_max_y = 1024
;ctp_screen_max_x = 768
;ctp_screen_max_y = 1024
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 0

;lvds 1024x768 module name :KD080D3-40NA-A2
;lcd_x =1024
;lcd_y =768
;lcd_dclk_freq = 65
;lcd_if = 3
;lcd_hbp = 160
;lcd_ht = 1344
;lcd_vbp = 23
;lcd_vt = 1612

;lvds 1024x768 module name : LG-LP097X02
;lcd_x =1024
;lcd_y =768
;lcd_dclk_freq = 100
;lcd_if = 3
;lcd_hbp = 480
;lcd_ht = 2084
;lcd_vbp = 6
;lcd_vt = 1600
;lcd_lvds_bitwidth = 1
;lcd_io_cfg0 = 0x04000000
;lcd_frm = 1


Сообщение отредактировал PSYZuM - 01.11.15, 04:47



Реп: (13)
Оперативная память: 1Gb
Память устройства: 8Gb
можно выдрать с конфига..
* alextech77,
конфиг
;A20 PAD application
;-------------------------------------------------------------------------------
; 说明:
; 1. 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
; 2. 新增主键和子键的名称必须控制在32个字符以内,不包括32个
; 3. 所以的注释以“;”开始,单独占据一行
; 4. 注释不可和配置项同行,例如:主键和子健后面不能添加任何形式的注释
;
; gpio的描述形式:Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态>
; 例如:port:PA0<0><default><default><default>
;-------------------------------------------------------------------------------

[product]
version = "100"
machine = "K901C"

[platform]
eraseflag = 1

[target]
boot_clock = 912
dcdc2_vol = 1400
dcdc3_vol = 1250
ldo2_vol = 3000
ldo3_vol = 2800
ldo4_vol = 2800
power_start = 0
storage_type = -1

[clock]
pll4 = 300
pll6 = 600
pll7 = 297
pll8 = 336

[card_boot]
logical_start = 40960
sprite_gpio0 =

[card0_boot_para]
card_ctrl = 0
card_high_speed = 1
card_line = 4
sdc_d1 = port:PF0<2><1><default><default>
sdc_d0 = port:PF1<2><1><default><default>
sdc_clk = port:PF2<2><1><default><default>
sdc_cmd = port:PF3<2><1><default><default>
sdc_d3 = port:PF4<2><1><default><default>
sdc_d2 = port:PF5<2><1><default><default>

[card2_boot_para]
card_ctrl = 2
card_high_speed = 1
card_line = 4
sdc_cmd = port:PC6<3><1>
sdc_clk = port:PC7<3><1>
sdc_d0 = port:PC8<3><1>
sdc_d1 = port:PC9<3><1>
sdc_d2 = port:PC10<3><1>
sdc_d3 = port:PC11<3><1>

[twi_para]
twi_port = 0
twi_scl = port:PB0<2><default><default><default>
twi_sda = port:PB1<2><default><default><default>

[uart_para]
uart_debug_port = 0
uart_debug_tx = port:PB22<2><1><default><default>
uart_debug_rx = port:PB23<2><1><default><default>

[uart_force_debug]
uart_debug_port = 0
uart_debug_tx =port:PF2<4><1><default><default>
uart_debug_rx =port:PF4<4><1><default><default>

[jtag_para]
jtag_enable = 0
jtag_ms = port:PB14<3><default><default><default>
jtag_ck = port:PB15<3><default><default><default>
jtag_do = port:PB16<3><default><default><default>
jtag_di = port:PB17<3><default><default><default>

;---------------------------------------------------------------------------------------------------------
; if 1 == standby_mode, then support super standby;
; else, support normal standby.
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode = 1

;-------------------------------------------------------------------------------
;sdram configuration
;-------------------------------------------------------------------------------
[dram_para]
dram_baseaddr = 0x40000000
dram_clk = 408
dram_type = 3
dram_rank_num = 0xffffffff
dram_chip_density = 0xffffffff
dram_io_width = 0xffffffff
dram_bus_width = 0xffffffff
dram_cas = 9
dram_zq = 0x7f
dram_odt_en = 0
dram_size = 0xffffffff
dram_tpr0 = 0x42d899b7
dram_tpr1 = 0xa090
dram_tpr2 = 0x22a00
dram_tpr3 = 0x0
;Rocky@20130610
dram_tpr4 = 0x1
dram_tpr5 = 0x0
dram_emr1 = 0x4
dram_emr2 = 0x10
dram_emr3 = 0x0

;-------------------------------------------------------------------------------
;Mali configuration
;-------------------------------------------------------------------------------
[mali_para]
mali_used = 1
mali_clkdiv = 1

;-------------------------------------------------------------------------------
;Ethernet MAC configuration
;-------------------------------------------------------------------------------
[emac_para]
emac_used = 0
emac_rxd3 = port:PA00<2><default><default><default>
emac_rxd2 = port:PA01<2><default><default><default>
emac_rxd1 = port:PA02<2><default><default><default>
emac_rxd0 = port:PA03<2><default><default><default>
emac_txd3 = port:PA04<2><default><default><default>
emac_txd2 = port:PA05<2><default><default><default>
emac_txd1 = port:PA06<2><default><default><default>
emac_txd0 = port:PA07<2><default><default><default>
emac_rxclk = port:PA08<2><default><default><default>
emac_rxerr = port:PA09<2><default><default><default>
emac_rxdV = port:PA10<2><default><default><default>
emac_mdc = port:PA11<2><default><default><default>
emac_mdio = port:PA12<2><default><default><default>
emac_txen = port:PA13<2><default><default><default>
emac_txclk = port:PA14<2><default><default><default>
emac_crs = port:PA15<2><default><default><default>
emac_col = port:PA16<2><default><default><default>
emac_reset = port:PA17<1><default><default><default>

;-------------------------------------------------------------------------------
;i2c configuration
;-------------------------------------------------------------------------------
[twi0_para]
twi0_used = 1
twi0_scl = port:PB0<2><default><default><default>
twi0_sda = port:PB1<2><default><default><default>

[twi1_para]
twi1_used = 1
twi1_scl = port:PB18<2><default><default><default>
twi1_sda = port:PB19<2><default><default><default>

[twi2_para]
twi2_used = 1
twi2_scl = port:PB20<2><default><default><default>
twi2_sda = port:PB21<2><default><default><default>

;-------------------------------------------------------------------------------
;uart configuration
;uart_type --- 2 (2 wire), 4 (4 wire), 8 (8 wire, full function)
;-------------------------------------------------------------------------------
[uart_para0]
uart_used = 1
uart_port = 0
uart_type = 2
uart_tx = port:PB22<2><1><default><default>
uart_rx = port:PB23<2><1><default><default>

[uart_para1]
uart_used = 0
uart_port = 1
uart_type = 8
uart_tx = port:PA10<4><1><default><default>
uart_rx = port:PA11<4><1><default><default>
uart_rts = port:PA12<4><1><default><default>
uart_cts = port:PA13<4><1><default><default>
uart_dtr = port:PA14<4><1><default><default>
uart_dsr = port:PA15<4><1><default><default>
uart_dcd = port:PA16<4><1><default><default>
uart_ring = port:PA17<4><1><default><default>

[uart_para2]
uart_used = 0
uart_port = 2
uart_type = 4
uart_tx = port:PI18<3><1><default><default>
uart_rx = port:PI19<3><1><default><default>
uart_rts = port:PI16<3><1><default><default>
uart_cts = port:PI17<3><1><default><default>

[uart_para3]
uart_used = 0
uart_port = 3
uart_type = 4
uart_tx = port:PH00<4><1><default><default>
uart_rx = port:PH01<4><1><default><default>
uart_rts = port:PH02<4><1><default><default>
uart_cts = port:PH03<4><1><default><default>

[uart_para4]
uart_used = 0
uart_port = 4
uart_type = 2
uart_tx = port:PH04<4><1><default><default>
uart_rx = port:PH05<4><1><default><default>

[uart_para5]
uart_used = 0
uart_port = 5
uart_type = 2
uart_tx = port:PH06<4><1><default><default>
uart_rx = port:PH07<4><1><default><default>

[uart_para6]
uart_used = 0
uart_port = 6
uart_type = 2
uart_tx = port:PA12<3><1><default><default>
uart_rx = port:PA13<3><1><default><default>

[uart_para7]
uart_used = 0
uart_port = 7
uart_type = 2
uart_tx = port:PA14<3><1><default><default>
uart_rx = port:PA15<3><1><default><default>

;-------------------------------------------------------------------------------
;spi configuration
;-------------------------------------------------------------------------------
[spi0_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PI10<2><default><default><default>
spi_cs1 = port:PI14<2><default><default><default>
spi_sclk = port:PI11<2><default><default><default>
spi_mosi = port:PI12<2><default><default><default>
spi_miso = port:PI13<2><default><default><default>

[spi1_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA00<3><default><default><default>
spi_cs1 = port:PA04<3><default><default><default>
spi_sclk = port:PA01<3><default><default><default>
spi_mosi = port:PA02<3><default><default><default>
spi_miso = port:PA03<3><default><default><default>

[spi2_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PC19<3><default><default><default>
spi_cs1 = port:PB13<2><default><default><default>
spi_sclk = port:PC20<3><default><default><default>
spi_mosi = port:PC21<3><default><default><default>
spi_miso = port:PC22<3><default><default><default>

[spi3_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA05<3><default><default><default>
spi_cs1 = port:PA09<3><default><default><default>
spi_sclk = port:PA06<3><default><default><default>
spi_mosi = port:PA07<3><default><default><default>
spi_miso = port:PA08<3><default><default><default>

;-------------------------------------------------------------------------------
;capacitor tp configuration
;external int function
;wakeup output function
;notice:
; tp_int_port & tp_io_port use the same port
;-------------------------------------------------------------------------------
[ctp_para]
ctp_used = 1
ctp_cob = 1
ctp_ft5402_num = 1
ctp_twi_id = 2
ctp_twi_addr = 0x40
ctp_screen_max_x = 800
ctp_screen_max_y = 480
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 0

ctp_int_port = port:PH21<6><default><default><default>
ctp_wakeup = port:PB13<1><default><default><1>
ctp_power_en = port:PI16<1><default><default><0>
;-------------------------------------------------------------------------------
;touch key configuration
;-------------------------------------------------------------------------------
[tkey_para]
tkey_used = 0
tkey_twi_id = 2
tkey_twi_addr = 0x62
tkey_int = port:PI13<6><default><default><default>

;-------------------------------------------------------------------------------
;motor configuration
;-------------------------------------------------------------------------------
[motor_para]
motor_used = 0
motor_shake = port:PH23<1><default><default><0>

;-------------------------------------------------------------------------------
;nand flash configuration
;-------------------------------------------------------------------------------
[nand_para]
nand_used = 1
nand_we = port:PC00<2><default><default><default>
nand_ale = port:PC01<2><default><default><default>
nand_cle = port:PC02<2><default><default><default>
nand_ce1 = port:PC03<2><default><default><default>
nand_ce0 = port:PC04<2><default><default><default>
nand_nre = port:PC05<2><default><default><default>
nand_rb0 = port:PC06<2><default><default><default>
nand_rb1 = port:PC07<2><default><default><default>
nand_d0 = port:PC08<2><default><default><default>
nand_d1 = port:PC09<2><default><default><default>
nand_d2 = port:PC10<2><default><default><default>
nand_d3 = port:PC11<2><default><default><default>
nand_d4 = port:PC12<2><default><default><default>
nand_d5 = port:PC13<2><default><default><default>
nand_d6 = port:PC14<2><default><default><default>
nand_d7 = port:PC15<2><default><default><default>
nand_wp = port:PC16<2><default><default><default>
nand_ce2 = port:PC17<2><default><default><default>
nand_ce3 = port:PC18<2><default><default><default>
nand_ce4 =
nand_ce5 =
nand_ce6 =
nand_ce7 =
nand_spi = port:PC23<3><default><default><default>
nand_ndqs = port:PC24<2><default><default><default>
good_block_ratio = 0

;-------------------------------------------------------------------------------
;disp init configuration
;
;disp_mode (0:screen0<screen0,fb0> 1:screen1<screen1,fb0> 2:two_diff_screen_diff_contents<screen0,screen1,fb0,fb1>
; 3:two_same_screen_diff_contets<screen0,screen1,fb0> 4:two_diff_screen_same_contents<screen0,screen1,fb0>)
;screenx_output_type (0:none; 1:lcd; 2:tv; 3:hdmi; 4:vga)
;screenx_output_mode (used for tv/hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50 5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60 11:pal 14:ntsc)
;screenx_output_mode (used for vga output, 0:1680*1050 1:1440*900 2:1360*768 3:1280*1024 4:1024*768 5:800*600 6:640*480 10:1920*1080 11:1280*720)
;fbx format (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)
;fbx pixel sequence (0:ARGB 1:BGRA 2:ABGR 3:RGBA) --- 0 for linux, 2 for android
;lcd0_bright (lcd0 init bright,the range:[0,256],default:197
;lcd1_bright (lcd1 init bright,the range:[0,256],default:197
;-------------------------------------------------------------------------------
[disp_init]
disp_init_enable = 1
disp_mode = 0

screen0_output_type = 1
screen0_output_mode = 4

screen1_output_type = 1
screen1_output_mode = 4

fb0_framebuffer_num = 2
fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0
fb0_width = 0
fb0_height = 0

fb1_framebuffer_num = 2
fb1_format = 10
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 0
fb1_width = 0
fb1_height = 0

lcd0_backlight = 197
lcd1_backlight = 197

lcd0_bright = 50
lcd0_contrast = 50
lcd0_saturation = 57
lcd0_hue = 50

lcd1_bright = 50
lcd1_contrast = 50
lcd1_saturation = 57
lcd1_hue = 50

;-------------------------------------------------------------------------------
;lcd0 configuration

;lcd_dclk_freq: in MHZ unit
;lcd_pwm_freq: in HZ unit
;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:hv2dsi
;lcd_width: width of lcd in mm
;lcd_height: height of lcd in mm
;lcd_hbp: hsync back porch
;lcd_ht: hsync total cycle
;lcd_vbp: vsync back porch
;lcd_vt: vysnc total cycle *2
;lcd_hv_if: 0:hv parallel 1:hv serial
;lcd_hv_smode: 0:RGB888 1:CCIR656
;lcd_hv_s888_if serial RGB format
;lcd_hv_syuv_if: serial YUV format
;lcd_hspw: hsync plus width
;lcd_vspw: vysnc plus width
;lcd_lvds_ch: 0:single channel; 1:dual channel
;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
;lcd_lvds_bitwidth: 0:24bit; 1:18bit
;lcd_lvds_io_cross: 0:normal; 1:pn cross
;lcd_cpu_if: 0:18bit; 1:16bit mode0; 2:16bit mode1; 3:16bit mode2; 4:16bit mode3; 5:9bit; 6:8bit 256K; 7:8bit 65K
;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither

;lcd_gpio_0: SCL
;lcd_gpio_1 SDA
;-------------------------------------------------------------------------------
[lcd0_para]
lcd_used = 1

lcd_x = 800
lcd_y = 480
lcd_dclk_freq = 33
lcd_pwm_not_used = 0
lcd_pwm_ch = 0
lcd_pwm_freq = 10000
lcd_pwm_pol = 1
lcd_pwm_max_limit = 255
lcd_if = 0
lcd_hbp = 46
lcd_ht = 1055
lcd_vbp = 23
lcd_vt = 1055
lcd_vspw = 0
lcd_hspw = 0
lcd_hv_if = 0
lcd_hv_smode = 0
lcd_hv_s888_if = 0
lcd_hv_syuv_if = 0
lcd_lvds_ch = 0
lcd_lvds_mode = 0
lcd_lvds_bitwidth = 0
lcd_lvds_io_cross = 0
lcd_cpu_if = 0
lcd_frm = 0
lcd_io_cfg0 = 0x00000000
lcd_gamma_correction_en = 0
lcd_gamma_tbl_0 = 0x00000000
lcd_gamma_tbl_1 = 0x00010101
lcd_gamma_tbl_255 = 0x00ffffff

lcd_bl_en_used = 1
lcd_bl_en = port:PH07<1><0><default><1>

lcd_power_used = 1
lcd_power = port:PH08<1><2><default><1>

lcd_pwm_used = 1
lcd_pwm = port:PB02<2><0><default><default>

lcdd0 = port:PD00<2><0><default><default>
lcdd1 = port:PD01<2><0><default><default>
lcdd2 = port:PD02<2><0><default><default>
lcdd3 = port:PD03<2><0><default><default>
lcdd4 = port:PD04<2><0><default><default>
lcdd5 = port:PD05<2><0><default><default>
lcdd6 = port:PD06<2><0><default><default>
lcdd7 = port:PD07<2><0><default><default>
lcdd8 = port:PD08<2><0><default><default>
lcdd9 = port:PD09<2><0><default><default>
lcdd10 = port:PD10<2><0><default><default>
lcdd11 = port:PD11<2><0><default><default>
lcdd12 = port:PD12<2><0><default><default>
lcdd13 = port:PD13<2><0><default><default>
lcdd14 = port:PD14<2><0><default><default>
lcdd15 = port:PD15<2><0><default><default>
lcdd16 = port:PD16<2><0><default><default>
lcdd17 = port:PD17<2><0><default><default>
lcdd18 = port:PD18<2><0><default><default>
lcdd19 = port:PD19<2><0><default><default>
lcdd20 = port:PD20<2><0><default><default>
lcdd21 = port:PD21<2><0><default><default>
lcdd22 = port:PD22<2><0><default><default>
lcdd23 = port:PD23<2><0><default><default>
lcdclk = port:PD24<2><0><default><default>
lcdde = port:PD25<2><0><default><default>
lcdhsync = port:PD26<2><0><default><default>
lcdvsync = port:PD27<2><0><default><default>

;----------------------------------------------------------------------------------
;lcd1 configuration

;lcd_dclk_freq: in MHZ unit
;lcd_pwm_freq: in HZ unit
;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds
;lcd_hbp: hsync back porch
;lcd_ht: hsync total cycle
;lcd_vbp: vsync back porch
;lcd_vt: vysnc total cycle *2
;lcd_hv_if: 0:hv parallel 1:hv serial
;lcd_hv_smode: 0:RGB888 1:CCIR656
;lcd_hv_s888_if serial RGB format
;lcd_hv_syuv_if: serial YUV format
;lcd_hspw: hsync plus width
;lcd_vspw: vysnc plus width
;lcd_lvds_ch: 0:single channel; 1:dual channel
;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
;lcd_lvds_bitwidth: 0:24bit; 1:18bit
;lcd_lvds_io_cross: 0:normal; 1:pn cross
;lcd_cpu_if: 0:18bit; 1:16bit mode0; 2:16bit mode1; 3:16bit mode2; 4:16bit mode3; 5:9bit; 6:8bit 256K; 7:8bit 65K
;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither

;lcd_gpio_0: SCL
;lcd_gpio_1 SDA
;----------------------------------------------------------------------------------
[lcd1_para]
lcd_used = 0

lcd_x = 0
lcd_y = 0
lcd_dclk_freq = 0
lcd_pwm_not_used = 0
lcd_pwm_ch = 1
lcd_pwm_freq = 0
lcd_pwm_pol = 0
lcd_if = 0
lcd_hbp = 0
lcd_ht = 0
lcd_vbp = 0
lcd_vt = 0
lcd_vspw = 0
lcd_hspw = 0
lcd_hv_if = 0
lcd_hv_smode = 0
lcd_hv_s888_if = 0
lcd_hv_syuv_if = 0
lcd_lvds_ch = 0
lcd_lvds_mode = 0
lcd_lvds_bitwidth = 0
lcd_lvds_io_cross = 0
lcd_cpu_if = 0
lcd_frm = 0
lcd_io_cfg0 = 0
lcd_gamma_correction_en = 0
lcd_gamma_tbl_0 = 0x00000000
lcd_gamma_tbl_1 = 0x00010101
lcd_gamma_tbl_255 = 0x00ffffff

lcd_bl_en_used = 0
lcd_bl_en =

lcd_power_used = 0
lcd_power =

lcd_pwm_used = 1
lcd_pwm = port:PI03<2><0><default><default>

lcd_gpio_0 =
lcd_gpio_1 =
lcd_gpio_2 =
lcd_gpio_3 =

lcdd0 = port:PH00<2><0><default><default>
lcdd1 = port:PH01<2><0><default><default>
lcdd2 = port:PH02<2><0><default><default>
lcdd3 = port:PH03<2><0><default><default>
lcdd4 = port:PH04<2><0><default><default>
lcdd5 = port:PH05<2><0><default><default>
lcdd6 = port:PH06<2><0><default><default>
lcdd7 = port:PH07<2><0><default><default>
lcdd8 = port:PH08<2><0><default><default>
lcdd9 = port:PH09<2><0><default><default>
lcdd10 = port:PH10<2><0><default><default>
lcdd11 = port:PH11<2><0><default><default>
lcdd12 = port:PH12<2><0><default><default>
lcdd13 = port:PH13<2><0><default><default>
lcdd14 = port:PH14<2><0><default><default>
lcdd15 = port:PH15<2><0><default><default>
lcdd16 = port:PH16<2><0><default><default>
lcdd17 = port:PH17<2><0><default><default>
lcdd18 = port:PH18<2><0><default><default>
lcdd19 = port:PH19<2><0><default><default>
lcdd20 = port:PH20<2><0><default><default>
lcdd21 = port:PH21<2><0><default><default>
lcdd22 = port:PH22<2><0><default><default>
lcdd23 = port:PH23<2><0><default><default>
lcdclk = port:PH24<2><0><default><default>
lcdde = port:PH25<2><0><default><default>
lcdhsync = port:PH26<2><0><default><default>
lcdvsync = port:PH27<2><0><default><default>

;-------------------------------------------------------------------------------
;tv out dac configuration
;dacx_src: 0:composite; 1:luma; 2:chroma; 4:Y; 5:Pb; 6: Pr; 7:none
;-------------------------------------------------------------------------------
[tv_out_dac_para]
dac_used = 1
dac0_src = 4
dac1_src = 5
dac2_src = 6
dac3_src = 0

;----------------------------------------------------------------------------------
;hdmi configuration
;----------------------------------------------------------------------------------
[hdmi_para]
hdmi_used = 1
hdcp_enable = 0

[i2s2_para]
i2s_channel = 2
i2s_master = 4
i2s_select = 1
audio_format = 1
signal_inversion = 1
over_sample_rate = 256
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 256
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 0
rx_data_mode = 0
;i2s_mclk = port:PB05<2><1><default><default>
;i2s_bclk = port:PB06<2><1><default><default>
;i2s_lrclk = port:PB07<2><1><default><default>
;i2s_dout0 = port:PB08<2><1><default><default>
;i2s_dout1 =
;i2s_dout2 =
;i2s_dout3 =
;i2s_din = port:PB12<2><1><default><default>

[camera_list_para]
camera_list_para_used = 1
ov7670 = 0
gc0308 = 1
gt2005 = 1
gc2035 = 1
hi704 = 0
sp0838 = 0
mt9m112 = 0
mt9m113 = 0
ov2655 = 0
hi253 = 0
gc0307 = 0
mt9d112 = 0
ov5640 = 1
gc2015 = 1
ov2643 = 0
gc0328 = 1
gc0329 = 1
gc0309 = 1
tvp5150 = 0
s5k4ec = 0
ov5650_mv9335 = 0
siv121d = 0
sp2518 = 1
sp0718 = 1
hm2057 = 1

;--------------------------------------------------------------------------------
;csi gpio configuration
;csi_if: 0:hv_8bit 1:hv_16bit 2:hv_24bit 3:bt656 1ch 4:bt656 2ch 5:bt656 4ch
;csi_mode: 0:sample one csi to one buffer 1:sample two csi to one buffer
;csi_dev_qty: The quantity of devices linked to csi interface
;csi_vflip: flip in vertical direction 0:disable 1:enable
;csi_hflip: flip in horizontal direction 0:disable 1:enable
;csi_stby_mode: 0:not shut down power at standby 1:shut down power at standby
;csi_iovdd: camera module io power , pmu power supply
;csi_avdd: camera module analog power , pmu power supply
;csi_dvdd: camera module core power , pmu power supply
;pmu_ldo3: fill "axp20_pll"
;pmu_ldo4: fill "axp20_hdmi"
;fill "" when not using any pmu power supply
;csi_flash_pol: the active polority of the flash light IO 0:low active 1:high active
;--------------------------------------------------------------------------------

[csi0_para]
csi_used = 1

csi_dev_qty = 2
csi_stby_mode = 0
csi_mname = "gc2035"
csi_twi_id = 1
csi_twi_addr = 0x78
csi_if = 0
csi_vflip = 0
csi_hflip = 0
csi_iovdd = "axp20_hdmi"
csi_avdd = "axp20_pll"
csi_dvdd = ""
csi_vol_iovdd = 2800
csi_vol_dvdd = 2800
csi_vol_avdd =
csi_flash_pol = 0
csi_facing = 0

csi_mname_b = "gc0308"
csi_twi_id_b = 1
csi_twi_addr_b = 0x42
csi_if_b = 0
csi_vflip_b = 0
csi_hflip_b = 0
csi_iovdd_b = "axp20_hdmi"
csi_avdd_b = "axp20_pll"
csi_dvdd_b = ""
csi_vol_iovdd_b = 2800
csi_vol_avdd_b = 2800
csi_vol_dvdd_b =
csi_flash_pol_b = 0
csi_facing_b = 1

csi_pck = port:PE00<3><default><default><default>
csi_ck = port:PE01<3><default><default><default>
csi_hsync = port:PE02<3><default><default><default>
csi_vsync = port:PE03<3><default><default><default>
csi_d0 = port:PE04<3><default><default><default>
csi_d1 = port:PE05<3><default><default><default>
csi_d2 = port:PE06<3><default><default><default>
csi_d3 = port:PE07<3><default><default><default>
csi_d4 = port:PE08<3><default><default><default>
csi_d5 = port:PE09<3><default><default><default>
csi_d6 = port:PE10<3><default><default><default>
csi_d7 = port:PE11<3><default><default><default>
csi_reset = port:PH13<1><default><default><0>
csi_power_en = port:PH16<1><default><default><0>
csi_stby = port:PH19<1><default><default><1>
csi_flash =
csi_af_en =
csi_reset_b = port:PH13<1><default><default><0>
csi_power_en_b = port:PH16<1><default><default><0>
csi_stby_b = port:PH18<1><default><default><1>
csi_flash_b =
csi_af_en_b =

[csi1_para]
csi_used = 0

csi_dev_qty = 1
csi_stby_mode = 0
csi_mname = "gc0308"
csi_if = 0
csi_iovdd = "axp20_pll"
csi_avdd = ""
csi_dvdd = ""
csi_vol_iovdd = 2800
csi_vol_dvdd =
csi_vol_avdd =
csi_vflip = 0
csi_hflip = 0
csi_flash_pol = 0
csi_facing = 1

csi_twi_id = 1
csi_twi_addr = 0x42
csi_pck = port:PG00<3><default><default><default>
csi_ck = port:PG01<3><default><default><default>
csi_hsync = port:PG02<3><default><default><default>
csi_vsync = port:PG03<3><default><default><default>
csi_d0 = port:PG04<3><default><default><default>
csi_d1 = port:PG05<3><default><default><default>
csi_d2 = port:PG06<3><default><default><default>
csi_d3 = port:PG07<3><default><default><default>
csi_d4 = port:PG08<3><default><default><default>
csi_d5 = port:PG09<3><default><default><default>
csi_d6 = port:PG10<3><default><default><default>
csi_d7 = port:PG11<3><default><default><default>
csi_reset = port:PH13<1><default><default><0>
csi_power_en = port:PH16<1><default><default><0>
csi_stby = port:PH19<1><default><default><0>

;-------------------------------------------------------------------------------
;tv configuration
;
;-------------------------------------------------------------------------------
[tvout_para]
tvout_used = 0
tvout_channel_num = 1

[tvin_para]
tvin_used = 0
tvin_channel_num = 4


;-------------------------------------------------------------------------------
;sata configuration
;
;-------------------------------------------------------------------------------
[sata_para]
sata_used = 0
sata_power_en =


;-------------------------------------------------------------------------------
; SDMMC PINS MAPPING
; ------------------------------------------------------------------------------
; Config Guide
; sdc_used: 1-enable card, 0-disable card
; sdc_detmode: card detect mode
; 1-detect card by gpio polling
; 2-detect card by gpio irq(must use IO with irq function)
; 3-no detect, always in for boot card
; 4-manually insert and remove by /proc/driver/sunxi-mmc.x/insert
; sdc_buswidth: card bus width, 1-1bit, 4-4bit, 8-8bit
; sdc_use_wp: 1-with write protect IO, 0-no write protect IO
; sdc_isio: for sdio card
; sdc_regulator: power control.
; other: GPIO Mapping configuration
; ------------------------------------------------------------------------------
; Note:
; 1 if detmode=2, sdc_det's config=6
; else if detmode=1, sdc_det's config=0
; else sdc_det IO is not necessary
; 2 if the customer wants to support UHS-I and HS200 features, he must provide
; an independent power supply for the card. This is only used in platforms
; that supports SD3.0 cards and eMMC4.4+ flashes
;-------------------------------------------------------------------------------
[mmc0_para]
sdc_used = 1
sdc_detmode = 1
sdc_buswidth = 4
sdc_clk = port:PF02<2><1><2><default>
sdc_cmd = port:PF03<2><1><2><default>
sdc_d0 = port:PF01<2><1><2><default>
sdc_d1 = port:PF00<2><1><2><default>
sdc_d2 = port:PF05<2><1><2><default>
sdc_d3 = port:PF04<2><1><2><default>
sdc_det = port:PH1<0><1><default><default>
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc1_para]
sdc_used = 0
sdc_detmode = 4
sdc_buswidth = 4
sdc_clk = port:PG00<2><1><2><default>
sdc_cmd = port:PG01<2><1><2><default>
sdc_d0 = port:PG02<2><1><2><default>
sdc_d1 = port:PG03<2><1><2><default>
sdc_d2 = port:PG04<2><1><2><default>
sdc_d3 = port:PG05<2><1><2><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc2_para]
sdc_used = 0
sdc_detmode = 3
sdc_buswidth = 4
sdc_cmd = port:PC06<3><1><2><default>
sdc_clk = port:PC07<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc3_para]
sdc_used = 0
sdc_detmode = 4
sdc_buswidth = 4
sdc_cmd = port:PI04<2><1><2><default>
sdc_clk = port:PI05<2><1><2><default>
sdc_d0 = port:PI06<2><1><2><default>
sdc_d1 = port:PI07<2><1><2><default>
sdc_d2 = port:PI08<2><1><2><default>
sdc_d3 = port:PI09<2><1><2><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 1
sdc_regulator = "none"

; ------------------------------------------------------------------------------
; memory stick configuration
;-------------------------------------------------------------------------------
[ms_para]
ms_used = 0
ms_bs = port:PH06<5><default><default><default>
ms_clk = port:PH07<5><default><default><default>
ms_d0 = port:PH08<5><default><default><default>
ms_d1 = port:PH09<5><default><default><default>
ms_d2 = port:PH10<5><default><default><default>
ms_d3 = port:PH11<5><default><default><default>
ms_det =

; ------------------------------------------------------------------------------
; sim card configuration
;-------------------------------------------------------------------------------
[smc_para]
smc_used = 0
smc_rst = port:PH13<5><default><default><default>
smc_vppen = port:PH14<5><default><default><default>
smc_vppp = port:PH15<5><default><default><default>
smc_det = port:PH16<5><default><default><default>
smc_vccen = port:PH17<5><default><default><default>
smc_sck = port:PH18<5><default><default><default>
smc_sda = port:PH19<5><default><default><default>

;-------------------------------------------------------------------------------
;ps2 configuration
;-------------------------------------------------------------------------------
[ps2_0_para]
ps2_used = 0
ps2_scl = port:PI20<2><1><default><default>
ps2_sda = port:PI21<2><1><default><default>

[ps2_1_para]
ps2_used = 0
ps2_scl = port:PI14<3><1><default><default>
ps2_sda = port:PI15<3><1><default><default>

;-------------------------------------------------------------------------------
;can bus configuration
;-------------------------------------------------------------------------------
[can_para]
can_used = 0
can_tx = port:PA16<3><default><default><default>
can_rx = port:PA17<3><default><default><default>

;-------------------------------------------------------------------------------
;key matrix
;-------------------------------------------------------------------------------
[keypad_para]
kp_used = 0
kp_in_size = 8
kp_out_size = 8
kp_in0 = port:PH08<4><1><default><default>
kp_in1 = port:PH09<4><1><default><default>
kp_in2 = port:PH10<4><1><default><default>
kp_in3 = port:PH11<4><1><default><default>
kp_in4 = port:PH14<4><1><default><default>
kp_in5 = port:PH15<4><1><default><default>
kp_in6 = port:PH16<4><1><default><default>
kp_in7 = port:PH17<4><1><default><default>
kp_out0 = port:PH18<4><1><default><default>
kp_out1 = port:PH19<4><1><default><default>
kp_out2 = port:PH22<4><1><default><default>
kp_out3 = port:PH23<4><1><default><default>
kp_out4 = port:PH24<4><1><default><default>
kp_out5 = port:PH25<4><1><default><default>
kp_out6 = port:PH26<4><1><default><default>
kp_out7 = port:PH27<4><1><default><default>


;-------------------------------------------------------------------------------
;[usbc0]:控制器0的配置。
;usb_used:USB使能标志。置1,表示系统中USB模块可用,置0,则表示系统USB禁用。
;usb_port_type:USB端口的使用情况。 0:device only;1:host only;2:OTG
;usb_detect_type:USB端口的检查方式。0:不做检测;1:vbus/id检查;2:id/dpdm检查
;usb_id_gpio:USB ID pin脚配置。具体请参考gpio配置说明。
;usb_det_vbus_gpio:USB DET_VBUS pin脚配置。具体请参考gpio配置说明。
;usb_drv_vbus_gpio:USB DRY_VBUS pin脚配置。具体请参考gpio配置说明。
;usb_det_vbus_gpio: "axp_ctrl",表示axp 提供
;usb_restrict_gpio usb限流控制pin
;usb_restric_flag: usb限流标置
;-------------------------------------------------------------------------------
;-------------------------------------------------------------------------------
;--- USB0控制标志
;-------------------------------------------------------------------------------
[usbc0]
usb_used = 1
usb_port_type = 2
usb_detect_type = 1
usb_id_gpio = port:PH04<0><1><default><default>
usb_det_vbus_gpio = "axp_ctrl"
usb_drv_vbus_gpio = port:PB09<1><0><default><0>
usb_ac_enable_gpio = port:PH05<1><0><default><0>
usb_restrict_gpio = 0
usb_host_init_state = 0
usb_restric_flag = 0
usb_restric_voltage = 3550000
usb_restric_capacity= 5

;-------------------------------------------------------------------------------
;--- USB1控制标志
;------------------------------------------------------------------------------
[usbc1]
usb_used = 0
usb_port_type = 1
usb_detect_type = 0
usb_drv_vbus_gpio = port:PH06<1><0><default><0>
usb_restrict_gpio =
usb_host_init_state = 1
usb_restric_flag = 0

;------------------------------------------------------------------------------
;--- USB2控制标志
;------------------------------------------------------------------------------
[usbc2]
usb_used = 1
usb_port_type = 1
usb_detect_type = 0
usb_drv_vbus_gpio = port:PH03<1><0><default><0>
usb_restrict_gpio =

usb_host_init_state = 0
usb_restric_flag = 0

;--------------------------------
;--- USB Device
;--------------------------------
[usb_feature]
vendor_id = 0x18D1
mass_storage_id = 0x0001
adb_id = 0x0002

manufacturer_name = "USB Developer"
product_name = "Android"
serial_number = "20080411"

[msc_feature]
vendor_name = "USB 2.0"
product_name = "USB Flash Driver"
release = 100
luns = 2

;-------------------------------------------------------------------------------
; G sensor configuration
; gs_twi_id --- TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2)
;-------------------------------------------------------------------------------
[gsensor_para]
gsensor_used = 1
gsensor_twi_id = 1
gsensor_int1 =
gsensor_int2 =

;--------------------------------------------------------------------------------
; G sensor automatic detection configuration
;gsensor_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[gsensor_list_para]
gsensor_det_used = 0
bma250 = 1
mma8452 = 1
mma7660 = 1
mma865x = 1
afa750 = 1
lis3de_acc = 1
lis3dh_acc = 1
kxtik = 1
dmard10 = 0
dmard06 = 1
mxc622x = 1
fxos8700 = 1
lsm303d = 1

;-------------------------------------------------------------------------------
; gps gpio configuration
; gps_spi_id --- the index of SPI controller. 0: SPI0, 1: SPI1, 2: SPI2, 15: no SPI used
; gps_spi_cs_num --- the chip select number of SPI controller. 0: SPI CS0, 1: SPI CS1
; gps_lradc --- the lradc number for GPS used. 0 and 1 is valid, set 2 if not use lradc
;-------------------------------------------------------------------------------
[gps_para]
gps_used = 0
gps_spi_id = 2
gps_spi_cs_num = 0
gps_lradc = 1
gps_clk = port:PI00<2><default><default><default>
gps_sign = port:PI01<2><default><default><default>
gps_mag = port:PI02<2><default><default><default>
gps_vcc_en = port:PC22<1><default><default><0>
gps_osc_en = port:PI14<1><default><default><0>
gps_rx_en = port:PI15<1><default><default><0>

;--------------------------------------------------------------------------------
;wifi configuration
;wifi_sdc_id --- 0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3
;wifi_usbc_id --- 0- USB0, 1- USB1, 2- USB2
;wifi_usbc_type -- 1- EHCI(speed 2.0), 2- OHCI(speed 1.0)
;wifi_mod_sel --- 0- none, 1- bcm40181, 2- bcm40183(wifi+bt),
; 3 - rtl8723as(wifi+bt), 4- rtl8189es(SM89E00),
; 5 - rtl8192cu, 6 - rtl8188eu, 7 - ap6210
;--------------------------------------------------------------------------------
[wifi_para]
wifi_used = 1
wifi_sdc_id = 3
wifi_usbc_id = 2
wifi_usbc_type = 1
wifi_mod_sel = 6
wifi_power = ""

; 1 - bcm40181 sdio wifi gpio config
;bcm40181_shdn = port:PH09<1><default><default><0>
;bcm40181_host_wake = port:PH10<0><default><default><0>

; 2 - bcm40183 sdio wifi gpio config
;bcm40183_wl_regon = port:PH09<1><default><default><0>
;bcm40183_wl_host_wake = port:PH10<0><default><default><0>
;bcm40183_bt_rst = port:PB05<1><default><default><0>
;bcm40183_bt_regon = port:PB05<1><default><default><0>
;bcm40183_bt_wake = port:PI20<1><default><default><0>
;bcm40183_bt_host_wake = port:PI21<0><default><default><0>

; 3 - rtl8723as sdio wifi + bt gpio config
rtk_rtl8723as_wl_dis = port:PH09<1><default><default><0>
rtk_rtl8723as_bt_dis = port:PB05<1><default><default><0>
rtk_rtl8723as_wl_host_wake = port:PH10<0><default><default><0>
rtk_rtl8723as_bt_host_wake = port:PI21<0><default><default><0>

; 4 - rtl8189es sdio wifi gpio config
;rtl8189es_shdn = port:PH09<1><default><default><0>
;rtl8189es_wakeup = port:PH10<1><default><default><1>
; 5 - rtl8192cu usb wifi
; 6 - rtl8188eu usb wifi
; 7 - ap6210 sdio wifi + bt gpio config
ap6xxx_wl_regon = port:PH09<1><default><default><0>
ap6xxx_wl_host_wake = port:PH10<0><default><default><0>
ap6xxx_bt_regon = port:PB05<1><default><default><0>
ap6xxx_bt_wake = port:PI20<1><default><default><0>
ap6xxx_bt_host_wake = port:PI21<0><default><default><0>

;-------------------------------------------------------------------------------
;3G configuration
;-------------------------------------------------------------------------------
[3g_para]
3g_used = 0
3g_usbc_num = 2
3g_uart_num = 0
3g_pwr =
3g_wakeup =
3g_int =

;-------------------------------------------------------------------------------
;gyroscope
;-------------------------------------------------------------------------------
[gy_para]
gy_used = 0
gy_twi_id = 1
gy_twi_addr = 0x00
gy_int1 = port:PH18<6><1><default><default>
gy_int2 = port:PH19<6><1><default><default>

;-------------------------------------------------------------------------------
;light sensor
;-------------------------------------------------------------------------------
[ls_para]
ls_used = 0
ls_twi_id = 1
ls_twi_addr = 0x00
ls_int = port:PH20<6><1><default><default>

;-------------------------------------------------------------------------------
;compass
;-------------------------------------------------------------------------------
[compass_para]
compass_used = 0
compass_twi_id = 1
compass_twi_addr = 0x00
compass_int = port:PI13<6><1><default><default>

;-------------------------------------------------------------------------------
;blue tooth
;bt_used ---- blue tooth used (0- no used, 1- used)
;bt_uard_id ---- uart index
;-------------------------------------------------------------------------------
[bt_para]
bt_used = 0
bt_uart_id = 2
bt_wakeup = port:PI20<1><default><default><default>
bt_gpio = port:PI21<1><default><default><default>
bt_rst = port:PB05<1><default><default><default>

;--------------------------------------------------------------------------------
;i2s_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;i2s_select:0 is pcm.1 is i2s
;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
;sample_resolution :16bits/20bits/24bits
;word_select_size :16bits/20bits/24bits/32bits
;pcm_sync_period :16/32/64/128/256
;msb_lsb_first :0: msb first; 1: lsb first
;sign_extend :0: zero pending; 1: sign extend
;slot_index :slot index: 0: the 1st slot - 3: the 4th slot
;slot_width :8 bit width / 16 bit width
;frame_width :0: long frame = 2 clock width; 1: short frame
;tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;--------------------------------------------------------------------------------
[i2s_para]
i2s_used = 0
i2s_channel = 2
i2s_master = 4
i2s_select = 1
audio_format = 1
signal_inversion = 1
over_sample_rate = 256
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 256
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 0
rx_data_mode = 0
i2s_mclk = port:PB05<2><1><default><default>
i2s_bclk = port:PB06<2><1><default><default>
i2s_lrclk = port:PB07<2><1><default><default>
i2s_dout0 = port:PB08<2><1><default><default>
i2s_dout1 =
i2s_dout2 =
i2s_dout3 =
i2s_din = port:PB12<2><1><default><default>


;--------------------------------------------------------------------------------
;pcm_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;pcm_select:1 is pcm.0 is i2s
;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
;sample_resolution :16bits/20bits/24bits
;word_select_size :16bits/20bits/24bits/32bits
;pcm_sync_period :16/32/64/128/256
;msb_lsb_first :0: msb first; 1: lsb first
;sign_extend :0: zero pending; 1: sign extend
;slot_index :slot index: 0: the 1st slot - 3: the 4th slot
;slot_width :8 bit width / 16 bit width
;frame_width :0: long frame = 2 clock width; 1: short frame
;tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;--------------------------------------------------------------------------------
[pcm_para]
pcm_used = 0
pcm_channel = 2
pcm_master = 4
pcm_select = 1
audio_format = 4
signal_inversion = 1
over_sample_rate = 256
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 256
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 0
rx_data_mode = 0
pcm_mclk = port:PA09<6><1><default><default>
pcm_bclk = port:PA14<6><1><default><default>
pcm_lrclk = port:PA15<6><1><default><default>
pcm_dout0 = port:PA16<6><1><default><default>
pcm_dout1 =
pcm_dout2 =
pcm_dout3 =
pcm_din = port:PA17<6><1><default><default>

[spdif_para]
spdif_used = 0
spdif_mclk =
spdif_dout = port:PB13<4><1><default><default>
spdif_din =

[audio_para]
audio_used = 1
audio_pa_ctrl = port:PH15<1><default><default><0>

[switch_para]
switch_used = 1

;-------------------------------------------------------------------------------
;ir --- infra remote configuration
;-------------------------------------------------------------------------------
[ir_para]
ir_used = 0
ir_rx = port:PB04<2><default><default><default>


;-------------------------------------------------------------------------------
;pmu_twi_addr ---slave address
;pmu_twi_id ---i2c bus number (0 TWI0, 1 TWI2, 2 TWI3)
;pmu_irq_id ---irq number (0 irq0,1 irq1,……)
;pmu_battery_rdc ---battery initial resistance,mΩ,根据实际电池内阻填写
;pmu_battery_cap ---battery capability,mAh,根据实际电池容量填写
;pmu_init_chgcur ---set initial charging current limite,mA,300/400/500/600/700/800/900/1000/1100/1200/1300/1400/1500/1600/1700/1800
;pmu_suspend_chgcur ---set suspend charging current limite,mA,300/400/500/600/700/800/900/1000/1100/1200/1300/1400/1500/1600/1700/1800
;pmu_resume_chgcur ---set resume charging current limite,mA,300/400/500/600/700/800/900/1000/1100/1200/1300/1400/1500/1600/1700/1800
;pmu_shutdown_chgcur ---set shutdown charging current limite,mA,300/400/500/600/700/800/900/1000/1100/1200/1300/1400/1500/1600/1700/1800
;pmu_init_chgvol ---set initial charing target voltage,mV,4100/4150/4200/4360
;pmu_init_chgend_rate ---set initial charing end current rate,10/15
;pmu_init_chg_enabled ---set initial charing enabled,0:关闭,1:打开
;pmu_init_adc_freq ---set initial adc frequency,Hz,25/50/100/200
;pmu_init_adc_freqc ---set initial coulomb adc coufrequency,Hz,25/50/100/200
;pmu_init_chg_pretime ---set initial pre-charging time,min,40/50/60/70
;pmu_init_chg_csttime ---set initial constance-charging time,min,360/480/600/720
;pmu_bat_para1 ---battery indication at 3.1328V
;pmu_bat_para2 ---battery indication at 3.2736V
;pmu_bat_para3 ---battery indication at 3.4144V
;pmu_bat_para4 ---battery indication at 3.5552V
;pmu_bat_para5 ---battery indication at 3.6256V
;pmu_bat_para6 ---battery indication at 3.6608V
;pmu_bat_para7 ---battery indication at 3.6960V
;pmu_bat_para8 ---battery indication at 3.7312V
;pmu_bat_para9 ---battery indication at 3.7664V
;pmu_bat_para10 ---battery indication at 3.8016V
;pmu_bat_para11 ---battery indication at 3.8368V
;pmu_bat_para12 ---battery indication at 3.8720V
;pmu_bat_para13 ---battery indication at 3.9424V
;pmu_bat_para14 ---battery indication at 4.0128V
;pmu_bat_para15 ---battery indication at 4.0832V
;pmu_bat_para16 ---battery indication at 4.1536V
;pmu_usbvol ---set usb-ac limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur ---set usb-ac limited voltage level,mA,100/500/900, 0 - not limite
;pmu_usbvol_pc ---set usb-pc limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur_pc ---set usb-pc limited voltage level,mA,100/500/900, 0 - not limite
;pmu_pwroff_vol ---set protect voltage when system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pwron_vol ---set protect voltage after system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pekoff_time ---set pek off time,ms, 4000/6000/8000/10000
;pmu_pekoff_en ---set pek off enable, 0:关闭,1:打开
;pmu_peklong_time ---set pek pek long irq time,ms,1000/1500/2000/2500
;pmu_pekon_time ---set pek on time,ms,128/1000/2000/3000
;pmu_pwrok_time ---set pmu pwrok delay time,ms,8/64
;pmu_pwrnoe_time ---set pmu n_oe power down delay time,ms,128/1000/2000/3000
;pmu_intotp_en ---set pmu power down when overtempertur enable,0:关闭,1:打开
;pmu_suspendpwroff_vol ---set pmu shutdown voltage when cpu is suspend and battery voltage is low
;pmu_batdeten ---set pmu battery detect enabled,0:关闭,1:打开
;-------------------------------------------------------------------------------
[pmu_para]
pmu_used = 1
pmu_twi_addr = 0x34
pmu_twi_id = 0
pmu_irq_id = 32
pmu_battery_rdc = 160
pmu_battery_cap = 2700
pmu_init_chgcur = 300
pmu_earlysuspend_chgcur = 600
pmu_suspend_chgcur = 1000
pmu_resume_chgcur = 300
pmu_shutdown_chgcur = 1000
pmu_init_chgvol = 4200
pmu_init_chgend_rate = 15
pmu_init_chg_enabled = 1
pmu_init_adc_freq = 100
pmu_init_adc_freqc = 100
pmu_init_chg_pretime = 50
pmu_init_chg_csttime = 720

pmu_bat_para1 = 0
pmu_bat_para2 = 0
pmu_bat_para3 = 1
pmu_bat_para4 = 3
pmu_bat_para5 = 5
pmu_bat_para6 = 6
pmu_bat_para7 = 14
pmu_bat_para8 = 18
pmu_bat_para9 = 31
pmu_bat_para10 = 42
pmu_bat_para11 = 54
pmu_bat_para12 = 61
pmu_bat_para13 = 75
pmu_bat_para14 = 87
pmu_bat_para15 = 96
pmu_bat_para16 = 100

pmu_usbvol_limit = 1
pmu_usbcur_limit = 0
pmu_usbvol = 4000
pmu_usbcur = 0

pmu_usbvol_pc = 4400
pmu_usbcur_pc = 0

pmu_pwroff_vol = 3300
pmu_pwron_vol = 2900

pmu_pekoff_time = 6000
pmu_pekoff_en = 1
pmu_peklong_time = 1500
pmu_pekon_time = 1000
pmu_pwrok_time = 64
pmu_pwrnoe_time = 2000
pmu_intotp_en = 1

pmu_used2 = 0
pmu_adpdet = port:PH02<0><default><default><default>
pmu_init_chgcur2 = 400
pmu_earlysuspend_chgcur2 = 600
pmu_suspend_chgcur2 = 1200
pmu_resume_chgcur2 = 400
pmu_shutdown_chgcur2 = 1200

pmu_suspendpwroff_vol = 3500

pmu_batdeten = 1

[recovery_key]
key_min = 4
key_max = 40

;----------------------------------------------------------------------------------
; dvfs voltage-frequency table configuration
;
; max_freq: cpu maximum frequency, based on Hz, can not be more than 1008MHz
; min_freq: cpu minimum frequency, based on Hz, can not be less than 60MHz
;
; LV_count: count of LV_freq/LV_volt, must be < 16
;
; LV1: core vdd is 1.45v if cpu frequency is (912Mhz, 1008Mhz]
; LV2: core vdd is 1.40v if cpu frequency is (864Mhz, 912Mhz]
; LV3: core vdd is 1.30v if cpu frequency is (792Mhz, 864Mhz]
; LV4: core vdd is 1.25v if cpu frequency is (720Mhz, 792Mhz]
; LV5: core vdd is 1.20v if cpu frequency is (624Mhz, 720Mhz]
; LV6: core vdd is 1.15v if cpu frequency is (528Mhz, 624Mhz]
; LV7: core vdd is 1.10v if cpu frequency is (312Mhz, 528Mhz]
; LV8: core vdd is 1.05v if cpu frequency is ( 60Mhz, 312Mhz]
;
;----------------------------------------------------------------------------------
[dvfs_table]
max_freq = 912000000
min_freq = 60000000

LV_count = 8

LV1_freq = 1008000000
LV1_volt = 1450

LV2_freq = 912000000
LV2_volt = 1400

LV3_freq = 864000000
LV3_volt = 1300

LV4_freq = 792000000
LV4_volt = 1250

LV5_freq = 720000000
LV5_volt = 1200

LV6_freq = 624000000
LV6_volt = 1150

LV7_freq = 528000000
LV7_volt = 1100

LV8_freq = 312000000
LV8_volt = 1050



буилд проперти
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=JDQ39
ro.build.version.incremental=20130809
ro.build.version.sdk=17
ro.build.version.codename=REL
ro.build.version.release=4.2.2
ro.build.date=Fri Aug 9 00:53:50 CST 2013
ro.build.date.utc=1375980830
ro.build.type=eng
ro.build.user=inet_dada
ro.build.host=inetsuperserver
ro.build.tags=test-keys
ro.product.model=K901C
ro.product.brand=softwinners
ro.product.name=wing_inet
ro.product.device=wing-inet
ro.product.board=wing
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=unknown
ro.product.locale.language=en
ro.product.locale.region=US
ro.wifi.channels=
ro.board.platform=exDroid
# ro.build.product is obsolete; use ro.product.device
ro.build.product=wing-inet
# Do not try to parse ro.build.description or .fingerprint
ro.build.description=wing_inet-eng 4.2.2 JDQ39 20130809 test-keys
ro.build.fingerprint=softwinners/wing_inet/wing-inet:4.2.2/JDQ39/20130809:eng/test-keys
ro.build.characteristics=tablet
# end build properties

#
# ADDITIONAL_BUILD_PROPERTIES
#
ro.com.android.dateformat=MM-dd-yyyy
ro.config.ringtone=Ring_Synth_04.ogg
ro.config.notification_sound=pixiedust.ogg
ro.config.alarm_alert=Alarm_Classic.ogg
ro.kernel.android.checkjni=0
wifi.interface=wlan0
wifi.supplicant_scan_interval=15
debug.egl.hw=1
ro.display.switch=1
ro.opengles.version=131072
rild.libargs=-d/dev/ttyUSB2
rild.libpath=/system/lib/libsoftwinner-ril.so
keyguard.no_require_sim=true
persist.sys.strictmode.visual=0
persist.sys.strictmode.disable=1
hwui.render_dirty_regions=false
drm.service.enabled=false
persist.sys.usb.config=mass_storage,adb
ro.property.tabletUI=false
ro.udisk.lable=MID
ro.sys.bootfast=true
ro.property.fontScale=1.0
ro.adb.secure=1
persist.sys.language=en
persist.sys.country=US
ro.sf.lcd_density=120
ro.setupwizard.mode=DISABLED
ro.build.display.id=A20_K901_K901C.20130809
ro.config.3ginformation.path=/system/etc/3ginfo.gz
persist.sys.timezone=Asia/Shanghai
ro.inet.LauncherTransparent=false
ro.product.firmware=2.1_20130807
dalvik.vm.heapsize=384m
dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=96m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=2m
dalvik.vm.heapmaxfree=8m
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt



инит
import init.sun7i.usb.rc

on early-init
export EXTERNAL_STORAGE /mnt/sdcard
mkdir /mnt/sdcard 0000 system system
# for backwards compatibility
symlink /mnt/sdcard /sdcard

mkdir /mnt/extsd 0000 system system
mkdir /mnt/usbhost1 0000 system system
mount debugfs debugfs /sys/kernel/debug
mkdir /databk 0700 root system

on early-fs
mount ext4 /dev/block/system /system ro wait noatime nodev barrier=0
insmod /system/vendor/modules/disp.ko
insmod /system/vendor/modules/lcd.ko
insmod /system/vendor/modules/hdmi.ko
insmod /system/vendor/modules/hdcp.ko

# insmod mali driver
insmod /system/vendor/modules/ump.ko
insmod /system/vendor/modules/mali.ko
chmod 777 /dev/ump
chmod 777 /dev/mali
chown system system /sys/devices/platform/mali-utgard.0/aw_mali_freq/mali_clk
chown system system /sys/devices/platform/mali-utgard.0/aw_mali_freq/mali_vol

on fs
# try to mount /data
wait /dev/block/data
mount ext4 /dev/block/data /data wait noatime nosuid nodev barrier=0
setupfs /dev/block/data
umount /data
exec /system/bin/logwrapper /system/bin/e2fsck -y /dev/block/data
exec /system/bin/busybox mount -t ext4 -o noatime,nosuid,nodev,barrier=0,journal_checksum,noauto_da_alloc /dev/block/data /data

# try to mount /cache
mount ext4 /dev/block/cache /cache wait noatime nosuid nodev barrier=0
setupfs /dev/block/cache
umount /cache
exec /system/bin/logwrapper /system/bin/e2fsck -y /dev/block/cache
exec /system/bin/busybox mount -t ext4 -o noatime,nosuid,nodev,barrier=0,journal_checksum,noauto_da_alloc /dev/block/cache /cache

format_userdata /dev/block/UDISK MID

#try to format /databk
wait /dev/block/databk
mount ext4 /dev/block/databk /databk wait noatime nosuid nodev barrier=0
setupfs /dev/block/databk
umount /databk
rmdir /databk


on boot

#insmod gsensor
insmod /system/vendor/modules/bma250.ko
insmod /system/vendor/modules/mma865x.ko

#insmod key & tp driver
insmod /system/vendor/modules/inet_ctp.ko
insmod /system/vendor/modules/ft5x06_ts.ko
insmod /system/vendor/modules/ft5x02.ko
insmod /system/vendor/modules/gslX680.ko
insmod /system/vendor/modules/gslX680new.ko
insmod /system/vendor/modules/sis925x.ko
insmod /system/vendor/modules/gt9xx.ko
insmod /system/vendor/modules/ct36x_ts.ko
insmod /system/vendor/modules/byd693x-ts.ko
insmod /system/vendor/modules/gt801_2plus1.ko
insmod /system/vendor/modules/ft5402.ko
insmod /system/vendor/modules/zet622x.ko
insmod /system/vendor/modules/gt82x.ko
insmod /system/vendor/modules/ssd253x-ts.ko



#insmod video driver
insmod /system/vendor/modules/cedarx.ko

# csi module
insmod /system/vendor/modules/videobuf-core.ko
insmod /system/vendor/modules/videobuf-dma-contig.ko
insmod /system/vendor/modules/camera.ko
insmod_modules camera
#insmod /system/vendor/modules/gc0308.ko
#insmod /system/vendor/modules/gc2035.ko
#insmod /system/vendor/modules/sunxi_csi0.ko

#insmod network
insmod /system/vendor/modules/usbnet.ko
insmod /system/vendor/modules/asix.ko
insmod /system/vendor/modules/qf9700.ko
insmod /system/vendor/modules/mcs7830.ko
insmod /system/vendor/modules/rtl8150.ko
insmod /system/vendor/modules/cdc_ether.ko



#insmod vibrator
insmod /system/vendor/modules/sun7i-vibrator.ko
chown system system /sys/class/timed_output/sun7i-vibrator/enable
# 1. realtek wifi service
# 1.1 realtek wifi sta service
service wpa_supplicant /system/bin/wpa_supplicant -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf -e/data/misc/wifi/entropy.bin
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot

# 1.2 realtek wifi sta p2p concurrent service
service p2p_supplicant /system/bin/wpa_supplicant \
-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf -e/data/misc/wifi/entropy.bin -N \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot

# 2. broadcom wifi service
# 2.1 broadcom wifi bcm40181 bcm40183 station and softap
#service wpa_supplicant /system/bin/wpa_supplicant \
# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf -e/data/misc/wifi/entropy.bin
# class main
# socket wpa_wlan0 dgram 660 wifi wifi
# disabled
# oneshot

# 2.2 braodcom wifi sta p2p concurrent service
#service p2p_supplicant /system/bin/wpa_supplicant \
# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf -N \
# -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf -e/data/misc/wifi/entropy.bin -puse_p2p_group_interface=1
# class main
# socket wpa_wlan0 dgram 660 wifi wifi
# disabled
# oneshot

# 3. realtek rtl8723as bt hciattach
#service hciattach /system/bin/logwrapper /system/bin/hciattach -n -s 115200 /dev/ttyS1 rtk_h5 1500000
# user root
# group bluetooth net_bt_admin
# disabled
# oneshot

# 4. broadcom bcm40183 bt hciattach
#service hciattach /system/bin/hciattach -n -s 115200 /dev/ttyS1 bcm4329 1500000
# user root
# group bluetooth net_bt_admin
# disabled
# oneshot

# 5. broadcom ap6210 bt brcm_patchram_plus
#service hciattach /system/bin/brcm_patchram_plus --tosleep=200000 --no2bytes --enable_hci \
# --baudrate 1500000 --enable_lpm --patchram system/vendor/modules/bcm20710a1.hcd /dev/ttyS1
# class main
# user bluetooth
# group bluetooth net_bt_admin misc
# disabled
# oneshot





где то наткнулся что в Dslide750 чип gsl915,можно сравнить с другими конфигами
конфиг
;A20 PAD application
;-------------------------------------------------------------------------------
; 说明:
; 1. 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
; 2. 新增主键和子键的名称必须控制在32个字符以内,不包括32个
; 3. 所以的注释以“;”开始,单独占据一行
; 4. 注释不可和配置项同行,例如:主键和子健后面不能添加任何形式的注释
;
; gpio的描述形式:Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态>
; 例如:port:PA0<0><default><default><default>
;-------------------------------------------------------------------------------

[product]
version = "100"
machine = "K7901L1C_PG"

[platform]
eraseflag = 1

[target]
boot_clock = 912
dcdc2_vol = 1400
dcdc3_vol = 1250
ldo2_vol = 3000
ldo3_vol = 2800
ldo4_vol = 2800
power_start = 0
storage_type = -1

[clock]
pll3 = 297
pll4 = 300
pll6 = 600
pll7 = 297
pll8 = 336

[card_boot]
logical_start = 40960
sprite_gpio0 =

[card0_boot_para]
card_ctrl = 0
card_high_speed = 1
card_line = 4
sdc_d1 = port:PF0<2><1><default><default>
sdc_d0 = port:PF1<2><1><default><default>
sdc_clk = port:PF2<2><1><default><default>
sdc_cmd = port:PF3<2><1><default><default>
sdc_d3 = port:PF4<2><1><default><default>
sdc_d2 = port:PF5<2><1><default><default>

[card2_boot_para]
card_ctrl = 2
card_high_speed = 1
card_line = 4
sdc_cmd = port:PC6<3><1>
sdc_clk = port:PC7<3><1>
sdc_d0 = port:PC8<3><1>
sdc_d1 = port:PC9<3><1>
sdc_d2 = port:PC10<3><1>
sdc_d3 = port:PC11<3><1>

[twi_para]
twi_port = 0
twi_scl = port:PB0<2><default><default><default>
twi_sda = port:PB1<2><default><default><default>

[uart_para]
uart_debug_port = 0
uart_debug_tx = port:PB22<2><1><default><default>
uart_debug_rx = port:PB23<2><1><default><default>

[uart_force_debug]
uart_debug_port = 0
uart_debug_tx =port:PF2<4><1><default><default>
uart_debug_rx =port:PF4<4><1><default><default>

[jtag_para]
jtag_enable = 0
jtag_ms = port:PB14<3><default><default><default>
jtag_ck = port:PB15<3><default><default><default>
jtag_do = port:PB16<3><default><default><default>
jtag_di = port:PB17<3><default><default><default>

;---------------------------------------------------------------------------------------------------------
; if 1 == standby_mode, then support super standby;
; else, support normal standby.
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode = 0

;-------------------------------------------------------------------------------
;sdram configuration
;-------------------------------------------------------------------------------
[dram_para]
dram_baseaddr = 0x40000000
dram_clk = 384
dram_type = 3
dram_rank_num = 0xffffffff
dram_chip_density = 0xffffffff
dram_io_width = 0xffffffff
dram_bus_width = 0xffffffff
dram_cas = 9
dram_zq = 0x7f
dram_odt_en = 0
dram_size = 0xffffffff
dram_tpr0 = 0x42d899b7
dram_tpr1 = 0xa090
dram_tpr2 = 0x22a00
dram_tpr3 = 0x0
;Rocky@20130610
dram_tpr4 = 0x1
dram_tpr5 = 0x0
dram_emr1 = 0x4
dram_emr2 = 0x10
dram_emr3 = 0x0

;-------------------------------------------------------------------------------
;Mali configuration
;-------------------------------------------------------------------------------
[mali_para]
mali_used = 1
mali_clkdiv = 1

;-------------------------------------------------------------------------------
;Ethernet MAC configuration
;-------------------------------------------------------------------------------
[emac_para]
emac_used = 0
emac_rxd3 = port:PA00<2><default><default><default>
emac_rxd2 = port:PA01<2><default><default><default>
emac_rxd1 = port:PA02<2><default><default><default>
emac_rxd0 = port:PA03<2><default><default><default>
emac_txd3 = port:PA04<2><default><default><default>
emac_txd2 = port:PA05<2><default><default><default>
emac_txd1 = port:PA06<2><default><default><default>
emac_txd0 = port:PA07<2><default><default><default>
emac_rxclk = port:PA08<2><default><default><default>
emac_rxerr = port:PA09<2><default><default><default>
emac_rxdV = port:PA10<2><default><default><default>
emac_mdc = port:PA11<2><default><default><default>
emac_mdio = port:PA12<2><default><default><default>
emac_txen = port:PA13<2><default><default><default>
emac_txclk = port:PA14<2><default><default><default>
emac_crs = port:PA15<2><default><default><default>
emac_col = port:PA16<2><default><default><default>
emac_reset = port:PA17<1><default><default><default>

;-------------------------------------------------------------------------------
;i2c configuration
;-------------------------------------------------------------------------------
[twi0_para]
twi0_used = 1
twi0_scl = port:PB0<2><default><default><default>
twi0_sda = port:PB1<2><default><default><default>

[twi1_para]
twi1_used = 1
twi1_scl = port:PB18<2><default><default><default>
twi1_sda = port:PB19<2><default><default><default>

[twi2_para]
twi2_used = 1
twi2_scl = port:PB20<2><default><default><default>
twi2_sda = port:PB21<2><default><default><default>

;-------------------------------------------------------------------------------
;uart configuration
;uart_type --- 2 (2 wire), 4 (4 wire), 8 (8 wire, full function)
;-------------------------------------------------------------------------------
[uart_para0]
uart_used = 1
uart_port = 0
uart_type = 2
uart_tx = port:PB22<2><1><default><default>
uart_rx = port:PB23<2><1><default><default>

[uart_para1]
uart_used = 0
uart_port = 1
uart_type = 8
uart_tx = port:PA10<4><1><default><default>
uart_rx = port:PA11<4><1><default><default>
uart_rts = port:PA12<4><1><default><default>
uart_cts = port:PA13<4><1><default><default>
uart_dtr = port:PA14<4><1><default><default>
uart_dsr = port:PA15<4><1><default><default>
uart_dcd = port:PA16<4><1><default><default>
uart_ring = port:PA17<4><1><default><default>

[uart_para2]
uart_used = 0
uart_port = 2
uart_type = 4
uart_tx = port:PI18<3><1><default><default>
uart_rx = port:PI19<3><1><default><default>
uart_rts = port:PI16<3><1><default><default>
uart_cts = port:PI17<3><1><default><default>

[uart_para3]
uart_used = 0
uart_port = 3
uart_type = 4
uart_tx = port:PH00<4><1><default><default>
uart_rx = port:PH01<4><1><default><default>
uart_rts = port:PH02<4><1><default><default>
uart_cts = port:PH03<4><1><default><default>

[uart_para4]
uart_used = 0
uart_port = 4
uart_type = 2
uart_tx = port:PH04<4><1><default><default>
uart_rx = port:PH05<4><1><default><default>

[uart_para5]
uart_used = 0
uart_port = 5
uart_type = 2
uart_tx = port:PH06<4><1><default><default>
uart_rx = port:PH07<4><1><default><default>

[uart_para6]
uart_used = 0
uart_port = 6
uart_type = 2
uart_tx = port:PA12<3><1><default><default>
uart_rx = port:PA13<3><1><default><default>

[uart_para7]
uart_used = 0
uart_port = 7
uart_type = 2
uart_tx = port:PA14<3><1><default><default>
uart_rx = port:PA15<3><1><default><default>

;-------------------------------------------------------------------------------
;spi configuration
;-------------------------------------------------------------------------------
[spi0_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PI10<2><default><default><default>
spi_cs1 = port:PI14<2><default><default><default>
spi_sclk = port:PI11<2><default><default><default>
spi_mosi = port:PI12<2><default><default><default>
spi_miso = port:PI13<2><default><default><default>

[spi1_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA00<3><default><default><default>
spi_cs1 = port:PA04<3><default><default><default>
spi_sclk = port:PA01<3><default><default><default>
spi_mosi = port:PA02<3><default><default><default>
spi_miso = port:PA03<3><default><default><default>

[spi2_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PC19<3><default><default><default>
spi_cs1 = port:PB13<2><default><default><default>
spi_sclk = port:PC20<3><default><default><default>
spi_mosi = port:PC21<3><default><default><default>
spi_miso = port:PC22<3><default><default><default>

[spi3_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA05<3><default><default><default>
spi_cs1 = port:PA09<3><default><default><default>
spi_sclk = port:PA06<3><default><default><default>
spi_mosi = port:PA07<3><default><default><default>
spi_miso = port:PA08<3><default><default><default>

;-------------------------------------------------------------------------------
;capacitor tp configuration
;external int function
;wakeup output function
;notice:
; tp_int_port & tp_io_port use the same port

;ctp_cob_gslX680 4:INET_PG 402:GG_PB70A8490 7: Topsun OGS
;-------------------------------------------------------------------------------
[ctp_para]
ctp_used = 1
ctp_twi_id = 2
ctp_twi_addr = 0x40
ctp_screen_max_x = 768
ctp_screen_max_y = 1024
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 0

ctp_cob_gslX680 = 7901

ctp_int_port = port:PH21<6><default><default><default>
ctp_wakeup = port:PB13<1><default><default><1>
ctp_power_en = port:PH22<1><default><default><0>
;-------------------------------------------------------------------------------
;touch key configuration
;-------------------------------------------------------------------------------
[tkey_para]
tkey_used = 0
tkey_twi_id = 2
tkey_twi_addr = 0x62
tkey_int = port:PI13<6><default><default><default>

;-------------------------------------------------------------------------------
;motor configuration
;-------------------------------------------------------------------------------
[motor_para]
motor_used = 1
motor_shake = port:PH23<1><default><default><0>

;-------------------------------------------------------------------------------
;nand flash configuration
;-------------------------------------------------------------------------------
[nand_para]
nand_used = 1
nand_we = port:PC00<2><default><default><default>
nand_ale = port:PC01<2><default><default><default>
nand_cle = port:PC02<2><default><default><default>
nand_ce1 = port:PC03<2><default><default><default>
nand_ce0 = port:PC04<2><default><default><default>
nand_nre = port:PC05<2><default><default><default>
nand_rb0 = port:PC06<2><default><default><default>
nand_rb1 = port:PC07<2><default><default><default>
nand_d0 = port:PC08<2><default><default><default>
nand_d1 = port:PC09<2><default><default><default>
nand_d2 = port:PC10<2><default><default><default>
nand_d3 = port:PC11<2><default><default><default>
nand_d4 = port:PC12<2><default><default><default>
nand_d5 = port:PC13<2><default><default><default>
nand_d6 = port:PC14<2><default><default><default>
nand_d7 = port:PC15<2><default><default><default>
nand_wp = port:PC16<2><default><default><default>
nand_ce2 = port:PC17<2><default><default><default>
nand_ce3 = port:PC18<2><default><default><default>
nand_ce4 =
nand_ce5 =
nand_ce6 =
nand_ce7 =
nand_spi = port:PC23<3><default><default><default>
nand_ndqs = port:PC24<2><default><default><default>
good_block_ratio = 0

;-------------------------------------------------------------------------------
;disp init configuration
;
;disp_mode (0:screen0<screen0,fb0> 1:screen1<screen1,fb0> 2:two_diff_screen_diff_contents<screen0,screen1,fb0,fb1>
; 3:two_same_screen_diff_contets<screen0,screen1,fb0> 4:two_diff_screen_same_contents<screen0,screen1,fb0>)
;screenx_output_type (0:none; 1:lcd; 2:tv; 3:hdmi; 4:vga)
;screenx_output_mode (used for tv/hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50 5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60 11:pal 14:ntsc)
;screenx_output_mode (used for vga output, 0:1680*1050 1:1440*900 2:1360*768 3:1280*1024 4:1024*768 5:800*600 6:640*480 10:1920*1080 11:1280*720)
;fbx format (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)
;fbx pixel sequence (0:ARGB 1:BGRA 2:ABGR 3:RGBA) --- 0 for linux, 2 for android
;lcd0_bright (lcd0 init bright,the range:[0,256],default:197
;lcd1_bright (lcd1 init bright,the range:[0,256],default:197
;-------------------------------------------------------------------------------
[disp_init]
disp_init_enable = 1
disp_mode = 0

screen0_output_type = 1
screen0_output_mode = 4

screen1_output_type = 1
screen1_output_mode = 4

fb0_framebuffer_num = 2
fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0
fb0_width = 0
fb0_height = 0

fb1_framebuffer_num = 2
fb1_format = 10
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 0
fb1_width = 0
fb1_height = 0

lcd0_backlight = 197
lcd1_backlight = 197

lcd0_bright = 50
lcd0_contrast = 50
lcd0_saturation = 57
lcd0_hue = 50

lcd1_bright = 50
lcd1_contrast = 50
lcd1_saturation = 57
lcd1_hue = 50

;-------------------------------------------------------------------------------
;lcd0 configuration

;lcd_dclk_freq: in MHZ unit
;lcd_pwm_freq: in HZ unit
;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:hv2dsi
;lcd_width: width of lcd in mm
;lcd_height: height of lcd in mm
lcd_width = 120
lcd_height = 160
;lcd_hbp: hsync back porch
;lcd_ht: hsync total cycle
;lcd_vbp: vsync back porch
;lcd_vt: vysnc total cycle *2
;lcd_hv_if: 0:hv parallel 1:hv serial
;lcd_hv_smode: 0:RGB888 1:CCIR656
;lcd_hv_s888_if serial RGB format
;lcd_hv_syuv_if: serial YUV format
;lcd_hspw: hsync plus width
;lcd_vspw: vysnc plus width
;lcd_lvds_ch: 0:single channel; 1:dual channel
;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
;lcd_lvds_bitwidth: 0:24bit; 1:18bit
;lcd_lvds_io_cross: 0:normal; 1:pn cross
;lcd_cpu_if: 0:18bit; 1:16bit mode0; 2:16bit mode1; 3:16bit mode2; 4:16bit mode3; 5:9bit; 6:8bit 256K; 7:8bit 65K
;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither

;lcd_gpio_0: SCL
;lcd_gpio_1 SDA
;-------------------------------------------------------------------------------
[lcd0_para]
lcd_used = 1
lcd_value = 1
lcd_x = 768
lcd_y = 1024
lcd_dclk_freq = 70
lcd_pwm_not_used = 0
lcd_pwm_ch = 0
lcd_pwm_freq = 10000
lcd_pwm_pol = 1
lcd_pwm_max_limit = 255
lcd_if = 3
lcd_hbp = 80
lcd_ht = 928
lcd_vbp = 23
lcd_vt = 2130
lcd_vspw = 10
lcd_hspw = 10
lcd_hv_if = 0
lcd_hv_smode = 0
lcd_hv_s888_if = 0
lcd_hv_syuv_if = 0
lcd_lvds_ch = 0
lcd_lvds_mode = 0
lcd_lvds_bitwidth = 0
lcd_lvds_io_cross = 0
lcd_cpu_if = 0
lcd_frm = 1
lcd_io_cfg0 = 0x00000000
lcd_gamma_correction_en = 0
lcd_gamma_tbl_0 = 0x00000000
lcd_gamma_tbl_1 = 0x00010101
lcd_gamma_tbl_255 = 0x00ffffff

lcd_bl_en_used = 1
lcd_bl_en = port:PH07<1><0><default><1>

lcd_power_used = 1
lcd_power = port:PH08<1><2><default><1>

lcd_pwm_used = 1
lcd_pwm = port:PB02<2><0><default><default>
;inet for lcd reset
lcd_reset = port:PH14<1><0><default><1>

lcdd0 = port:PD00<3><0><3><default>
lcdd1 = port:PD01<3><0><3><default>
lcdd2 = port:PD02<3><0><3><default>
lcdd3 = port:PD03<3><0><3><default>
lcdd4 = port:PD04<3><0><3><default>
lcdd5 = port:PD05<3><0><3><default>
lcdd6 = port:PD06<3><0><3><default>
lcdd7 = port:PD07<3><0><3><default>
lcdd8 = port:PD08<3><0><3><default>
lcdd9 = port:PD09<3><0><3><default>

;----------------------------------------------------------------------------------
;lcd1 configuration

;lcd_dclk_freq: in MHZ unit
;lcd_pwm_freq: in HZ unit
;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds
;lcd_hbp: hsync back porch
;lcd_ht: hsync total cycle
;lcd_vbp: vsync back porch
;lcd_vt: vysnc total cycle *2
;lcd_hv_if: 0:hv parallel 1:hv serial
;lcd_hv_smode: 0:RGB888 1:CCIR656
;lcd_hv_s888_if serial RGB format
;lcd_hv_syuv_if: serial YUV format
;lcd_hspw: hsync plus width
;lcd_vspw: vysnc plus width
;lcd_lvds_ch: 0:single channel; 1:dual channel
;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
;lcd_lvds_bitwidth: 0:24bit; 1:18bit
;lcd_lvds_io_cross: 0:normal; 1:pn cross
;lcd_cpu_if: 0:18bit; 1:16bit mode0; 2:16bit mode1; 3:16bit mode2; 4:16bit mode3; 5:9bit; 6:8bit 256K; 7:8bit 65K
;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither

;lcd_gpio_0: SCL
;lcd_gpio_1 SDA
;----------------------------------------------------------------------------------
[lcd1_para]
lcd_used = 0

lcd_x = 0
lcd_y = 0
lcd_dclk_freq = 0
lcd_pwm_not_used = 0
lcd_pwm_ch = 1
lcd_pwm_freq = 0
lcd_pwm_pol = 0
lcd_if = 0
lcd_hbp = 0
lcd_ht = 0
lcd_vbp = 0
lcd_vt = 0
lcd_vspw = 0
lcd_hspw = 0
lcd_hv_if = 0
lcd_hv_smode = 0
lcd_hv_s888_if = 0
lcd_hv_syuv_if = 0
lcd_lvds_ch = 0
lcd_lvds_mode = 0
lcd_lvds_bitwidth = 0
lcd_lvds_io_cross = 0
lcd_cpu_if = 0
lcd_frm = 0
lcd_io_cfg0 = 0
lcd_gamma_correction_en = 0
lcd_gamma_tbl_0 = 0x00000000
lcd_gamma_tbl_1 = 0x00010101
lcd_gamma_tbl_255 = 0x00ffffff

lcd_bl_en_used = 0
lcd_bl_en =

lcd_power_used = 0
lcd_power =

lcd_pwm_used = 1
lcd_pwm = port:PI03<2><0><default><default>

lcd_gpio_0 =
lcd_gpio_1 =
lcd_gpio_2 =
lcd_gpio_3 =

lcdd0 = port:PH00<2><0><default><default>
lcdd1 = port:PH01<2><0><default><default>
lcdd2 = port:PH02<2><0><default><default>
lcdd3 = port:PH03<2><0><default><default>
lcdd4 = port:PH04<2><0><default><default>
lcdd5 = port:PH05<2><0><default><default>
lcdd6 = port:PH06<2><0><default><default>
lcdd7 = port:PH07<2><0><default><default>
lcdd8 = port:PH08<2><0><default><default>
lcdd9 = port:PH09<2><0><default><default>
lcdd10 = port:PH10<2><0><default><default>
lcdd11 = port:PH11<2><0><default><default>
lcdd12 = port:PH12<2><0><default><default>
lcdd13 = port:PH13<2><0><default><default>
lcdd14 = port:PH14<2><0><default><default>
lcdd15 = port:PH15<2><0><default><default>
lcdd16 = port:PH16<2><0><default><default>
lcdd17 = port:PH17<2><0><default><default>
lcdd18 = port:PH18<2><0><default><default>
lcdd19 = port:PH19<2><0><default><default>
lcdd20 = port:PH20<2><0><default><default>
lcdd21 = port:PH21<2><0><default><default>
lcdd22 = port:PH22<2><0><default><default>
lcdd23 = port:PH23<2><0><default><default>
lcdclk = port:PH24<2><0><default><default>
lcdde = port:PH25<2><0><default><default>
lcdhsync = port:PH26<2><0><default><default>
lcdvsync = port:PH27<2><0><default><default>

;-------------------------------------------------------------------------------
;tv out dac configuration
;dacx_src: 0:composite; 1:luma; 2:chroma; 4:Y; 5:Pb; 6: Pr; 7:none
;-------------------------------------------------------------------------------
[tv_out_dac_para]
dac_used = 1
dac0_src = 4
dac1_src = 5
dac2_src = 6
dac3_src = 0

;----------------------------------------------------------------------------------
;hdmi configuration
;----------------------------------------------------------------------------------
[hdmi_para]
hdmi_used = 1


[camera_list_para]
camera_list_para_used = 1
ov7670 = 0
gc0308 = 1
gt2005 = 1
gc2035 = 1
hi704 = 0
sp0838 = 0
mt9m112 = 0
mt9m113 = 0
ov2655 = 0
hi253 = 0
gc0307 = 0
mt9d112 = 0
ov5640 = 1
gc2015 = 1
ov2643 = 0
gc0328 = 1
gc0329 = 1
gc0309 = 1
tvp5150 = 0
s5k4ec = 0
ov5650_mv9335 = 0
siv121d = 0
sp2518 = 1
sp0718 = 1
hm2057 = 1

;--------------------------------------------------------------------------------
;csi gpio configuration
;csi_if: 0:hv_8bit 1:hv_16bit 2:hv_24bit 3:bt656 1ch 4:bt656 2ch 5:bt656 4ch
;csi_mode: 0:sample one csi to one buffer 1:sample two csi to one buffer
;csi_dev_qty: The quantity of devices linked to csi interface
;csi_vflip: flip in vertical direction 0:disable 1:enable
;csi_hflip: flip in horizontal direction 0:disable 1:enable
;csi_stby_mode: 0:not shut down power at standby 1:shut down power at standby
;csi_iovdd: camera module io power , pmu power supply
;csi_avdd: camera module analog power , pmu power supply
;csi_dvdd: camera module core power , pmu power supply
;pmu_ldo3: fill "axp20_pll"
;pmu_ldo4: fill "axp20_hdmi"
;fill "" when not using any pmu power supply
;csi_flash_pol: the active polority of the flash light IO 0:low active 1:high active
;--------------------------------------------------------------------------------

[csi0_para]
csi_used = 1

csi_dev_qty = 2
csi_stby_mode = 0
csi_mname = "gc0308"
csi_twi_id = 1
csi_twi_addr = 0x42
csi_if = 0
csi_vflip = 1
csi_hflip = 1
csi_iovdd = "axp20_hdmi"
csi_avdd = "axp20_pll"
csi_dvdd = ""
csi_vol_iovdd = 2800
csi_vol_dvdd = 2800
csi_vol_avdd =
csi_flash_pol = 0
csi_facing = 0

csi_mname_b = "gc2035"
csi_twi_id_b = 1
csi_twi_addr_b = 0x78
csi_if_b = 0
csi_vflip_b = 1
csi_hflip_b = 1
csi_iovdd_b = "axp20_hdmi"
csi_avdd_b = "axp20_pll"
csi_dvdd_b = ""
csi_vol_iovdd_b = 2800
csi_vol_avdd_b = 2800
csi_vol_dvdd_b =
csi_flash_pol_b = 0
csi_facing_b = 1

csi_pck = port:PE00<3><default><default><default>
csi_ck = port:PE01<3><default><default><default>
csi_hsync = port:PE02<3><default><default><default>
csi_vsync = port:PE03<3><default><default><default>
csi_d0 = port:PE04<3><default><default><default>
csi_d1 = port:PE05<3><default><default><default>
csi_d2 = port:PE06<3><default><default><default>
csi_d3 = port:PE07<3><default><default><default>
csi_d4 = port:PE08<3><default><default><default>
csi_d5 = port:PE09<3><default><default><default>
csi_d6 = port:PE10<3><default><default><default>
csi_d7 = port:PE11<3><default><default><default>
csi_reset = port:PH13<1><default><default><0>
csi_power_en = port:PH16<1><default><default><0>
csi_stby = port:PH18<1><default><default><1>
csi_flash =
csi_af_en =
csi_reset_b = port:PH13<1><default><default><0>
csi_power_en_b = port:PH16<1><default><default><0>
csi_stby_b = port:PH19<1><default><default><1>
csi_flash_b =
csi_af_en_b =

[csi1_para]
csi_used = 0

csi_dev_qty = 1
csi_stby_mode = 0
csi_mname = "gc0308"
csi_if = 0
csi_iovdd = "axp20_pll"
csi_avdd = ""
csi_dvdd = ""
csi_vol_iovdd = 2800
csi_vol_dvdd =
csi_vol_avdd =
csi_vflip = 0
csi_hflip = 0
csi_flash_pol = 0
csi_facing = 1

csi_twi_id = 1
csi_twi_addr = 0x42
csi_pck = port:PG00<3><default><default><default>
csi_ck = port:PG01<3><default><default><default>
csi_hsync = port:PG02<3><default><default><default>
csi_vsync = port:PG03<3><default><default><default>
csi_d0 = port:PG04<3><default><default><default>
csi_d1 = port:PG05<3><default><default><default>
csi_d2 = port:PG06<3><default><default><default>
csi_d3 = port:PG07<3><default><default><default>
csi_d4 = port:PG08<3><default><default><default>
csi_d5 = port:PG09<3><default><default><default>
csi_d6 = port:PG10<3><default><default><default>
csi_d7 = port:PG11<3><default><default><default>
csi_reset = port:PH13<1><default><default><0>
csi_power_en = port:PH16<1><default><default><0>
csi_stby = port:PH19<1><default><default><0>

;-------------------------------------------------------------------------------
;tv configuration
;
;-------------------------------------------------------------------------------
[tvout_para]
tvout_used = 0
tvout_channel_num = 1

[tvin_para]
tvin_used = 0
tvin_channel_num = 4


;-------------------------------------------------------------------------------
;sata configuration
;
;-------------------------------------------------------------------------------
[sata_para]
sata_used = 0
sata_power_en =


;-------------------------------------------------------------------------------
; SDMMC PINS MAPPING
; ------------------------------------------------------------------------------
; Config Guide
; sdc_used: 1-enable card, 0-disable card
; sdc_detmode: card detect mode
; 1-detect card by gpio polling
; 2-detect card by gpio irq(must use IO with irq function)
; 3-no detect, always in for boot card
; 4-manually insert and remove by /proc/driver/sunxi-mmc.x/insert
; sdc_buswidth: card bus width, 1-1bit, 4-4bit, 8-8bit
; sdc_use_wp: 1-with write protect IO, 0-no write protect IO
; sdc_isio: for sdio card
; sdc_regulator: power control.
; other: GPIO Mapping configuration
; ------------------------------------------------------------------------------
; Note:
; 1 if detmode=2, sdc_det's config=6
; else if detmode=1, sdc_det's config=0
; else sdc_det IO is not necessary
; 2 if the customer wants to support UHS-I and HS200 features, he must provide
; an independent power supply for the card. This is only used in platforms
; that supports SD3.0 cards and eMMC4.4+ flashes
;-------------------------------------------------------------------------------
[mmc0_para]
sdc_used = 1
sdc_detmode = 1
sdc_buswidth = 4
sdc_clk = port:PF02<2><1><2><default>
sdc_cmd = port:PF03<2><1><2><default>
sdc_d0 = port:PF01<2><1><2><default>
sdc_d1 = port:PF00<2><1><2><default>
sdc_d2 = port:PF05<2><1><2><default>
sdc_d3 = port:PF04<2><1><2><default>
sdc_det = port:PH1<0><1><default><default>
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc1_para]
sdc_used = 0
sdc_detmode = 4
sdc_buswidth = 4
sdc_clk = port:PG00<2><1><2><default>
sdc_cmd = port:PG01<2><1><2><default>
sdc_d0 = port:PG02<2><1><2><default>
sdc_d1 = port:PG03<2><1><2><default>
sdc_d2 = port:PG04<2><1><2><default>
sdc_d3 = port:PG05<2><1><2><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc2_para]
sdc_used = 0
sdc_detmode = 3
sdc_buswidth = 4
sdc_cmd = port:PC06<3><1><2><default>
sdc_clk = port:PC07<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc3_para]
sdc_used = 0
sdc_detmode = 4
sdc_buswidth = 4
sdc_cmd = port:PI04<2><1><2><default>
sdc_clk = port:PI05<2><1><2><default>
sdc_d0 = port:PI06<2><1><2><default>
sdc_d1 = port:PI07<2><1><2><default>
sdc_d2 = port:PI08<2><1><2><default>
sdc_d3 = port:PI09<2><1><2><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 1
sdc_regulator = "none"

; ------------------------------------------------------------------------------
; memory stick configuration
;-------------------------------------------------------------------------------
[ms_para]
ms_used = 0
ms_bs = port:PH06<5><default><default><default>
ms_clk = port:PH07<5><default><default><default>
ms_d0 = port:PH08<5><default><default><default>
ms_d1 = port:PH09<5><default><default><default>
ms_d2 = port:PH10<5><default><default><default>
ms_d3 = port:PH11<5><default><default><default>
ms_det =

; ------------------------------------------------------------------------------
; sim card configuration
;-------------------------------------------------------------------------------
[smc_para]
smc_used = 0
smc_rst = port:PH13<5><default><default><default>
smc_vppen = port:PH14<5><default><default><default>
smc_vppp = port:PH15<5><default><default><default>
smc_det = port:PH16<5><default><default><default>
smc_vccen = port:PH17<5><default><default><default>
smc_sck = port:PH18<5><default><default><default>
smc_sda = port:PH19<5><default><default><default>

;-------------------------------------------------------------------------------
;ps2 configuration
;-------------------------------------------------------------------------------
[ps2_0_para]
ps2_used = 0
ps2_scl = port:PI20<2><1><default><default>
ps2_sda = port:PI21<2><1><default><default>

[ps2_1_para]
ps2_used = 0
ps2_scl = port:PI14<3><1><default><default>
ps2_sda = port:PI15<3><1><default><default>

;-------------------------------------------------------------------------------
;can bus configuration
;-------------------------------------------------------------------------------
[can_para]
can_used = 0
can_tx = port:PA16<3><default><default><default>
can_rx = port:PA17<3><default><default><default>

;-------------------------------------------------------------------------------
;key matrix
;-------------------------------------------------------------------------------
[keypad_para]
kp_used = 0
kp_in_size = 8
kp_out_size = 8
kp_in0 = port:PH08<4><1><default><default>
kp_in1 = port:PH09<4><1><default><default>
kp_in2 = port:PH10<4><1><default><default>
kp_in3 = port:PH11<4><1><default><default>
kp_in4 = port:PH14<4><1><default><default>
kp_in5 = port:PH15<4><1><default><default>
kp_in6 = port:PH16<4><1><default><default>
kp_in7 = port:PH17<4><1><default><default>
kp_out0 = port:PH18<4><1><default><default>
kp_out1 = port:PH19<4><1><default><default>
kp_out2 = port:PH22<4><1><default><default>
kp_out3 = port:PH23<4><1><default><default>
kp_out4 = port:PH24<4><1><default><default>
kp_out5 = port:PH25<4><1><default><default>
kp_out6 = port:PH26<4><1><default><default>
kp_out7 = port:PH27<4><1><default><default>


;-------------------------------------------------------------------------------
;[usbc0]:控制器0的配置。
;usb_used:USB使能标志。置1,表示系统中USB模块可用,置0,则表示系统USB禁用。
;usb_port_type:USB端口的使用情况。 0:device only;1:host only;2:OTG
;usb_detect_type:USB端口的检查方式。0:不做检测;1:vbus/id检查;2:id/dpdm检查
;usb_id_gpio:USB ID pin脚配置。具体请参考gpio配置说明。
;usb_det_vbus_gpio:USB DET_VBUS pin脚配置。具体请参考gpio配置说明。
;usb_drv_vbus_gpio:USB DRY_VBUS pin脚配置。具体请参考gpio配置说明。
;usb_det_vbus_gpio: "axp_ctrl",表示axp 提供
;usb_restrict_gpio usb限流控制pin
;usb_restric_flag: usb限流标置
;-------------------------------------------------------------------------------
;-------------------------------------------------------------------------------
;--- USB0控制标志
;-------------------------------------------------------------------------------
[usbc0]
usb_used = 1
usb_port_type = 2
usb_detect_type = 1
usb_id_gpio = port:PH04<0><1><default><default>
usb_det_vbus_gpio = "axp_ctrl"
usb_drv_vbus_gpio = port:PB09<1><0><default><0>
usb_ac_enable_gpio = port:PH05<1><0><default><0>
usb_restrict_gpio = 0
usb_host_init_state = 0
usb_restric_flag = 0
usb_restric_voltage = 3550000
usb_restric_capacity= 5

;-------------------------------------------------------------------------------
;--- USB1控制标志
;------------------------------------------------------------------------------
[usbc1]
usb_used = 0
usb_port_type = 1
usb_detect_type = 0
usb_drv_vbus_gpio = port:PH06<1><0><default><0>
usb_restrict_gpio =
usb_host_init_state = 1
usb_restric_flag = 0

;------------------------------------------------------------------------------
;--- USB2控制标志
;------------------------------------------------------------------------------
[usbc2]
usb_used = 1
usb_port_type = 1
usb_detect_type = 0
usb_drv_vbus_gpio = port:PH03<1><0><default><0>
usb_restrict_gpio =

usb_host_init_state = 0
usb_restric_flag = 0

;--------------------------------
;--- USB Device
;--------------------------------
[usb_feature]
vendor_id = 0x2922
mass_storage_id = 0x300E
adb_id = 0x300C

manufacturer_name = "USB Developer"
product_name = "Android"
serial_number = "20080411"

[msc_feature]
vendor_name = "USB 2.0"
product_name = "USB Flash Driver"
release = 100
luns = 2

;-------------------------------------------------------------------------------
; G sensor configuration
; gs_twi_id --- TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2)
;-------------------------------------------------------------------------------
[gsensor_para]
gsensor_used = 1
gsensor_twi_id = 1
gsensor_int1 =
gsensor_int2 =

;--------------------------------------------------------------------------------
; G sensor automatic detection configuration
;gsensor_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[gsensor_list_para]
gsensor_det_used = 0
bma250 = 1
mma8452 = 1
mma7660 = 1
mma865x = 1
afa750 = 1
lis3de_acc = 1
lis3dh_acc = 1
kxtik = 1
dmard10 = 0
dmard06 = 1
mxc622x = 1
fxos8700 = 1
lsm303d = 1

;-------------------------------------------------------------------------------
; gps gpio configuration
; gps_spi_id --- the index of SPI controller. 0: SPI0, 1: SPI1, 2: SPI2, 15: no SPI used
; gps_spi_cs_num --- the chip select number of SPI controller. 0: SPI CS0, 1: SPI CS1
; gps_lradc --- the lradc number for GPS used. 0 and 1 is valid, set 2 if not use lradc
;-------------------------------------------------------------------------------
[gps_para]
gps_used = 0
gps_spi_id = 2
gps_spi_cs_num = 0
gps_lradc = 1
gps_clk = port:PI00<2><default><default><default>
gps_sign = port:PI01<2><default><default><default>
gps_mag = port:PI02<2><default><default><default>
gps_vcc_en = port:PC22<1><default><default><0>
gps_osc_en = port:PI14<1><default><default><0>
gps_rx_en = port:PI15<1><default><default><0>

;--------------------------------------------------------------------------------
;wifi configuration
;wifi_sdc_id --- 0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3
;wifi_usbc_id --- 0- USB0, 1- USB1, 2- USB2
;wifi_usbc_type -- 1- EHCI(speed 2.0), 2- OHCI(speed 1.0)
;wifi_mod_sel --- 0- none, 1- bcm40181, 2- bcm40183(wifi+bt),
; 3 - rtl8723as(wifi+bt), 4- rtl8189es(SM89E00),
; 5 - rtl8192cu, 6 - rtl8188eu, 7 - ap6210
;--------------------------------------------------------------------------------
[wifi_para]
wifi_used = 1
wifi_sdc_id = 3
wifi_usbc_id = 2
wifi_usbc_type = 1
wifi_mod_sel = 8
wifi_power = ""

; 1 - bcm40181 sdio wifi gpio config
;bcm40181_shdn = port:PH09<1><default><default><0>
;bcm40181_host_wake = port:PH10<0><default><default><0>

; 2 - bcm40183 sdio wifi gpio config
;bcm40183_wl_regon = port:PH09<1><default><default><0>
;bcm40183_wl_host_wake = port:PH10<0><default><default><0>
;bcm40183_bt_rst = port:PB05<1><default><default><0>
;bcm40183_bt_regon = port:PB05<1><default><default><0>
;bcm40183_bt_wake = port:PI20<1><default><default><0>
;bcm40183_bt_host_wake = port:PI21<0><default><default><0>

; 3 - rtl8723as sdio wifi + bt gpio config
rtk_rtl8723as_wl_dis = port:PH09<1><default><default><0>
rtk_rtl8723as_bt_dis = port:PB05<1><default><default><0>
rtk_rtl8723as_wl_host_wake = port:PH10<0><default><default><0>
rtk_rtl8723as_bt_host_wake = port:PI21<0><default><default><0>

; 4 - rtl8189es sdio wifi gpio config
;rtl8189es_shdn = port:PH09<1><default><default><0>
;rtl8189es_wakeup = port:PH10<1><default><default><1>
; 5 - rtl8192cu usb wifi
; 6 - rtl8188eu usb wifi
; 7 - ap6210 sdio wifi + bt gpio config
ap6xxx_wl_regon = port:PH09<1><default><default><0>
ap6xxx_wl_host_wake = port:PH10<0><default><default><0>
ap6xxx_bt_regon = port:PB05<1><default><default><0>
ap6xxx_bt_wake = port:PI20<1><default><default><0>
ap6xxx_bt_host_wake = port:PI21<0><default><default><0>

;-------------------------------------------------------------------------------
;3G configuration
;-------------------------------------------------------------------------------
[3g_para]
3g_used = 0
3g_usbc_num = 2
3g_uart_num = 0
3g_pwr =
3g_wakeup =
3g_int =

;-------------------------------------------------------------------------------
;gyroscope
;-------------------------------------------------------------------------------
[gy_para]
gy_used = 0
gy_twi_id = 1
gy_twi_addr = 0x00
gy_int1 = port:PH18<6><1><default><default>
gy_int2 = port:PH19<6><1><default><default>

;-------------------------------------------------------------------------------
;light sensor
;-------------------------------------------------------------------------------
[ls_para]
ls_used = 0
ls_twi_id = 1
ls_twi_addr = 0x00
ls_int = port:PH20<6><1><default><default>

;-------------------------------------------------------------------------------
;compass
;-------------------------------------------------------------------------------
[compass_para]
compass_used = 0
compass_twi_id = 1
compass_twi_addr = 0x00
compass_int = port:PI13<6><1><default><default>

;-------------------------------------------------------------------------------
;blue tooth
;bt_used ---- blue tooth used (0- no used, 1- used)
;bt_uard_id ---- uart index
;-------------------------------------------------------------------------------
[bt_para]
bt_used = 0
bt_uart_id = 2
bt_wakeup = port:PI20<1><default><default><default>
bt_gpio = port:PI21<1><default><default><default>
bt_rst = port:PB05<1><default><default><default>

;--------------------------------------------------------------------------------
;i2s_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;i2s_select:0 is pcm.1 is i2s
;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
;sample_resolution :16bits/20bits/24bits
;word_select_size :16bits/20bits/24bits/32bits
;pcm_sync_period :16/32/64/128/256
;msb_lsb_first :0: msb first; 1: lsb first
;sign_extend :0: zero pending; 1: sign extend
;slot_index :slot index: 0: the 1st slot - 3: the 4th slot
;slot_width :8 bit width / 16 bit width
;frame_width :0: long frame = 2 clock width; 1: short frame
;tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;--------------------------------------------------------------------------------
[i2s_para]
i2s_used = 0
i2s_channel = 2
i2s_master = 4
i2s_select = 1
audio_format = 1
signal_inversion = 1
over_sample_rate = 256
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 256
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 0
rx_data_mode = 0
i2s_mclk = port:PB05<2><1><default><default>
i2s_bclk = port:PB06<2><1><default><default>
i2s_lrclk = port:PB07<2><1><default><default>
i2s_dout0 = port:PB08<2><1><default><default>
i2s_dout1 =
i2s_dout2 =
i2s_dout3 =
i2s_din = port:PB12<2><1><default><default>


;--------------------------------------------------------------------------------
;pcm_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;pcm_select:1 is pcm.0 is i2s
;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
;sample_resolution :16bits/20bits/24bits
;word_select_size :16bits/20bits/24bits/32bits
;pcm_sync_period :16/32/64/128/256
;msb_lsb_first :0: msb first; 1: lsb first
;sign_extend :0: zero pending; 1: sign extend
;slot_index :slot index: 0: the 1st slot - 3: the 4th slot
;slot_width :8 bit width / 16 bit width
;frame_width :0: long frame = 2 clock width; 1: short frame
;tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;--------------------------------------------------------------------------------
[pcm_para]
pcm_used = 0
pcm_channel = 2
pcm_master = 4
pcm_select = 1
audio_format = 4
signal_inversion = 1
over_sample_rate = 256
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 256
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 0
rx_data_mode = 0
pcm_mclk = port:PA09<6><1><default><default>
pcm_bclk = port:PA14<6><1><default><default>
pcm_lrclk = port:PA15<6><1><default><default>
pcm_dout0 = port:PA16<6><1><default><default>
pcm_dout1 =
pcm_dout2 =
pcm_dout3 =
pcm_din = port:PA17<6><1><default><default>

[spdif_para]
spdif_used = 0
spdif_mclk =
spdif_dout = port:PB13<4><1><default><default>
spdif_din =

[audio_para]
audio_used = 1
audio_pa_ctrl = port:PH15<1><default><default><0>

[switch_para]
switch_used = 1

;-------------------------------------------------------------------------------
;ir --- infra remote configuration
;-------------------------------------------------------------------------------
[ir_para]
ir_used = 0
ir_rx = port:PB04<2><default><default><default>


;-------------------------------------------------------------------------------
;pmu_twi_addr ---slave address
;pmu_twi_id ---i2c bus number (0 TWI0, 1 TWI2, 2 TWI3)
;pmu_irq_id ---irq number (0 irq0,1 irq1,……)
;pmu_battery_rdc ---battery initial resistance,mΩ,根据实际电池内阻填写
;pmu_battery_cap ---battery capability,mAh,根据实际电池容量填写
;pmu_init_chgcur ---set initial charging current limite,mA,300/400/500/600/700/800/900/1000/1100/1200/1300/1400/1500/1600/1700/1800
;pmu_suspend_chgcur ---set suspend charging current limite,mA,300/400/500/600/700/800/900/1000/1100/1200/1300/1400/1500/1600/1700/1800
;pmu_resume_chgcur ---set resume charging current limite,mA,300/400/500/600/700/800/900/1000/1100/1200/1300/1400/1500/1600/1700/1800
;pmu_shutdown_chgcur ---set shutdown charging current limite,mA,300/400/500/600/700/800/900/1000/1100/1200/1300/1400/1500/1600/1700/1800
;pmu_init_chgvol ---set initial charing target voltage,mV,4100/4150/4200/4360
;pmu_init_chgend_rate ---set initial charing end current rate,10/15
;pmu_init_chg_enabled ---set initial charing enabled,0:关闭,1:打开
;pmu_init_adc_freq ---set initial adc frequency,Hz,25/50/100/200
;pmu_init_adc_freqc ---set initial coulomb adc coufrequency,Hz,25/50/100/200
;pmu_init_chg_pretime ---set initial pre-charging time,min,40/50/60/70
;pmu_init_chg_csttime ---set initial constance-charging time,min,360/480/600/720
;pmu_bat_para1 ---battery indication at 3.1328V
;pmu_bat_para2 ---battery indication at 3.2736V
;pmu_bat_para3 ---battery indication at 3.4144V
;pmu_bat_para4 ---battery indication at 3.5552V
;pmu_bat_para5 ---battery indication at 3.6256V
;pmu_bat_para6 ---battery indication at 3.6608V
;pmu_bat_para7 ---battery indication at 3.6960V
;pmu_bat_para8 ---battery indication at 3.7312V
;pmu_bat_para9 ---battery indication at 3.7664V
;pmu_bat_para10 ---battery indication at 3.8016V
;pmu_bat_para11 ---battery indication at 3.8368V
;pmu_bat_para12 ---battery indication at 3.8720V
;pmu_bat_para13 ---battery indication at 3.9424V
;pmu_bat_para14 ---battery indication at 4.0128V
;pmu_bat_para15 ---battery indication at 4.0832V
;pmu_bat_para16 ---battery indication at 4.1536V
;pmu_usbvol ---set usb-ac limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur ---set usb-ac limited voltage level,mA,100/500/900, 0 - not limite
;pmu_usbvol_pc ---set usb-pc limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur_pc ---set usb-pc limited voltage level,mA,100/500/900, 0 - not limite
;pmu_pwroff_vol ---set protect voltage when system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pwron_vol ---set protect voltage after system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pekoff_time ---set pek off time,ms, 4000/6000/8000/10000
;pmu_pekoff_en ---set pek off enable, 0:关闭,1:打开
;pmu_peklong_time ---set pek pek long irq time,ms,1000/1500/2000/2500
;pmu_pekon_time ---set pek on time,ms,128/1000/2000/3000
;pmu_pwrok_time ---set pmu pwrok delay time,ms,8/64
;pmu_pwrnoe_time ---set pmu n_oe power down delay time,ms,128/1000/2000/3000
;pmu_intotp_en ---set pmu power down when overtempertur enable,0:关闭,1:打开
;pmu_suspendpwroff_vol ---set pmu shutdown voltage when cpu is suspend and battery voltage is low
;pmu_batdeten ---set pmu battery detect enabled,0:关闭,1:打开
;-------------------------------------------------------------------------------
[pmu_para]
pmu_used = 1
pmu_twi_addr = 0x34
pmu_twi_id = 0
pmu_irq_id = 32
;K790@Rocky@20130701
pmu_battery_rdc = 141
pmu_battery_cap = 3949
pmu_init_chgcur = 300
pmu_earlysuspend_chgcur = 600
pmu_suspend_chgcur = 1000
pmu_resume_chgcur = 300
pmu_shutdown_chgcur = 1000
pmu_init_chgvol = 4200
pmu_init_chgend_rate = 15
pmu_init_chg_enabled = 1
pmu_init_adc_freq = 100
pmu_init_adc_freqc = 100
pmu_init_chg_pretime = 50
pmu_init_chg_csttime = 720

pmu_bat_para1 = 0
pmu_bat_para2 = 0
pmu_bat_para3 = 2
pmu_bat_para4 = 4
pmu_bat_para5 = 6
pmu_bat_para6 = 13
pmu_bat_para7 = 19
pmu_bat_para8 = 26
pmu_bat_para9 = 43
pmu_bat_para10 = 55
pmu_bat_para11 = 65
pmu_bat_para12 = 72
pmu_bat_para13 = 84
pmu_bat_para14 = 90
pmu_bat_para15 = 99
pmu_bat_para16 = 100

pmu_usbvol_limit = 1
pmu_usbcur_limit = 0
pmu_usbvol = 4000
pmu_usbcur = 0

pmu_usbvol_pc = 4400
pmu_usbcur_pc = 0

pmu_pwroff_vol = 3300
pmu_pwron_vol = 2900

pmu_pekoff_time = 6000
pmu_pekoff_en = 1
pmu_peklong_time = 1500
pmu_pekon_time = 1000
pmu_pwrok_time = 64
pmu_pwrnoe_time = 2000
pmu_intotp_en = 1

pmu_used2 = 0
pmu_adpdet = port:PH02<0><default><default><default>
pmu_init_chgcur2 = 400
pmu_earlysuspend_chgcur2 = 600
pmu_suspend_chgcur2 = 1200
pmu_resume_chgcur2 = 400
pmu_shutdown_chgcur2 = 1200

pmu_suspendpwroff_vol = 3500

pmu_batdeten = 1

[recovery_key]
key_min = 4
key_max = 40

;----------------------------------------------------------------------------------
; dvfs voltage-frequency table configuration
;
; max_freq: cpu maximum frequency, based on Hz, can not be more than 1008MHz
; min_freq: cpu minimum frequency, based on Hz, can not be less than 60MHz
;
; LV_count: count of LV_freq/LV_volt, must be < 16
;
; LV1: core vdd is 1.45v if cpu frequency is (912Mhz, 1008Mhz]
; LV2: core vdd is 1.40v if cpu frequency is (864Mhz, 912Mhz]
; LV3: core vdd is 1.30v if cpu frequency is (792Mhz, 864Mhz]
; LV4: core vdd is 1.25v if cpu frequency is (720Mhz, 792Mhz]
; LV5: core vdd is 1.20v if cpu frequency is (624Mhz, 720Mhz]
; LV6: core vdd is 1.15v if cpu frequency is (528Mhz, 624Mhz]
; LV7: core vdd is 1.10v if cpu frequency is (312Mhz, 528Mhz]
; LV8: core vdd is 1.05v if cpu frequency is ( 60Mhz, 312Mhz]
;
;----------------------------------------------------------------------------------
[dvfs_table]
max_freq = 912000000
normal_freq = 720000000
min_freq = 60000000

LV_count = 8

LV1_freq = 1008000000
LV1_volt = 1450

LV2_freq = 912000000
LV2_volt = 1400

LV3_freq = 864000000
LV3_volt = 1300

LV4_freq = 792000000
LV4_volt = 1250

LV5_freq = 720000000
LV5_volt = 1200

LV6_freq = 624000000
LV6_volt = 1150

LV7_freq = 528000000
LV7_volt = 1100

LV8_freq = 312000000
LV8_volt = 1050



буилд пропер
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=JDQ39
ro.build.version.incremental=20131217
ro.build.version.sdk=17
ro.build.version.codename=REL
ro.build.version.release=4.2.2
ro.build.date=2013? 12? 17? ??? 16:32:19 CST
ro.build.date.utc=1387419544
ro.build.type=user
ro.build.user=chengyu
ro.build.host=SzExdroid11
ro.build.tags=release-keys
ro.product.model=DSlide750
ro.product.brand=danew
ro.product.name=DSlide750
ro.product.device=Danew_DSlide750
ro.product.board=digiin
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=digiin
ro.product.locale.language=en
ro.product.locale.region=US
ro.wifi.channels=
ro.board.platform=exDroid
# ro.build.product is obsolete; use ro.product.device
ro.build.product=Danew_DSlide750
# Do not try to parse ro.build.description or .fingerprint
ro.build.description=DSlide750-user 4.2.2 JDQ39 20131217 release-keys
ro.build.fingerprint=danew/DSlide750/Danew_DSlide750:4.2.2/JDQ39/20131217:user/release-keys
ro.build.characteristics=tablet
# end build properties

#
# ADDITIONAL_BUILD_PROPERTIES
#
ro.com.android.dateformat=MM-dd-yyyy
ro.config.ringtone=Ring_Synth_04.ogg
ro.config.notification_sound=pixiedust.ogg
ro.carrier=wifi-only
ro.config.alarm_alert=Alarm_Classic.ogg
ro.kernel.android.checkjni=0
wifi.interface=wlan0
wifi.supplicant_scan_interval=15
debug.egl.hw=1
ro.display.switch=1
ro.opengles.version=131072
rild.libargs=-d/dev/ttyUSB2
rild.libpath=/system/lib/libsoftwinner-ril.so
keyguard.no_require_sim=true
persist.sys.strictmode.visual=0
persist.sys.strictmode.disable=1
hwui.render_dirty_regions=false
drm.service.enabled=true
persist.sys.usb.config=mtp,adb
ro.property.tabletUI=false
ro.udisk.lable=DSlide750
ro.property.fontScale=1.0
ro.debuggable=0
ro.adb.secure=1
persist.service.adb.enable=0
persist.inet.camera.type=gc0308_gt2005
persist.sys.language=fr
persist.sys.country=FR
ro.sf.lcd_density=160
ro.setupwizard.mode=DISABLED
ro.build.display.id=A20_Danew_DSlide750.20131217
ro.config.3ginformation.path=/system/etc/3ginfo.gz
persist.sys.timezone=Europe/Brussels
ro.inet.LauncherTransparent=false
ro.product.firmware=1.3_20130712
dalvik.vm.heapsize=384m
dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=96m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=2m
dalvik.vm.heapmaxfree=8m
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt


инит рц
import init.sun7i.usb.rc

on early-init
export EXTERNAL_STORAGE /mnt/sdcard
mkdir /mnt/sdcard 0000 system system
# for backwards compatibility
symlink /mnt/sdcard /sdcard

mkdir /mnt/extsd 0000 system system
mkdir /mnt/usbhost1 0000 system system
mkdir /databk 0700 root system

on early-fs
mount ext4 /dev/block/system /system ro wait noatime nodev barrier=0
insmod /system/vendor/modules/disp.ko
insmod /system/vendor/modules/lcd.ko
insmod /system/vendor/modules/hdmi.ko

#insmod mali driver
insmod /system/vendor/modules/ump.ko
insmod /system/vendor/modules/mali.ko
chmod 777 /dev/ump
chmod 777 /dev/mali
chown system system /sys/devices/platform/mali-utgard.0/aw_mali_freq/mali_clk
chown system system /sys/devices/platform/mali-utgard.0/aw_mali_freq/mali_vol

on fs
# try to mount /data
wait /dev/block/data
mount ext4 /dev/block/data /data wait noatime nosuid nodev barrier=0
setupfs /dev/block/data
umount /data
exec /system/bin/logwrapper /system/bin/e2fsck -y /dev/block/data
exec /system/bin/busybox mount -t ext4 -o noatime,nosuid,nodev,barrier=0,journal_checksum,noauto_da_alloc /dev/block/data /data

# try to mount /cache
mount ext4 /dev/block/cache /cache wait noatime nosuid nodev barrier=0
setupfs /dev/block/cache
umount /cache
exec /system/bin/logwrapper /system/bin/e2fsck -y /dev/block/cache
exec /system/bin/busybox mount -t ext4 -o noatime,nosuid,nodev,barrier=0,journal_checksum,noauto_da_alloc /dev/block/cache /cache

format_userdata /dev/block/UDISK DSlide750

#try to format /databk
wait /dev/block/databk
mount ext4 /dev/block/databk /databk wait noatime nosuid nodev barrier=0
setupfs /dev/block/databk
umount /databk
rmdir /databk

#try to mount /drm
wait /dev/block/nandj
mount vfat /dev/block/nandj /drm gid=1019,uid=1019,fmask=0007,dmask=0007

on boot

#gps driver
insmod /system/vendor/modules/inet_sun5i_gps.ko

#fm driver
insmod /system/vendor/modules/qndriver.ko

#insmod gsensor
insmod /system/vendor/modules/bma250.ko
insmod /system/vendor/modules/mma865x.ko

# bluetooth
# change back to bluetooth from system
chown bluetooth net_bt_stack /data/misc/bluetooth
mkdir /data/misc/bluedroid 0770 bluetooth net_bt_stack

# bluetooth MAC address programming
chown bluetooth net_bt_stack ro.bt.bdaddr_path
chown bluetooth net_bt_stack /system/etc/bluetooth
chown bluetooth net_bt_stack /data/misc/bluetooth
setprop ro.bt.bdaddr_path "/data/misc/bluetooth/bdaddr"

# USB device
insmod /system/vendor/modules/rtk_btusb.ko
chmod 0660 /dev/rtk_btusb
chown bluetooth net_bt_stack /dev/rtk_btusb

chmod 775 sys/devices/virtual/input/input2/enable

#insmod key & tp driver
insmod /system/vendor/modules/inet_ctp.ko
insmod /system/vendor/modules/ft5x06_ts.ko
insmod /system/vendor/modules/ft5x02.ko
insmod /system/vendor/modules/gslX680.ko
insmod /system/vendor/modules/sis925x.ko
insmod /system/vendor/modules/gt9xx.ko
insmod /system/vendor/modules/ct36x_ts.ko
insmod /system/vendor/modules/byd693x-ts.ko
insmod /system/vendor/modules/gt801_2plus1.ko
insmod /system/vendor/modules/ft5402.ko
insmod /system/vendor/modules/zet622x.ko
insmod /system/vendor/modules/gt82x.ko
insmod /system/vendor/modules/ssd253x-ts.ko
insmod /system/vendor/modules/gslX680OGS.ko



#insmod video driver
insmod /system/vendor/modules/cedarx.ko

#csi module
insmod /system/vendor/modules/videobuf-core.ko
insmod /system/vendor/modules/videobuf-dma-contig.ko
#insmod /system/vendor/modules/camera.ko
#insmod_modules camera
insmod /system/vendor/modules/gc0308.ko
insmod /system/vendor/modules/gc2035.ko
insmod /system/vendor/modules/sp2518.ko
insmod /system/vendor/modules/sunxi_csi0.ko

#insmod network
insmod /system/vendor/modules/usbnet.ko
insmod /system/vendor/modules/asix.ko
insmod /system/vendor/modules/qf9700.ko
insmod /system/vendor/modules/mcs7830.ko
insmod /system/vendor/modules/rtl8150.ko
insmod /system/vendor/modules/cdc_ether.ko



#insmod vibrator
insmod /system/vendor/modules/sun7i-vibrator.ko
chown system system /sys/class/timed_output/sun7i-vibrator/enable
#once everything is setup, no need to modify /
mount rootfs rootfs / ro remount
# 1. realtek wifi service
# 1.1 realtek wifi sta service
service wpa_supplicant /system/bin/wpa_supplicant -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf -e/data/misc/wifi/entropy.bin
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot

# 1.2 realtek wifi sta p2p concurrent service
service p2p_supplicant /system/bin/wpa_supplicant \
-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf -e/data/misc/wifi/entropy.bin -N \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot

# 2. broadcom wifi service
# 2.1 broadcom wifi bcm40181 bcm40183 station and softap
#service wpa_supplicant /system/bin/wpa_supplicant \
# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf -e/data/misc/wifi/entropy.bin
# class main
# socket wpa_wlan0 dgram 660 wifi wifi
# disabled
# oneshot

# 2.2 braodcom wifi sta p2p concurrent service
#service p2p_supplicant /system/bin/wpa_supplicant \
# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf -N \
# -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf -e/data/misc/wifi/entropy.bin -puse_p2p_group_interface=1
# class main
# socket wpa_wlan0 dgram 660 wifi wifi
# disabled
# oneshot

# 3. realtek rtl8723as bt hciattach
#service hciattach /system/bin/logwrapper /system/bin/hciattach -n -s 115200 /dev/ttyS1 rtk_h5 1500000
# user root
# group bluetooth net_bt_admin
# disabled
# oneshot

# 4. broadcom bcm40183 bt hciattach
#service hciattach /system/bin/hciattach -n -s 115200 /dev/ttyS1 bcm4329 1500000
# user root
# group bluetooth net_bt_admin
# disabled
# oneshot

# 5. broadcom ap6210 bt brcm_patchram_plus
#service hciattach /system/bin/brcm_patchram_plus --tosleep=200000 --no2bytes --enable_hci \
# --baudrate 1500000 --enable_lpm --patchram system/vendor/modules/bcm20710a1.hcd /dev/ttyS1
# class main
# user bluetooth
# group bluetooth net_bt_admin misc
# disabled
# oneshot





вот по A85-AMPE конфиги
на весь экран
;A33 Y3 7.85" lcd panel board application
; the difference between Y2 and Y3:
; wifi/bt dram nand
; Y2 AP6210 SKHYNIX MICRON MLC
; Y3 rtl8723bs MIRA TOSHIBA MLC
;---------------------------------------------------------------------------------------------------------
; port configuration:
; port_name = port:GPIO<mux><pull up/down><driver level><default value>
; mux: GPIO function configuration, 0-input, 1-output, 2+: special funciton for modules
; pull up/down: 1-pull up, 2-pull down
; driver level: 0,1,2,3. 2 is recommended
; default value: default output value when this IO is configured as an output IO
;---------------------------------------------------------------------------------------------------------

[product]
version = "100"
machine = "evb"

;---------------------------------------------------------------------------------------------------------
; eraseflag - 1 erase data partition, 0 - do not erase data partition
; next_work - action after burn, 0x0 by config, 0x1, normal, 0x2 reboot 0x3 ,shutdown,0x4 reupdate ,0x5 boot
;---------------------------------------------------------------------------------------------------------
[platform]
eraseflag = 1
next_work = 3

;----------------------------------------------------------------------------------
;[target] system bootup configuration
;boot_clock = CPU boot frequency, Unit: MHz
;storage_type = boot medium, 0-nand, 1-card0, 2-card2, -1(defualt)auto scan
;----------------------------------------------------------------------------------
[target]
boot_clock = 1008
storage_type = -1
burn_key = 1

;---------------------------------------------------------------------------------
; uboot key detect enable
; 当keyen_flag = 1 时,支持按键检测
; 当keyen_flag = 0 时,不支持
;---------------------------------------------------------------------------------
[key_detect_en]
keyen_flag = 1

;----------------------------------------------------------------------------------
;dcdc1_vol ---set dcdc1 voltage,mV,1600-3400,100mV/step
;dcdc2_vol ---set dcdc2 voltage,mV,600-1540,20mV/step
;dcdc3_vol ---set dcdc3 voltage,mV,600-1860,20mV/step
;dcdc4_vol ---set dcdc4 voltage,mV,600-1540,20mV/step
;dcdc5_vol ---set dcdc5 voltage,mV,1000-2550,50mV/step
;aldo2_vol ---set aldo2 voltage,mV,700-3300,100mV/step
;aldo3_vol ---set aldo3 voltage,mV,700-3300,100mV/step
;----------------------------------------------------------------------------------
[power_sply]
dcdc1_vol = 3000
dcdc2_vol = 1100
dcdc3_vol = 1200
dcdc4_vol = 0
dcdc5_vol = 1500
aldo2_vol = 2500
aldo3_vol = 3000

;----------------------------------------------------------------------------------
;card boot
;----------------------------------------------------------------------------------
[card_boot]
logical_start = 40960
sprite_gpio0 =

;----------------------------------------------------------------------------------
;[cardx_boot_para] boot card configuration
;card_ctrl = boot card NO. 0 or 2
;card_high_speed = speed mode, 0-normal mode(up to 25MHz), 1-high speed mode(up to 50MHz)
;card_line = boot card buswidth(1 or 4)
;----------------------------------------------------------------------------------
[card0_boot_para]
card_ctrl = 0
card_high_speed = 1
card_line = 4
sdc_d1 = port:PF0<2><1><2><default>
sdc_d0 = port:PF1<2><1><2><default>
sdc_clk = port:PF2<2><1><2><default>
sdc_cmd = port:PF3<2><1><2><default>
sdc_d3 = port:PF4<2><1><2><default>
sdc_d2 = port:PF5<2><1><2><default>

[card2_boot_para]
card_ctrl = 2
card_high_speed = 1
card_line = 4
sdc_2xmode = 1
sdc_clk = port:PC05<3><1><2><default>
sdc_cmd = port:PC06<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>

;----------------------------------------------------------------------------------
;[twi_para] twi for boot code
;twi_port = twi controller ID
;----------------------------------------------------------------------------------
[twi_para]
twi_port = 0
twi_scl = port:PH02<2><default><default><default>
twi_sda = port:PH03<2><default><default><default>

;----------------------------------------------------------------------------------
;[uart_para] boot debug port configuration
;uart_debug_port = uart port ID for boot debug
;----------------------------------------------------------------------------------
[uart_para]
uart_debug_port = 0
uart_debug_tx = port:PF02<3><1><default><default>
uart_debug_rx = port:PF04<3><1><default><default>

;----------------------------------------------------------------------------------
;[jtag_para] jtag configuration
;jtag_enable = 0-disable jtag, 1-enable jtag
;----------------------------------------------------------------------------------
[jtag_para]
jtag_enable = 1
jtag_ms = port:PF00<3><default><default><default>
jtag_ck = port:PF05<3><default><default><default>
jtag_do = port:PF03<3><default><default><default>
jtag_di = port:PF01<3><default><default><default>

;----------------------------------------------------------------------------------
;[clock] pll configuration
;----------------------------------------------------------------------------------
[clock]
pll3 = 297
pll4 = 300
pll6 = 600
pll8 = 408
pll9 = 480
pll10 = 297
pll_cpupat = 0
pll_gpupat = 0xc440e666
pll_videopat = 0
pll_vepat = 0
pll_hsicpat = 0
pll_depat = 0
pll_mipipat = 0
;---------------------------------------------------------------------------------------------------------
;[pm_para] power management
;standby_mode = 0-normal standby, 1-super standby
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode = 1

;*****************************************************************************
;sdram configuration
;
;*****************************************************************************
[dram_para]

dram_clk = 480
dram_type = 3
dram_zq = 0x3bbb
dram_odt_en = 1
dram_para1 = 0x10F20200
dram_para2 = 0x00
dram_mr0 = 0x1840
dram_mr1 = 0x40
dram_mr2 = 0x8
dram_mr3 = 0
dram_tpr0 = 0x0048A192
dram_tpr1 = 0x01B1B18d
dram_tpr2 = 0x00076052
dram_tpr3 = 0x0
dram_tpr4 = 0x0
dram_tpr5 = 0x0
dram_tpr6 = 0x0
dram_tpr7 = 0x0
dram_tpr8 = 0x0
dram_tpr9 = 0x0
dram_tpr10 = 0x0
dram_tpr11 = 0x0
dram_tpr12 = 168
dram_tpr13 = 0x900

;---------------------------------------------------------------------------------------------------------
; if 1 == standby_mode, then support super standby;
; else, support normal standby.
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode = 1

;---------------------------------------------------------------------------------------------------------
; wakeup_src_para:
; sometimes, u would like to add more wakeup src in standby mode, these para will be
; help;
; u need to make sure the standby mode support the wakeup src. Also, some hw
; condition must be guaranteed.
; including:
; cpu_en: power on or off.
; 1: mean power on
; 0: mean power off
; cpu_freq: indicating lowest freq. unit is Mhz;
; dram selfresh_en: selfresh or not.
; 1: enable enter selfresh
; 0: disable enter selfresh
; dram_pll: if not enter selfresh, indicating lowest freq. unit is Mhz;
; wakeup_src: to make the scenario work, the wakeup src is needed.
;---------------------------------------------------------------------------------------------------------
[wakeup_src_para]
cpu_en = 0
cpu_freq = 48
; (cpu:apb:ahb)
pll_ratio = 0x111
dram_selfresh_en= 1
dram_freq = 36
wakeup_src_wl = port:PL07<4><default><default><0>

;----------------------------------------------------------------------------------
;i2c configuration
; twi_used = twix enable
;----------------------------------------------------------------------------------
[twi0]
twi_used = 1
twi_scl = port:PH02<2><default><default><default>
twi_sda = port:PH03<2><default><default><default>

[twi1]
twi_used = 1
twi_scl = port:PH04<2><default><default><default>
twi_sda = port:PH05<2><default><default><default>

[twi2]
twi_used = 1
twi_scl = port:PE12<3><default><default><default>
twi_sda = port:PE13<3><default><default><default>


;----------------------------------------------------------------------------------
;uart configuration
;uart_used = uart x enable
;uart_type = 2:2 wire,4:4 wire,8:8 wire, full function
;----------------------------------------------------------------------------------
[uart0]
uart_used = 1
uart_port = 0
uart_type = 2
uart_tx = port:PF02<3><1><default><default>
uart_rx = port:PF04<3><1><default><default>

[uart1]
uart_used = 0
uart_type = 4
uart_tx = port:PG06<2><1><default><default>
uart_rx = port:PG07<2><1><default><default>
uart_rts = port:PG08<2><1><default><default>
uart_cts = port:PG09<2><1><default><default>

[uart2]
uart_used = 0
uart_type = 4
uart_tx = port:PB00<2><1><default><default>
uart_rx = port:PB01<2><1><default><default>
uart_rts = port:PB02<2><1><default><default>
uart_cts = port:PB03<2><1><default><default>

[uart3]
uart_used = 0
uart_type = 4
uart_tx = port:PH06<3><1><default><default>
uart_rx = port:PH07<3><1><default><default>
uart_rts = port:PH08<3><1><default><default>
uart_cts = port:PH09<3><1><default><default>

[uart4]
uart_used = 0
uart_port = 4
uart_type = 2
uart_tx = port:PA04<2><1><default><default>
uart_rx = port:PA05<2><1><default><default>
uart_rts = port:PA06<2><1><default><default>
uart_cts = port:PA07<2><1><default><default>

;----------------------------------------------------------------------------------
;SPI controller configuration
;spi_used = SPIx enable
;spi_cs_bitmap = SPI bit mapping
;----------------------------------------------------------------------------------
[spi0]
spi_used = 0
spi_cs_bitmap = 1
spi_mosi = port:PC00<3><default><default><default>
spi_miso = port:PC01<3><default><default><default>
spi_sclk = port:PC02<3><default><default><default>
spi_cs0 = port:PC03<3><1><default><default>

[spi1]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA00<2><1><default><default>
spi_sclk = port:PA01<2><default><default><default>
spi_mosi = port:PA02<2><default><default><default>
spi_miso = port:PA03<2><default><default><default>

;----------------------------------------------------------------------------------
;SPI device configuration
;spi_dev_num: number of spi devices
;----------------------------------------------------------------------------------
[spi_devices]
spi_dev_num = 0

;----------------------------------------------------------------------------------
;[spi_board0] spi device configuration
;modalias = spi device name
;max_speed_hz = max transfer speed
;bus_num = bus ID
;chip_select = chip select, 0,1
;mode = SPI transfer mode
;----------------------------------------------------------------------------------
[spi_board0]
modalias = "at25df641"
max_speed_hz = 50000000
bus_num = 0
chip_select = 0
mode = 0


;----------------------------------------------------------------------------------
;capacitor tp configuration
;ctp_twi_id : twi controller ID
;ctp_twi_addr : I2C slave address, 7bit
;ctp_screen_max_x/_y : resolution of touch panel
;ctp_revert_x/_y_flag : whether need to revert x/y
;ctp_exchange_x_y_flag: whether need to exchange the value of x and y
;ctp_int_port : port for tp''s interrupt signal
;ctp_wakeup : port for wakeup tp
;----------------------------------------------------------------------------------
[ctp_para]
ctp_used = 1
ctp_name = "gsl3675_a8008qd"
ctp_twi_id = 0
ctp_twi_addr = 0x5d
ctp_screen_max_x = 768
ctp_screen_max_y = 1024
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 0

gt927_update_file_path =
gt928_update_file_path =

ctp_int_port = port:PB05<4><default><default><default>
ctp_wakeup = port:PH01<1><default><default><1>
ctp_power_ldo = "axp22_ldoio1"
ctp_power_ldo_vol = 3000
ctp_power_io =

;--------------------------------------------------------------------------------
; CTP automatic detection configuration
;ctp_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[ctp_list_para]
ctp_det_used = 1
ft5x_ts = 1
gt82x = 1
gslX680 = 0
gslX680new = 1
gt9xx_ts = 1
gt9xxf_ts = 1
tu_ts = 0
gt818_ts = 1
zet622x = 1
aw5306_ts = 1
icn83xx_ts = 0
;----------------------------------------------------------------------------------
;touch key configuration
;tkey_twi_id : twi controller ID
;tkey_twi_addr : I2C slave address, 7bit
;tkey_int : port for touch key's interrupt signal
;----------------------------------------------------------------------------------
[tkey_para]
tkey_used = 0
tkey_twi_id =
tkey_twi_addr =
tkey_int =

;----------------------------------------------------------------------------------
;motor configuration
;motor_shake : port for making the moto shaking
;----------------------------------------------------------------------------------
[motor_para]
motor_used = 0
motor_shake = port:power3<1><default><default><1>
motor_ldo = ""
motor_ldo_voltage = 3300

;----------------------------------------------------------------------------------
;thermal configuration
;ths_trip_count : temperature trigger number
;ths_trip_0 : first temperature trigger
;ths_trip_1 : second temperature trigger
;ths_trip_2 : third temperature trigger, when upto this temperature, system shutdown
;ths_trip_0_min : first temperature trigger's min freq
;ths_trip_0_max : first temperature trigger's max freq
;ths_trip_1_min : second temperature trigger's min freq
;ths_trip_1_max : second temperature trigger's max freq
;----------------------------------------------------------------------------------
[ths_para]
ths_used = 1
ths_trip1_count = 3
ths_trip1_0 = 75
ths_trip1_1 = 90
ths_trip1_2 = 110
ths_trip1_0_min = 0
ths_trip1_0_max = 1
ths_trip1_1_min = 1
ths_trip1_1_max = 3
ths_trip1_2_min = 0
ths_trip1_2_max = 0
;----------------------------------------------------------------------------------
;cooler_table cooler_count <=32
;----------------------------------------------------------------------------------
[cooler_table]
cooler_count = 4
cooler0 = "1344000 4 4294967295 0"
cooler1 = "1200000 4 4294967295 0"
cooler2 = "1008000 4 4294967295 0"
cooler3 = "648000 4 4294967295 0"

;----------------------------------------------------------------------------------
;[nandx_para]
;nand_support_2ch = support dual channel
;nand0_used = nand0使能标识
;----------------------------------------------------------------------------------
[nand0_para]
nand_support_2ch = 0

nand0_used = 1
nand0_we = port:PC00<2><default><default><default>
nand0_ale = port:PC01<2><default><default><default>
nand0_cle = port:PC02<2><default><default><default>
nand0_ce1 = port:PC03<2><default><default><default>
nand0_ce0 = port:PC04<2><default><default><default>
nand0_nre = port:PC05<2><default><default><default>
nand0_rb0 = port:PC06<2><default><default><default>
nand0_rb1 = port:PC07<2><default><default><default>
nand0_d0 = port:PC08<2><default><default><default>
nand0_d1 = port:PC09<2><default><default><default>
nand0_d2 = port:PC10<2><default><default><default>
nand0_d3 = port:PC11<2><default><default><default>
nand0_d4 = port:PC12<2><default><default><default>
nand0_d5 = port:PC13<2><default><default><default>
nand0_d6 = port:PC14<2><default><default><default>
nand0_d7 = port:PC15<2><default><default><default>
nand0_ndqs = port:PC16<2><default><default><default>
nand0_ce2 = port:PC17<2><default><default><default>
nand0_ce3 = port:PC18<2><default><default><default>

;----------------------------------------------------------------------------------
;disp init configuration
;
;disp_mode (0:screen0<screen0,fb0>)
;screenx_output_type (0:none; 1:lcd; 3:hdmi;)
;screenx_output_mode (used for hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50)
; (5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60)
;fbx format (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)
;fbx pixel sequence (0:ARGB 1:BGRA 2:ABGR 3:RGBA)
;fb0_scaler_mode_enable(scaler mode enable, used FE)
;fbx_width,fbx_height (framebuffer horizontal/vertical pixels, fix to output resolution while equal 0)
;lcdx_backlight (lcd init backlight,the range:[0,256],default:197
;lcdx_yy (lcd init screen bright/contrast/saturation/hue, value:0~100, default:50/50/57/50)
;lcd0_contrast (LCD contrast, 0~100)
;lcd0_saturation (LCD saturation, 0~100)
;lcd0_hue (LCD hue, 0~100)
;----------------------------------------------------------------------------------
[disp_init]
disp_init_enable = 1
disp_mode = 0

screen0_output_type = 1
screen0_output_mode = 4

screen1_output_type = 1
screen1_output_mode = 4

fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0
fb0_width = 0
fb0_height = 0

fb1_format = 10
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 0
fb1_width = 0
fb1_height = 0

lcd0_backlight = 197
lcd1_backlight = 197

lcd0_bright = 50
lcd0_contrast = 50
lcd0_saturation = 57
lcd0_hue = 50

lcd1_bright = 50
lcd1_contrast = 50
lcd1_saturation = 57
lcd1_hue = 50

;----------------------------------------------------------------------------------
;lcd0 configuration

;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:dsi; 5:edp; 6:extend dsi
;lcd_x: lcd horizontal resolution
;lcd_y: lcd vertical resolution
;lcd_width: width of lcd in mm
;lcd_height: height of lcd in mm
;lcd_dclk_freq: in MHZ unit
;lcd_pwm_freq: in HZ unit
;lcd_pwm_pol: lcd backlight PWM polarity
;lcd_pwm_max_limit lcd backlight PWM max limit(<=255)
;lcd_hbp: hsync back porch
;lcd_ht: hsync total cycle
;lcd_vbp: vsync back porch
;lcd_vt: vysnc total cycle
;lcd_hspw: hsync plus width
;lcd_vspw: vysnc plus width
;lcd_lvds_if: 0:single link; 1:dual link
;lcd_lvds_colordepth: 0:8bit; 1:6bit
;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither
;lcd_io_phase: 0:noraml; 1:intert phase(0~3bit: vsync phase; 4~7bit:hsync phase;
; 8~11bit:dclk phase; 12~15bit:de phase)
;lcd_gamma_en lcd gamma correction enable
;lcd_bright_curve_en lcd bright curve correction enable
;lcd_cmap_en lcd color map function enable
;deu_mode 0:smoll lcd screen; 1:large lcd screen(larger than 10inch)
;lcdgamma4iep: Smart Backlight parameter, lcd gamma vale * 10;
; decrease it while lcd is not bright enough; increase while lcd is too bright
;smart_color 90:normal lcd screen 65:retina lcd screen(9.7inch)
;----------------------------------------------------------------------------------
[lcd0_para]
lcd_used = 1

lcd_driver_name = "default_lcd"
lcd_if = 3
lcd_x = 768
lcd_y = 1024
lcd_width = 120
lcd_height = 160
lcd_dclk_freq = 59
lcd_pwm_used = 1
lcd_pwm_ch = 0
lcd_pwm_freq = 50000
lcd_pwm_pol = 0
lcd_hbp = 80
lcd_ht = 928
lcd_hspw = 60
lcd_vbp = 23
lcd_vt = 1065
lcd_vspw = 8
lcd_lvds_if = 0
lcd_lvds_colordepth = 0
lcd_lvds_mode = 0
lcd_frm = 1
lcd_gamma_en = 0
lcd_bright_curve_en = 0
lcd_cmap_en = 0

deu_mode = 0
lcdgamma4iep = 22
smart_color = 90

lcd_bl_en = port:PH06<1><0><default><1>
lcd_power = "axp22_dc1sw"
lcd_gpio_0 = port:PH07<1><0><default><1>


lcdd18 = port:PD18<2><0><default><default>
lcdd19 = port:PD19<2><0><default><default>
lcdd20 = port:PD20<2><0><default><default>
lcdd21 = port:PD21<2><0><default><default>
lcdd22 = port:PD22<2><0><default><default>
lcdd23 = port:PD23<2><0><default><default>
lcdclk = port:PD24<2><0><default><default>
lcdde = port:PD25<2><0><default><default>
lcdhsync = port:PD26<2><0><default><default>
lcdvsync = port:PD27<2><0><default><default>
;----------------------------------------------------------------------------------
;pwm config
;----------------------------------------------------------------------------------
[pwm0_para]
pwm_used = 1
pwm_positive = port:PH00<2><0><default><default>

[pwm1_para]
pwm_used = 0
pwm_positive = port:PH01<2><0><default><default>

;--------------------------------------------------------------------------------
;vip (video input port) configuration
;vip_used: 0:disable 1:enable
;vip_mode: 0:sample one interface to one buffer 1:sample two interface to one buffer
;vip_dev_qty: The quantity of devices linked to capture bus
;
;vip_define_sensor_list: If you want use sensor detect function, please set vip_define_sensor_list = 1, and
; verify that file /system/etc/hawkview/sensor_list_cfg.ini is properly configured!
;
;vip_dev(x)_pos: sensor position, "rear" or "front", if vip_define_sensor_list = 1,vip_dev(x)_pos must be configured!
;
;vip_dev(x)_isp_used 0:not use isp 1:use isp
;vip_dev(x)_fmt: 0:yuv 1:bayer raw rgb
;vip_dev(x)_stby_mode: 0:not shut down power at standby 1:shut down power at standby
;vip_dev(x)_vflip: flip in vertical direction 0:disable 1:enable
;vip_dev(x)_hflip: flip in horizontal direction 0:disable 1:enable
;vip_dev(x)_iovdd: camera module io power handle string, pmu power supply
;vip_dev(x)_iovdd_vol: camera module io power voltage, pmu power supply
;vip_dev(x)_avdd: camera module analog power handle string, pmu power supply
;vip_dev(x)_avdd_vol: camera module analog power voltage, pmu power supply
;vip_dev(x)_dvdd: camera module core power handle string, pmu power supply
;vip_dev(x)_dvdd_vol: camera module core power voltage, pmu power supply
;vip_dev(x)_afvdd: camera module vcm power handle string, pmu power supply
;vip_dev(x)_afvdd_vol: camera module vcm power voltage, pmu power supply
;x indicates the index of the devices which are linked to the same capture bus
;fill voltage in uV, e.g. iovdd = 2.8V, vip_devx_iovdd_vol = 2800000
;fill handle string as below:
;axp22_eldo3
;axp22_dldo4
;axp22_eldo2
;fill handle string "" when not using any pmu power supply
;--------------------------------------------------------------------------------

[csi0]

vip_used = 1
vip_mode = 0
vip_dev_qty = 2
vip_define_sensor_list = 1
vip_csi_pck = port:PE00<2><default><default><default>
vip_csi_mck = port:PE01<2><default><default><default>
vip_csi_hsync = port:PE02<2><default><default><default>
vip_csi_vsync = port:PE03<2><default><default><default>
vip_csi_d0 = port:PE04<2><default><default><default>
vip_csi_d1 = port:PE05<2><default><default><default>
vip_csi_d2 = port:PE06<2><default><default><default>
vip_csi_d3 = port:PE07<2><default><default><default>
vip_csi_d4 = port:PE08<2><default><default><default>
vip_csi_d5 = port:PE09<2><default><default><default>
vip_csi_d6 = port:PE10<2><default><default><default>
vip_csi_d7 = port:PE11<2><default><default><default>

vip_dev0_mname = "gc0308"
vip_dev0_pos = "rear"
vip_dev0_lane = 1
vip_dev0_twi_id = 2
vip_dev0_twi_addr = 0x42
vip_dev0_isp_used = 0
vip_dev0_fmt = 0
vip_dev0_stby_mode = 0
vip_dev0_vflip = 0
vip_dev0_hflip = 0
vip_dev0_iovdd = "axp22_dldo3"
vip_dev0_iovdd_vol = 2800000
vip_dev0_avdd = "axp22_ldoio0"
vip_dev0_avdd_vol = 2800000
vip_dev0_dvdd = "axp22_eldo2"
vip_dev0_dvdd_vol = 1800000
vip_dev0_afvdd = ""
vip_dev0_afvdd_vol = 2800000
vip_dev0_power_en =
vip_dev0_reset = port:PE14<1><default><default><0>
vip_dev0_pwdn = port:PE15<1><default><default><1>
vip_dev0_flash_en =
vip_dev0_flash_mode =
vip_dev0_af_pwdn =

vip_dev0_act_used = 0
vip_dev0_act_name = "ad5820_act"
vip_dev0_act_slave = 0x18

vip_dev1_mname = "gc0308"
vip_dev1_pos = "front"
vip_dev1_lane = 1
vip_dev1_twi_id = 2
vip_dev1_twi_addr = 0x42
vip_dev1_isp_used = 0
vip_dev1_fmt = 0
vip_dev1_stby_mode = 0
vip_dev1_vflip = 0
vip_dev1_hflip = 0
vip_dev1_iovdd = "axp22_dldo3"
vip_dev1_iovdd_vol = 2800000
vip_dev1_avdd = "axp22_ldoio0"
vip_dev1_avdd_vol = 2800000
vip_dev1_dvdd = "axp22_eldo2"
vip_dev1_dvdd_vol = 1800000
vip_dev1_afvdd = ""
vip_dev1_afvdd_vol =
vip_dev1_power_en =
vip_dev1_reset = port:PE14<1><default><default><0>
vip_dev1_pwdn = port:PE17<1><default><default><1>
vip_dev1_flash_en =
vip_dev1_flash_mode =
vip_dev1_af_pwdn =

[camera_list_para]
camera_list_para_used =1
gc0308 =1
gc0328 =1
gc0329 =1
gc2155 =1
gc2035 =1
ov5647 =1
bf3703 =1
bf3920 =1


;-------------------------------------------------------------------------------
; mmc configuration
;
; Config Guide
; sdc_used: 1-enable card, 0-disable card
; sdc_detmode: card detect mode
; 1-detect card by gpio polling
; 2-detect card by gpio irq(must use IO with irq function)
; 3-no detect, always in for boot card
; 4-manually insert and remove by /proc/driver/sunxi-mmc.x/insert
; sdc_buswidth: card bus width, 1-1bit, 4-4bit, 8-8bit
; sdc_use_wp: 1-with write protect IO, 0-no write protect IO
; sdc_isio: for sdio card
; sdc_regulator: power control.if card supports UHS-I/DDR and HS200 timing for
; SD3.0 or eMMC4.5, regulator must be configured. the value is
; the ldo name of AXP221, eg: sdc_regulator = "axp22_eldo2"
; other: GPIO Mapping configuration
;
; Note:
; 1 if detmode=2, sdc_det's config=6
; else if detmode=1, sdc_det's config=0
; else sdc_det IO is not necessary
; 2 if the customer wants to support UHS-I and HS200 features, he must provide
; an independent power supply for the card. This is only used in platforms
; that supports SD3.0 cards and eMMC4.4+ flashes
;-------------------------------------------------------------------------------
[mmc0_para]
sdc_used = 1
sdc_detmode = 2
sdc_buswidth = 4
sdc_d1 = port:PF00<2><1><2><default>
sdc_d0 = port:PF01<2><1><2><default>
sdc_clk = port:PF02<2><1><2><default>
sdc_cmd = port:PF03<2><1><2><default>
sdc_d3 = port:PF04<2><1><2><default>
sdc_d2 = port:PF05<2><1><2><default>
sdc_det = port:PB04<4><1><2><default>
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc1_para]
sdc_used = 1
sdc_detmode = 4
sdc_buswidth = 4
sdc_clk = port:PG00<2><1><1><default>
sdc_cmd = port:PG01<2><1><1><default>
sdc_d0 = port:PG02<2><1><1><default>
sdc_d1 = port:PG03<2><1><1><default>
sdc_d2 = port:PG04<2><1><1><default>
sdc_d3 = port:PG05<2><1><1><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 1
sdc_regulator = "none"

[mmc2_para]
sdc_used = 0
sdc_detmode = 3
sdc_buswidth = 8
sdc_2xmode = 1
sdc_clk = port:PC05<3><1><2><default>
sdc_cmd = port:PC06<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>
sdc_d4 = port:PC12<3><1><2><default>
sdc_d5 = port:PC13<3><1><2><default>
sdc_d6 = port:PC14<3><1><2><default>
sdc_d7 = port:PC15<3><1><2><default>
emmc_rst = port:PC16<3><1><2><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

;----------------------------------------------------------------------------------
;usb configuration
;usb_used: usb controller enable, 0-disable, 1-enable
;usb_port_type: usb mode: 0-device, 1-host, 2-otg
;usb_detect_type: usb hotplug detect mode, 0-none, 1-vbus/id detect, 2-id/dpdm detect
;usb_id_gpio: usb id detect IO
;usb_det_vbus_gpio: usb vbus detect IO, "axp_ctrl" for axp
;usb_drv_vbus_gpio: usb dirve vbus IO
;usb_restrict_gpio: usb current restrict IO
;usb_restric_flag: usb current restrict flag
;----------------------------------------------------------------------------------
[usbc0]
usb_used = 1
usb_port_type = 2
usb_detect_type = 1
usb_id_gpio = port:PH08<0><1><default><default>
usb_det_vbus_gpio = "axp_ctrl"
usb_drv_vbus_gpio = port:power4<1><0><default><0>
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0
usb_restric_voltage = 3550000
usb_restric_capacity= 5
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_regulator_id_vbus = "axp22_dcdc1"
usb_regulator_id_vbus_vol = 3000000

[usbc1]
usb_used = 1
usb_drv_vbus_gpio =
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_not_suspend = 0


;----------------------------------------------------------------------------------

; USB Device vendor Info.
;----------------------------------------------------------------------------------
[usb_feature]
vendor_id = 0x1F3A
mass_storage_id = 0x1000
adb_id = 0x1001

manufacturer_name = "USB Developer"
product_name = "Android"
serial_number = "20080411"

[msc_feature]
vendor_name = "USB 2.0"
product_name = "USB Flash Driver"
release = 100
luns = 2

[serial_feature]
serial_unique = 1

;--------------------------------------------------------------------------------
; G sensor configuration
; gs_twi_id --- TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2)
;--------------------------------------------------------------------------------
[gsensor_para]
gsensor_used = 1
gsensor_twi_id = 1
gsensor_twi_addr = 0x18
gsensor_int1 = port:PB06<4><1><default><default>
gsensor_int2 =

;--------------------------------------------------------------------------------
; G sensor automatic detection configuration
;gsensor_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[gsensor_list_para]
gsensor_det_used = 1
bma250 = 1
stk831x = 0
mma8452 = 1
mma7660 = 1
mma865x = 1
mc32x0 = 0
afa750 = 1
lis3de_acc = 1
lis3dh_acc = 1
kxtik = 1
dmard10 = 0
dmard09 = 1
mxc622x = 1
fxos8700 = 1
lsm303d = 1

;--------------------------------------------------------------------------------
; gps gpio configuration
; gps_spi_id: the index of SPI controller. 0: SPI0, 1: SPI1, 2: SPI2, 15: no SPI used
; gps_spi_cs_num: the chip select number of SPI controller. 0: SPI CS0, 1: SPI CS1
; gps_lradc: the lradc number for GPS used. 0 and 1 is valid, set 2 if not use lradc
;--------------------------------------------------------------------------------
[gps_para]

;--------------------------------------------------------------------------------
;wifi configuration
;wifi_sdc_id: 0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3
;wifi_usbc_id: 0- USB0, 1- USB1, 2- USB2
;wifi_usbc_type: 1- EHCI(speed 2.0), 2- OHCI(speed 1.0)
;wifi_mod_sel: 0- none, 1- ap6181, 2- ap6210(wifi+bt),
; 3 - rtl8188eu, 4- rtl8723au(wifi+bt),
; 5 - rtl8723bs, 6- esp8089
;--------------------------------------------------------------------------------
[wifi_para]
wifi_used = 1
wifi_sdc_id = 1
wifi_usbc_id = 1
wifi_usbc_type = 1
wifi_mod_sel = 8
wifi_power = "axp22_dldo1"
wifi_power_ext1 = "axp22_dldo2"
wifi_power_ext2 = ""
wifi_power_switch = port:power0<1><0><default><0>

; 1 - ap6181 sdio wifi gpio config
;ap6xxx_wl_regon = port:PL06<1><default><default><0>
;ap6xxx_wl_host_wake = port:PL07<4><default><default><0>
;ap6xxx_lpo_use_apclk = 1

; 2 - ap6210 sdio wifi gpio config
;ap6xxx_wl_regon = port:PL06<1><default><default><0>
;ap6xxx_wl_host_wake = port:PL07<4><default><default><0>
;ap6xxx_bt_regon = port:PL08<1><default><default><0>
;ap6xxx_bt_wake = port:PL10<1><default><default><0>
;ap6xxx_bt_host_wake = port:PL09<4><default><default><0>
;ap6xxx_lpo_use_apclk = 1

; 3 - rtl8188eu usb wifi gpio conifg

; 4 - rtl8723au usb wifi + bt

; 5 - rtl8723bs sdio wifi + bt
;rtl8723bs_chip_en = port:PL11<1><default><default><0>
;rtl8723bs_wl_regon = port:PL06<1><default><default><0>
;rtl8723bs_wl_host_wake = port:PL07<4><default><default><0>
;rtl8723bs_bt_regon = port:PL08<1><default><default><0>
;rtl8723bs_bt_wake = port:PL10<1><default><default><0>
;rtl8723bs_bt_host_wake = port:PL09<4><default><default><0>
;rtl8723bs_lpo_use_apclk = 0
rtl8189es_shdn = port:PL06<1><default><default><0>
rtl8189es_host_wake = port:PL07<4><default><default><0>

; 6 - eagle sdio wifi
;esp_wl_chip_en = port:PL03<1><default><default><0>
;esp_wl_rst = port:PL02<1><default><default><0>

;--------------------------------------------------------------------------------
;blue tooth
;bt_used ---- blue tooth used (0- no used, 1- used)
;bt_uard_id ---- uart index
;--------------------------------------------------------------------------------
[bt_para]
bt_used = 0
bt_uart_id = 1

;--------------------------------------------------------------------------------
;3G configuration
;--------------------------------------------------------------------------------
[3g_para]
3g_used = 0
3g_usbc_num = 1
3g_uart_num = 2
bb_name = "em66"
bb_vbat =
bb_on =
bb_pwr_on = port:PL03<1><default><default><0>
bb_wake = port:PL04<1><default><default><0>
bb_rf_dis = port:PL11<1><default><default><0>
bb_rst = port:PL05<1><default><default><0>
bb_dldo = "axp22_aldo1"
bb_dldo_min_uV = 2800000
bb_dldo_max_uV = 2800000

;--------------------------------------------------------------------------------
;gyroscope
;--------------------------------------------------------------------------------
[gy_para]
gy_used = 0
gy_twi_id = 1
gy_twi_addr = 0x6a
gy_int1 =
gy_int2 =

;--------------------------------------------------------------------------------
; Gyro automatic detection configuration
;gy_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[gy_list_para]
gy_det_used = 0
l3gd20_gyr = 1

;--------------------------------------------------------------------------------
;light sensor
;--------------------------------------------------------------------------------
[ls_para]
ls_used = 0
ls_twi_id = 1
ls_twi_addr = 0x23
ls_int = port:PB07<4><1><default><default>

;--------------------------------------------------------------------------------
; lsensor automatic detection configuration
;ls_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[ls_list_para]
ls_det_used = 0
ltr_501als = 1
jsa1212 = 1

;--------------------------------------------------------------------------------
;compass
;--------------------------------------------------------------------------------
[compass_para]
compass_used = 0
compass_twi_id = 1
compass_twi_addr = 0x0d
compass_int =

;--------------------------------------------------------------------------------
;i2s0_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;i2s0_select:0 is pcm.1 is i2s
;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
;sample_resolution :16bits/20bits/24bits
;word_select_size :16bits/20bits/24bits/32bits
;pcm_sync_period :16/32/64/128/256
;msb_lsb_first :0: msb first; 1: lsb first
;sign_extend :0: zero pending; 1: sign extend
;slot_index :slot index: 0: the 1st slot - 3: the 4th slot
;slot_width :8 bit width / 16 bit width
;frame_width :0: long frame = 2 clock width; 1: short frame
;tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;--------------------------------------------------------------------------------
[i2s0]
i2s0_used = 0
i2s0_channel = 2
i2s0_master = 4
i2s0_select = 1
audio_format = 1
signal_inversion = 1
over_sample_rate = 512
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 256
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 1
rx_data_mode = 1
i2s0_mclk =
i2s0_bclk = port:PB04<2><1><default><default>
i2s0_lrclk = port:PB05<2><1><default><default>
i2s0_dout0 = port:PB06<2><1><default><default>
i2s0_dout1 =
i2s0_dout2 =
i2s0_dout3 =
i2s0_din = port:PB07<2><1><default><default>

;--------------------------------------------------------------------------------
;i2s1_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;i2s1_select:0 is pcm.1 is i2s
;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
;sample_resolution :16bits/20bits/24bits
;word_select_size :16bits/20bits/24bits/32bits
;pcm_sync_period :16/32/64/128/256
;msb_lsb_first :0: msb first; 1: lsb first
;sign_extend :0: zero pending; 1: sign extend
;slot_index :slot index: 0: the 1st slot - 3: the 4th slot
;slot_width :8 bit width / 16 bit width
;frame_width :0: long frame = 2 clock width; 1: short frame
;tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;--------------------------------------------------------------------------------
[i2s1]
i2s1_used = 0
i2s1_channel = 2
i2s1_master = 4
i2s1_select = 1
audio_format = 1
signal_inversion = 1
over_sample_rate = 512
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 64
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 0
rx_data_mode = 0
i2s1_mclk =
i2s1_bclk = port:PG11<2><1><default><default>
i2s1_lrclk = port:PG10<2><1><default><default>
i2s1_dout = port:PG12<2><1><default><default>
i2s1_din = port:PG13<2><1><default><default>

;--------------------------------------------------------------------------------
;pa_single_vol,pa_double_vol: 31 level,1.5db/step.0x1f is the large volume.
;cap_vol:use for system record,0x0--0db,0x1--24db,0x2--27db,0x3--30db,0x4--33db,0x5--36db,0x6--39db,0x7--42db
;headphone_vol,earpiece_vol: must least than 0x3b. 0x1 is a step.
;headset_mic_vol: headset mic(mic2) vol,use for phone headset mic call
;main_mic_vol: main mic(mic1) vol,use for phone main mic call
;--------------------------------------------------------------------------------
[audio0]
audio_used = 1
headphone_vol = 0x3b
earpiece_vol = 0x3b
cap_vol = 0x7
pa_single_vol = 0x3a
pa_double_used = 1
pa_double_vol = 0x3a
headphone_direct_used = 1
headset_mic_vol = 0x6
main_mic_vol = 0x6
audio_hp_ldo =none
audio_pa_ctrl = port:PH09<1><default><default><0>
;audio_pa_ctrl = port:PA18<1><default><default><0>
aif2_used = 0
aif3_used = 0
headphone_mute_used = 0
DAC_VOL_CTRL_SPK = 0x9e9e
DAC_VOL_CTRL_HEADPHONE = 0xa0a0
;main_mic_vol = 6

;-------------------------------------------------------------------------------------
;pmu_used ---0:not used,1:used
;pmu_twi_addr ---slave address
;pmu_twi_id ---i2c bus number (0 TWI0, 1 TWI2, 2 TWI3)
;pmu_irq_id ---irq number (0 irq0,1 irq1,……)
;pmu_battery_rdc ---battery initial resistance
;pmu_battery_cap ---battery capability,mAh
;pmu_batdeten ---battery detect en;0:disable 1:enable
;pmu_runtime_chgcur ---set initial charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_earlysuspend_chgcur ---set earlysuspend charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_suspend_chgcur ---set suspend charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_shutdown_chgcur ---set shutdown charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_init_chgvol ---set initial charing target voltage,mV,4100/4220/4200/4240
;pmu_init_chgend_rate ---set initial charing end current rate,10/15
;pmu_init_chg_enabled ---set initial charing enabled,0:disable,1:enable
;pmu_init_adc_freq ---set initial adc frequency,Hz,100/200/400/800
;pmu_init_adcts_freq ---set initial adc TS,Hz,100/200/400/800
;pmu_init_chg_pretime ---set initial pre-charging time,min,40/50/60/70
;pmu_init_chg_csttime ---set initial constance-charging time,min,360/480/600/720
;pmu_batt_cap_correct ---correct the battery capacity or not when one charge cycle 0:not correct 1:correct
;pmu_bat_regu_en ---bat regulator is enable or not when charge done 0:disable 1:enable
;pmu_bat_para1 ---battery indication at 3.13V
;pmu_bat_para2 ---battery indication at 3.27V
;pmu_bat_para3 ---battery indication at 3.34V
;pmu_bat_para4 ---battery indication at 3.41V
;pmu_bat_para5 ---battery indication at 3.48V
;pmu_bat_para6 ---battery indication at 3.52V
;pmu_bat_para7 ---battery indication at 3.55V
;pmu_bat_para8 ---battery indication at 3.57V
;pmu_bat_para9 ---battery indication at 3.59V
;pmu_bat_para10 ---battery indication at 3.61V
;pmu_bat_para11 ---battery indication at 3.63V
;pmu_bat_para12 ---battery indication at 3.64V
;pmu_bat_para13 ---battery indication at 3.66V
;pmu_bat_para14 ---battery indication at 3.7V
;pmu_bat_para15 ---battery indication at 3.73V
;pmu_bat_para16 ---battery indication at 3.77V
;pmu_bat_para17 ---battery indication at 3.78V
;pmu_bat_para18 ---battery indication at 3.8V
;pmu_bat_para19 ---battery indication at 3.82V
;pmu_bat_para20 ---battery indication at 3.84V
;pmu_bat_para21 ---battery indication at 3.85V
;pmu_bat_para22 ---battery indication at 3.87V
;pmu_bat_para23 ---battery indication at 3.91V
;pmu_bat_para24 ---battery indication at 3.94V
;pmu_bat_para25 ---battery indication at 3.98V
;pmu_bat_para26 ---battery indication at 4.01V
;pmu_bat_para27 ---battery indication at 4.05V
;pmu_bat_para28 ---battery indication at 4.08V
;pmu_bat_para29 ---battery indication at 4.1V
;pmu_bat_para30 ---battery indication at 4.12V
;pmu_bat_para31 ---battery indication at 4.14V
;pmu_bat_para32 ---battery indication at 4.15V
;pmu_usbvol_limit ---set usb-ac limited voltage enable,1:enable,0:disable
;pmu_usbcur_limit ---set usb-ac limited current enable,1:enable,0:disable
;pmu_usbvol ---set usb-ac limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur ---set usb-ac limited current level,mA,500/900, 0 - not limite
;pmu_usbvol_pc ---set usb-pc limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur_pc ---set usb-pc limited current level,mA,500/900, 0 - not limite
;pmu_pwroff_vol ---set protect voltage when system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pwron_vol ---set protect voltage after system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pekoff_time ---set pek off time,ms, 4000/6000/8000/10000
;pmu_pekoff_func ---set pek off func, 0:shutdown,1:restart
;pmu_pekoff_en ---set pek offlevel powerdown or not, 0:not powerdown,1:powerdown
;pmu_peklong_time ---set pek pek long irq time,ms,1000/1500/2000/2500
;pmu_pekon_time ---set pek on time,ms,128/1000/2000/3000
;pmu_pwrok_time ---set pmu pwrok delay time,ms,8/16/32/64
;pmu_battery_warning_level1 ---low power warning high level,5%-20%,1%/step
;pmu_battery_warning_level2 ---low power warning low level,0%-15%,1%/step
;pmu_restvol_time ---battery indicaton reflash time,30/60/120/
;pmu_ocv_cou_adjust_time ---ocv battery indication reflash time,60/120/30
;pmu_chgled_func ---CHGKED pin control,0:controlled by pmu,1:controlled by Charger
;pmu_chgled_type ---CHGLED Type select when pmu_chgled_func=0,0:Type A,1:Type B
;pmu_vbusen_func ---N_VBUSEN function select,0:as an output,1:as an input
;pmu_reset ---when power key press longer than 16's,PMU reset or not.0:not reset 1:reset
;pmu_IRQ_wakeup ---press IRQ wakeup or not when sleep or power down.0:not wakeup 1:wakeup
;pmu_hot_shutdowm ---when PMU over temperature protect or not;0:disable 1:enable
;pmu_inshort ---ACIN and VBUS inshort or not by software;0:auto detect 1:inshort
;pmu_temp_enable ---temp detect enable
;pmu_charge_ltf ---charge temp low threshold voltage
;pmu_charge_htf ---charge temp high threshold voltage
;pmu_discharge_ltf ---shutdown temp low threshold voltage
;pmu_discharge_htf ---shutdown temp high threshold voltage
;pmu_temp_para1 --- temp -25 voltage
;pmu_temp_para2 --- temp -15 voltage
;pmu_temp_para3 --- temp -10 voltage
;pmu_temp_para4 --- temp -5 voltage
;pmu_temp_para5 --- temp 0 voltage
;pmu_temp_para6 --- temp 5 voltage
;pmu_temp_para7 --- temp 10 voltage
;pmu_temp_para8 --- temp 20 voltage
;pmu_temp_para9 --- temp 30 voltage
;pmu_temp_para10 --- temp 40 voltage
;pmu_temp_para11 --- temp 45 voltage
;pmu_temp_para12 --- temp 50 voltage
;pmu_temp_para13 --- temp 55 voltage
;pmu_temp_para14 --- temp 60 voltage
;pmu_temp_para15 --- temp 70 voltage
;pmu_temp_para16 --- temp 80 voltage
;--------------------------------------------------------------------------------------------------------
[pmu1_para]
pmu_used = 1
pmu_twi_addr = 0x34
pmu_twi_id = 1
pmu_irq_id = 0
pmu_battery_rdc = 100
pmu_battery_cap = 0
pmu_batdeten = 1
pmu_chg_ic_temp = 0
pmu_runtime_chgcur = 900
pmu_earlysuspend_chgcur = 1500
pmu_suspend_chgcur = 1500
pmu_shutdown_chgcur = 1500
pmu_init_chgvol = 4200
pmu_init_chgend_rate = 15
pmu_init_chg_enabled = 1
pmu_init_adc_freq = 800
pmu_init_adcts_freq = 800
pmu_init_chg_pretime = 70
pmu_init_chg_csttime = 720
pmu_batt_cap_correct = 1
pmu_bat_regu_en = 0

pmu_bat_para1 = 0
pmu_bat_para2 = 0
pmu_bat_para3 = 0
pmu_bat_para4 = 0
pmu_bat_para5 = 0
pmu_bat_para6 = 0
pmu_bat_para7 = 0
pmu_bat_para8 = 0
pmu_bat_para9 = 1
pmu_bat_para10 = 2
pmu_bat_para11 = 3
pmu_bat_para12 = 5
pmu_bat_para13 = 10
pmu_bat_para14 = 16
pmu_bat_para15 = 31
pmu_bat_para16 = 43
pmu_bat_para17 = 49
pmu_bat_para18 = 53
pmu_bat_para19 = 57
pmu_bat_para20 = 60
pmu_bat_para21 = 63
pmu_bat_para22 = 66
pmu_bat_para23 = 71
pmu_bat_para24 = 77
pmu_bat_para25 = 80
pmu_bat_para26 = 84
pmu_bat_para27 = 88
pmu_bat_para28 = 92
pmu_bat_para29 = 94
pmu_bat_para30 = 96
pmu_bat_para31 = 98
pmu_bat_para32 = 100

pmu_usbvol_limit = 0
pmu_usbcur_limit = 0
pmu_usbvol = 4000
pmu_usbcur = 0
pmu_usbvol_pc = 4400
pmu_usbcur_pc = 500
pmu_pwroff_vol = 3300
pmu_pwron_vol = 2600
pmu_pekoff_time = 6000
pmu_pekoff_func = 0
pmu_pekoff_en = 1
pmu_peklong_time = 1500
pmu_pekon_time = 1000
pmu_pwrok_time = 64
pmu_battery_warning_level1 = 15
pmu_battery_warning_level2 = 0
pmu_restvol_adjust_time = 60
pmu_ocv_cou_adjust_time = 60
pmu_chgled_func = 1
pmu_chgled_type = 0
pmu_vbusen_func = 1
pmu_reset = 0
pmu_IRQ_wakeup = 0
pmu_hot_shutdowm = 1
pmu_inshort = 0
power_start = 0

pmu_temp_enable = 0
pmu_charge_ltf = 2261
pmu_charge_htf = 388
pmu_discharge_ltf = 3200
pmu_discharge_htf = 237
pmu_temp_para1 = 7466
pmu_temp_para2 = 4480
pmu_temp_para3 = 3518
pmu_temp_para4 = 2786
pmu_temp_para5 = 2223
pmu_temp_para6 = 1788
pmu_temp_para7 = 1448
pmu_temp_para8 = 969
pmu_temp_para9 = 664
pmu_temp_para10 = 466
pmu_temp_para11 = 393
pmu_temp_para12 = 333
pmu_temp_para13 = 283
pmu_temp_para14 = 242
pmu_temp_para15 = 179
pmu_temp_para16 = 134

[pmu2_para]
pmu_used = 0
pmu_twi_addr = 0x34
pmu_twi_id = 1
pmu_irq_id = 0

;--------------------------------------------------------------------------------------------------------
[recovery_key]
key_min = 3
key_max = 5

;----------------------------------------------------------------------------------
; dvfs voltage-frequency table configuration
;
; extremity_freq(Hz): cpu extremity frequency when run benckmark or demo apk
; 1536MHz@1500mV with radiator, 1296MHz@1340mV without radiator
; max_freq: cpu maximum frequency, based on Hz, can not be more than 1200MHz
; min_freq: cpu minimum frequency, based on Hz, can not be less than 60MHz
;
; LV_count: count of LV_freq/LV_volt, must be < 16
;
; LV1: core vdd is 1.50v if cpu frequency is (1296Mhz, 1536Mhz]
; LV2: core vdd is 1.34v if cpu frequency is (1200Mhz, 1296Mhz]
; LV3: core vdd is 1.26v if cpu frequency is (1008Mhz, 1200Mhz]
; LV4: core vdd is 1.14v if cpu frequency is (816Mhz, 1008Mhz]
; LV5: core vdd is 1.04v if cpu frequency is (312Mhz, 816Mhz]
; LV6: core vdd is 0.96v if cpu frequency is (0Mhz, 312Mhz]
; LV7: core vdd is 0.96v if cpu frequency is (0Mhz, 312Mhz]
; LV8: core vdd is 0.96v if cpu frequency is (0Mhz, 312Mhz]
;
;----------------------------------------------------------------------------------
[dvfs_table]
extremity_freq = 1344000000
max_freq = 1200000000
min_freq = 120000000

LV_count = 8

LV1_freq = 1536000000
LV1_volt = 1500

LV2_freq = 1344000000
LV2_volt = 1460

LV3_freq = 1200000000
LV3_volt = 1320

LV4_freq = 1008000000
LV4_volt = 1200

LV5_freq = 816000000
LV5_volt = 1100

LV6_freq = 648000000
LV6_volt = 1040

LV7_freq = 0
LV7_volt = 1040

LV8_freq = 0
LV8_volt = 1040

;----------------------------------------------------------------------------------
;virtual device
;virtual device for pinctrl testing
;device have pin PA1 PA2
;----------------------------------------------------------------------------------
[Vdevice]
Vdevice_used = 1
Vdevice_0 = port:PA01<5><1><2><default>
Vdevice_1 = port:PA02<5><1><2><default>

;----------------------------------------------------------------------------------
;s_uart0 config parameters
;s_uart_used --s_uart0 whether used for arisc debugging
;----------------------------------------------------------------------------------
[s_uart0]
s_uart_used = 0
s_uart_tx = port:PL02<2><default><default><default>
s_uart_rx = port:PL03<2><default><default><default>

;----------------------------------------------------------------------------------
;s_rsb0 config parameters
;s_rsb_used --s_rsb0 whether used for arisc
;----------------------------------------------------------------------------------
[s_rsb0]
s_rsb_used = 1
s_rsb_sck = port:PL00<2><1><2><default>
s_rsb_sda = port:PL01<2><1><2><default>

;----------------------------------------------------------------------------------
;s_jtag0 config parameters
;s_jtag0_used --s_jtag0 whether used for arisc
;
;----------------------------------------------------------------------------------
[s_jtag0]
s_jtag_used = 0
s_jtag_tms = port:PL04<2><1><2><default>
s_jtag_tck = port:PL05<2><1><2><default>
s_jtag_tdo = port:PL06<2><1><2><default>
s_jtag_tdi = port:PL07<2><1><2><default>

;----------------------------------------------------------------------------------
;s_powchk cpus power check
;s_powchk_used --power check whether used for arisc in super standby
; bit31:enable power updat, bit1:wakeup when power state exception
; bit0:wakeup when power consumption exception
;s_power_reg the expected regs stand for power on/off state
;s_system_power the limit maxmum power consumption when super standby (unit: mw)
;
;----------------------------------------------------------------------------------
[s_powchk]
s_powchk_used = 0x80000000
s_power_reg = 0x00008061
s_system_power = 50

[mali_para]
mali_used = 1
mali_clkdiv = 1
mali_extreme_freq = 408
mali_extreme_vol = 1100


;----------------------------------------------------------------------------------
; dram dvfs voltage-frequency table configuration
;
; LV_count: count of LV_freq/LV_volt
;
; LV1: core vdd is 1.1v if dram frequency is (360Mhz, 552Mhz]
; LV2: core vdd is 1.0v if dram frequency is ( 0Mhz, 360Mhz]
; LV3: core vdd is 1.0v if dram frequency is ( 0Mhz, 360Mhz]
;
;----------------------------------------------------------------------------------
[dram_dvfs_table]
LV_count = 3

LV1_freq = 552000000
LV1_volt = 1100

LV2_freq = 360000000
LV2_volt = 1100

LV3_freq = 0
LV3_volt = 1100

;----------------------------------------------------------------------------------
;charging_type config parameters
;charging_type 0:uboot charging, 1:android charging
;----------------------------------------------------------------------------------
[charging_type]
charging_type = 1

;----------------------------------------------------------------------------------
;leds config parameters
;leds_used 0:uboot charging, 1:android charging
;----------------------------------------------------------------------------------
[leds_para]
leds_used = 0
red_led = port:power3<1><default><default><0>
red_led_active_low = 1
green_led = port:power1<1><default><default><0>
green_led_active_low = 0
blue_led =
blue_led_active_low = 0


со вставленным оригенальным буилд пропертом от брависа
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=KVT49L
ro.build.version.incremental=20141024
ro.build.version.sdk=19
ro.build.version.codename=REL
ro.build.version.release=4.4.2
ro.build.date=Fri Oct 24 18:26:46 CST 2014
ro.build.date.utc=1414146406
ro.build.type=eng
ro.build.user=inet_lxp
ro.build.host=superFAE03
ro.build.tags=test-keys
ro.product.model=BRAVIS NP 844
ro.product.brand=BRAVIS
ro.product.name=astar_inet
ro.product.device=astar-inet
ro.product.board=exdroid
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=unknown
ro.product.locale.language=en
ro.product.locale.region=US
ro.wifi.channels=
ro.board.platform=polaris
# ro.build.product is obsolete; use ro.product.device
ro.build.product=astar-inet
# Do not try to parse ro.build.description or .fingerprint
ro.build.description=astar_inet-eng 4.4.2 KVT49L 20141024 test-keys
ro.build.fingerprint=iNet/astar_inet/astar-inet:4.4.2/KVT49L/20141024:eng/test-keys
ro.build.characteristics=tablet
# end build properties

#
# ADDITIONAL_BUILD_PROPERTIES
#
ro.com.android.dateformat=MM-dd-yyyy
ro.config.ringtone=Ring_Synth_04.ogg
ro.config.notification_sound=pixiedust.ogg
ro.carrier=wifi-only
ro.config.alarm_alert=Alarm_Classic.ogg
ro.zygote.disable_gl_preload=true
persist.sys.strictmode.visual=0
persist.sys.strictmode.disable=1
ro.opengles.version=131072
ro.kernel.android.checkjni=0
ro.reversion.aw_sdk_tag=exdroid4.4.2_r2-a33-v2.0
ro.sys.cputype=QuadCore-A33
wifi.interface=wlan0
wifi.supplicant_scan_interval=15
keyguard.no_require_sim=true
ro.sys.network_location=true
persist.demo.hdmirotationlock=0
drm.service.enabled=true
dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=64m
dalvik.vm.heapsize=384m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=512k
dalvik.vm.heapmaxfree=8m
ro.sw.embeded.telephony=false
ro.udisk.lable=USB DRIVE
ro.font.scale=1.0
ro.hwa.force=false
rw.logger=0
ro.sys.bootfast=false
debug.hwc.showfps=0
debug.hwui.render_dirty_regions=false
ro.sys.mutedrm=true
ro.adb.secure=0
ro.setupwizard.mode=OPTIONAL
ro.com.google.gmsversion=4.4_r3
persist.sys.usb.config=mass_storage,adb
persist.sys.language=uk
persist.sys.country=UA
ro.sf.lcd_density=160
ro.inet.board.name=U791C
ro.inet.model.name=U7912L3C_PG
ro.inet.wlan.type=8189es
ro.build.display.id=A33_U791C_U7912L3C_PG_1410054.20141030
ro.config.3ginformation.path=/system/etc/3ginfo.gz
persist.sys.timezone=Europe/Minsk
ro.inet.LauncherTransparent=false
ro.inet.chip.name=A33
ro.product.firmware=2.0_20141018
persist.sys.dalvik.vm.lib=libdvm.so
dalvik.vm.dexopt-flags=v=n,m=y
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt


кривой тач но сенсор на тыки отвечает
конфиг
;A33 Y3 7.85" lcd panel board application
; the difference between Y2 and Y3:
; wifi/bt dram nand
; Y2 AP6210 SKHYNIX MICRON MLC
; Y3 rtl8723bs MIRA TOSHIBA MLC
;---------------------------------------------------------------------------------------------------------
; port configuration:
; port_name = port:GPIO<mux><pull up/down><driver level><default value>
; mux: GPIO function configuration, 0-input, 1-output, 2+: special funciton for modules
; pull up/down: 1-pull up, 2-pull down
; driver level: 0,1,2,3. 2 is recommended
; default value: default output value when this IO is configured as an output IO
;---------------------------------------------------------------------------------------------------------

[product]
version = "100"
machine = "evb"

;---------------------------------------------------------------------------------------------------------
; eraseflag - 1 erase data partition, 0 - do not erase data partition
; next_work - action after burn, 0x0 by config, 0x1, normal, 0x2 reboot 0x3 ,shutdown,0x4 reupdate ,0x5 boot
;---------------------------------------------------------------------------------------------------------
[platform]
eraseflag = 1
next_work = 3

;----------------------------------------------------------------------------------
;[target] system bootup configuration
;boot_clock = CPU boot frequency, Unit: MHz
;storage_type = boot medium, 0-nand, 1-card0, 2-card2, -1(defualt)auto scan
;----------------------------------------------------------------------------------
[target]
boot_clock = 1008
storage_type = -1
burn_key = 1

;---------------------------------------------------------------------------------
; uboot key detect enable
; 当keyen_flag = 1 时,支持按键检测
; 当keyen_flag = 0 时,不支持
;---------------------------------------------------------------------------------
[key_detect_en]
keyen_flag = 1

;----------------------------------------------------------------------------------
;dcdc1_vol ---set dcdc1 voltage,mV,1600-3400,100mV/step
;dcdc2_vol ---set dcdc2 voltage,mV,600-1540,20mV/step
;dcdc3_vol ---set dcdc3 voltage,mV,600-1860,20mV/step
;dcdc4_vol ---set dcdc4 voltage,mV,600-1540,20mV/step
;dcdc5_vol ---set dcdc5 voltage,mV,1000-2550,50mV/step
;aldo2_vol ---set aldo2 voltage,mV,700-3300,100mV/step
;aldo3_vol ---set aldo3 voltage,mV,700-3300,100mV/step
;----------------------------------------------------------------------------------
[power_sply]
dcdc1_vol = 3000
dcdc2_vol = 1100
dcdc3_vol = 1200
dcdc4_vol = 0
dcdc5_vol = 1500
aldo2_vol = 2500
aldo3_vol = 3000

;----------------------------------------------------------------------------------
;card boot
;----------------------------------------------------------------------------------
[card_boot]
logical_start = 40960
sprite_gpio0 =

;----------------------------------------------------------------------------------
;[cardx_boot_para] boot card configuration
;card_ctrl = boot card NO. 0 or 2
;card_high_speed = speed mode, 0-normal mode(up to 25MHz), 1-high speed mode(up to 50MHz)
;card_line = boot card buswidth(1 or 4)
;----------------------------------------------------------------------------------
[card0_boot_para]
card_ctrl = 0
card_high_speed = 1
card_line = 4
sdc_d1 = port:PF0<2><1><2><default>
sdc_d0 = port:PF1<2><1><2><default>
sdc_clk = port:PF2<2><1><2><default>
sdc_cmd = port:PF3<2><1><2><default>
sdc_d3 = port:PF4<2><1><2><default>
sdc_d2 = port:PF5<2><1><2><default>

[card2_boot_para]
card_ctrl = 2
card_high_speed = 1
card_line = 4
sdc_2xmode = 1
sdc_clk = port:PC05<3><1><2><default>
sdc_cmd = port:PC06<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>

;----------------------------------------------------------------------------------
;[twi_para] twi for boot code
;twi_port = twi controller ID
;----------------------------------------------------------------------------------
[twi_para]
twi_port = 0
twi_scl = port:PH02<2><default><default><default>
twi_sda = port:PH03<2><default><default><default>

;----------------------------------------------------------------------------------
;[uart_para] boot debug port configuration
;uart_debug_port = uart port ID for boot debug
;----------------------------------------------------------------------------------
[uart_para]
uart_debug_port = 0
uart_debug_tx = port:PF02<3><1><default><default>
uart_debug_rx = port:PF04<3><1><default><default>

;----------------------------------------------------------------------------------
;[jtag_para] jtag configuration
;jtag_enable = 0-disable jtag, 1-enable jtag
;----------------------------------------------------------------------------------
[jtag_para]
jtag_enable = 1
jtag_ms = port:PF00<3><default><default><default>
jtag_ck = port:PF05<3><default><default><default>
jtag_do = port:PF03<3><default><default><default>
jtag_di = port:PF01<3><default><default><default>

;----------------------------------------------------------------------------------
;[clock] pll configuration
;----------------------------------------------------------------------------------
[clock]
pll3 = 297
pll4 = 300
pll6 = 600
pll8 = 408
pll9 = 480
pll10 = 297
pll_cpupat = 0
pll_gpupat = 0xc440e666
pll_videopat = 0
pll_vepat = 0
pll_hsicpat = 0
pll_depat = 0
pll_mipipat = 0
;---------------------------------------------------------------------------------------------------------
;[pm_para] power management
;standby_mode = 0-normal standby, 1-super standby
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode = 1

;*****************************************************************************
;sdram configuration
;
;*****************************************************************************
[dram_para]

dram_clk = 480
dram_type = 3
dram_zq = 0x3bbb
dram_odt_en = 1
dram_para1 = 0x10F20200
dram_para2 = 0x00
dram_mr0 = 0x1840
dram_mr1 = 0x40
dram_mr2 = 0x8
dram_mr3 = 0
dram_tpr0 = 0x0048A192
dram_tpr1 = 0x01B1B18d
dram_tpr2 = 0x00076052
dram_tpr3 = 0x0
dram_tpr4 = 0x0
dram_tpr5 = 0x0
dram_tpr6 = 0x0
dram_tpr7 = 0x0
dram_tpr8 = 0x0
dram_tpr9 = 0x0
dram_tpr10 = 0x0
dram_tpr11 = 0x0
dram_tpr12 = 168
dram_tpr13 = 0x900

;---------------------------------------------------------------------------------------------------------
; if 1 == standby_mode, then support super standby;
; else, support normal standby.
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode = 1

;---------------------------------------------------------------------------------------------------------
; wakeup_src_para:
; sometimes, u would like to add more wakeup src in standby mode, these para will be
; help;
; u need to make sure the standby mode support the wakeup src. Also, some hw
; condition must be guaranteed.
; including:
; cpu_en: power on or off.
; 1: mean power on
; 0: mean power off
; cpu_freq: indicating lowest freq. unit is Mhz;
; dram selfresh_en: selfresh or not.
; 1: enable enter selfresh
; 0: disable enter selfresh
; dram_pll: if not enter selfresh, indicating lowest freq. unit is Mhz;
; wakeup_src: to make the scenario work, the wakeup src is needed.
;---------------------------------------------------------------------------------------------------------
[wakeup_src_para]
cpu_en = 0
cpu_freq = 48
; (cpu:apb:ahb)
pll_ratio = 0x111
dram_selfresh_en= 1
dram_freq = 36
wakeup_src_wl = port:PL07<4><default><default><0>

;----------------------------------------------------------------------------------
;i2c configuration
; twi_used = twix enable
;----------------------------------------------------------------------------------
[twi0]
twi_used = 1
twi_scl = port:PH02<2><default><default><default>
twi_sda = port:PH03<2><default><default><default>

[twi1]
twi_used = 1
twi_scl = port:PH04<2><default><default><default>
twi_sda = port:PH05<2><default><default><default>

[twi2]
twi_used = 1
twi_scl = port:PE12<3><default><default><default>
twi_sda = port:PE13<3><default><default><default>


;----------------------------------------------------------------------------------
;uart configuration
;uart_used = uart x enable
;uart_type = 2:2 wire,4:4 wire,8:8 wire, full function
;----------------------------------------------------------------------------------
[uart0]
uart_used = 1
uart_port = 0
uart_type = 2
uart_tx = port:PF02<3><1><default><default>
uart_rx = port:PF04<3><1><default><default>

[uart1]
uart_used = 0
uart_type = 4
uart_tx = port:PG06<2><1><default><default>
uart_rx = port:PG07<2><1><default><default>
uart_rts = port:PG08<2><1><default><default>
uart_cts = port:PG09<2><1><default><default>

[uart2]
uart_used = 0
uart_type = 4
uart_tx = port:PB00<2><1><default><default>
uart_rx = port:PB01<2><1><default><default>
uart_rts = port:PB02<2><1><default><default>
uart_cts = port:PB03<2><1><default><default>

[uart3]
uart_used = 0
uart_type = 4
uart_tx = port:PH06<3><1><default><default>
uart_rx = port:PH07<3><1><default><default>
uart_rts = port:PH08<3><1><default><default>
uart_cts = port:PH09<3><1><default><default>

[uart4]
uart_used = 0
uart_port = 4
uart_type = 2
uart_tx = port:PA04<2><1><default><default>
uart_rx = port:PA05<2><1><default><default>
uart_rts = port:PA06<2><1><default><default>
uart_cts = port:PA07<2><1><default><default>

;----------------------------------------------------------------------------------
;SPI controller configuration
;spi_used = SPIx enable
;spi_cs_bitmap = SPI bit mapping
;----------------------------------------------------------------------------------
[spi0]
spi_used = 0
spi_cs_bitmap = 1
spi_mosi = port:PC00<3><default><default><default>
spi_miso = port:PC01<3><default><default><default>
spi_sclk = port:PC02<3><default><default><default>
spi_cs0 = port:PC03<3><1><default><default>

[spi1]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA00<2><1><default><default>
spi_sclk = port:PA01<2><default><default><default>
spi_mosi = port:PA02<2><default><default><default>
spi_miso = port:PA03<2><default><default><default>

;----------------------------------------------------------------------------------
;SPI device configuration
;spi_dev_num: number of spi devices
;----------------------------------------------------------------------------------
[spi_devices]
spi_dev_num = 0

;----------------------------------------------------------------------------------
;[spi_board0] spi device configuration
;modalias = spi device name
;max_speed_hz = max transfer speed
;bus_num = bus ID
;chip_select = chip select, 0,1
;mode = SPI transfer mode
;----------------------------------------------------------------------------------
[spi_board0]
modalias = "at25df641"
max_speed_hz = 50000000
bus_num = 0
chip_select = 0
mode = 0


;----------------------------------------------------------------------------------
;capacitor tp configuration
;ctp_twi_id : twi controller ID
;ctp_twi_addr : I2C slave address, 7bit
;ctp_screen_max_x/_y : resolution of touch panel
;ctp_revert_x/_y_flag : whether need to revert x/y
;ctp_exchange_x_y_flag: whether need to exchange the value of x and y
;ctp_int_port : port for tp''s interrupt signal
;ctp_wakeup : port for wakeup tp
;----------------------------------------------------------------------------------
[ctp_para]
ctp_used = 1
ctp_name = "gsl3675_a8008qd"
ctp_twi_id = 0
ctp_twi_addr = 0x5d
ctp_screen_max_x = 768
ctp_screen_max_y = 1024
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 0

gt927_update_file_path =
gt928_update_file_path =

ctp_int_port = port:PB05<4><default><default><default>
ctp_wakeup = port:PH01<1><default><default><1>
ctp_power_ldo = "axp22_ldoio1"
ctp_power_ldo_vol = 3000
ctp_power_io =

;--------------------------------------------------------------------------------
; CTP automatic detection configuration
;ctp_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[ctp_list_para]
ctp_det_used = 1
ft5x_ts = 1
gt82x = 1
gslX680 = 1
gslX680new = 1
gt9xx_ts = 1
gt9xxf_ts = 1
tu_ts = 1
gt818_ts = 1
zet622x = 1
aw5306_ts = 1
icn83xx_ts = 1
;----------------------------------------------------------------------------------
;touch key configuration
;tkey_twi_id : twi controller ID
;tkey_twi_addr : I2C slave address, 7bit
;tkey_int : port for touch key's interrupt signal
;----------------------------------------------------------------------------------
[tkey_para]
tkey_used = 0
tkey_twi_id =
tkey_twi_addr =
tkey_int =

;----------------------------------------------------------------------------------
;motor configuration
;motor_shake : port for making the moto shaking
;----------------------------------------------------------------------------------
[motor_para]
motor_used = 0
motor_shake = port:power3<1><default><default><1>
motor_ldo = ""
motor_ldo_voltage = 3300

;----------------------------------------------------------------------------------
;thermal configuration
;ths_trip_count : temperature trigger number
;ths_trip_0 : first temperature trigger
;ths_trip_1 : second temperature trigger
;ths_trip_2 : third temperature trigger, when upto this temperature, system shutdown
;ths_trip_0_min : first temperature trigger's min freq
;ths_trip_0_max : first temperature trigger's max freq
;ths_trip_1_min : second temperature trigger's min freq
;ths_trip_1_max : second temperature trigger's max freq
;----------------------------------------------------------------------------------
[ths_para]
ths_used = 1
ths_trip1_count = 3
ths_trip1_0 = 75
ths_trip1_1 = 90
ths_trip1_2 = 110
ths_trip1_0_min = 0
ths_trip1_0_max = 1
ths_trip1_1_min = 1
ths_trip1_1_max = 3
ths_trip1_2_min = 0
ths_trip1_2_max = 0
;----------------------------------------------------------------------------------
;cooler_table cooler_count <=32
;----------------------------------------------------------------------------------
[cooler_table]
cooler_count = 4
cooler0 = "1344000 4 4294967295 0"
cooler1 = "1200000 4 4294967295 0"
cooler2 = "1008000 4 4294967295 0"
cooler3 = "648000 4 4294967295 0"

;----------------------------------------------------------------------------------
;[nandx_para]
;nand_support_2ch = support dual channel
;nand0_used = nand0使能标识
;----------------------------------------------------------------------------------
[nand0_para]
nand_support_2ch = 0

nand0_used = 1
nand0_we = port:PC00<2><default><default><default>
nand0_ale = port:PC01<2><default><default><default>
nand0_cle = port:PC02<2><default><default><default>
nand0_ce1 = port:PC03<2><default><default><default>
nand0_ce0 = port:PC04<2><default><default><default>
nand0_nre = port:PC05<2><default><default><default>
nand0_rb0 = port:PC06<2><default><default><default>
nand0_rb1 = port:PC07<2><default><default><default>
nand0_d0 = port:PC08<2><default><default><default>
nand0_d1 = port:PC09<2><default><default><default>
nand0_d2 = port:PC10<2><default><default><default>
nand0_d3 = port:PC11<2><default><default><default>
nand0_d4 = port:PC12<2><default><default><default>
nand0_d5 = port:PC13<2><default><default><default>
nand0_d6 = port:PC14<2><default><default><default>
nand0_d7 = port:PC15<2><default><default><default>
nand0_ndqs = port:PC16<2><default><default><default>
nand0_ce2 = port:PC17<2><default><default><default>
nand0_ce3 = port:PC18<2><default><default><default>

;----------------------------------------------------------------------------------
;disp init configuration
;
;disp_mode (0:screen0<screen0,fb0>)
;screenx_output_type (0:none; 1:lcd; 3:hdmi;)
;screenx_output_mode (used for hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50)
; (5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60)
;fbx format (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)
;fbx pixel sequence (0:ARGB 1:BGRA 2:ABGR 3:RGBA)
;fb0_scaler_mode_enable(scaler mode enable, used FE)
;fbx_width,fbx_height (framebuffer horizontal/vertical pixels, fix to output resolution while equal 0)
;lcdx_backlight (lcd init backlight,the range:[0,256],default:197
;lcdx_yy (lcd init screen bright/contrast/saturation/hue, value:0~100, default:50/50/57/50)
;lcd0_contrast (LCD contrast, 0~100)
;lcd0_saturation (LCD saturation, 0~100)
;lcd0_hue (LCD hue, 0~100)
;----------------------------------------------------------------------------------
[disp_init]
disp_init_enable = 1
disp_mode = 0

screen0_output_type = 1
screen0_output_mode = 4

screen1_output_type = 1
screen1_output_mode = 4

fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0
fb0_width = 0
fb0_height = 0

fb1_format = 10
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 0
fb1_width = 0
fb1_height = 0

lcd0_backlight = 197
lcd1_backlight = 197

lcd0_bright = 50
lcd0_contrast = 50
lcd0_saturation = 57
lcd0_hue = 50

lcd1_bright = 50
lcd1_contrast = 50
lcd1_saturation = 57
lcd1_hue = 50

;----------------------------------------------------------------------------------
;lcd0 configuration

;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:dsi; 5:edp; 6:extend dsi
;lcd_x: lcd horizontal resolution
;lcd_y: lcd vertical resolution
;lcd_width: width of lcd in mm
;lcd_height: height of lcd in mm
;lcd_dclk_freq: in MHZ unit
;lcd_pwm_freq: in HZ unit
;lcd_pwm_pol: lcd backlight PWM polarity
;lcd_pwm_max_limit lcd backlight PWM max limit(<=255)
;lcd_hbp: hsync back porch
;lcd_ht: hsync total cycle
;lcd_vbp: vsync back porch
;lcd_vt: vysnc total cycle
;lcd_hspw: hsync plus width
;lcd_vspw: vysnc plus width
;lcd_lvds_if: 0:single link; 1:dual link
;lcd_lvds_colordepth: 0:8bit; 1:6bit
;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither
;lcd_io_phase: 0:noraml; 1:intert phase(0~3bit: vsync phase; 4~7bit:hsync phase;
; 8~11bit:dclk phase; 12~15bit:de phase)
;lcd_gamma_en lcd gamma correction enable
;lcd_bright_curve_en lcd bright curve correction enable
;lcd_cmap_en lcd color map function enable
;deu_mode 0:smoll lcd screen; 1:large lcd screen(larger than 10inch)
;lcdgamma4iep: Smart Backlight parameter, lcd gamma vale * 10;
; decrease it while lcd is not bright enough; increase while lcd is too bright
;smart_color 90:normal lcd screen 65:retina lcd screen(9.7inch)
;----------------------------------------------------------------------------------
[lcd0_para]
lcd_used = 1

lcd_driver_name = "default_lcd"
lcd_if = 3
lcd_x = 768
lcd_y = 1024
lcd_width = 120
lcd_height = 160
lcd_dclk_freq = 59
lcd_pwm_used = 1
lcd_pwm_ch = 0
lcd_pwm_freq = 50000
lcd_pwm_pol = 0
lcd_hbp = 80
lcd_ht = 928
lcd_hspw = 60
lcd_vbp = 23
lcd_vt = 1065
lcd_vspw = 8
lcd_lvds_if = 0
lcd_lvds_colordepth = 0
lcd_lvds_mode = 0
lcd_frm = 1
lcd_gamma_en = 0
lcd_bright_curve_en = 0
lcd_cmap_en = 0

deu_mode = 0
lcdgamma4iep = 22
smart_color = 90

lcd_bl_en = port:PH06<1><0><default><1>
lcd_power = "axp22_dc1sw"
lcd_gpio_0 = port:PH07<1><0><default><1>


lcdd18 = port:PD18<2><0><default><default>
lcdd19 = port:PD19<2><0><default><default>
lcdd20 = port:PD20<2><0><default><default>
lcdd21 = port:PD21<2><0><default><default>
lcdd22 = port:PD22<2><0><default><default>
lcdd23 = port:PD23<2><0><default><default>
lcdclk = port:PD24<2><0><default><default>
lcdde = port:PD25<2><0><default><default>
lcdhsync = port:PD26<2><0><default><default>
lcdvsync = port:PD27<2><0><default><default>
;----------------------------------------------------------------------------------
;pwm config
;----------------------------------------------------------------------------------
[pwm0_para]
pwm_used = 1
pwm_positive = port:PH00<2><0><default><default>

[pwm1_para]
pwm_used = 0
pwm_positive = port:PH01<2><0><default><default>

;--------------------------------------------------------------------------------
;vip (video input port) configuration
;vip_used: 0:disable 1:enable
;vip_mode: 0:sample one interface to one buffer 1:sample two interface to one buffer
;vip_dev_qty: The quantity of devices linked to capture bus
;
;vip_define_sensor_list: If you want use sensor detect function, please set vip_define_sensor_list = 1, and
; verify that file /system/etc/hawkview/sensor_list_cfg.ini is properly configured!
;
;vip_dev(x)_pos: sensor position, "rear" or "front", if vip_define_sensor_list = 1,vip_dev(x)_pos must be configured!
;
;vip_dev(x)_isp_used 0:not use isp 1:use isp
;vip_dev(x)_fmt: 0:yuv 1:bayer raw rgb
;vip_dev(x)_stby_mode: 0:not shut down power at standby 1:shut down power at standby
;vip_dev(x)_vflip: flip in vertical direction 0:disable 1:enable
;vip_dev(x)_hflip: flip in horizontal direction 0:disable 1:enable
;vip_dev(x)_iovdd: camera module io power handle string, pmu power supply
;vip_dev(x)_iovdd_vol: camera module io power voltage, pmu power supply
;vip_dev(x)_avdd: camera module analog power handle string, pmu power supply
;vip_dev(x)_avdd_vol: camera module analog power voltage, pmu power supply
;vip_dev(x)_dvdd: camera module core power handle string, pmu power supply
;vip_dev(x)_dvdd_vol: camera module core power voltage, pmu power supply
;vip_dev(x)_afvdd: camera module vcm power handle string, pmu power supply
;vip_dev(x)_afvdd_vol: camera module vcm power voltage, pmu power supply
;x indicates the index of the devices which are linked to the same capture bus
;fill voltage in uV, e.g. iovdd = 2.8V, vip_devx_iovdd_vol = 2800000
;fill handle string as below:
;axp22_eldo3
;axp22_dldo4
;axp22_eldo2
;fill handle string "" when not using any pmu power supply
;--------------------------------------------------------------------------------

[csi0]

vip_used = 1
vip_mode = 0
vip_dev_qty = 2
vip_define_sensor_list = 1
vip_csi_pck = port:PE00<2><default><default><default>
vip_csi_mck = port:PE01<2><default><default><default>
vip_csi_hsync = port:PE02<2><default><default><default>
vip_csi_vsync = port:PE03<2><default><default><default>
vip_csi_d0 = port:PE04<2><default><default><default>
vip_csi_d1 = port:PE05<2><default><default><default>
vip_csi_d2 = port:PE06<2><default><default><default>
vip_csi_d3 = port:PE07<2><default><default><default>
vip_csi_d4 = port:PE08<2><default><default><default>
vip_csi_d5 = port:PE09<2><default><default><default>
vip_csi_d6 = port:PE10<2><default><default><default>
vip_csi_d7 = port:PE11<2><default><default><default>

vip_dev0_mname = "gc0308"
vip_dev0_pos = "rear"
vip_dev0_lane = 1
vip_dev0_twi_id = 2
vip_dev0_twi_addr = 0x42
vip_dev0_isp_used = 0
vip_dev0_fmt = 0
vip_dev0_stby_mode = 0
vip_dev0_vflip = 0
vip_dev0_hflip = 0
vip_dev0_iovdd = "axp22_dldo3"
vip_dev0_iovdd_vol = 2800000
vip_dev0_avdd = "axp22_ldoio0"
vip_dev0_avdd_vol = 2800000
vip_dev0_dvdd = "axp22_eldo2"
vip_dev0_dvdd_vol = 1800000
vip_dev0_afvdd = ""
vip_dev0_afvdd_vol = 2800000
vip_dev0_power_en =
vip_dev0_reset = port:PE14<1><default><default><0>
vip_dev0_pwdn = port:PE15<1><default><default><1>
vip_dev0_flash_en =
vip_dev0_flash_mode =
vip_dev0_af_pwdn =

vip_dev0_act_used = 0
vip_dev0_act_name = "ad5820_act"
vip_dev0_act_slave = 0x18

vip_dev1_mname = "gc0308"
vip_dev1_pos = "front"
vip_dev1_lane = 1
vip_dev1_twi_id = 2
vip_dev1_twi_addr = 0x42
vip_dev1_isp_used = 0
vip_dev1_fmt = 0
vip_dev1_stby_mode = 0
vip_dev1_vflip = 0
vip_dev1_hflip = 0
vip_dev1_iovdd = "axp22_dldo3"
vip_dev1_iovdd_vol = 2800000
vip_dev1_avdd = "axp22_ldoio0"
vip_dev1_avdd_vol = 2800000
vip_dev1_dvdd = "axp22_eldo2"
vip_dev1_dvdd_vol = 1800000
vip_dev1_afvdd = ""
vip_dev1_afvdd_vol =
vip_dev1_power_en =
vip_dev1_reset = port:PE14<1><default><default><0>
vip_dev1_pwdn = port:PE17<1><default><default><1>
vip_dev1_flash_en =
vip_dev1_flash_mode =
vip_dev1_af_pwdn =

[camera_list_para]
camera_list_para_used =1
gc0308 =1
gc0328 =1
gc0329 =1
gc2155 =1
gc2035 =1
ov5647 =1
bf3703 =1
bf3920 =1


;-------------------------------------------------------------------------------
; mmc configuration
;
; Config Guide
; sdc_used: 1-enable card, 0-disable card
; sdc_detmode: card detect mode
; 1-detect card by gpio polling
; 2-detect card by gpio irq(must use IO with irq function)
; 3-no detect, always in for boot card
; 4-manually insert and remove by /proc/driver/sunxi-mmc.x/insert
; sdc_buswidth: card bus width, 1-1bit, 4-4bit, 8-8bit
; sdc_use_wp: 1-with write protect IO, 0-no write protect IO
; sdc_isio: for sdio card
; sdc_regulator: power control.if card supports UHS-I/DDR and HS200 timing for
; SD3.0 or eMMC4.5, regulator must be configured. the value is
; the ldo name of AXP221, eg: sdc_regulator = "axp22_eldo2"
; other: GPIO Mapping configuration
;
; Note:
; 1 if detmode=2, sdc_det's config=6
; else if detmode=1, sdc_det's config=0
; else sdc_det IO is not necessary
; 2 if the customer wants to support UHS-I and HS200 features, he must provide
; an independent power supply for the card. This is only used in platforms
; that supports SD3.0 cards and eMMC4.4+ flashes
;-------------------------------------------------------------------------------
[mmc0_para]
sdc_used = 1
sdc_detmode = 2
sdc_buswidth = 4
sdc_d1 = port:PF00<2><1><2><default>
sdc_d0 = port:PF01<2><1><2><default>
sdc_clk = port:PF02<2><1><2><default>
sdc_cmd = port:PF03<2><1><2><default>
sdc_d3 = port:PF04<2><1><2><default>
sdc_d2 = port:PF05<2><1><2><default>
sdc_det = port:PB04<4><1><2><default>
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc1_para]
sdc_used = 1
sdc_detmode = 4
sdc_buswidth = 4
sdc_clk = port:PG00<2><1><1><default>
sdc_cmd = port:PG01<2><1><1><default>
sdc_d0 = port:PG02<2><1><1><default>
sdc_d1 = port:PG03<2><1><1><default>
sdc_d2 = port:PG04<2><1><1><default>
sdc_d3 = port:PG05<2><1><1><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 1
sdc_regulator = "none"

[mmc2_para]
sdc_used = 0
sdc_detmode = 3
sdc_buswidth = 8
sdc_2xmode = 1
sdc_clk = port:PC05<3><1><2><default>
sdc_cmd = port:PC06<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>
sdc_d4 = port:PC12<3><1><2><default>
sdc_d5 = port:PC13<3><1><2><default>
sdc_d6 = port:PC14<3><1><2><default>
sdc_d7 = port:PC15<3><1><2><default>
emmc_rst = port:PC16<3><1><2><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

;----------------------------------------------------------------------------------
;usb configuration
;usb_used: usb controller enable, 0-disable, 1-enable
;usb_port_type: usb mode: 0-device, 1-host, 2-otg
;usb_detect_type: usb hotplug detect mode, 0-none, 1-vbus/id detect, 2-id/dpdm detect
;usb_id_gpio: usb id detect IO
;usb_det_vbus_gpio: usb vbus detect IO, "axp_ctrl" for axp
;usb_drv_vbus_gpio: usb dirve vbus IO
;usb_restrict_gpio: usb current restrict IO
;usb_restric_flag: usb current restrict flag
;----------------------------------------------------------------------------------
[usbc0]
usb_used = 1
usb_port_type = 2
usb_detect_type = 1
usb_id_gpio = port:PH08<0><1><default><default>
usb_det_vbus_gpio = "axp_ctrl"
usb_drv_vbus_gpio = port:power4<1><0><default><0>
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0
usb_restric_voltage = 3550000
usb_restric_capacity= 5
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_regulator_id_vbus = "axp22_dcdc1"
usb_regulator_id_vbus_vol = 3000000

[usbc1]
usb_used = 1
usb_drv_vbus_gpio =
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_not_suspend = 0


;----------------------------------------------------------------------------------

; USB Device vendor Info.
;----------------------------------------------------------------------------------
[usb_feature]
vendor_id = 0x1F3A
mass_storage_id = 0x1000
adb_id = 0x1001

manufacturer_name = "USB Developer"
product_name = "Android"
serial_number = "20080411"

[msc_feature]
vendor_name = "USB 2.0"
product_name = "USB Flash Driver"
release = 100
luns = 2

[serial_feature]
serial_unique = 1

;--------------------------------------------------------------------------------
; G sensor configuration
; gs_twi_id --- TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2)
;--------------------------------------------------------------------------------
[gsensor_para]
gsensor_used = 1
gsensor_twi_id = 1
gsensor_twi_addr = 0x18
gsensor_int1 = port:PB06<4><1><default><default>
gsensor_int2 =

;--------------------------------------------------------------------------------
; G sensor automatic detection configuration
;gsensor_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[gsensor_list_para]
gsensor_det_used = 1
bma250 = 1
stk831x = 1
mma8452 = 1
mma7660 = 1
mma865x = 1
mc32x0 = 1
afa750 = 1
lis3de_acc = 1
lis3dh_acc = 1
kxtik = 1
dmard10 = 1
dmard09 = 1
mxc622x = 1
fxos8700 = 1
lsm303d = 1

;--------------------------------------------------------------------------------
; gps gpio configuration
; gps_spi_id: the index of SPI controller. 0: SPI0, 1: SPI1, 2: SPI2, 15: no SPI used
; gps_spi_cs_num: the chip select number of SPI controller. 0: SPI CS0, 1: SPI CS1
; gps_lradc: the lradc number for GPS used. 0 and 1 is valid, set 2 if not use lradc
;--------------------------------------------------------------------------------
[gps_para]

;--------------------------------------------------------------------------------
;wifi configuration
;wifi_sdc_id: 0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3
;wifi_usbc_id: 0- USB0, 1- USB1, 2- USB2
;wifi_usbc_type: 1- EHCI(speed 2.0), 2- OHCI(speed 1.0)
;wifi_mod_sel: 0- none, 1- ap6181, 2- ap6210(wifi+bt),
; 3 - rtl8188eu, 4- rtl8723au(wifi+bt),
; 5 - rtl8723bs, 6- esp8089
;--------------------------------------------------------------------------------
[wifi_para]
wifi_used = 1
wifi_sdc_id = 1
wifi_usbc_id = 1
wifi_usbc_type = 1
wifi_mod_sel = 8
wifi_power = "axp22_dldo1"
wifi_power_ext1 = "axp22_dldo2"
wifi_power_ext2 = ""
wifi_power_switch = port:power0<1><0><default><0>

; 1 - ap6181 sdio wifi gpio config
;ap6xxx_wl_regon = port:PL06<1><default><default><0>
;ap6xxx_wl_host_wake = port:PL07<4><default><default><0>
;ap6xxx_lpo_use_apclk = 1

; 2 - ap6210 sdio wifi gpio config
;ap6xxx_wl_regon = port:PL06<1><default><default><0>
;ap6xxx_wl_host_wake = port:PL07<4><default><default><0>
;ap6xxx_bt_regon = port:PL08<1><default><default><0>
;ap6xxx_bt_wake = port:PL10<1><default><default><0>
;ap6xxx_bt_host_wake = port:PL09<4><default><default><0>
;ap6xxx_lpo_use_apclk = 1

; 3 - rtl8188eu usb wifi gpio conifg

; 4 - rtl8723au usb wifi + bt

; 5 - rtl8723bs sdio wifi + bt
;rtl8723bs_chip_en = port:PL11<1><default><default><0>
;rtl8723bs_wl_regon = port:PL06<1><default><default><0>
;rtl8723bs_wl_host_wake = port:PL07<4><default><default><0>
;rtl8723bs_bt_regon = port:PL08<1><default><default><0>
;rtl8723bs_bt_wake = port:PL10<1><default><default><0>
;rtl8723bs_bt_host_wake = port:PL09<4><default><default><0>
;rtl8723bs_lpo_use_apclk = 0
rtl8189es_shdn = port:PL06<1><default><default><0>
rtl8189es_host_wake = port:PL07<4><default><default><0>

; 6 - eagle sdio wifi
;esp_wl_chip_en = port:PL03<1><default><default><0>
;esp_wl_rst = port:PL02<1><default><default><0>

;--------------------------------------------------------------------------------
;blue tooth
;bt_used ---- blue tooth used (0- no used, 1- used)
;bt_uard_id ---- uart index
;--------------------------------------------------------------------------------
[bt_para]
bt_used = 0
bt_uart_id = 1

;--------------------------------------------------------------------------------
;3G configuration
;--------------------------------------------------------------------------------
[3g_para]
3g_used = 0
3g_usbc_num = 1
3g_uart_num = 2
bb_name = "em66"
bb_vbat =
bb_on =
bb_pwr_on = port:PL03<1><default><default><0>
bb_wake = port:PL04<1><default><default><0>
bb_rf_dis = port:PL11<1><default><default><0>
bb_rst = port:PL05<1><default><default><0>
bb_dldo = "axp22_aldo1"
bb_dldo_min_uV = 2800000
bb_dldo_max_uV = 2800000

;--------------------------------------------------------------------------------
;gyroscope
;--------------------------------------------------------------------------------
[gy_para]
gy_used = 0
gy_twi_id = 1
gy_twi_addr = 0x6a
gy_int1 =
gy_int2 =

;--------------------------------------------------------------------------------
; Gyro automatic detection configuration
;gy_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[gy_list_para]
gy_det_used = 0
l3gd20_gyr = 1

;--------------------------------------------------------------------------------
;light sensor
;--------------------------------------------------------------------------------
[ls_para]
ls_used = 0
ls_twi_id = 1
ls_twi_addr = 0x23
ls_int = port:PB07<4><1><default><default>

;--------------------------------------------------------------------------------
; lsensor automatic detection configuration
;ls_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[ls_list_para]
ls_det_used = 0
ltr_501als = 1
jsa1212 = 1

;--------------------------------------------------------------------------------
;compass
;--------------------------------------------------------------------------------
[compass_para]
compass_used = 0
compass_twi_id = 1
compass_twi_addr = 0x0d
compass_int =

;--------------------------------------------------------------------------------
;i2s0_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;i2s0_select:0 is pcm.1 is i2s
;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
;sample_resolution :16bits/20bits/24bits
;word_select_size :16bits/20bits/24bits/32bits
;pcm_sync_period :16/32/64/128/256
;msb_lsb_first :0: msb first; 1: lsb first
;sign_extend :0: zero pending; 1: sign extend
;slot_index :slot index: 0: the 1st slot - 3: the 4th slot
;slot_width :8 bit width / 16 bit width
;frame_width :0: long frame = 2 clock width; 1: short frame
;tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;--------------------------------------------------------------------------------
[i2s0]
i2s0_used = 0
i2s0_channel = 2
i2s0_master = 4
i2s0_select = 1
audio_format = 1
signal_inversion = 1
over_sample_rate = 512
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 256
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 1
rx_data_mode = 1
i2s0_mclk =
i2s0_bclk = port:PB04<2><1><default><default>
i2s0_lrclk = port:PB05<2><1><default><default>
i2s0_dout0 = port:PB06<2><1><default><default>
i2s0_dout1 =
i2s0_dout2 =
i2s0_dout3 =
i2s0_din = port:PB07<2><1><default><default>

;--------------------------------------------------------------------------------
;i2s1_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;i2s1_select:0 is pcm.1 is i2s
;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
;sample_resolution :16bits/20bits/24bits
;word_select_size :16bits/20bits/24bits/32bits
;pcm_sync_period :16/32/64/128/256
;msb_lsb_first :0: msb first; 1: lsb first
;sign_extend :0: zero pending; 1: sign extend
;slot_index :slot index: 0: the 1st slot - 3: the 4th slot
;slot_width :8 bit width / 16 bit width
;frame_width :0: long frame = 2 clock width; 1: short frame
;tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;--------------------------------------------------------------------------------
[i2s1]
i2s1_used = 0
i2s1_channel = 2
i2s1_master = 4
i2s1_select = 1
audio_format = 1
signal_inversion = 1
over_sample_rate = 512
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 64
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 0
rx_data_mode = 0
i2s1_mclk =
i2s1_bclk = port:PG11<2><1><default><default>
i2s1_lrclk = port:PG10<2><1><default><default>
i2s1_dout = port:PG12<2><1><default><default>
i2s1_din = port:PG13<2><1><default><default>

;--------------------------------------------------------------------------------
;pa_single_vol,pa_double_vol: 31 level,1.5db/step.0x1f is the large volume.
;cap_vol:use for system record,0x0--0db,0x1--24db,0x2--27db,0x3--30db,0x4--33db,0x5--36db,0x6--39db,0x7--42db
;headphone_vol,earpiece_vol: must least than 0x3b. 0x1 is a step.
;headset_mic_vol: headset mic(mic2) vol,use for phone headset mic call
;main_mic_vol: main mic(mic1) vol,use for phone main mic call
;--------------------------------------------------------------------------------
[audio0]
audio_used = 1
headphone_vol = 0x3b
earpiece_vol = 0x3b
cap_vol = 0x7
pa_single_vol = 0x3a
pa_double_used = 1
pa_double_vol = 0x3a
headphone_direct_used = 1
headset_mic_vol = 0x6
main_mic_vol = 0x6
audio_hp_ldo =none
audio_pa_ctrl = port:PH09<1><default><default><0>
;audio_pa_ctrl = port:PA18<1><default><default><0>
aif2_used = 0
aif3_used = 0
headphone_mute_used = 0
DAC_VOL_CTRL_SPK = 0x9e9e
DAC_VOL_CTRL_HEADPHONE = 0xa0a0
;main_mic_vol = 6

;-------------------------------------------------------------------------------------
;pmu_used ---0:not used,1:used
;pmu_twi_addr ---slave address
;pmu_twi_id ---i2c bus number (0 TWI0, 1 TWI2, 2 TWI3)
;pmu_irq_id ---irq number (0 irq0,1 irq1,……)
;pmu_battery_rdc ---battery initial resistance
;pmu_battery_cap ---battery capability,mAh
;pmu_batdeten ---battery detect en;0:disable 1:enable
;pmu_runtime_chgcur ---set initial charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_earlysuspend_chgcur ---set earlysuspend charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_suspend_chgcur ---set suspend charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_shutdown_chgcur ---set shutdown charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_init_chgvol ---set initial charing target voltage,mV,4100/4220/4200/4240
;pmu_init_chgend_rate ---set initial charing end current rate,10/15
;pmu_init_chg_enabled ---set initial charing enabled,0:disable,1:enable
;pmu_init_adc_freq ---set initial adc frequency,Hz,100/200/400/800
;pmu_init_adcts_freq ---set initial adc TS,Hz,100/200/400/800
;pmu_init_chg_pretime ---set initial pre-charging time,min,40/50/60/70
;pmu_init_chg_csttime ---set initial constance-charging time,min,360/480/600/720
;pmu_batt_cap_correct ---correct the battery capacity or not when one charge cycle 0:not correct 1:correct
;pmu_bat_regu_en ---bat regulator is enable or not when charge done 0:disable 1:enable
;pmu_bat_para1 ---battery indication at 3.13V
;pmu_bat_para2 ---battery indication at 3.27V
;pmu_bat_para3 ---battery indication at 3.34V
;pmu_bat_para4 ---battery indication at 3.41V
;pmu_bat_para5 ---battery indication at 3.48V
;pmu_bat_para6 ---battery indication at 3.52V
;pmu_bat_para7 ---battery indication at 3.55V
;pmu_bat_para8 ---battery indication at 3.57V
;pmu_bat_para9 ---battery indication at 3.59V
;pmu_bat_para10 ---battery indication at 3.61V
;pmu_bat_para11 ---battery indication at 3.63V
;pmu_bat_para12 ---battery indication at 3.64V
;pmu_bat_para13 ---battery indication at 3.66V
;pmu_bat_para14 ---battery indication at 3.7V
;pmu_bat_para15 ---battery indication at 3.73V
;pmu_bat_para16 ---battery indication at 3.77V
;pmu_bat_para17 ---battery indication at 3.78V
;pmu_bat_para18 ---battery indication at 3.8V
;pmu_bat_para19 ---battery indication at 3.82V
;pmu_bat_para20 ---battery indication at 3.84V
;pmu_bat_para21 ---battery indication at 3.85V
;pmu_bat_para22 ---battery indication at 3.87V
;pmu_bat_para23 ---battery indication at 3.91V
;pmu_bat_para24 ---battery indication at 3.94V
;pmu_bat_para25 ---battery indication at 3.98V
;pmu_bat_para26 ---battery indication at 4.01V
;pmu_bat_para27 ---battery indication at 4.05V
;pmu_bat_para28 ---battery indication at 4.08V
;pmu_bat_para29 ---battery indication at 4.1V
;pmu_bat_para30 ---battery indication at 4.12V
;pmu_bat_para31 ---battery indication at 4.14V
;pmu_bat_para32 ---battery indication at 4.15V
;pmu_usbvol_limit ---set usb-ac limited voltage enable,1:enable,0:disable
;pmu_usbcur_limit ---set usb-ac limited current enable,1:enable,0:disable
;pmu_usbvol ---set usb-ac limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur ---set usb-ac limited current level,mA,500/900, 0 - not limite
;pmu_usbvol_pc ---set usb-pc limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur_pc ---set usb-pc limited current level,mA,500/900, 0 - not limite
;pmu_pwroff_vol ---set protect voltage when system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pwron_vol ---set protect voltage after system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pekoff_time ---set pek off time,ms, 4000/6000/8000/10000
;pmu_pekoff_func ---set pek off func, 0:shutdown,1:restart
;pmu_pekoff_en ---set pek offlevel powerdown or not, 0:not powerdown,1:powerdown
;pmu_peklong_time ---set pek pek long irq time,ms,1000/1500/2000/2500
;pmu_pekon_time ---set pek on time,ms,128/1000/2000/3000
;pmu_pwrok_time ---set pmu pwrok delay time,ms,8/16/32/64
;pmu_battery_warning_level1 ---low power warning high level,5%-20%,1%/step
;pmu_battery_warning_level2 ---low power warning low level,0%-15%,1%/step
;pmu_restvol_time ---battery indicaton reflash time,30/60/120/
;pmu_ocv_cou_adjust_time ---ocv battery indication reflash time,60/120/30
;pmu_chgled_func ---CHGKED pin control,0:controlled by pmu,1:controlled by Charger
;pmu_chgled_type ---CHGLED Type select when pmu_chgled_func=0,0:Type A,1:Type B
;pmu_vbusen_func ---N_VBUSEN function select,0:as an output,1:as an input
;pmu_reset ---when power key press longer than 16's,PMU reset or not.0:not reset 1:reset
;pmu_IRQ_wakeup ---press IRQ wakeup or not when sleep or power down.0:not wakeup 1:wakeup
;pmu_hot_shutdowm ---when PMU over temperature protect or not;0:disable 1:enable
;pmu_inshort ---ACIN and VBUS inshort or not by software;0:auto detect 1:inshort
;pmu_temp_enable ---temp detect enable
;pmu_charge_ltf ---charge temp low threshold voltage
;pmu_charge_htf ---charge temp high threshold voltage
;pmu_discharge_ltf ---shutdown temp low threshold voltage
;pmu_discharge_htf ---shutdown temp high threshold voltage
;pmu_temp_para1 --- temp -25 voltage
;pmu_temp_para2 --- temp -15 voltage
;pmu_temp_para3 --- temp -10 voltage
;pmu_temp_para4 --- temp -5 voltage
;pmu_temp_para5 --- temp 0 voltage
;pmu_temp_para6 --- temp 5 voltage
;pmu_temp_para7 --- temp 10 voltage
;pmu_temp_para8 --- temp 20 voltage
;pmu_temp_para9 --- temp 30 voltage
;pmu_temp_para10 --- temp 40 voltage
;pmu_temp_para11 --- temp 45 voltage
;pmu_temp_para12 --- temp 50 voltage
;pmu_temp_para13 --- temp 55 voltage
;pmu_temp_para14 --- temp 60 voltage
;pmu_temp_para15 --- temp 70 voltage
;pmu_temp_para16 --- temp 80 voltage
;--------------------------------------------------------------------------------------------------------
[pmu1_para]
pmu_used = 1
pmu_twi_addr = 0x34
pmu_twi_id = 1
pmu_irq_id = 0
pmu_battery_rdc = 100
pmu_battery_cap = 0
pmu_batdeten = 1
pmu_chg_ic_temp = 0
pmu_runtime_chgcur = 900
pmu_earlysuspend_chgcur = 1500
pmu_suspend_chgcur = 1500
pmu_shutdown_chgcur = 1500
pmu_init_chgvol = 4200
pmu_init_chgend_rate = 15
pmu_init_chg_enabled = 1
pmu_init_adc_freq = 800
pmu_init_adcts_freq = 800
pmu_init_chg_pretime = 70
pmu_init_chg_csttime = 720
pmu_batt_cap_correct = 1
pmu_bat_regu_en = 0

pmu_bat_para1 = 0
pmu_bat_para2 = 0
pmu_bat_para3 = 0
pmu_bat_para4 = 0
pmu_bat_para5 = 0
pmu_bat_para6 = 0
pmu_bat_para7 = 0
pmu_bat_para8 = 0
pmu_bat_para9 = 1
pmu_bat_para10 = 2
pmu_bat_para11 = 3
pmu_bat_para12 = 5
pmu_bat_para13 = 10
pmu_bat_para14 = 16
pmu_bat_para15 = 31
pmu_bat_para16 = 43
pmu_bat_para17 = 49
pmu_bat_para18 = 53
pmu_bat_para19 = 57
pmu_bat_para20 = 60
pmu_bat_para21 = 63
pmu_bat_para22 = 66
pmu_bat_para23 = 71
pmu_bat_para24 = 77
pmu_bat_para25 = 80
pmu_bat_para26 = 84
pmu_bat_para27 = 88
pmu_bat_para28 = 92
pmu_bat_para29 = 94
pmu_bat_para30 = 96
pmu_bat_para31 = 98
pmu_bat_para32 = 100

pmu_usbvol_limit = 0
pmu_usbcur_limit = 0
pmu_usbvol = 4000
pmu_usbcur = 0
pmu_usbvol_pc = 4400
pmu_usbcur_pc = 500
pmu_pwroff_vol = 3300
pmu_pwron_vol = 2600
pmu_pekoff_time = 6000
pmu_pekoff_func = 0
pmu_pekoff_en = 1
pmu_peklong_time = 1500
pmu_pekon_time = 1000
pmu_pwrok_time = 64
pmu_battery_warning_level1 = 15
pmu_battery_warning_level2 = 0
pmu_restvol_adjust_time = 60
pmu_ocv_cou_adjust_time = 60
pmu_chgled_func = 1
pmu_chgled_type = 0
pmu_vbusen_func = 1
pmu_reset = 0
pmu_IRQ_wakeup = 0
pmu_hot_shutdowm = 1
pmu_inshort = 0
power_start = 0

pmu_temp_enable = 0
pmu_charge_ltf = 2261
pmu_charge_htf = 388
pmu_discharge_ltf = 3200
pmu_discharge_htf = 237
pmu_temp_para1 = 7466
pmu_temp_para2 = 4480
pmu_temp_para3 = 3518
pmu_temp_para4 = 2786
pmu_temp_para5 = 2223
pmu_temp_para6 = 1788
pmu_temp_para7 = 1448
pmu_temp_para8 = 969
pmu_temp_para9 = 664
pmu_temp_para10 = 466
pmu_temp_para11 = 393
pmu_temp_para12 = 333
pmu_temp_para13 = 283
pmu_temp_para14 = 242
pmu_temp_para15 = 179
pmu_temp_para16 = 134

[pmu2_para]
pmu_used = 0
pmu_twi_addr = 0x34
pmu_twi_id = 1
pmu_irq_id = 0

;--------------------------------------------------------------------------------------------------------
[recovery_key]
key_min = 3
key_max = 5

;----------------------------------------------------------------------------------
; dvfs voltage-frequency table configuration
;
; extremity_freq(Hz): cpu extremity frequency when run benckmark or demo apk
; 1536MHz@1500mV with radiator, 1296MHz@1340mV without radiator
; max_freq: cpu maximum frequency, based on Hz, can not be more than 1200MHz
; min_freq: cpu minimum frequency, based on Hz, can not be less than 60MHz
;
; LV_count: count of LV_freq/LV_volt, must be < 16
;
; LV1: core vdd is 1.50v if cpu frequency is (1296Mhz, 1536Mhz]
; LV2: core vdd is 1.34v if cpu frequency is (1200Mhz, 1296Mhz]
; LV3: core vdd is 1.26v if cpu frequency is (1008Mhz, 1200Mhz]
; LV4: core vdd is 1.14v if cpu frequency is (816Mhz, 1008Mhz]
; LV5: core vdd is 1.04v if cpu frequency is (312Mhz, 816Mhz]
; LV6: core vdd is 0.96v if cpu frequency is (0Mhz, 312Mhz]
; LV7: core vdd is 0.96v if cpu frequency is (0Mhz, 312Mhz]
; LV8: core vdd is 0.96v if cpu frequency is (0Mhz, 312Mhz]
;
;----------------------------------------------------------------------------------
[dvfs_table]
extremity_freq = 1344000000
max_freq = 1200000000
min_freq = 120000000

LV_count = 8

LV1_freq = 1536000000
LV1_volt = 1500

LV2_freq = 1344000000
LV2_volt = 1460

LV3_freq = 1200000000
LV3_volt = 1320

LV4_freq = 1008000000
LV4_volt = 1200

LV5_freq = 816000000
LV5_volt = 1100

LV6_freq = 648000000
LV6_volt = 1040

LV7_freq = 0
LV7_volt = 1040

LV8_freq = 0
LV8_volt = 1040

;----------------------------------------------------------------------------------
;virtual device
;virtual device for pinctrl testing
;device have pin PA1 PA2
;----------------------------------------------------------------------------------
[Vdevice]
Vdevice_used = 1
Vdevice_0 = port:PA01<5><1><2><default>
Vdevice_1 = port:PA02<5><1><2><default>

;----------------------------------------------------------------------------------
;s_uart0 config parameters
;s_uart_used --s_uart0 whether used for arisc debugging
;----------------------------------------------------------------------------------
[s_uart0]
s_uart_used = 0
s_uart_tx = port:PL02<2><default><default><default>
s_uart_rx = port:PL03<2><default><default><default>

;----------------------------------------------------------------------------------
;s_rsb0 config parameters
;s_rsb_used --s_rsb0 whether used for arisc
;----------------------------------------------------------------------------------
[s_rsb0]
s_rsb_used = 1
s_rsb_sck = port:PL00<2><1><2><default>
s_rsb_sda = port:PL01<2><1><2><default>

;----------------------------------------------------------------------------------
;s_jtag0 config parameters
;s_jtag0_used --s_jtag0 whether used for arisc
;
;----------------------------------------------------------------------------------
[s_jtag0]
s_jtag_used = 0
s_jtag_tms = port:PL04<2><1><2><default>
s_jtag_tck = port:PL05<2><1><2><default>
s_jtag_tdo = port:PL06<2><1><2><default>
s_jtag_tdi = port:PL07<2><1><2><default>

;----------------------------------------------------------------------------------
;s_powchk cpus power check
;s_powchk_used --power check whether used for arisc in super standby
; bit31:enable power updat, bit1:wakeup when power state exception
; bit0:wakeup when power consumption exception
;s_power_reg the expected regs stand for power on/off state
;s_system_power the limit maxmum power consumption when super standby (unit: mw)
;
;----------------------------------------------------------------------------------
[s_powchk]
s_powchk_used = 0x80000000
s_power_reg = 0x00008061
s_system_power = 50

[mali_para]
mali_used = 1
mali_clkdiv = 1
mali_extreme_freq = 408
mali_extreme_vol = 1100


;----------------------------------------------------------------------------------
; dram dvfs voltage-frequency table configuration
;
; LV_count: count of LV_freq/LV_volt
;
; LV1: core vdd is 1.1v if dram frequency is (360Mhz, 552Mhz]
; LV2: core vdd is 1.0v if dram frequency is ( 0Mhz, 360Mhz]
; LV3: core vdd is 1.0v if dram frequency is ( 0Mhz, 360Mhz]
;
;----------------------------------------------------------------------------------
[dram_dvfs_table]
LV_count = 3

LV1_freq = 552000000
LV1_volt = 1100

LV2_freq = 360000000
LV2_volt = 1100

LV3_freq = 0
LV3_volt = 1100

;----------------------------------------------------------------------------------
;charging_type config parameters
;charging_type 0:uboot charging, 1:android charging
;----------------------------------------------------------------------------------
[charging_type]
charging_type = 1

;----------------------------------------------------------------------------------
;leds config parameters
;leds_used 0:uboot charging, 1:android charging
;----------------------------------------------------------------------------------
[leds_para]
leds_used = 0
red_led = port:power3<1><default><default><0>
red_led_active_low = 1
green_led = port:power1<1><default><default><0>
green_led_active_low = 0
blue_led =
blue_led_active_low = 0

инит
import init.sun8i.usb.rc

on init
#See storage config details at http://source.android.com/tech/storage/
#mkdir /mnt/shell/emulated 0700 shell shell
#mkdir /storage/emulated 0555 root root

#export EXTERNAL_STORAGE /storage/emulated/legacy
#export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
#export EMULATED_STORAGE_TARGET /storage/emulated
# export MEDIA_STORAGE /mnt/media/sdcard

# Support legacy paths
#symlink /storage/emulated/legacy /sdcard
#symlink /storage/emulated/legacy /mnt/sdcard
#symlink /storage/emulated/legacy /storage/sdcard0
#symlink /mnt/shell/emulated/0 /storage/emulated/legacy

# export EXTERNAL_STORAGE /mnt/sdcard
# mkdir /mnt/sdcard 0000 system system
# symlink /mnt/sdcard /sdcard

#mkdir /mnt/extsd 0000 system system
#mkdir /mnt/usbhost1 0000 system system
mount debugfs debugfs /sys/kernel/debug

mkdir /mnt/sdcard 0700 shell shell
mkdir /mnt/extsd 0700 shell shell
mkdir /mnt/usbhost1 0700 shell shell

symlink /mnt/sdcard /sdcard
export EXTERNAL_STORAGE /mnt/sdcard
mkdir /databk 0700 root system

on early-fs
mount_all /fstab.sun8i
setprop ro.crypto.fuse_sdcard true
insmod /system/vendor/modules/disp.ko
insmod /system/vendor/modules/lcd.ko
insmod /system/vendor/modules/mali.ko
insmod /system/vendor/modules/leds-sunxi.ko
# insmod /system/vendor/modules/bcmdhd.ko

on post-fs-data
mkdir /data/media 0770 media_rw media_rw
#mkdir /mnt/media/sdcard 0770 media_rw media_rw

on fs
format_userdata /dev/block/by-name/UDISK AMPE
# radio related, such as imei.conf
mkdir /data/misc/radio 0777 system radio



#csi module
insmod /system/vendor/modules/videobuf-core.ko
insmod /system/vendor/modules/videobuf-dma-contig.ko
insmod /system/vendor/modules/cam_detect.ko
insmod /system/vendor/modules/actuator.ko
insmod /system/vendor/modules/ad5820_act.ko
insmod /system/vendor/modules/cci.ko
insmod /system/vendor/modules/vfe_os.ko
insmod /system/vendor/modules/vfe_subdev.ko
insmod /system/vendor/modules/gc0328.ko
insmod /system/vendor/modules/gc0308.ko
insmod /system/vendor/modules/gc0329.ko
insmod /system/vendor/modules/gc2155.ko
insmod /system/vendor/modules/ov5647.ko
insmod /system/vendor/modules/bf3703.ko
insmod /system/vendor/modules/vfe_v4l2.ko

# bluetooth
# UART device
chmod 0660 /dev/ttyS1
chown bluetooth net_bt_stack /dev/ttyS1

# power up/down interface
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill0/type
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type
write /sys/class/rfkill/rfkill0/state 0

# bluetooth LPM
chmod 0220 /proc/bluetooth/sleep/lpm
chmod 0220 /proc/bluetooth/sleep/btwrite
chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrite
write /proc/bluetooth/sleep/lpm 1

#insmod tp and keyboard gsensor
insmod /system/vendor/modules/sw-device.ko
insmod /system/vendor/modules/sunxi-keyboard.ko
insmod /system/vendor/modules/gslX680new.ko

#insmod usb ethernet
insmod /system/vendor/modules/usbnet.ko
insmod /system/vendor/modules/asix.ko
insmod /system/vendor/modules/qf9700.ko
insmod /system/vendor/modules/mcs7830.ko
insmod /system/vendor/modules/rtl8150.ko
insmod /system/vendor/modules/cdc_ether.ko

# talking standby
chown radio system /sys/power/scene_lock
chmod 0644 /sys/power/scene_lock
chown radio system /sys/power/scene_unlock
chmod 0644 /sys/power/scene_unlock
chown radio system /sys/power/scene_state
chmod 0644 /sys/power/scene_state

#2G or 3G init.rc
import init.sunxi.3gdongle.rc

#service logcat /system/bin/logcat -r 1000 -n 10 -v time -f /data/local/logcat.log
# class main

#logger service: logger [kernel|android|radio]
service logger_kernel /system/bin/logger.sh kernel
user root
disabled
service logger_android /system/bin/logger.sh android
user root
disabled
service logger_radio /system/bin/logger.sh radio
user root
disabled
on property:rw.logger=1
start logger_kernel
start logger_android
start logger_radio

# virtual sdcard daemon running as media_rw (1023)
#service sdcard /system/bin/sdcard /data/media /mnt/shell/emulated 1023 1023
#service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
# class late_start

# ril related services
service ril-daemon /system/bin/rild -l libsoftwinner-ril.so -- -d /dev/ttyUSB2
class main
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
user root
disabled
group radio cache inet misc audio sdcard_rw log

# 1. realtek & eagle wifi service
# 1.1 realtek & eagle wifi sta service
service wpa_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-O/data/misc/wifi/sockets \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
# we will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
# group wifi inet keystore
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot

# 1.2 realtek & eagle wifi sta p2p concurrent service
service p2p_supplicant /system/bin/wpa_supplicant \
-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
-e/data/misc/wifi/entropy.bin -N \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-O/data/misc/wifi/sockets \
-g@android:wpa_wlan0
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot

# 2. broadcom wifi service
# 2.1 broadcom wifi station and softap
#service wpa_supplicant /system/bin/wpa_supplicant \
# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
# -I/system/etc/wifi/wpa_supplicant_overlay.conf \
# -O/data/misc/wifi/sockets \
# -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
# # we will start as root and wpa_supplicant will switch to user wifi
# # after setting up the capabilities required for WEXT
# # user wifi
# # group wifi inet keystore
# class main
# socket wpa_wlan0 dgram 660 wifi wifi
# disabled
# oneshot

# 2.2 broadcom wifi sta p2p concurrent service
#service p2p_supplicant /system/bin/wpa_supplicant \
# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
# -I/system/etc/wifi/wpa_supplicant_overlay.conf \
# -O/data/misc/wifi/sockets -N \
# -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
# -I/system/etc/wifi/p2p_supplicant_overlay.conf \
# -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin \
# -g@android:wpa_wlan0
# # we will start as root and wpa_supplicant will switch to user wifi
# # after setting up the capabilities required for WEXT
# # user wifi
# # group wifi inet keystore
# class main
# socket wpa_wlan0 dgram 660 wifi wifi
# disabled
# oneshot

on property:sys.boot_completed=1
start ril-daemon
start u3gmonitor



а вот ещё один на весь экран и правильное отображение,но опять же на тычки не реагирует,нужно гсенсор врубить,если не ошибаюсь...у меня мало инфы и времени, я же самоучка с нуля =)
конфиг
;A33 Y3 7.85" lcd panel board application
; the difference between Y2 and Y3:
; wifi/bt dram nand
; Y2 AP6210 SKHYNIX MICRON MLC
; Y3 rtl8723bs MIRA TOSHIBA MLC
;---------------------------------------------------------------------------------------------------------
; port configuration:
; port_name = port:GPIO<mux><pull up/down><driver level><default value>
; mux: GPIO function configuration, 0-input, 1-output, 2+: special funciton for modules
; pull up/down: 1-pull up, 2-pull down
; driver level: 0,1,2,3. 2 is recommended
; default value: default output value when this IO is configured as an output IO
;---------------------------------------------------------------------------------------------------------

[product]
version = "100"
machine = "evb"

;---------------------------------------------------------------------------------------------------------
; eraseflag - 1 erase data partition, 0 - do not erase data partition
; next_work - action after burn, 0x0 by config, 0x1, normal, 0x2 reboot 0x3 ,shutdown,0x4 reupdate ,0x5 boot
;---------------------------------------------------------------------------------------------------------
[platform]
eraseflag = 1
next_work = 3

;----------------------------------------------------------------------------------
;[target] system bootup configuration
;boot_clock = CPU boot frequency, Unit: MHz
;storage_type = boot medium, 0-nand, 1-card0, 2-card2, -1(defualt)auto scan
;----------------------------------------------------------------------------------
[target]
boot_clock = 1008
storage_type = -1

;---------------------------------------------------------------------------------
; uboot key detect enable
; 当keyen_flag = 1 时,支持按键检测
; 当keyen_flag = 0 时,不支持
;---------------------------------------------------------------------------------
[key_detect_en]
keyen_flag = 1

;----------------------------------------------------------------------------------
;dcdc1_vol ---set dcdc1 voltage,mV,1600-3400,100mV/step
;dcdc2_vol ---set dcdc2 voltage,mV,600-1540,20mV/step
;dcdc3_vol ---set dcdc3 voltage,mV,600-1860,20mV/step
;dcdc4_vol ---set dcdc4 voltage,mV,600-1540,20mV/step
;dcdc5_vol ---set dcdc5 voltage,mV,1000-2550,50mV/step
;aldo2_vol ---set aldo2 voltage,mV,700-3300,100mV/step
;aldo3_vol ---set aldo3 voltage,mV,700-3300,100mV/step
;----------------------------------------------------------------------------------
[power_sply]
dcdc1_vol = 3000
dcdc2_vol = 1100
dcdc3_vol = 1200
dcdc4_vol = 0
dcdc5_vol = 1500
aldo2_vol = 2500
aldo3_vol = 3000

;----------------------------------------------------------------------------------
;card boot
;----------------------------------------------------------------------------------
[card_boot]
logical_start = 40960
sprite_gpio0 =

;----------------------------------------------------------------------------------
;[cardx_boot_para] boot card configuration
;card_ctrl = boot card NO. 0 or 2
;card_high_speed = speed mode, 0-normal mode(up to 25MHz), 1-high speed mode(up to 50MHz)
;card_line = boot card buswidth(1 or 4)
;----------------------------------------------------------------------------------
[card0_boot_para]
card_ctrl = 0
card_high_speed = 1
card_line = 4
sdc_d1 = port:PF0<2><1><2><default>
sdc_d0 = port:PF1<2><1><2><default>
sdc_clk = port:PF2<2><1><2><default>
sdc_cmd = port:PF3<2><1><2><default>
sdc_d3 = port:PF4<2><1><2><default>
sdc_d2 = port:PF5<2><1><2><default>

[card2_boot_para]
card_ctrl = 2
card_high_speed = 1
card_line = 4
sdc_2xmode = 1
sdc_clk = port:PC05<3><1><2><default>
sdc_cmd = port:PC06<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>

;----------------------------------------------------------------------------------
;[twi_para] twi for boot code
;twi_port = twi controller ID
;----------------------------------------------------------------------------------
[twi_para]
twi_port = 0
twi_scl = port:PH02<2><default><default><default>
twi_sda = port:PH03<2><default><default><default>

;----------------------------------------------------------------------------------
;[uart_para] boot debug port configuration
;uart_debug_port = uart port ID for boot debug
;----------------------------------------------------------------------------------
[uart_para]
uart_debug_port = 0
uart_debug_tx = port:PF02<3><1><default><default>
uart_debug_rx = port:PF04<3><1><default><default>

;----------------------------------------------------------------------------------
;[jtag_para] jtag configuration
;jtag_enable = 0-disable jtag, 1-enable jtag
;----------------------------------------------------------------------------------
[jtag_para]
jtag_enable = 1
jtag_ms = port:PF00<3><default><default><default>
jtag_ck = port:PF05<3><default><default><default>
jtag_do = port:PF03<3><default><default><default>
jtag_di = port:PF01<3><default><default><default>

;----------------------------------------------------------------------------------
;[clock] pll configuration
;----------------------------------------------------------------------------------
[clock]
pll3 = 297
pll4 = 300
pll6 = 600
pll8 = 408
pll9 = 480
pll10 = 297
pll_cpupat = 0
pll_gpupat = 0xc440e666
pll_videopat = 0
pll_vepat = 0
pll_hsicpat = 0
pll_depat = 0
pll_mipipat = 0
;---------------------------------------------------------------------------------------------------------
;[pm_para] power management
;standby_mode = 0-normal standby, 1-super standby
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode = 1

;*****************************************************************************
;sdram configuration
;
;*****************************************************************************
[dram_para]

dram_clk = 552
dram_type = 3
dram_zq = 0x3bbb
dram_odt_en = 1
dram_para1 = 0x10F20200
dram_para2 = 0x00
dram_mr0 = 0x1840
dram_mr1 = 0x40
dram_mr2 = 0x8
dram_mr3 = 0
dram_tpr0 = 0x0048A192
dram_tpr1 = 0x01B1B18d
dram_tpr2 = 0x00076052
dram_tpr3 = 0x0
dram_tpr4 = 0x0
dram_tpr5 = 0x0
dram_tpr6 = 0x0
dram_tpr7 = 0x0
dram_tpr8 = 0x0
dram_tpr9 = 0x0
dram_tpr10 = 0x0
dram_tpr11 = 0x0
dram_tpr12 = 168
dram_tpr13 = 0x900

;---------------------------------------------------------------------------------------------------------
; if 1 == standby_mode, then support super standby;
; else, support normal standby.
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode = 1

;---------------------------------------------------------------------------------------------------------
; wakeup_src_para:
; sometimes, u would like to add more wakeup src in standby mode, these para will be
; help;
; u need to make sure the standby mode support the wakeup src. Also, some hw
; condition must be guaranteed.
; including:
; cpu_en: power on or off.
; 1: mean power on
; 0: mean power off
; cpu_freq: indicating lowest freq. unit is Mhz;
; dram selfresh_en: selfresh or not.
; 1: enable enter selfresh
; 0: disable enter selfresh
; dram_pll: if not enter selfresh, indicating lowest freq. unit is Mhz;
; wakeup_src: to make the scenario work, the wakeup src is needed.
;---------------------------------------------------------------------------------------------------------
[wakeup_src_para]
cpu_en = 0
cpu_freq = 48
; (cpu:apb:ahb)
pll_ratio = 0x111
dram_selfresh_en= 1
dram_freq = 36
wakeup_src_wl = port:PL07<4><default><default><0>
wakeup_src_bt = port:PL09<4><default><default><0>
;bb_wake_ap = port:PL02<4><default><default><0>

;----------------------------------------------------------------------------------
;i2c configuration
; twi_used = twix enable
;----------------------------------------------------------------------------------
[twi0]
twi_used = 1
twi_scl = port:PH02<2><default><default><default>
twi_sda = port:PH03<2><default><default><default>

[twi1]
twi_used = 1
twi_scl = port:PH04<2><default><default><default>
twi_sda = port:PH05<2><default><default><default>

[twi2]
twi_used = 1
twi_scl = port:PE12<3><default><default><default>
twi_sda = port:PE13<3><default><default><default>


;----------------------------------------------------------------------------------
;uart configuration
;uart_used = uart x enable
;uart_type = 2:2 wire,4:4 wire,8:8 wire, full function
;----------------------------------------------------------------------------------
[uart0]
uart_used = 1
uart_port = 0
uart_type = 2
uart_tx = port:PF02<3><1><default><default>
uart_rx = port:PF04<3><1><default><default>

[uart1]
uart_used = 0
uart_type = 4
uart_tx = port:PG06<2><1><default><default>
uart_rx = port:PG07<2><1><default><default>
uart_rts = port:PG08<2><1><default><default>
uart_cts = port:PG09<2><1><default><default>

[uart2]
uart_used = 0
uart_type = 4
uart_tx = port:PB00<2><1><default><default>
uart_rx = port:PB01<2><1><default><default>
uart_rts = port:PB02<2><1><default><default>
uart_cts = port:PB03<2><1><default><default>

[uart3]
uart_used = 0
uart_type = 4
uart_tx = port:PH06<3><1><default><default>
uart_rx = port:PH07<3><1><default><default>
uart_rts = port:PH08<3><1><default><default>
uart_cts = port:PH09<3><1><default><default>

[uart4]
uart_used = 0
uart_port = 4
uart_type = 2
uart_tx = port:PA04<2><1><default><default>
uart_rx = port:PA05<2><1><default><default>
uart_rts = port:PA06<2><1><default><default>
uart_cts = port:PA07<2><1><default><default>

;----------------------------------------------------------------------------------
;SPI controller configuration
;spi_used = SPIx enable
;spi_cs_bitmap = SPI bit mapping
;----------------------------------------------------------------------------------
[spi0]
spi_used = 0
spi_cs_bitmap = 1
spi_mosi = port:PC00<3><default><default><default>
spi_miso = port:PC01<3><default><default><default>
spi_sclk = port:PC02<3><default><default><default>
spi_cs0 = port:PC03<3><1><default><default>

[spi1]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA00<2><1><default><default>
spi_sclk = port:PA01<2><default><default><default>
spi_mosi = port:PA02<2><default><default><default>
spi_miso = port:PA03<2><default><default><default>

;----------------------------------------------------------------------------------
;SPI device configuration
;spi_dev_num: number of spi devices
;----------------------------------------------------------------------------------
[spi_devices]
spi_dev_num = 1

;----------------------------------------------------------------------------------
;[spi_board0] spi device configuration
;modalias = spi device name
;max_speed_hz = max transfer speed
;bus_num = bus ID
;chip_select = chip select, 0,1
;mode = SPI transfer mode
;----------------------------------------------------------------------------------
[spi_board0]
modalias = "at25df641"
max_speed_hz = 50000000
bus_num = 0
chip_select = 0
mode = 0


;----------------------------------------------------------------------------------
;capacitor tp configuration
;ctp_twi_id : twi controller ID
;ctp_twi_addr : I2C slave address, 7bit
;ctp_screen_max_x/_y : resolution of touch panel
;ctp_revert_x/_y_flag : whether need to revert x/y
;ctp_exchange_x_y_flag: whether need to exchange the value of x and y
;ctp_int_port : port for tp's interrupt signal
;ctp_wakeup : port for wakeup tp
;----------------------------------------------------------------------------------
[ctp_para]
ctp_used = 1
;ctp_name = "gt910_707d5"
ctp_twi_id = 1
ctp_twi_addr = 0x40
ctp_screen_max_x = 768
ctp_screen_max_y = 1024
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 0

;gt910_update_file_path = "/system/etc/gt910_A23_mb707d5_depute_600_1024_20140506.cfg
;gt911_update_file_path = "/system/etc/gt911_A23_N02_OPDTP_800_480_20130819.cfg"
;gt912_update_file_path = "/system/etc/gt912_A23_N02_OPDTP_800_480_20131029.cfg"
;gt927_update_file_path =
;gt928_update_file_path =

ctp_int_port = port:PB05<4><default><default><default>
ctp_wakeup = port:PH01<1><default><default><1>
ctp_power_ldo = "axp22_dldo4"
ctp_power_ldo_vol = 3000
ctp_power_io =

;--------------------------------------------------------------------------------
; CTP automatic detection configuration
;ctp_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[ctp_list_para]
ctp_det_used = 1
ft5x_ts = 1
gt82x = 1
gslX680 = 1
gslX680new = 1
gt9xx_ts = 1
gt9xxf_ts = 1
tu_ts = 0
gt818_ts = 1
zet622x = 1
aw5306_ts = 1
icn83xx_ts = 0
;----------------------------------------------------------------------------------
;touch key configuration
;tkey_twi_id : twi controller ID
;tkey_twi_addr : I2C slave address, 7bit
;tkey_int : port for touch key's interrupt signal
;----------------------------------------------------------------------------------
[tkey_para]
tkey_used = 0
tkey_twi_id =
tkey_twi_addr =
tkey_int =

;----------------------------------------------------------------------------------
;motor configuration
;motor_shake : port for making the moto shaking
;----------------------------------------------------------------------------------
[motor_para]
motor_used = 0
motor_shake = port:power3<1><default><default><1>
motor_ldo = ""
motor_ldo_voltage = 3300

;----------------------------------------------------------------------------------
;thermal configuration
;ths_trip_count : temperature trigger number
;ths_trip_0 : first temperature trigger
;ths_trip_1 : second temperature trigger
;ths_trip_2 : third temperature trigger, when upto this temperature, system shutdown
;ths_trip_0_min : first temperature trigger's min freq
;ths_trip_0_max : first temperature trigger's max freq
;ths_trip_1_min : second temperature trigger's min freq
;ths_trip_1_max : second temperature trigger's max freq
;----------------------------------------------------------------------------------
[ths_para]
ths_used = 1
ths_trip1_count = 3
ths_trip1_0 = 75
ths_trip1_1 = 90
ths_trip1_2 = 110
ths_trip1_0_min = 0
ths_trip1_0_max = 1
ths_trip1_1_min = 1
ths_trip1_1_max = 3
ths_trip1_2_min = 0
ths_trip1_2_max = 0
;----------------------------------------------------------------------------------
;cooler_table cooler_count <=32
;----------------------------------------------------------------------------------
[cooler_table]
cooler_count = 4
cooler0 = "1344000 4 4294967295 0"
cooler1 = "1200000 4 4294967295 0"
cooler2 = "1008000 4 4294967295 0"
cooler3 = "648000 4 4294967295 0"

;----------------------------------------------------------------------------------
;[nandx_para]
;nand_support_2ch = support dual channel
;nand0_used = nand0使能标识
;----------------------------------------------------------------------------------
[nand0_para]
nand_support_2ch = 0

nand0_used = 1
nand0_we = port:PC00<2><default><default><default>
nand0_ale = port:PC01<2><default><default><default>
nand0_cle = port:PC02<2><default><default><default>
nand0_ce1 = port:PC03<2><default><default><default>
nand0_ce0 = port:PC04<2><default><default><default>
nand0_nre = port:PC05<2><default><default><default>
nand0_rb0 = port:PC06<2><default><default><default>
nand0_rb1 = port:PC07<2><default><default><default>
nand0_d0 = port:PC08<2><default><default><default>
nand0_d1 = port:PC09<2><default><default><default>
nand0_d2 = port:PC10<2><default><default><default>
nand0_d3 = port:PC11<2><default><default><default>
nand0_d4 = port:PC12<2><default><default><default>
nand0_d5 = port:PC13<2><default><default><default>
nand0_d6 = port:PC14<2><default><default><default>
nand0_d7 = port:PC15<2><default><default><default>
nand0_ndqs = port:PC16<2><default><default><default>
nand0_ce2 = port:PC17<2><default><default><default>
nand0_ce3 = port:PC18<2><default><default><default>

;----------------------------------------------------------------------------------
;disp init configuration
;
;disp_mode (0:screen0<screen0,fb0>)
;screenx_output_type (0:none; 1:lcd; 3:hdmi;)
;screenx_output_mode (used for hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50)
; (5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60)
;fbx format (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)
;fbx pixel sequence (0:ARGB 1:BGRA 2:ABGR 3:RGBA)
;fb0_scaler_mode_enable(scaler mode enable, used FE)
;fbx_width,fbx_height (framebuffer horizontal/vertical pixels, fix to output resolution while equal 0)
;lcdx_backlight (lcd init backlight,the range:[0,256],default:197
;lcdx_yy (lcd init screen bright/contrast/saturation/hue, value:0~100, default:50/50/57/50)
;lcd0_contrast (LCD contrast, 0~100)
;lcd0_saturation (LCD saturation, 0~100)
;lcd0_hue (LCD hue, 0~100)
;----------------------------------------------------------------------------------
[disp_init]
disp_init_enable = 1
disp_mode = 0

screen0_output_type = 1
screen0_output_mode = 4

screen1_output_type = 1
screen1_output_mode = 4

fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0
fb0_width = 0
fb0_height = 0

fb1_format = 10
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 0
fb1_width = 0
fb1_height = 0

lcd0_backlight = 102
lcd1_backlight = 102

lcd0_bright = 50
lcd0_contrast = 50
lcd0_saturation = 57
lcd0_hue = 50

lcd1_bright = 50
lcd1_contrast = 50
lcd1_saturation = 57
lcd1_hue = 50

;----------------------------------------------------------------------------------
;lcd0 configuration

;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:dsi; 5:edp; 6:extend dsi
;lcd_x: lcd horizontal resolution
;lcd_y: lcd vertical resolution
;lcd_width: width of lcd in mm
;lcd_height: height of lcd in mm
;lcd_dclk_freq: in MHZ unit
;lcd_pwm_freq: in HZ unit
;lcd_pwm_pol: lcd backlight PWM polarity
;lcd_pwm_max_limit lcd backlight PWM max limit(<=255)
;lcd_hbp: hsync back porch
;lcd_ht: hsync total cycle
;lcd_vbp: vsync back porch
;lcd_vt: vysnc total cycle
;lcd_hspw: hsync plus width
;lcd_vspw: vysnc plus width
;lcd_lvds_if: 0:single link; 1:dual link
;lcd_lvds_colordepth: 0:8bit; 1:6bit
;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither
;lcd_io_phase: 0:noraml; 1:intert phase(0~3bit: vsync phase; 4~7bit:hsync phase;
; 8~11bit:dclk phase; 12~15bit:de phase)
;lcd_gamma_en lcd gamma correction enable
;lcd_bright_curve_en lcd bright curve correction enable
;lcd_cmap_en lcd color map function enable
;deu_mode 0:smoll lcd screen; 1:large lcd screen(larger than 10inch)
;lcdgamma4iep: Smart Backlight parameter, lcd gamma vale * 10;
; decrease it while lcd is not bright enough; increase while lcd is too bright
;smart_color 90:normal lcd screen 65:retina lcd screen(9.7inch)
;----------------------------------------------------------------------------------
[lcd0_para]
lcd_used = 1

lcd_driver_name = "default_lcd"
lcd_if = 3
lcd_x = 768
lcd_y = 1024
lcd_width = 120
lcd_height = 160
lcd_dclk_freq = 59
lcd_pwm_used = 1
lcd_pwm_ch = 0
lcd_pwm_freq = 50000
lcd_pwm_pol = 0
lcd_hbp = 80
lcd_ht = 928
lcd_hspw = 60
lcd_vbp = 23
lcd_vt = 1065
lcd_vspw = 8
lcd_lvds_if = 0
lcd_lvds_colordepth = 0
lcd_lvds_mode = 0
lcd_frm = 1
lcd_gamma_en = 0
lcd_bright_curve_en = 0
lcd_cmap_en = 0

deu_mode = 0
lcdgamma4iep = 22
smart_color = 90

lcd_bl_en = port:PH06<1><0><default><1>
lcd_power = "axp22_dc1sw"
lcd_gpio_0 = port:PH07<1><0><default><1>
lcd_gpio_1 = port:PL05<1><0><default><1>

lcdd18 = port:PD18<3><0><default><default>
lcdd19 = port:PD19<3><0><default><default>
lcdd20 = port:PD20<3><0><default><default>
lcdd21 = port:PD21<3><0><default><default>
lcdd22 = port:PD22<3><0><default><default>
lcdd23 = port:PD23<3><0><default><default>
lcdclk = port:PD24<3><0><default><default>
lcdde = port:PD25<3><0><default><default>
lcdhsync = port:PD26<3><0><default><default>
lcdvsync = port:PD27<3><0><default><default>


;----------------------------------------------------------------------------------
;pwm config
;----------------------------------------------------------------------------------
[pwm0_para]
pwm_used = 1
pwm_positive = port:PH00<2><0><default><default>

[pwm1_para]
pwm_used = 0
pwm_positive = port:PH01<2><0><default><default>

;--------------------------------------------------------------------------------
;vip (video input port) configuration
;vip_used: 0:disable 1:enable
;vip_mode: 0:sample one interface to one buffer 1:sample two interface to one buffer
;vip_dev_qty: The quantity of devices linked to capture bus
;
;vip_define_sensor_list: If you want use sensor detect function, please set vip_define_sensor_list = 1, and
; verify that file /system/etc/hawkview/sensor_list_cfg.ini is properly configured!
;
;vip_dev(x)_pos: sensor position, "rear" or "front", if vip_define_sensor_list = 1,vip_dev(x)_pos must be configured!
;
;vip_dev(x)_isp_used 0:not use isp 1:use isp
;vip_dev(x)_fmt: 0:yuv 1:bayer raw rgb
;vip_dev(x)_stby_mode: 0:not shut down power at standby 1:shut down power at standby
;vip_dev(x)_vflip: flip in vertical direction 0:disable 1:enable
;vip_dev(x)_hflip: flip in horizontal direction 0:disable 1:enable
;vip_dev(x)_iovdd: camera module io power handle string, pmu power supply
;vip_dev(x)_iovdd_vol: camera module io power voltage, pmu power supply
;vip_dev(x)_avdd: camera module analog power handle string, pmu power supply
;vip_dev(x)_avdd_vol: camera module analog power voltage, pmu power supply
;vip_dev(x)_dvdd: camera module core power handle string, pmu power supply
;vip_dev(x)_dvdd_vol: camera module core power voltage, pmu power supply
;vip_dev(x)_afvdd: camera module vcm power handle string, pmu power supply
;vip_dev(x)_afvdd_vol: camera module vcm power voltage, pmu power supply
;x indicates the index of the devices which are linked to the same capture bus
;fill voltage in uV, e.g. iovdd = 2.8V, vip_devx_iovdd_vol = 2800000
;fill handle string as below:
;axp22_eldo3
;axp22_dldo4
;axp22_eldo2
;fill handle string "" when not using any pmu power supply
;--------------------------------------------------------------------------------

[csi0]

vip_used = 1
vip_mode = 0
vip_dev_qty = 1
vip_define_sensor_list = 1
vip_csi_pck = port:PE00<2><default><default><default>
vip_csi_mck = port:PE01<2><default><default><default>
vip_csi_hsync = port:PE02<2><default><default><default>
vip_csi_vsync = port:PE03<2><default><default><default>
vip_csi_d0 = port:PE04<2><default><default><default>
vip_csi_d1 = port:PE05<2><default><default><default>
vip_csi_d2 = port:PE06<2><default><default><default>
vip_csi_d3 = port:PE07<2><default><default><default>
vip_csi_d4 = port:PE08<2><default><default><default>
vip_csi_d5 = port:PE09<2><default><default><default>
vip_csi_d6 = port:PE10<2><default><default><default>
vip_csi_d7 = port:PE11<2><default><default><default>

vip_dev0_mname = "gc0308"
vip_dev0_pos = "rear"
vip_dev0_lane = 1
vip_dev0_twi_id = 2
vip_dev0_twi_addr = 0x42
vip_dev0_isp_used = 0
vip_dev0_fmt = 0
vip_dev0_stby_mode = 0
vip_dev0_vflip = 0
vip_dev0_hflip = 0
vip_dev0_iovdd = "axp22_dldo3"
vip_dev0_iovdd_vol = 2800000
vip_dev0_avdd = "axp22_ldoio0"
vip_dev0_avdd_vol = 2800000
vip_dev0_dvdd = "axp22_eldo2"
vip_dev0_dvdd_vol = 1800000
vip_dev0_afvdd = ""
vip_dev0_afvdd_vol = 2800000
vip_dev0_power_en =
vip_dev0_reset = port:PE16<1><default><default><0>
vip_dev0_pwdn = port:PE17<1><default><default><1>
vip_dev0_flash_en =
vip_dev0_flash_mode =
vip_dev0_af_pwdn =

vip_dev0_act_used = 0
vip_dev0_act_name = "ad5820_act"
vip_dev0_act_slave = 0x18

vip_dev1_mname = "gc0328"
vip_dev1_pos = "front"
vip_dev1_lane = 1
vip_dev1_twi_id = 2
vip_dev1_twi_addr = 0x42
vip_dev1_isp_used = 0
vip_dev1_fmt = 0
vip_dev1_stby_mode = 0
vip_dev1_vflip = 0
vip_dev1_hflip = 0
vip_dev1_iovdd = "axp22_dldo3"
vip_dev1_iovdd_vol = 2800000
vip_dev1_avdd = "axp22_ldoio0"
vip_dev1_avdd_vol = 2800000
vip_dev1_dvdd = "axp22_eldo2"
vip_dev1_dvdd_vol = 1800000
vip_dev1_afvdd = ""
vip_dev1_afvdd_vol =
vip_dev1_power_en =
vip_dev1_reset = port:PE16<1><default><default><0>
vip_dev1_pwdn = port:PE17<1><default><default><1>
vip_dev1_flash_en =
vip_dev1_flash_mode =
vip_dev1_af_pwdn =

[camera_list_para]
camera_list_para_used =1
gc0328 =1
gc0329 =1
gc2155 =1
gc0308 =1
gc2035 =1
ov5647 =1
bf3703 =1
bf3920 =1


;-------------------------------------------------------------------------------
; mmc configuration
;
; Config Guide
; sdc_used: 1-enable card, 0-disable card
; sdc_detmode: card detect mode
; 1-detect card by gpio polling
; 2-detect card by gpio irq(must use IO with irq function)
; 3-no detect, always in for boot card
; 4-manually insert and remove by /proc/driver/sunxi-mmc.x/insert
; sdc_buswidth: card bus width, 1-1bit, 4-4bit, 8-8bit
; sdc_use_wp: 1-with write protect IO, 0-no write protect IO
; sdc_isio: for sdio card
; sdc_regulator: power control.if card supports UHS-I/DDR and HS200 timing for
; SD3.0 or eMMC4.5, regulator must be configured. the value is
; the ldo name of AXP221, eg: sdc_regulator = "axp22_eldo2"
; other: GPIO Mapping configuration
;
; Note:
; 1 if detmode=2, sdc_det's config=6
; else if detmode=1, sdc_det's config=0
; else sdc_det IO is not necessary
; 2 if the customer wants to support UHS-I and HS200 features, he must provide
; an independent power supply for the card. This is only used in platforms
; that supports SD3.0 cards and eMMC4.4+ flashes
;-------------------------------------------------------------------------------
[mmc0_para]
sdc_used = 1
sdc_detmode = 2
sdc_buswidth = 4
sdc_d1 = port:PF00<2><1><2><default>
sdc_d0 = port:PF01<2><1><2><default>
sdc_clk = port:PF02<2><1><2><default>
sdc_cmd = port:PF03<2><1><2><default>
sdc_d3 = port:PF04<2><1><2><default>
sdc_d2 = port:PF05<2><1><2><default>
sdc_det = port:PB04<4><1><2><default>
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc1_para]
sdc_used = 1
sdc_detmode = 4
sdc_buswidth = 4
sdc_clk = port:PG00<2><1><1><default>
sdc_cmd = port:PG01<2><1><1><default>
sdc_d0 = port:PG02<2><1><1><default>
sdc_d1 = port:PG03<2><1><1><default>
sdc_d2 = port:PG04<2><1><1><default>
sdc_d3 = port:PG05<2><1><1><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 1
sdc_regulator = "none"

[mmc2_para]
sdc_used = 0
sdc_detmode = 3
sdc_buswidth = 8
sdc_2xmode = 1
sdc_clk = port:PC05<3><1><2><default>
sdc_cmd = port:PC06<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>
sdc_d4 = port:PC12<3><1><2><default>
sdc_d5 = port:PC13<3><1><2><default>
sdc_d6 = port:PC14<3><1><2><default>
sdc_d7 = port:PC15<3><1><2><default>
emmc_rst = port:PC16<3><1><2><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

;----------------------------------------------------------------------------------
;usb configuration
;usb_used: usb controller enable, 0-disable, 1-enable
;usb_port_type: usb mode: 0-device, 1-host, 2-otg
;usb_detect_type: usb hotplug detect mode, 0-none, 1-vbus/id detect, 2-id/dpdm detect
;usb_id_gpio: usb id detect IO
;usb_det_vbus_gpio: usb vbus detect IO, "axp_ctrl" for axp
;usb_drv_vbus_gpio: usb dirve vbus IO
;usb_restrict_gpio: usb current restrict IO
;usb_restric_flag: usb current restrict flag
;----------------------------------------------------------------------------------
[usbc0]
usb_used = 1
usb_port_type = 2
usb_detect_type = 1
usb_id_gpio = port:PH08<0><1><default><default>
usb_det_vbus_gpio = "axp_ctrl"
usb_drv_vbus_gpio = port:power4<1><0><default><0>
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0
usb_restric_voltage = 3550000
usb_restric_capacity= 5
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_regulator_id_vbus = "axp22_dcdc1"
usb_regulator_id_vbus_vol = 3000000

[usbc1]
usb_used = 1
usb_drv_vbus_gpio =
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_not_suspend = 0


;----------------------------------------------------------------------------------

; USB Device vendor Info.
;----------------------------------------------------------------------------------
[usb_feature]
vendor_id = 0x1F3A
mass_storage_id = 0x1000
adb_id = 0x1001

manufacturer_name = ""
product_name = "ImPAD0314"
serial_number = "20080411"

[msc_feature]
vendor_name = ""
product_name = "ImPAD0314"
release = 100
luns = 2

[serial_feature]
serial_unique = 1

;--------------------------------------------------------------------------------
; G sensor configuration
; gs_twi_id --- TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2)
;--------------------------------------------------------------------------------
[gsensor_para]
gsensor_used = 1
gsensor_twi_id = 1
gsensor_twi_addr = 0x18
gsensor_int1 = port:PB06<4><1><default><default>
gsensor_int2 =

;--------------------------------------------------------------------------------
; G sensor automatic detection configuration
;gsensor_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[gsensor_list_para]
gsensor_det_used = 1
bma250 = 1
stk831x = 1
mma8452 = 1
mma7660 = 1
mma865x = 1
mc32x0 = 1
afa750 = 1
lis3de_acc = 1
lis3dh_acc = 1
kxtik = 1
dmard10 = 1
dmard06 = 1
mxc622x = 1
fxos8700 = 1
lsm303d = 1

;--------------------------------------------------------------------------------
; gps gpio configuration
; gps_spi_id: the index of SPI controller. 0: SPI0, 1: SPI1, 2: SPI2, 15: no SPI used
; gps_spi_cs_num: the chip select number of SPI controller. 0: SPI CS0, 1: SPI CS1
; gps_lradc: the lradc number for GPS used. 0 and 1 is valid, set 2 if not use lradc
;--------------------------------------------------------------------------------
[gps_para]

;--------------------------------------------------------------------------------
;wifi configuration
;wifi_sdc_id: 0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3
;wifi_usbc_id: 0- USB0, 1- USB1, 2- USB2
;wifi_usbc_type: 1- EHCI(speed 2.0), 2- OHCI(speed 1.0)
;wifi_mod_sel: 0- none, 1- ap6181, 2- ap6210(wifi+bt),
; 3 - rtl8188eu, 4- rtl8723au(wifi+bt),
; 5 - rtl8723bs, 6- esp8089
;--------------------------------------------------------------------------------
[wifi_para]
wifi_used = 1
wifi_sdc_id = 1
wifi_usbc_id = 1
wifi_usbc_type = 1
wifi_mod_sel = 8
wifi_power = "axp22_dldo1"
wifi_power_ext1 = "axp22_dldo2"
wifi_power_ext2 = ""
wifi_power_switch = port:power0<1><0><default><0>

; 1 - ap6181 sdio wifi gpio config
;ap6xxx_wl_regon = port:PL06<1><default><default><0>
;ap6xxx_wl_host_wake = port:PL07<4><default><default><0>
;ap6xxx_lpo_use_apclk = 1

; 2 - ap6210 sdio wifi gpio config
;ap6xxx_wl_regon = port:PL06<1><default><default><0>
;ap6xxx_wl_host_wake = port:PL07<4><default><default><0>
;ap6xxx_bt_regon = port:PL08<1><default><default><0>
;ap6xxx_bt_wake = port:PL10<1><default><default><0>
;ap6xxx_bt_host_wake = port:PL09<4><default><default><0>
;ap6xxx_lpo_use_apclk = 1

; 3 - rtl8188eu usb wifi gpio conifg

; 4 - rtl8723au usb wifi + bt

; 5 - rtl8723bs sdio wifi + bt
;rtl8723bs_chip_en = port:PL11<1><default><default><0>
;rtl8723bs_wl_regon = port:PL06<1><default><default><0>
;rtl8723bs_wl_host_wake = port:PL07<4><default><default><0>
;rtl8723bs_bt_regon = port:PL08<1><default><default><0>
;rtl8723bs_bt_wake = port:PL10<1><default><default><0>
;rtl8723bs_bt_host_wake = port:PL09<4><default><default><0>
;rtl8723bs_lpo_use_apclk = 0

rtl8189es_shdn = port:PL06<1><default><default><0>
rtl8189es_host_wake = port:PL07<4><default><default><0>

; 6 - eagle sdio wifi
;esp_wl_chip_en = port:PL03<1><default><default><0>
;esp_wl_rst = port:PL02<1><default><default><0>

;--------------------------------------------------------------------------------
;blue tooth
;bt_used ---- blue tooth used (0- no used, 1- used)
;bt_uard_id ---- uart index
;--------------------------------------------------------------------------------
[bt_para]
bt_used = 0
bt_uart_id = 1

;--------------------------------------------------------------------------------
;3G configuration
;--------------------------------------------------------------------------------
[3g_para]
3g_used = 0
3g_usbc_num = 1
3g_uart_num = 2
bb_name = "em66"
bb_vbat =
bb_on =
bb_pwr_on = port:PL03<1><default><default><0>
bb_wake = port:PL04<1><default><default><0>
bb_rf_dis = port:PL11<1><default><default><0>
bb_rst = port:PL05<1><default><default><0>
bb_dldo = "axp22_aldo1"
bb_dldo_min_uV = 2800000
bb_dldo_max_uV = 2800000

;--------------------------------------------------------------------------------
;gyroscope
;--------------------------------------------------------------------------------
[gy_para]
gy_used = 0
gy_twi_id = 1
gy_twi_addr = 0x6a
gy_int1 =
gy_int2 =

;--------------------------------------------------------------------------------
; Gyro automatic detection configuration
;gy_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[gy_list_para]
gy_det_used = 0
l3gd20_gyr = 1

;--------------------------------------------------------------------------------
;light sensor
;--------------------------------------------------------------------------------
[ls_para]
ls_used = 0
ls_twi_id = 1
ls_twi_addr = 0x23
ls_int = port:PB07<4><1><default><default>

;--------------------------------------------------------------------------------
; lsensor automatic detection configuration
;ls_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[ls_list_para]
ls_det_used = 1
ltr_501als = 1
jsa1212 = 1

;--------------------------------------------------------------------------------
;compass
;--------------------------------------------------------------------------------
[compass_para]
compass_used = 0
compass_twi_id = 1
compass_twi_addr = 0x0d
compass_int =

;--------------------------------------------------------------------------------
;i2s0_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;i2s0_select:0 is pcm.1 is i2s
;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
;sample_resolution :16bits/20bits/24bits
;word_select_size :16bits/20bits/24bits/32bits
;pcm_sync_period :16/32/64/128/256
;msb_lsb_first :0: msb first; 1: lsb first
;sign_extend :0: zero pending; 1: sign extend
;slot_index :slot index: 0: the 1st slot - 3: the 4th slot
;slot_width :8 bit width / 16 bit width
;frame_width :0: long frame = 2 clock width; 1: short frame
;tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;--------------------------------------------------------------------------------
[i2s0]
i2s0_used = 0
i2s0_channel = 2
i2s0_master = 4
i2s0_select = 1
audio_format = 1
signal_inversion = 1
over_sample_rate = 512
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 256
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 1
rx_data_mode = 1
i2s0_mclk =
i2s0_bclk = port:PB04<2><1><default><default>
i2s0_lrclk = port:PB05<2><1><default><default>
i2s0_dout0 = port:PB06<2><1><default><default>
i2s0_dout1 =
i2s0_dout2 =
i2s0_dout3 =
i2s0_din = port:PB07<2><1><default><default>

;--------------------------------------------------------------------------------
;i2s1_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;i2s1_select:0 is pcm.1 is i2s
;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
;sample_resolution :16bits/20bits/24bits
;word_select_size :16bits/20bits/24bits/32bits
;pcm_sync_period :16/32/64/128/256
;msb_lsb_first :0: msb first; 1: lsb first
;sign_extend :0: zero pending; 1: sign extend
;slot_index :slot index: 0: the 1st slot - 3: the 4th slot
;slot_width :8 bit width / 16 bit width
;frame_width :0: long frame = 2 clock width; 1: short frame
;tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;--------------------------------------------------------------------------------
[i2s1]
i2s1_used = 0
i2s1_channel = 2
i2s1_master = 4
i2s1_select = 1
audio_format = 1
signal_inversion = 1
over_sample_rate = 512
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 64
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 0
rx_data_mode = 0
i2s1_mclk =
i2s1_bclk = port:PG11<2><1><default><default>
i2s1_lrclk = port:PG10<2><1><default><default>
i2s1_dout = port:PG12<2><1><default><default>
i2s1_din = port:PG13<2><1><default><default>

;--------------------------------------------------------------------------------
;pa_single_vol,pa_double_vol: 31 level,1.5db/step.0x1f is the large volume.
;cap_vol:use for system record,0x0--0db,0x1--24db,0x2--27db,0x3--30db,0x4--33db,0x5--36db,0x6--39db,0x7--42db
;headphone_vol,earpiece_vol: must least than 0x3b. 0x1 is a step.
;headset_mic_vol: headset mic(mic2) vol,use for phone headset mic call
;main_mic_vol: main mic(mic1) vol,use for phone main mic call
;--------------------------------------------------------------------------------
[audio0]
audio_used = 1
headphone_vol = 0x3b
earpiece_vol = 0x3b
cap_vol = 0x5
pa_single_vol = 0x3e
pa_double_used = 1
pa_double_vol = 0x3e
headphone_direct_used = 1
headset_mic_vol = 0x6
main_mic_vol = 0x6
audio_hp_ldo =none
audio_pa_ctrl = port:PH09<1><default><default><0>
;audio_pa_ctrl = port:PA18<1><default><default><0>
aif2_used = 0
aif3_used = 0
headphone_mute_used = 0
DAC_VOL_CTRL_SPK = 0x9e9e
DAC_VOL_CTRL_HEADPHONE = 0xa0a0
;main_mic_vol = 6

;-------------------------------------------------------------------------------------
;pmu_used ---0:not used,1:used
;pmu_twi_addr ---slave address
;pmu_twi_id ---i2c bus number (0 TWI0, 1 TWI2, 2 TWI3)
;pmu_irq_id ---irq number (0 irq0,1 irq1,……)
;pmu_battery_rdc ---battery initial resistance
;pmu_battery_cap ---battery capability,mAh
;pmu_batdeten ---battery detect en;0:disable 1:enable
;pmu_runtime_chgcur ---set initial charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_earlysuspend_chgcur ---set earlysuspend charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_suspend_chgcur ---set suspend charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_shutdown_chgcur ---set shutdown charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_init_chgvol ---set initial charing target voltage,mV,4100/4220/4200/4240
;pmu_init_chgend_rate ---set initial charing end current rate,10/15
;pmu_init_chg_enabled ---set initial charing enabled,0:disable,1:enable
;pmu_init_adc_freq ---set initial adc frequency,Hz,100/200/400/800
;pmu_init_adcts_freq ---set initial adc TS,Hz,100/200/400/800
;pmu_init_chg_pretime ---set initial pre-charging time,min,40/50/60/70
;pmu_init_chg_csttime ---set initial constance-charging time,min,360/480/600/720
;pmu_batt_cap_correct ---correct the battery capacity or not when one charge cycle 0:not correct 1:correct
;pmu_bat_regu_en ---bat regulator is enable or not when charge done 0:disable 1:enable
;pmu_bat_para1 ---battery indication at 3.13V
;pmu_bat_para2 ---battery indication at 3.27V
;pmu_bat_para3 ---battery indication at 3.34V
;pmu_bat_para4 ---battery indication at 3.41V
;pmu_bat_para5 ---battery indication at 3.48V
;pmu_bat_para6 ---battery indication at 3.52V
;pmu_bat_para7 ---battery indication at 3.55V
;pmu_bat_para8 ---battery indication at 3.57V
;pmu_bat_para9 ---battery indication at 3.59V
;pmu_bat_para10 ---battery indication at 3.61V
;pmu_bat_para11 ---battery indication at 3.63V
;pmu_bat_para12 ---battery indication at 3.64V
;pmu_bat_para13 ---battery indication at 3.66V
;pmu_bat_para14 ---battery indication at 3.7V
;pmu_bat_para15 ---battery indication at 3.73V
;pmu_bat_para16 ---battery indication at 3.77V
;pmu_bat_para17 ---battery indication at 3.78V
;pmu_bat_para18 ---battery indication at 3.8V
;pmu_bat_para19 ---battery indication at 3.82V
;pmu_bat_para20 ---battery indication at 3.84V
;pmu_bat_para21 ---battery indication at 3.85V
;pmu_bat_para22 ---battery indication at 3.87V
;pmu_bat_para23 ---battery indication at 3.91V
;pmu_bat_para24 ---battery indication at 3.94V
;pmu_bat_para25 ---battery indication at 3.98V
;pmu_bat_para26 ---battery indication at 4.01V
;pmu_bat_para27 ---battery indication at 4.05V
;pmu_bat_para28 ---battery indication at 4.08V
;pmu_bat_para29 ---battery indication at 4.1V
;pmu_bat_para30 ---battery indication at 4.12V
;pmu_bat_para31 ---battery indication at 4.14V
;pmu_bat_para32 ---battery indication at 4.15V
;pmu_usbvol_limit ---set usb-ac limited voltage enable,1:enable,0:disable
;pmu_usbcur_limit ---set usb-ac limited current enable,1:enable,0:disable
;pmu_usbvol ---set usb-ac limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur ---set usb-ac limited current level,mA,500/900, 0 - not limite
;pmu_usbvol_pc ---set usb-pc limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur_pc ---set usb-pc limited current level,mA,500/900, 0 - not limite
;pmu_pwroff_vol ---set protect voltage when system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pwron_vol ---set protect voltage after system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pekoff_time ---set pek off time,ms, 4000/6000/8000/10000
;pmu_pekoff_func ---set pek off func, 0:shutdown,1:restart
;pmu_pekoff_en ---set pek offlevel powerdown or not, 0:not powerdown,1:powerdown
;pmu_peklong_time ---set pek pek long irq time,ms,1000/1500/2000/2500
;pmu_pekon_time ---set pek on time,ms,128/1000/2000/3000
;pmu_pwrok_time ---set pmu pwrok delay time,ms,8/16/32/64
;pmu_battery_warning_level1 ---low power warning high level,5%-20%,1%/step
;pmu_battery_warning_level2 ---low power warning low level,0%-15%,1%/step
;pmu_restvol_time ---battery indicaton reflash time,30/60/120/
;pmu_ocv_cou_adjust_time ---ocv battery indication reflash time,60/120/30
;pmu_chgled_func ---CHGKED pin control,0:controlled by pmu,1:controlled by Charger
;pmu_chgled_type ---CHGLED Type select when pmu_chgled_func=0,0:Type A,1:Type B
;pmu_vbusen_func ---N_VBUSEN function select,0:as an output,1:as an input
;pmu_reset ---when power key press longer than 16's,PMU reset or not.0:not reset 1:reset
;pmu_IRQ_wakeup ---press IRQ wakeup or not when sleep or power down.0:not wakeup 1:wakeup
;pmu_hot_shutdowm ---when PMU over temperature protect or not;0:disable 1:enable
;pmu_inshort ---ACIN and VBUS inshort or not by software;0:auto detect 1:inshort
;pmu_temp_enable ---temp detect enable
;pmu_charge_ltf ---charge temp low threshold voltage
;pmu_charge_htf ---charge temp high threshold voltage
;pmu_discharge_ltf ---shutdown temp low threshold voltage
;pmu_discharge_htf ---shutdown temp high threshold voltage
;pmu_temp_para1 --- temp -25 voltage
;pmu_temp_para2 --- temp -15 voltage
;pmu_temp_para3 --- temp -10 voltage
;pmu_temp_para4 --- temp -5 voltage
;pmu_temp_para5 --- temp 0 voltage
;pmu_temp_para6 --- temp 5 voltage
;pmu_temp_para7 --- temp 10 voltage
;pmu_temp_para8 --- temp 20 voltage
;pmu_temp_para9 --- temp 30 voltage
;pmu_temp_para10 --- temp 40 voltage
;pmu_temp_para11 --- temp 45 voltage
;pmu_temp_para12 --- temp 50 voltage
;pmu_temp_para13 --- temp 55 voltage
;pmu_temp_para14 --- temp 60 voltage
;pmu_temp_para15 --- temp 70 voltage
;pmu_temp_para16 --- temp 80 voltage
;--------------------------------------------------------------------------------------------------------
[pmu1_para]
pmu_used = 1
pmu_twi_addr = 0x34
pmu_twi_id = 1
pmu_irq_id = 0
pmu_battery_rdc = 100
pmu_battery_cap = 4000
pmu_batdeten = 1
pmu_runtime_chgcur = 900
pmu_earlysuspend_chgcur = 1500
pmu_suspend_chgcur = 1500
pmu_shutdown_chgcur = 1500
pmu_init_chgvol = 4200
pmu_init_chgend_rate = 15
pmu_init_chg_enabled = 1
pmu_init_adc_freq = 800
pmu_init_adcts_freq = 800
pmu_init_chg_pretime = 70
pmu_init_chg_csttime = 720
pmu_batt_cap_correct = 1
pmu_bat_regu_en = 0

pmu_bat_para1 = 0
pmu_bat_para2 = 0
pmu_bat_para3 = 0
pmu_bat_para4 = 0
pmu_bat_para5 = 0
pmu_bat_para6 = 0
pmu_bat_para7 = 0
pmu_bat_para8 = 0
pmu_bat_para9 = 1
pmu_bat_para10 = 2
pmu_bat_para11 = 3
pmu_bat_para12 = 5
pmu_bat_para13 = 10
pmu_bat_para14 = 16
pmu_bat_para15 = 31
pmu_bat_para16 = 43
pmu_bat_para17 = 49
pmu_bat_para18 = 53
pmu_bat_para19 = 57
pmu_bat_para20 = 60
pmu_bat_para21 = 63
pmu_bat_para22 = 66
pmu_bat_para23 = 71
pmu_bat_para24 = 77
pmu_bat_para25 = 80
pmu_bat_para26 = 84
pmu_bat_para27 = 88
pmu_bat_para28 = 92
pmu_bat_para29 = 94
pmu_bat_para30 = 96
pmu_bat_para31 = 98
pmu_bat_para32 = 100

pmu_usbvol_limit = 0
pmu_usbcur_limit = 0
pmu_usbvol = 4000
pmu_usbcur = 0
pmu_usbvol_pc = 4400
pmu_usbcur_pc = 500
pmu_pwroff_vol = 3300
pmu_pwron_vol = 2600
pmu_pekoff_time = 6000
pmu_pekoff_func = 0
pmu_pekoff_en = 1
pmu_peklong_time = 1500
pmu_pekon_time = 1000
pmu_pwrok_time = 64
pmu_battery_warning_level1 = 15
pmu_battery_warning_level2 = 0
pmu_restvol_adjust_time = 60
pmu_ocv_cou_adjust_time = 60
pmu_chgled_func = 0
pmu_chgled_type = 0
pmu_vbusen_func = 1
pmu_reset = 0
pmu_IRQ_wakeup = 0
pmu_hot_shutdowm = 1
pmu_inshort = 0
power_start = 0

pmu_temp_enable = 1
pmu_charge_ltf = 2261
pmu_charge_htf = 388
pmu_discharge_ltf = 3200
pmu_discharge_htf = 237
pmu_temp_para1 = 7466
pmu_temp_para2 = 4480
pmu_temp_para3 = 3518
pmu_temp_para4 = 2786
pmu_temp_para5 = 2223
pmu_temp_para6 = 1788
pmu_temp_para7 = 1448
pmu_temp_para8 = 969
pmu_temp_para9 = 664
pmu_temp_para10 = 466
pmu_temp_para11 = 393
pmu_temp_para12 = 333
pmu_temp_para13 = 283
pmu_temp_para14 = 242
pmu_temp_para15 = 179
pmu_temp_para16 = 134

[pmu2_para]
pmu_used = 0
pmu_twi_addr = 0x34
pmu_twi_id = 1
pmu_irq_id = 0

;--------------------------------------------------------------------------------------------------------
[recovery_key]
key_min =8
key_max =14
;----------------------------------------------------------------------------------
; dvfs voltage-frequency table configuration
;
; extremity_freq(Hz): cpu extremity frequency when run benckmark or demo apk
; 1536MHz@1500mV with radiator, 1296MHz@1340mV without radiator
; max_freq: cpu maximum frequency, based on Hz, can not be more than 1200MHz
; min_freq: cpu minimum frequency, based on Hz, can not be less than 60MHz
;
; LV_count: count of LV_freq/LV_volt, must be < 16
;
; LV1: core vdd is 1.50v if cpu frequency is (1296Mhz, 1536Mhz]
; LV2: core vdd is 1.34v if cpu frequency is (1200Mhz, 1296Mhz]
; LV3: core vdd is 1.26v if cpu frequency is (1008Mhz, 1200Mhz]
; LV4: core vdd is 1.14v if cpu frequency is (816Mhz, 1008Mhz]
; LV5: core vdd is 1.04v if cpu frequency is (312Mhz, 816Mhz]
; LV6: core vdd is 0.96v if cpu frequency is (0Mhz, 312Mhz]
; LV7: core vdd is 0.96v if cpu frequency is (0Mhz, 312Mhz]
; LV8: core vdd is 0.96v if cpu frequency is (0Mhz, 312Mhz]
;
;----------------------------------------------------------------------------------
[dvfs_table]
extremity_freq = 1344000000
max_freq = 1200000000
min_freq = 120000000

LV_count = 8

LV1_freq = 1536000000
LV1_volt = 1500

LV2_freq = 1344000000
LV2_volt = 1460

LV3_freq = 1200000000
LV3_volt = 1320

LV4_freq = 1008000000
LV4_volt = 1200

LV5_freq = 816000000
LV5_volt = 1100

LV6_freq = 648000000
LV6_volt = 1040

LV7_freq = 0
LV7_volt = 1040

LV8_freq = 0
LV8_volt = 1040

;----------------------------------------------------------------------------------
;virtual device
;virtual device for pinctrl testing
;device have pin PA1 PA2
;----------------------------------------------------------------------------------
[Vdevice]
Vdevice_used = 1
Vdevice_0 = port:PA01<5><1><2><default>
Vdevice_1 = port:PA02<5><1><2><default>

;----------------------------------------------------------------------------------
;s_uart0 config parameters
;s_uart_used --s_uart0 whether used for arisc debugging
;----------------------------------------------------------------------------------
[s_uart0]
s_uart_used = 0
s_uart_tx = port:PL02<2><default><default><default>
s_uart_rx = port:PL03<2><default><default><default>

;----------------------------------------------------------------------------------
;s_rsb0 config parameters
;s_rsb_used --s_rsb0 whether used for arisc
;----------------------------------------------------------------------------------
[s_rsb0]
s_rsb_used = 1
s_rsb_sck = port:PL00<2><1><2><default>
s_rsb_sda = port:PL01<2><1><2><default>

;----------------------------------------------------------------------------------
;s_jtag0 config parameters
;s_jtag0_used --s_jtag0 whether used for arisc
;
;----------------------------------------------------------------------------------
[s_jtag0]
s_jtag_used = 0
s_jtag_tms = port:PL04<2><1><2><default>
s_jtag_tck = port:PL05<2><1><2><default>
s_jtag_tdo = port:PL06<2><1><2><default>
s_jtag_tdi = port:PL07<2><1><2><default>

;----------------------------------------------------------------------------------
;s_powchk cpus power check
;s_powchk_used --power check whether used for arisc in super standby
; bit31:enable power updat, bit1:wakeup when power state exception
; bit0:wakeup when power consumption exception
;s_power_reg the expected regs stand for power on/off state
;s_system_power the limit maxmum power consumption when super standby (unit: mw)
;
;----------------------------------------------------------------------------------
[s_powchk]
s_powchk_used = 0x80000000
s_power_reg = 0x00008061
s_system_power = 50

[mali_para]
mali_used = 1
mali_clkdiv = 1
mali_extreme_freq = 408
mali_extreme_vol = 1100


;----------------------------------------------------------------------------------
; dram dvfs voltage-frequency table configuration
;
; LV_count: count of LV_freq/LV_volt
;
; LV1: core vdd is 1.1v if dram frequency is (360Mhz, 552Mhz]
; LV2: core vdd is 1.0v if dram frequency is ( 0Mhz, 360Mhz]
; LV3: core vdd is 1.0v if dram frequency is ( 0Mhz, 360Mhz]
;
;----------------------------------------------------------------------------------
[dram_dvfs_table]
LV_count = 3

LV1_freq = 552000000
LV1_volt = 1100

LV2_freq = 360000000
LV2_volt = 1100

LV3_freq = 0
LV3_volt = 1100

;----------------------------------------------------------------------------------
;charging_type config parameters
;charging_type 0:uboot charging, 1:android charging
;----------------------------------------------------------------------------------
[charging_type]
charging_type = 1

;----------------------------------------------------------------------------------
;leds config parameters
;leds_used 0:uboot charging, 1:android charging
;----------------------------------------------------------------------------------
[leds_para]
leds_used = 0
red_led = port:power3<1><default><default><0>
red_led_active_low = 1
green_led = port:power1<1><default><default><0>
green_led_active_low = 0
blue_led =
blue_led_active_low = 0


буилд пропер
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=KVT49L
ro.build.display.id=PMT3017_WI.20150720.1.0.03
ro.build.version.incremental=20150720
ro.build.version.sdk=19
ro.build.version.codename=REL
ro.build.version.release=4.4.2
ro.build.date=2015? 07? 20? ??? 10:46:41 CST
ro.build.date.utc=1437360401
ro.build.type=user
ro.build.user=zy
ro.build.host=Exdroid
ro.build.tags=release-keys
ro.product.model=PMT3017_WI
ro.product.brand=Prestigio
ro.product.name=PMT3017_WI
ro.product.device=PMT3017_WI
ro.product.board=A33
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=Prestigio
ro.product.locale.language=en
ro.wifi.channels=
ro.board.platform=polaris
# ro.build.product is obsolete; use ro.product.device
ro.build.product=PMT3017_WI
# Do not try to parse ro.build.description or .fingerprint
ro.build.description=PMT3017_WI-user 4.4.2 KVT49L user.zengyu.20150720 release-keys
ro.build.fingerprint=Prestigio/PMT3017_WI/PMT3017_WI:4.4.2/KVT49L/20150720:user/release-keys
ro.build.characteristics=tablet
# end build properties

#
# ADDITIONAL_BUILD_PROPERTIES
#
ro.com.android.dateformat=MM-dd-yyyy
ro.config.ringtone=Ring_Synth_04.ogg
ro.config.notification_sound=pixiedust.ogg
ro.carrier=wifi-only
ro.config.alarm_alert=Alarm_Classic.ogg
ro.zygote.disable_gl_preload=true
persist.sys.strictmode.visual=0
persist.sys.strictmode.disable=1
ro.opengles.version=131072
ro.kernel.android.checkjni=0
ro.reversion.aw_sdk_tag=exdroid4.4.2_r2-a33-v1.0
ro.sys.cputype=QuadCore-A33
wifi.interface=wlan0
wifi.supplicant_scan_interval=15
keyguard.no_require_sim=true
ro.sys.network_location=true
persist.demo.hdmirotationlock=0
drm.service.enabled=true
dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=64m
dalvik.vm.heapsize=384m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=512k
dalvik.vm.heapmaxfree=8m
ro.sw.embeded.telephony=false
persist.sys.timezone=Europe/London
persist.sys.language=en
persist.sys.country=GB
persist.sys.usb.config=mtp
ro.udisk.lable=PMT3018_WI
ro.font.scale=1.0
ro.hwa.force=false
rw.logger=0
ro.sys.bootfast=false
ro.sf.rotation=270
chiphd.bright.min=70
wifi_device_name=PMT3018_WI
def_music_volume=15
chiphd.bright.max=255
ro.product.locale.region=GB
def_input_method=com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME
debug.hwc.showfps=0
ro.product.version=1.0.03
ro.com.google.clientidbase.am=android-prestigio
ro.com.google.clientidbase.gmm=android-prestigio
ro.com.google.clientidbase.ms=android-prestigio
ro.com.google.clientidbase.yt=android-prestigio
ro.com.google.clientidbase=android-prestigio
ro.prestigio.ota.host=mtk.dl.prestigio.com
debug.hwui.render_dirty_regions=false
ro.sys.mutedrm=true
ro.adb.secure=1
ro.sf.lcd_density=160
ro.product.firmware=PMT3017_WI.20150720.1.0.03
ro.setupwizard.mode=OPTIONAL
ro.com.google.gmsversion=4.4_r5
persist.sys.dalvik.vm.lib=libdvm.so
dalvik.vm.dexopt-flags=v=n,m=y
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt


инит
import init.sun8i.usb.rc

on init
#See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root

export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
# export MEDIA_STORAGE /mnt/media/sdcard

# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy

# export EXTERNAL_STORAGE /mnt/sdcard
# mkdir /mnt/sdcard 0000 system system
# symlink /mnt/sdcard /sdcard

mkdir /mnt/extsd 0000 system system
mkdir /mnt/usbhost1 0000 system system
#mkdir /mnt/extsd 0700 media_rw media_rw
#mkdir /storage/extsd 0700 root root
#mkdir /mnt/usbhost1 0700 media_rw media_rw
#mkdir /storage/usbhost1 0700 root root
mount debugfs debugfs /sys/kernel/debug
mkdir /databk 0700 root system

mkdir /mnt/private 0000 system system

on early-fs
mount_all /fstab.sun8i
setprop ro.crypto.fuse_sdcard true
insmod /system/vendor/modules/disp.ko
insmod /system/vendor/modules/lcd.ko
insmod /system/vendor/modules/mali.ko
insmod /system/vendor/modules/leds-sunxi.ko
# insmod /system/vendor/modules/bcmdhd.ko

on post-fs-data
mkdir /data/media 0770 media_rw media_rw
#mkdir /mnt/media/sdcard 0770 media_rw media_rw

on fs
# format_userdata /dev/block/by-name/UDISK PMT3008
# format_userdata /dev/block/nandi private
# mkdir /private 0770 system system
# wait /dev/block/nandi
# mount vfat /dev/block/nandi /private gid=1019,uid=1019,fmask=0007,dmask=0007
# radio related, such as imei.conf
mkdir /data/misc/radio 0777 system radio



#csi module
insmod /system/vendor/modules/videobuf-core.ko
insmod /system/vendor/modules/videobuf-dma-contig.ko
insmod /system/vendor/modules/cam_detect.ko
insmod /system/vendor/modules/actuator.ko
insmod /system/vendor/modules/ad5820_act.ko
insmod /system/vendor/modules/cci.ko
insmod /system/vendor/modules/vfe_os.ko
insmod /system/vendor/modules/vfe_subdev.ko
insmod /system/vendor/modules/gc0328.ko
insmod /system/vendor/modules/gc0329.ko
insmod /system/vendor/modules/gc2155.ko
insmod /system/vendor/modules/ov5647.ko
insmod /system/vendor/modules/vfe_v4l2.ko

# bluetooth
# UART device
chmod 0660 /dev/ttyS1
chown bluetooth net_bt_stack /dev/ttyS1

# power up/down interface
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill0/type
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type
write /sys/class/rfkill/rfkill0/state 0

# bluetooth LPM
chmod 0220 /proc/bluetooth/sleep/lpm
chmod 0220 /proc/bluetooth/sleep/btwrite
chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrite
write /proc/bluetooth/sleep/lpm 1

#insmod tp and keyboard gsensor
insmod /system/vendor/modules/sw-device.ko
insmod /system/vendor/modules/sunxi-keyboard.ko

#insmod usb ethernet
insmod /system/vendor/modules/usbnet.ko
insmod /system/vendor/modules/asix.ko
insmod /system/vendor/modules/qf9700.ko
insmod /system/vendor/modules/mcs7830.ko
insmod /system/vendor/modules/rtl8150.ko
insmod /system/vendor/modules/cdc_ether.ko

# talking standby
chown radio system /sys/power/scene_lock
chmod 0644 /sys/power/scene_lock
chown radio system /sys/power/scene_unlock
chmod 0644 /sys/power/scene_unlock
chown radio system /sys/power/scene_state
chmod 0644 /sys/power/scene_state

#2G or 3G init.rc
import init.sunxi.3gdongle.rc

#service logcat /system/bin/logcat -r 1000 -n 10 -v time -f /data/local/logcat.log
# class main

#logger service: logger [kernel|android|radio]
service logger_kernel /system/bin/logger.sh kernel
user root
disabled
service logger_android /system/bin/logger.sh android
user root
disabled
service logger_radio /system/bin/logger.sh radio
user root
disabled
on property:rw.logger=1
start logger_kernel
start logger_android
start logger_radio

# virtual sdcard daemon running as media_rw (1023)
#service sdcard /system/bin/sdcard /data/media /mnt/shell/emulated 1023 1023
service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
class late_start

#service fuse_extsd /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/extsd /storage/extsd
# class late_start
# disabled

#service fuse_usbhost1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/usbhost1 /storage/usbhost1
# class late_start
# disabled

# ril related services
service ril-daemon /system/bin/rild -l libsoftwinner-ril.so -- -d /dev/ttyUSB2
class main
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
user root
disabled
group radio cache inet misc audio sdcard_rw log

#add wifi_mac_name
service engsetmacaddr /system/bin/setmacaddr /mnt/private/wifimac.txt
class main
oneshot
# 1. realtek & eagle wifi service
# 1.1 realtek & eagle wifi sta service
service wpa_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-O/data/misc/wifi/sockets \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
# we will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
# group wifi inet keystore
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot

# 1.2 realtek & eagle wifi sta p2p concurrent service
service p2p_supplicant /system/bin/wpa_supplicant \
-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
-e/data/misc/wifi/entropy.bin -N \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-O/data/misc/wifi/sockets \
-g@android:wpa_wlan0
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot

# Set serialno property
service setserialno /system/bin/sh /system/bin/setserialno.sh
class main
user root
group root
oneshot

# 2. broadcom wifi service
# 2.1 broadcom wifi station and softap
#service wpa_supplicant /system/bin/wpa_supplicant \
# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
# -I/system/etc/wifi/wpa_supplicant_overlay.conf \
# -O/data/misc/wifi/sockets \
# -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
# # we will start as root and wpa_supplicant will switch to user wifi
# # after setting up the capabilities required for WEXT
# # user wifi
# # group wifi inet keystore
# class main
# socket wpa_wlan0 dgram 660 wifi wifi
# disabled
# oneshot

# 2.2 broadcom wifi sta p2p concurrent service
#service p2p_supplicant /system/bin/wpa_supplicant \
# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
# -I/system/etc/wifi/wpa_supplicant_overlay.conf \
# -O/data/misc/wifi/sockets -N \
# -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
# -I/system/etc/wifi/p2p_supplicant_overlay.conf \
# -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin \
# -g@android:wpa_wlan0
# # we will start as root and wpa_supplicant will switch to user wifi
# # after setting up the capabilities required for WEXT
# # user wifi
# # group wifi inet keystore
# class main
# socket wpa_wlan0 dgram 660 wifi wifi
# disabled
# oneshot

on property:sys.boot_completed=1
start ril-daemon
start u3gmonitor





инфа дополнительная
A-Star KV49L
Manufacturer [A-Star]
Dimensions 200mm x 100mm x 10mm
Release Date July 2014
Website Missing device product page.
Specifications
SoC A33 @ 1.5Ghz
DRAM 1024 MiB DDR3 @ xxxMHz
NAND 8 GiB
Power DC 5V @ 3A, 5500mAh 3.7V Li-Ion battery
Features
LCD 1024x600 (8" 10:6)
Touchscreen X-finger capacitive (Silead GSL1680)
Video N/A
Audio 3.5mm headphone plug, internal speaker, internal microphone
Network WiFi 802.11 b/g/n (ExpressIf ESP8089))
Storage µSD
USB 1 USB2.0 OTG
Camera 0.3MP (640x480) (gc0308) front,2.0MP (1600x1200) (GC2035) rear
Other Accelerometer (Sensortek STK8312)
Headers N/A

TZX-723Qa4
TZX-723Qa4
Manufacturer Haehne?
Dimensions 196.3mm x 120.8mm x 9mm
Website Missing product page.
Specifications
SoC A33 @ 1.6Ghz
DRAM 512MiB DDR3
NAND 16GB
Power DC 5V @ 1.5A, 200mAh 3.7V Li-Ion battery
Features
LCD 1024x768 (7" 16:9)
Touchscreen 5-finger capacitive (Silead GSL1680)
Audio 3.5mm headphone plug, internal speaker, internal microphone
Network WiFi 802.11 b/g/n (RDA Microelectronics RDA5991),
Storage µSD
USB 1 USB2.0 OTG
Camera 0.3 MP front, 2 MP rear
Other Accelerometer (Manufacturer device)

ET-Q8 A33
ET-Q8 A33
MID756 A33.jpg
Manufacturer Unidentified manufacturer "ET"
Dimensions 182mm x 121mm x 7mm
Release Date November 2014
Website Missing product page.
Specifications
SoC A33 @ ?.?Ghz
DRAM 512MiB DDR3 @ 384MHz (1x P3P4GF4BLF-GDJ)
NAND 4GB
Power DC 5V @ 3A, 3700mAh 3.7V Li-Ion battery
Features
LCD 800x480 (7" 16:9)
Touchscreen 5-finger capacitive (Silead GSL1680)
Audio 3.5mm headphone plug, internal speaker, internal microphone
Network WiFi 802.11 b/g/n (RDA Microelectronics RDA5990P),
Storage µSD
USB 1 USB2.0 OTG
Camera 0.3 MP (640x480) front, 0.3 MP (640x480) rear
Other Accelerometer (Manufacturer device)

Azpen A741
Azpen A741
A741 front.jpg
Manufacturer Azpenpc
Dimensions 8.6mm x 190mm x 130mm
Release Date unknown
Website Missing product page.
Specifications
SoC A33 @ XGhz
DRAM 512MiB DDR3 @ xxxMHz
NAND 4GB
Power DC 5V @ ?A, 2800mAh 3.7V Li-Ion battery
Features
LCD 1024x600 (7" 16:9) IPS
Touchscreen 5-finger capacitive (Silead GSL1680)
Audio 3.5mm headphone plug, internal speaker, internal microphone
Network WiFi 802.11 b/g/n (Realtek RTL8188ETV)
Storage µSD
USB X USB2.0 Host, X USB2.0 OTG
Camera ??.?MP (????x????) rear
Other Accelerometer (Manufacturer device), GPS, IRDA




думаю что тут предостаточно инфы для сбора рабочего образа :thank_you:

п.с.
где то видел упоминания о gsl,но не проверял и не сравнивал чипы :blush:
gsl1680\3676\3680\6180\3670
но может получится gsl915 определить по айди..
тестируйте на здоровье 0=)



Реп: (13)
вот кнопочки =) наша вторая кнопочка это 102
key 102 HOME WAKE
key 28 BACK WAKE
key 139 MENU WAKE_DROPPED
key 114 VOLUME_UP
key 115 VOLUME_DOWN

key 102 HOME WAKE
key 1 BACK WAKE
key 139 MENU WAKE_DROPPED
key 115 VOLUME_UP
key 114 VOLUME_DOWN

вот не понимаю этого параметра
ctp_ft5402_num = 1
вот конфиг от а20
;A20 PAD application
;-------------------------------------------------------------------------------
; 说明:
; 1. 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
; 2. 新增主键和子键的名称必须控制在32个字符以内,不包括32个
; 3. 所以的注释以“;”开始,单独占据一行
; 4. 注释不可和配置项同行,例如:主键和子健后面不能添加任何形式的注释
;
; gpio的描述形式:Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态>
; 例如:port:PA0<0><default><default><default>
;-------------------------------------------------------------------------------

[product]
version = "100"
machine = "K901C"

[platform]
eraseflag = 1

[target]
boot_clock = 912
dcdc2_vol = 1400
dcdc3_vol = 1250
ldo2_vol = 3000
ldo3_vol = 2800
ldo4_vol = 2800
power_start = 0
storage_type = -1

[clock]
pll4 = 300
pll6 = 600
pll7 = 297
pll8 = 336

[card_boot]
logical_start = 40960
sprite_gpio0 =

[card0_boot_para]
card_ctrl = 0
card_high_speed = 1
card_line = 4
sdc_d1 = port:PF0<2><1><default><default>
sdc_d0 = port:PF1<2><1><default><default>
sdc_clk = port:PF2<2><1><default><default>
sdc_cmd = port:PF3<2><1><default><default>
sdc_d3 = port:PF4<2><1><default><default>
sdc_d2 = port:PF5<2><1><default><default>

[card2_boot_para]
card_ctrl = 2
card_high_speed = 1
card_line = 4
sdc_cmd = port:PC6<3><1>
sdc_clk = port:PC7<3><1>
sdc_d0 = port:PC8<3><1>
sdc_d1 = port:PC9<3><1>
sdc_d2 = port:PC10<3><1>
sdc_d3 = port:PC11<3><1>

[twi_para]
twi_port = 0
twi_scl = port:PB0<2><default><default><default>
twi_sda = port:PB1<2><default><default><default>

[uart_para]
uart_debug_port = 0
uart_debug_tx = port:PB22<2><1><default><default>
uart_debug_rx = port:PB23<2><1><default><default>

[uart_force_debug]
uart_debug_port = 0
uart_debug_tx =port:PF2<4><1><default><default>
uart_debug_rx =port:PF4<4><1><default><default>

[jtag_para]
jtag_enable = 0
jtag_ms = port:PB14<3><default><default><default>
jtag_ck = port:PB15<3><default><default><default>
jtag_do = port:PB16<3><default><default><default>
jtag_di = port:PB17<3><default><default><default>

;---------------------------------------------------------------------------------------------------------
; if 1 == standby_mode, then support super standby;
; else, support normal standby.
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode = 1

;-------------------------------------------------------------------------------
;sdram configuration
;-------------------------------------------------------------------------------
[dram_para]
dram_baseaddr = 0x40000000
dram_clk = 408
dram_type = 3
dram_rank_num = 0xffffffff
dram_chip_density = 0xffffffff
dram_io_width = 0xffffffff
dram_bus_width = 0xffffffff
dram_cas = 9
dram_zq = 0x7f
dram_odt_en = 0
dram_size = 0xffffffff
dram_tpr0 = 0x42d899b7
dram_tpr1 = 0xa090
dram_tpr2 = 0x22a00
dram_tpr3 = 0x0
;Rocky@20130610
dram_tpr4 = 0x1
dram_tpr5 = 0x0
dram_emr1 = 0x4
dram_emr2 = 0x10
dram_emr3 = 0x0

;-------------------------------------------------------------------------------
;Mali configuration
;-------------------------------------------------------------------------------
[mali_para]
mali_used = 1
mali_clkdiv = 1

;-------------------------------------------------------------------------------
;Ethernet MAC configuration
;-------------------------------------------------------------------------------
[emac_para]
emac_used = 0
emac_rxd3 = port:PA00<2><default><default><default>
emac_rxd2 = port:PA01<2><default><default><default>
emac_rxd1 = port:PA02<2><default><default><default>
emac_rxd0 = port:PA03<2><default><default><default>
emac_txd3 = port:PA04<2><default><default><default>
emac_txd2 = port:PA05<2><default><default><default>
emac_txd1 = port:PA06<2><default><default><default>
emac_txd0 = port:PA07<2><default><default><default>
emac_rxclk = port:PA08<2><default><default><default>
emac_rxerr = port:PA09<2><default><default><default>
emac_rxdV = port:PA10<2><default><default><default>
emac_mdc = port:PA11<2><default><default><default>
emac_mdio = port:PA12<2><default><default><default>
emac_txen = port:PA13<2><default><default><default>
emac_txclk = port:PA14<2><default><default><default>
emac_crs = port:PA15<2><default><default><default>
emac_col = port:PA16<2><default><default><default>
emac_reset = port:PA17<1><default><default><default>

;-------------------------------------------------------------------------------
;i2c configuration
;-------------------------------------------------------------------------------
[twi0_para]
twi0_used = 1
twi0_scl = port:PB0<2><default><default><default>
twi0_sda = port:PB1<2><default><default><default>

[twi1_para]
twi1_used = 1
twi1_scl = port:PB18<2><default><default><default>
twi1_sda = port:PB19<2><default><default><default>

[twi2_para]
twi2_used = 1
twi2_scl = port:PB20<2><default><default><default>
twi2_sda = port:PB21<2><default><default><default>

;-------------------------------------------------------------------------------
;uart configuration
;uart_type --- 2 (2 wire), 4 (4 wire), 8 (8 wire, full function)
;-------------------------------------------------------------------------------
[uart_para0]
uart_used = 1
uart_port = 0
uart_type = 2
uart_tx = port:PB22<2><1><default><default>
uart_rx = port:PB23<2><1><default><default>

[uart_para1]
uart_used = 0
uart_port = 1
uart_type = 8
uart_tx = port:PA10<4><1><default><default>
uart_rx = port:PA11<4><1><default><default>
uart_rts = port:PA12<4><1><default><default>
uart_cts = port:PA13<4><1><default><default>
uart_dtr = port:PA14<4><1><default><default>
uart_dsr = port:PA15<4><1><default><default>
uart_dcd = port:PA16<4><1><default><default>
uart_ring = port:PA17<4><1><default><default>

[uart_para2]
uart_used = 0
uart_port = 2
uart_type = 4
uart_tx = port:PI18<3><1><default><default>
uart_rx = port:PI19<3><1><default><default>
uart_rts = port:PI16<3><1><default><default>
uart_cts = port:PI17<3><1><default><default>

[uart_para3]
uart_used = 0
uart_port = 3
uart_type = 4
uart_tx = port:PH00<4><1><default><default>
uart_rx = port:PH01<4><1><default><default>
uart_rts = port:PH02<4><1><default><default>
uart_cts = port:PH03<4><1><default><default>

[uart_para4]
uart_used = 0
uart_port = 4
uart_type = 2
uart_tx = port:PH04<4><1><default><default>
uart_rx = port:PH05<4><1><default><default>

[uart_para5]
uart_used = 0
uart_port = 5
uart_type = 2
uart_tx = port:PH06<4><1><default><default>
uart_rx = port:PH07<4><1><default><default>

[uart_para6]
uart_used = 0
uart_port = 6
uart_type = 2
uart_tx = port:PA12<3><1><default><default>
uart_rx = port:PA13<3><1><default><default>

[uart_para7]
uart_used = 0
uart_port = 7
uart_type = 2
uart_tx = port:PA14<3><1><default><default>
uart_rx = port:PA15<3><1><default><default>

;-------------------------------------------------------------------------------
;spi configuration
;-------------------------------------------------------------------------------
[spi0_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PI10<2><default><default><default>
spi_cs1 = port:PI14<2><default><default><default>
spi_sclk = port:PI11<2><default><default><default>
spi_mosi = port:PI12<2><default><default><default>
spi_miso = port:PI13<2><default><default><default>

[spi1_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA00<3><default><default><default>
spi_cs1 = port:PA04<3><default><default><default>
spi_sclk = port:PA01<3><default><default><default>
spi_mosi = port:PA02<3><default><default><default>
spi_miso = port:PA03<3><default><default><default>

[spi2_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PC19<3><default><default><default>
spi_cs1 = port:PB13<2><default><default><default>
spi_sclk = port:PC20<3><default><default><default>
spi_mosi = port:PC21<3><default><default><default>
spi_miso = port:PC22<3><default><default><default>

[spi3_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA05<3><default><default><default>
spi_cs1 = port:PA09<3><default><default><default>
spi_sclk = port:PA06<3><default><default><default>
spi_mosi = port:PA07<3><default><default><default>
spi_miso = port:PA08<3><default><default><default>

;-------------------------------------------------------------------------------
;capacitor tp configuration
;external int function
;wakeup output function
;notice:
; tp_int_port & tp_io_port use the same port
;-------------------------------------------------------------------------------
[ctp_para]
ctp_used = 1
ctp_cob = 1
ctp_ft5402_num = 1
ctp_twi_id = 2
ctp_twi_addr = 0x40
ctp_screen_max_x = 800
ctp_screen_max_y = 480
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 0

ctp_int_port = port:PH21<6><default><default><default>
ctp_wakeup = port:PB13<1><default><default><1>
ctp_power_en = port:PI16<1><default><default><0>
;-------------------------------------------------------------------------------
;touch key configuration
;-------------------------------------------------------------------------------
[tkey_para]
tkey_used = 0
tkey_twi_id = 2
tkey_twi_addr = 0x62
tkey_int = port:PI13<6><default><default><default>

;-------------------------------------------------------------------------------
;motor configuration
;-------------------------------------------------------------------------------
[motor_para]
motor_used = 0
motor_shake = port:PH23<1><default><default><0>

;-------------------------------------------------------------------------------
;nand flash configuration
;-------------------------------------------------------------------------------
[nand_para]
nand_used = 1
nand_we = port:PC00<2><default><default><default>
nand_ale = port:PC01<2><default><default><default>
nand_cle = port:PC02<2><default><default><default>
nand_ce1 = port:PC03<2><default><default><default>
nand_ce0 = port:PC04<2><default><default><default>
nand_nre = port:PC05<2><default><default><default>
nand_rb0 = port:PC06<2><default><default><default>
nand_rb1 = port:PC07<2><default><default><default>
nand_d0 = port:PC08<2><default><default><default>
nand_d1 = port:PC09<2><default><default><default>
nand_d2 = port:PC10<2><default><default><default>
nand_d3 = port:PC11<2><default><default><default>
nand_d4 = port:PC12<2><default><default><default>
nand_d5 = port:PC13<2><default><default><default>
nand_d6 = port:PC14<2><default><default><default>
nand_d7 = port:PC15<2><default><default><default>
nand_wp = port:PC16<2><default><default><default>
nand_ce2 = port:PC17<2><default><default><default>
nand_ce3 = port:PC18<2><default><default><default>
nand_ce4 =
nand_ce5 =
nand_ce6 =
nand_ce7 =
nand_spi = port:PC23<3><default><default><default>
nand_ndqs = port:PC24<2><default><default><default>
good_block_ratio = 0

;-------------------------------------------------------------------------------
;disp init configuration
;
;disp_mode (0:screen0<screen0,fb0> 1:screen1<screen1,fb0> 2:two_diff_screen_diff_contents<screen0,screen1,fb0,fb1>
; 3:two_same_screen_diff_contets<screen0,screen1,fb0> 4:two_diff_screen_same_contents<screen0,screen1,fb0>)
;screenx_output_type (0:none; 1:lcd; 2:tv; 3:hdmi; 4:vga)
;screenx_output_mode (used for tv/hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50 5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60 11:pal 14:ntsc)
;screenx_output_mode (used for vga output, 0:1680*1050 1:1440*900 2:1360*768 3:1280*1024 4:1024*768 5:800*600 6:640*480 10:1920*1080 11:1280*720)
;fbx format (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)
;fbx pixel sequence (0:ARGB 1:BGRA 2:ABGR 3:RGBA) --- 0 for linux, 2 for android
;lcd0_bright (lcd0 init bright,the range:[0,256],default:197
;lcd1_bright (lcd1 init bright,the range:[0,256],default:197
;-------------------------------------------------------------------------------
[disp_init]
disp_init_enable = 1
disp_mode = 0

screen0_output_type = 1
screen0_output_mode = 4

screen1_output_type = 1
screen1_output_mode = 4

fb0_framebuffer_num = 2
fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0
fb0_width = 0
fb0_height = 0

fb1_framebuffer_num = 2
fb1_format = 10
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 0
fb1_width = 0
fb1_height = 0

lcd0_backlight = 197
lcd1_backlight = 197

lcd0_bright = 50
lcd0_contrast = 50
lcd0_saturation = 57
lcd0_hue = 50

lcd1_bright = 50
lcd1_contrast = 50
lcd1_saturation = 57
lcd1_hue = 50

;-------------------------------------------------------------------------------
;lcd0 configuration

;lcd_dclk_freq: in MHZ unit
;lcd_pwm_freq: in HZ unit
;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:hv2dsi
;lcd_width: width of lcd in mm
;lcd_height: height of lcd in mm
;lcd_hbp: hsync back porch
;lcd_ht: hsync total cycle
;lcd_vbp: vsync back porch
;lcd_vt: vysnc total cycle *2
;lcd_hv_if: 0:hv parallel 1:hv serial
;lcd_hv_smode: 0:RGB888 1:CCIR656
;lcd_hv_s888_if serial RGB format
;lcd_hv_syuv_if: serial YUV format
;lcd_hspw: hsync plus width
;lcd_vspw: vysnc plus width
;lcd_lvds_ch: 0:single channel; 1:dual channel
;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
;lcd_lvds_bitwidth: 0:24bit; 1:18bit
;lcd_lvds_io_cross: 0:normal; 1:pn cross
;lcd_cpu_if: 0:18bit; 1:16bit mode0; 2:16bit mode1; 3:16bit mode2; 4:16bit mode3; 5:9bit; 6:8bit 256K; 7:8bit 65K
;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither

;lcd_gpio_0: SCL
;lcd_gpio_1 SDA
;-------------------------------------------------------------------------------
[lcd0_para]
lcd_used = 1

lcd_x = 800
lcd_y = 480
lcd_dclk_freq = 33
lcd_pwm_not_used = 0
lcd_pwm_ch = 0
lcd_pwm_freq = 10000
lcd_pwm_pol = 1
lcd_pwm_max_limit = 255
lcd_if = 0
lcd_hbp = 46
lcd_ht = 1055
lcd_vbp = 23
lcd_vt = 1055
lcd_vspw = 0
lcd_hspw = 0
lcd_hv_if = 0
lcd_hv_smode = 0
lcd_hv_s888_if = 0
lcd_hv_syuv_if = 0
lcd_lvds_ch = 0
lcd_lvds_mode = 0
lcd_lvds_bitwidth = 0
lcd_lvds_io_cross = 0
lcd_cpu_if = 0
lcd_frm = 0
lcd_io_cfg0 = 0x00000000
lcd_gamma_correction_en = 0
lcd_gamma_tbl_0 = 0x00000000
lcd_gamma_tbl_1 = 0x00010101
lcd_gamma_tbl_255 = 0x00ffffff

lcd_bl_en_used = 1
lcd_bl_en = port:PH07<1><0><default><1>

lcd_power_used = 1
lcd_power = port:PH08<1><2><default><1>

lcd_pwm_used = 1
lcd_pwm = port:PB02<2><0><default><default>

lcdd0 = port:PD00<2><0><default><default>
lcdd1 = port:PD01<2><0><default><default>
lcdd2 = port:PD02<2><0><default><default>
lcdd3 = port:PD03<2><0><default><default>
lcdd4 = port:PD04<2><0><default><default>
lcdd5 = port:PD05<2><0><default><default>
lcdd6 = port:PD06<2><0><default><default>
lcdd7 = port:PD07<2><0><default><default>
lcdd8 = port:PD08<2><0><default><default>
lcdd9 = port:PD09<2><0><default><default>
lcdd10 = port:PD10<2><0><default><default>
lcdd11 = port:PD11<2><0><default><default>
lcdd12 = port:PD12<2><0><default><default>
lcdd13 = port:PD13<2><0><default><default>
lcdd14 = port:PD14<2><0><default><default>
lcdd15 = port:PD15<2><0><default><default>
lcdd16 = port:PD16<2><0><default><default>
lcdd17 = port:PD17<2><0><default><default>
lcdd18 = port:PD18<2><0><default><default>
lcdd19 = port:PD19<2><0><default><default>
lcdd20 = port:PD20<2><0><default><default>
lcdd21 = port:PD21<2><0><default><default>
lcdd22 = port:PD22<2><0><default><default>
lcdd23 = port:PD23<2><0><default><default>
lcdclk = port:PD24<2><0><default><default>
lcdde = port:PD25<2><0><default><default>
lcdhsync = port:PD26<2><0><default><default>
lcdvsync = port:PD27<2><0><default><default>

;----------------------------------------------------------------------------------
;lcd1 configuration

;lcd_dclk_freq: in MHZ unit
;lcd_pwm_freq: in HZ unit
;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds
;lcd_hbp: hsync back porch
;lcd_ht: hsync total cycle
;lcd_vbp: vsync back porch
;lcd_vt: vysnc total cycle *2
;lcd_hv_if: 0:hv parallel 1:hv serial
;lcd_hv_smode: 0:RGB888 1:CCIR656
;lcd_hv_s888_if serial RGB format
;lcd_hv_syuv_if: serial YUV format
;lcd_hspw: hsync plus width
;lcd_vspw: vysnc plus width
;lcd_lvds_ch: 0:single channel; 1:dual channel
;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
;lcd_lvds_bitwidth: 0:24bit; 1:18bit
;lcd_lvds_io_cross: 0:normal; 1:pn cross
;lcd_cpu_if: 0:18bit; 1:16bit mode0; 2:16bit mode1; 3:16bit mode2; 4:16bit mode3; 5:9bit; 6:8bit 256K; 7:8bit 65K
;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither

;lcd_gpio_0: SCL
;lcd_gpio_1 SDA
;----------------------------------------------------------------------------------
[lcd1_para]
lcd_used = 0

lcd_x = 0
lcd_y = 0
lcd_dclk_freq = 0
lcd_pwm_not_used = 0
lcd_pwm_ch = 1
lcd_pwm_freq = 0
lcd_pwm_pol = 0
lcd_if = 0
lcd_hbp = 0
lcd_ht = 0
lcd_vbp = 0
lcd_vt = 0
lcd_vspw = 0
lcd_hspw = 0
lcd_hv_if = 0
lcd_hv_smode = 0
lcd_hv_s888_if = 0
lcd_hv_syuv_if = 0
lcd_lvds_ch = 0
lcd_lvds_mode = 0
lcd_lvds_bitwidth = 0
lcd_lvds_io_cross = 0
lcd_cpu_if = 0
lcd_frm = 0
lcd_io_cfg0 = 0
lcd_gamma_correction_en = 0
lcd_gamma_tbl_0 = 0x00000000
lcd_gamma_tbl_1 = 0x00010101
lcd_gamma_tbl_255 = 0x00ffffff

lcd_bl_en_used = 0
lcd_bl_en =

lcd_power_used = 0
lcd_power =

lcd_pwm_used = 1
lcd_pwm = port:PI03<2><0><default><default>

lcd_gpio_0 =
lcd_gpio_1 =
lcd_gpio_2 =
lcd_gpio_3 =

lcdd0 = port:PH00<2><0><default><default>
lcdd1 = port:PH01<2><0><default><default>
lcdd2 = port:PH02<2><0><default><default>
lcdd3 = port:PH03<2><0><default><default>
lcdd4 = port:PH04<2><0><default><default>
lcdd5 = port:PH05<2><0><default><default>
lcdd6 = port:PH06<2><0><default><default>
lcdd7 = port:PH07<2><0><default><default>
lcdd8 = port:PH08<2><0><default><default>
lcdd9 = port:PH09<2><0><default><default>
lcdd10 = port:PH10<2><0><default><default>
lcdd11 = port:PH11<2><0><default><default>
lcdd12 = port:PH12<2><0><default><default>
lcdd13 = port:PH13<2><0><default><default>
lcdd14 = port:PH14<2><0><default><default>
lcdd15 = port:PH15<2><0><default><default>
lcdd16 = port:PH16<2><0><default><default>
lcdd17 = port:PH17<2><0><default><default>
lcdd18 = port:PH18<2><0><default><default>
lcdd19 = port:PH19<2><0><default><default>
lcdd20 = port:PH20<2><0><default><default>
lcdd21 = port:PH21<2><0><default><default>
lcdd22 = port:PH22<2><0><default><default>
lcdd23 = port:PH23<2><0><default><default>
lcdclk = port:PH24<2><0><default><default>
lcdde = port:PH25<2><0><default><default>
lcdhsync = port:PH26<2><0><default><default>
lcdvsync = port:PH27<2><0><default><default>

;-------------------------------------------------------------------------------
;tv out dac configuration
;dacx_src: 0:composite; 1:luma; 2:chroma; 4:Y; 5:Pb; 6: Pr; 7:none
;-------------------------------------------------------------------------------
[tv_out_dac_para]
dac_used = 1
dac0_src = 4
dac1_src = 5
dac2_src = 6
dac3_src = 0

;----------------------------------------------------------------------------------
;hdmi configuration
;----------------------------------------------------------------------------------
[hdmi_para]
hdmi_used = 1
hdcp_enable = 0

[i2s2_para]
i2s_channel = 2
i2s_master = 4
i2s_select = 1
audio_format = 1
signal_inversion = 1
over_sample_rate = 256
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 256
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 0
rx_data_mode = 0
;i2s_mclk = port:PB05<2><1><default><default>
;i2s_bclk = port:PB06<2><1><default><default>
;i2s_lrclk = port:PB07<2><1><default><default>
;i2s_dout0 = port:PB08<2><1><default><default>
;i2s_dout1 =
;i2s_dout2 =
;i2s_dout3 =
;i2s_din = port:PB12<2><1><default><default>

[camera_list_para]
camera_list_para_used = 1
ov7670 = 0
gc0308 = 1
gt2005 = 1
gc2035 = 1
hi704 = 0
sp0838 = 0
mt9m112 = 0
mt9m113 = 0
ov2655 = 0
hi253 = 0
gc0307 = 0
mt9d112 = 0
ov5640 = 1
gc2015 = 1
ov2643 = 0
gc0328 = 1
gc0329 = 1
gc0309 = 1
tvp5150 = 0
s5k4ec = 0
ov5650_mv9335 = 0
siv121d = 0
sp2518 = 1
sp0718 = 1
hm2057 = 1

;--------------------------------------------------------------------------------
;csi gpio configuration
;csi_if: 0:hv_8bit 1:hv_16bit 2:hv_24bit 3:bt656 1ch 4:bt656 2ch 5:bt656 4ch
;csi_mode: 0:sample one csi to one buffer 1:sample two csi to one buffer
;csi_dev_qty: The quantity of devices linked to csi interface
;csi_vflip: flip in vertical direction 0:disable 1:enable
;csi_hflip: flip in horizontal direction 0:disable 1:enable
;csi_stby_mode: 0:not shut down power at standby 1:shut down power at standby
;csi_iovdd: camera module io power , pmu power supply
;csi_avdd: camera module analog power , pmu power supply
;csi_dvdd: camera module core power , pmu power supply
;pmu_ldo3: fill "axp20_pll"
;pmu_ldo4: fill "axp20_hdmi"
;fill "" when not using any pmu power supply
;csi_flash_pol: the active polority of the flash light IO 0:low active 1:high active
;--------------------------------------------------------------------------------

[csi0_para]
csi_used = 1

csi_dev_qty = 2
csi_stby_mode = 0
csi_mname = "gc2035"
csi_twi_id = 1
csi_twi_addr = 0x78
csi_if = 0
csi_vflip = 0
csi_hflip = 0
csi_iovdd = "axp20_hdmi"
csi_avdd = "axp20_pll"
csi_dvdd = ""
csi_vol_iovdd = 2800
csi_vol_dvdd = 2800
csi_vol_avdd =
csi_flash_pol = 0
csi_facing = 0

csi_mname_b = "gc0308"
csi_twi_id_b = 1
csi_twi_addr_b = 0x42
csi_if_b = 0
csi_vflip_b = 0
csi_hflip_b = 0
csi_iovdd_b = "axp20_hdmi"
csi_avdd_b = "axp20_pll"
csi_dvdd_b = ""
csi_vol_iovdd_b = 2800
csi_vol_avdd_b = 2800
csi_vol_dvdd_b =
csi_flash_pol_b = 0
csi_facing_b = 1

csi_pck = port:PE00<3><default><default><default>
csi_ck = port:PE01<3><default><default><default>
csi_hsync = port:PE02<3><default><default><default>
csi_vsync = port:PE03<3><default><default><default>
csi_d0 = port:PE04<3><default><default><default>
csi_d1 = port:PE05<3><default><default><default>
csi_d2 = port:PE06<3><default><default><default>
csi_d3 = port:PE07<3><default><default><default>
csi_d4 = port:PE08<3><default><default><default>
csi_d5 = port:PE09<3><default><default><default>
csi_d6 = port:PE10<3><default><default><default>
csi_d7 = port:PE11<3><default><default><default>
csi_reset = port:PH13<1><default><default><0>
csi_power_en = port:PH16<1><default><default><0>
csi_stby = port:PH19<1><default><default><1>
csi_flash =
csi_af_en =
csi_reset_b = port:PH13<1><default><default><0>
csi_power_en_b = port:PH16<1><default><default><0>
csi_stby_b = port:PH18<1><default><default><1>
csi_flash_b =
csi_af_en_b =

[csi1_para]
csi_used = 0

csi_dev_qty = 1
csi_stby_mode = 0
csi_mname = "gc0308"
csi_if = 0
csi_iovdd = "axp20_pll"
csi_avdd = ""
csi_dvdd = ""
csi_vol_iovdd = 2800
csi_vol_dvdd =
csi_vol_avdd =
csi_vflip = 0
csi_hflip = 0
csi_flash_pol = 0
csi_facing = 1

csi_twi_id = 1
csi_twi_addr = 0x42
csi_pck = port:PG00<3><default><default><default>
csi_ck = port:PG01<3><default><default><default>
csi_hsync = port:PG02<3><default><default><default>
csi_vsync = port:PG03<3><default><default><default>
csi_d0 = port:PG04<3><default><default><default>
csi_d1 = port:PG05<3><default><default><default>
csi_d2 = port:PG06<3><default><default><default>
csi_d3 = port:PG07<3><default><default><default>
csi_d4 = port:PG08<3><default><default><default>
csi_d5 = port:PG09<3><default><default><default>
csi_d6 = port:PG10<3><default><default><default>
csi_d7 = port:PG11<3><default><default><default>
csi_reset = port:PH13<1><default><default><0>
csi_power_en = port:PH16<1><default><default><0>
csi_stby = port:PH19<1><default><default><0>

;-------------------------------------------------------------------------------
;tv configuration
;
;-------------------------------------------------------------------------------
[tvout_para]
tvout_used = 0
tvout_channel_num = 1

[tvin_para]
tvin_used = 0
tvin_channel_num = 4


;-------------------------------------------------------------------------------
;sata configuration
;
;-------------------------------------------------------------------------------
[sata_para]
sata_used = 0
sata_power_en =


;-------------------------------------------------------------------------------
; SDMMC PINS MAPPING
; ------------------------------------------------------------------------------
; Config Guide
; sdc_used: 1-enable card, 0-disable card
; sdc_detmode: card detect mode
; 1-detect card by gpio polling
; 2-detect card by gpio irq(must use IO with irq function)
; 3-no detect, always in for boot card
; 4-manually insert and remove by /proc/driver/sunxi-mmc.x/insert
; sdc_buswidth: card bus width, 1-1bit, 4-4bit, 8-8bit
; sdc_use_wp: 1-with write protect IO, 0-no write protect IO
; sdc_isio: for sdio card
; sdc_regulator: power control.
; other: GPIO Mapping configuration
; ------------------------------------------------------------------------------
; Note:
; 1 if detmode=2, sdc_det's config=6
; else if detmode=1, sdc_det's config=0
; else sdc_det IO is not necessary
; 2 if the customer wants to support UHS-I and HS200 features, he must provide
; an independent power supply for the card. This is only used in platforms
; that supports SD3.0 cards and eMMC4.4+ flashes
;-------------------------------------------------------------------------------
[mmc0_para]
sdc_used = 1
sdc_detmode = 1
sdc_buswidth = 4
sdc_clk = port:PF02<2><1><2><default>
sdc_cmd = port:PF03<2><1><2><default>
sdc_d0 = port:PF01<2><1><2><default>
sdc_d1 = port:PF00<2><1><2><default>
sdc_d2 = port:PF05<2><1><2><default>
sdc_d3 = port:PF04<2><1><2><default>
sdc_det = port:PH1<0><1><default><default>
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc1_para]
sdc_used = 0
sdc_detmode = 4
sdc_buswidth = 4
sdc_clk = port:PG00<2><1><2><default>
sdc_cmd = port:PG01<2><1><2><default>
sdc_d0 = port:PG02<2><1><2><default>
sdc_d1 = port:PG03<2><1><2><default>
sdc_d2 = port:PG04<2><1><2><default>
sdc_d3 = port:PG05<2><1><2><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc2_para]
sdc_used = 0
sdc_detmode = 3
sdc_buswidth = 4
sdc_cmd = port:PC06<3><1><2><default>
sdc_clk = port:PC07<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc3_para]
sdc_used = 0
sdc_detmode = 4
sdc_buswidth = 4
sdc_cmd = port:PI04<2><1><2><default>
sdc_clk = port:PI05<2><1><2><default>
sdc_d0 = port:PI06<2><1><2><default>
sdc_d1 = port:PI07<2><1><2><default>
sdc_d2 = port:PI08<2><1><2><default>
sdc_d3 = port:PI09<2><1><2><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 1
sdc_regulator = "none"

; ------------------------------------------------------------------------------
; memory stick configuration
;-------------------------------------------------------------------------------
[ms_para]
ms_used = 0
ms_bs = port:PH06<5><default><default><default>
ms_clk = port:PH07<5><default><default><default>
ms_d0 = port:PH08<5><default><default><default>
ms_d1 = port:PH09<5><default><default><default>
ms_d2 = port:PH10<5><default><default><default>
ms_d3 = port:PH11<5><default><default><default>
ms_det =

; ------------------------------------------------------------------------------
; sim card configuration
;-------------------------------------------------------------------------------
[smc_para]
smc_used = 0
smc_rst = port:PH13<5><default><default><default>
smc_vppen = port:PH14<5><default><default><default>
smc_vppp = port:PH15<5><default><default><default>
smc_det = port:PH16<5><default><default><default>
smc_vccen = port:PH17<5><default><default><default>
smc_sck = port:PH18<5><default><default><default>
smc_sda = port:PH19<5><default><default><default>

;-------------------------------------------------------------------------------
;ps2 configuration
;-------------------------------------------------------------------------------
[ps2_0_para]
ps2_used = 0
ps2_scl = port:PI20<2><1><default><default>
ps2_sda = port:PI21<2><1><default><default>

[ps2_1_para]
ps2_used = 0
ps2_scl = port:PI14<3><1><default><default>
ps2_sda = port:PI15<3><1><default><default>

;-------------------------------------------------------------------------------
;can bus configuration
;-------------------------------------------------------------------------------
[can_para]
can_used = 0
can_tx = port:PA16<3><default><default><default>
can_rx = port:PA17<3><default><default><default>

;-------------------------------------------------------------------------------
;key matrix
;-------------------------------------------------------------------------------
[keypad_para]
kp_used = 0
kp_in_size = 8
kp_out_size = 8
kp_in0 = port:PH08<4><1><default><default>
kp_in1 = port:PH09<4><1><default><default>
kp_in2 = port:PH10<4><1><default><default>
kp_in3 = port:PH11<4><1><default><default>
kp_in4 = port:PH14<4><1><default><default>
kp_in5 = port:PH15<4><1><default><default>
kp_in6 = port:PH16<4><1><default><default>
kp_in7 = port:PH17<4><1><default><default>
kp_out0 = port:PH18<4><1><default><default>
kp_out1 = port:PH19<4><1><default><default>
kp_out2 = port:PH22<4><1><default><default>
kp_out3 = port:PH23<4><1><default><default>
kp_out4 = port:PH24<4><1><default><default>
kp_out5 = port:PH25<4><1><default><default>
kp_out6 = port:PH26<4><1><default><default>
kp_out7 = port:PH27<4><1><default><default>


;-------------------------------------------------------------------------------
;[usbc0]:控制器0的配置。
;usb_used:USB使能标志。置1,表示系统中USB模块可用,置0,则表示系统USB禁用。
;usb_port_type:USB端口的使用情况。 0:device only;1:host only;2:OTG
;usb_detect_type:USB端口的检查方式。0:不做检测;1:vbus/id检查;2:id/dpdm检查
;usb_id_gpio:USB ID pin脚配置。具体请参考gpio配置说明。
;usb_det_vbus_gpio:USB DET_VBUS pin脚配置。具体请参考gpio配置说明。
;usb_drv_vbus_gpio:USB DRY_VBUS pin脚配置。具体请参考gpio配置说明。
;usb_det_vbus_gpio: "axp_ctrl",表示axp 提供
;usb_restrict_gpio usb限流控制pin
;usb_restric_flag: usb限流标置
;-------------------------------------------------------------------------------
;-------------------------------------------------------------------------------
;--- USB0控制标志
;-------------------------------------------------------------------------------
[usbc0]
usb_used = 1
usb_port_type = 2
usb_detect_type = 1
usb_id_gpio = port:PH04<0><1><default><default>
usb_det_vbus_gpio = "axp_ctrl"
usb_drv_vbus_gpio = port:PB09<1><0><default><0>
usb_ac_enable_gpio = port:PH05<1><0><default><0>
usb_restrict_gpio = 0
usb_host_init_state = 0
usb_restric_flag = 0
usb_restric_voltage = 3550000
usb_restric_capacity= 5

;-------------------------------------------------------------------------------
;--- USB1控制标志
;------------------------------------------------------------------------------
[usbc1]
usb_used = 0
usb_port_type = 1
usb_detect_type = 0
usb_drv_vbus_gpio = port:PH06<1><0><default><0>
usb_restrict_gpio =
usb_host_init_state = 1
usb_restric_flag = 0

;------------------------------------------------------------------------------
;--- USB2控制标志
;------------------------------------------------------------------------------
[usbc2]
usb_used = 1
usb_port_type = 1
usb_detect_type = 0
usb_drv_vbus_gpio = port:PH03<1><0><default><0>
usb_restrict_gpio =

usb_host_init_state = 0
usb_restric_flag = 0

;--------------------------------
;--- USB Device
;--------------------------------
[usb_feature]
vendor_id = 0x18D1
mass_storage_id = 0x0001
adb_id = 0x0002

manufacturer_name = "USB Developer"
product_name = "Android"
serial_number = "20080411"

[msc_feature]
vendor_name = "USB 2.0"
product_name = "USB Flash Driver"
release = 100
luns = 2

;-------------------------------------------------------------------------------
; G sensor configuration
; gs_twi_id --- TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2)
;-------------------------------------------------------------------------------
[gsensor_para]
gsensor_used = 1
gsensor_twi_id = 1
gsensor_int1 =
gsensor_int2 =

;--------------------------------------------------------------------------------
; G sensor automatic detection configuration
;gsensor_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[gsensor_list_para]
gsensor_det_used = 0
bma250 = 1
mma8452 = 1
mma7660 = 1
mma865x = 1
afa750 = 1
lis3de_acc = 1
lis3dh_acc = 1
kxtik = 1
dmard10 = 0
dmard06 = 1
mxc622x = 1
fxos8700 = 1
lsm303d = 1

;-------------------------------------------------------------------------------
; gps gpio configuration
; gps_spi_id --- the index of SPI controller. 0: SPI0, 1: SPI1, 2: SPI2, 15: no SPI used
; gps_spi_cs_num --- the chip select number of SPI controller. 0: SPI CS0, 1: SPI CS1
; gps_lradc --- the lradc number for GPS used. 0 and 1 is valid, set 2 if not use lradc
;-------------------------------------------------------------------------------
[gps_para]
gps_used = 0
gps_spi_id = 2
gps_spi_cs_num = 0
gps_lradc = 1
gps_clk = port:PI00<2><default><default><default>
gps_sign = port:PI01<2><default><default><default>
gps_mag = port:PI02<2><default><default><default>
gps_vcc_en = port:PC22<1><default><default><0>
gps_osc_en = port:PI14<1><default><default><0>
gps_rx_en = port:PI15<1><default><default><0>

;--------------------------------------------------------------------------------
;wifi configuration
;wifi_sdc_id --- 0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3
;wifi_usbc_id --- 0- USB0, 1- USB1, 2- USB2
;wifi_usbc_type -- 1- EHCI(speed 2.0), 2- OHCI(speed 1.0)
;wifi_mod_sel --- 0- none, 1- bcm40181, 2- bcm40183(wifi+bt),
; 3 - rtl8723as(wifi+bt), 4- rtl8189es(SM89E00),
; 5 - rtl8192cu, 6 - rtl8188eu, 7 - ap6210
;--------------------------------------------------------------------------------
[wifi_para]
wifi_used = 1
wifi_sdc_id = 3
wifi_usbc_id = 2
wifi_usbc_type = 1
wifi_mod_sel = 6
wifi_power = ""

; 1 - bcm40181 sdio wifi gpio config
;bcm40181_shdn = port:PH09<1><default><default><0>
;bcm40181_host_wake = port:PH10<0><default><default><0>

; 2 - bcm40183 sdio wifi gpio config
;bcm40183_wl_regon = port:PH09<1><default><default><0>
;bcm40183_wl_host_wake = port:PH10<0><default><default><0>
;bcm40183_bt_rst = port:PB05<1><default><default><0>
;bcm40183_bt_regon = port:PB05<1><default><default><0>
;bcm40183_bt_wake = port:PI20<1><default><default><0>
;bcm40183_bt_host_wake = port:PI21<0><default><default><0>

; 3 - rtl8723as sdio wifi + bt gpio config
rtk_rtl8723as_wl_dis = port:PH09<1><default><default><0>
rtk_rtl8723as_bt_dis = port:PB05<1><default><default><0>
rtk_rtl8723as_wl_host_wake = port:PH10<0><default><default><0>
rtk_rtl8723as_bt_host_wake = port:PI21<0><default><default><0>

; 4 - rtl8189es sdio wifi gpio config
;rtl8189es_shdn = port:PH09<1><default><default><0>
;rtl8189es_wakeup = port:PH10<1><default><default><1>
; 5 - rtl8192cu usb wifi
; 6 - rtl8188eu usb wifi
; 7 - ap6210 sdio wifi + bt gpio config
ap6xxx_wl_regon = port:PH09<1><default><default><0>
ap6xxx_wl_host_wake = port:PH10<0><default><default><0>
ap6xxx_bt_regon = port:PB05<1><default><default><0>
ap6xxx_bt_wake = port:PI20<1><default><default><0>
ap6xxx_bt_host_wake = port:PI21<0><default><default><0>

;-------------------------------------------------------------------------------
;3G configuration
;-------------------------------------------------------------------------------
[3g_para]
3g_used = 0
3g_usbc_num = 2
3g_uart_num = 0
3g_pwr =
3g_wakeup =
3g_int =

;-------------------------------------------------------------------------------
;gyroscope
;-------------------------------------------------------------------------------
[gy_para]
gy_used = 0
gy_twi_id = 1
gy_twi_addr = 0x00
gy_int1 = port:PH18<6><1><default><default>
gy_int2 = port:PH19<6><1><default><default>

;-------------------------------------------------------------------------------
;light sensor
;-------------------------------------------------------------------------------
[ls_para]
ls_used = 0
ls_twi_id = 1
ls_twi_addr = 0x00
ls_int = port:PH20<6><1><default><default>

;-------------------------------------------------------------------------------
;compass
;-------------------------------------------------------------------------------
[compass_para]
compass_used = 0
compass_twi_id = 1
compass_twi_addr = 0x00
compass_int = port:PI13<6><1><default><default>

;-------------------------------------------------------------------------------
;blue tooth
;bt_used ---- blue tooth used (0- no used, 1- used)
;bt_uard_id ---- uart index
;-------------------------------------------------------------------------------
[bt_para]
bt_used = 0
bt_uart_id = 2
bt_wakeup = port:PI20<1><default><default><default>
bt_gpio = port:PI21<1><default><default><default>
bt_rst = port:PB05<1><default><default><default>

;--------------------------------------------------------------------------------
;i2s_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;i2s_select:0 is pcm.1 is i2s
;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
;sample_resolution :16bits/20bits/24bits
;word_select_size :16bits/20bits/24bits/32bits
;pcm_sync_period :16/32/64/128/256
;msb_lsb_first :0: msb first; 1: lsb first
;sign_extend :0: zero pending; 1: sign extend
;slot_index :slot index: 0: the 1st slot - 3: the 4th slot
;slot_width :8 bit width / 16 bit width
;frame_width :0: long frame = 2 clock width; 1: short frame
;tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;--------------------------------------------------------------------------------
[i2s_para]
i2s_used = 0
i2s_channel = 2
i2s_master = 4
i2s_select = 1
audio_format = 1
signal_inversion = 1
over_sample_rate = 256
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 256
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 0
rx_data_mode = 0
i2s_mclk = port:PB05<2><1><default><default>
i2s_bclk = port:PB06<2><1><default><default>
i2s_lrclk = port:PB07<2><1><default><default>
i2s_dout0 = port:PB08<2><1><default><default>
i2s_dout1 =
i2s_dout2 =
i2s_dout3 =
i2s_din = port:PB12<2><1><default><default>


;--------------------------------------------------------------------------------
;pcm_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;pcm_select:1 is pcm.0 is i2s
;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
;sample_resolution :16bits/20bits/24bits
;word_select_size :16bits/20bits/24bits/32bits
;pcm_sync_period :16/32/64/128/256
;msb_lsb_first :0: msb first; 1: lsb first
;sign_extend :0: zero pending; 1: sign extend
;slot_index :slot index: 0: the 1st slot - 3: the 4th slot
;slot_width :8 bit width / 16 bit width
;frame_width :0: long frame = 2 clock width; 1: short frame
;tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;--------------------------------------------------------------------------------
[pcm_para]
pcm_used = 0
pcm_channel = 2
pcm_master = 4
pcm_select = 1
audio_format = 4
signal_inversion = 1
over_sample_rate = 256
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 256
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 0
rx_data_mode = 0
pcm_mclk = port:PA09<6><1><default><default>
pcm_bclk = port:PA14<6><1><default><default>
pcm_lrclk = port:PA15<6><1><default><default>
pcm_dout0 = port:PA16<6><1><default><default>
pcm_dout1 =
pcm_dout2 =
pcm_dout3 =
pcm_din = port:PA17<6><1><default><default>

[spdif_para]
spdif_used = 0
spdif_mclk =
spdif_dout = port:PB13<4><1><default><default>
spdif_din =

[audio_para]
audio_used = 1
audio_pa_ctrl = port:PH15<1><default><default><0>

[switch_para]
switch_used = 1

;-------------------------------------------------------------------------------
;ir --- infra remote configuration
;-------------------------------------------------------------------------------
[ir_para]
ir_used = 0
ir_rx = port:PB04<2><default><default><default>


;-------------------------------------------------------------------------------
;pmu_twi_addr ---slave address
;pmu_twi_id ---i2c bus number (0 TWI0, 1 TWI2, 2 TWI3)
;pmu_irq_id ---irq number (0 irq0,1 irq1,……)
;pmu_battery_rdc ---battery initial resistance,mΩ,根据实际电池内阻填写
;pmu_battery_cap ---battery capability,mAh,根据实际电池容量填写
;pmu_init_chgcur ---set initial charging current limite,mA,300/400/500/600/700/800/900/1000/1100/1200/1300/1400/1500/1600/1700/1800
;pmu_suspend_chgcur ---set suspend charging current limite,mA,300/400/500/600/700/800/900/1000/1100/1200/1300/1400/1500/1600/1700/1800
;pmu_resume_chgcur ---set resume charging current limite,mA,300/400/500/600/700/800/900/1000/1100/1200/1300/1400/1500/1600/1700/1800
;pmu_shutdown_chgcur ---set shutdown charging current limite,mA,300/400/500/600/700/800/900/1000/1100/1200/1300/1400/1500/1600/1700/1800
;pmu_init_chgvol ---set initial charing target voltage,mV,4100/4150/4200/4360
;pmu_init_chgend_rate ---set initial charing end current rate,10/15
;pmu_init_chg_enabled ---set initial charing enabled,0:关闭,1:打开
;pmu_init_adc_freq ---set initial adc frequency,Hz,25/50/100/200
;pmu_init_adc_freqc ---set initial coulomb adc coufrequency,Hz,25/50/100/200
;pmu_init_chg_pretime ---set initial pre-charging time,min,40/50/60/70
;pmu_init_chg_csttime ---set initial constance-charging time,min,360/480/600/720
;pmu_bat_para1 ---battery indication at 3.1328V
;pmu_bat_para2 ---battery indication at 3.2736V
;pmu_bat_para3 ---battery indication at 3.4144V
;pmu_bat_para4 ---battery indication at 3.5552V
;pmu_bat_para5 ---battery indication at 3.6256V
;pmu_bat_para6 ---battery indication at 3.6608V
;pmu_bat_para7 ---battery indication at 3.6960V
;pmu_bat_para8 ---battery indication at 3.7312V
;pmu_bat_para9 ---battery indication at 3.7664V
;pmu_bat_para10 ---battery indication at 3.8016V
;pmu_bat_para11 ---battery indication at 3.8368V
;pmu_bat_para12 ---battery indication at 3.8720V
;pmu_bat_para13 ---battery indication at 3.9424V
;pmu_bat_para14 ---battery indication at 4.0128V
;pmu_bat_para15 ---battery indication at 4.0832V
;pmu_bat_para16 ---battery indication at 4.1536V
;pmu_usbvol ---set usb-ac limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur ---set usb-ac limited voltage level,mA,100/500/900, 0 - not limite
;pmu_usbvol_pc ---set usb-pc limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur_pc ---set usb-pc limited voltage level,mA,100/500/900, 0 - not limite
;pmu_pwroff_vol ---set protect voltage when system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pwron_vol ---set protect voltage after system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pekoff_time ---set pek off time,ms, 4000/6000/8000/10000
;pmu_pekoff_en ---set pek off enable, 0:关闭,1:打开
;pmu_peklong_time ---set pek pek long irq time,ms,1000/1500/2000/2500
;pmu_pekon_time ---set pek on time,ms,128/1000/2000/3000
;pmu_pwrok_time ---set pmu pwrok delay time,ms,8/64
;pmu_pwrnoe_time ---set pmu n_oe power down delay time,ms,128/1000/2000/3000
;pmu_intotp_en ---set pmu power down when overtempertur enable,0:关闭,1:打开
;pmu_suspendpwroff_vol ---set pmu shutdown voltage when cpu is suspend and battery voltage is low
;pmu_batdeten ---set pmu battery detect enabled,0:关闭,1:打开
;-------------------------------------------------------------------------------
[pmu_para]
pmu_used = 1
pmu_twi_addr = 0x34
pmu_twi_id = 0
pmu_irq_id = 32
pmu_battery_rdc = 160
pmu_battery_cap = 2700
pmu_init_chgcur = 300
pmu_earlysuspend_chgcur = 600
pmu_suspend_chgcur = 1000
pmu_resume_chgcur = 300
pmu_shutdown_chgcur = 1000
pmu_init_chgvol = 4200
pmu_init_chgend_rate = 15
pmu_init_chg_enabled = 1
pmu_init_adc_freq = 100
pmu_init_adc_freqc = 100
pmu_init_chg_pretime = 50
pmu_init_chg_csttime = 720

pmu_bat_para1 = 0
pmu_bat_para2 = 0
pmu_bat_para3 = 1
pmu_bat_para4 = 3
pmu_bat_para5 = 5
pmu_bat_para6 = 6
pmu_bat_para7 = 14
pmu_bat_para8 = 18
pmu_bat_para9 = 31
pmu_bat_para10 = 42
pmu_bat_para11 = 54
pmu_bat_para12 = 61
pmu_bat_para13 = 75
pmu_bat_para14 = 87
pmu_bat_para15 = 96
pmu_bat_para16 = 100

pmu_usbvol_limit = 1
pmu_usbcur_limit = 0
pmu_usbvol = 4000
pmu_usbcur = 0

pmu_usbvol_pc = 4400
pmu_usbcur_pc = 0

pmu_pwroff_vol = 3300
pmu_pwron_vol = 2900

pmu_pekoff_time = 6000
pmu_pekoff_en = 1
pmu_peklong_time = 1500
pmu_pekon_time = 1000
pmu_pwrok_time = 64
pmu_pwrnoe_time = 2000
pmu_intotp_en = 1

pmu_used2 = 0
pmu_adpdet = port:PH02<0><default><default><default>
pmu_init_chgcur2 = 400
pmu_earlysuspend_chgcur2 = 600
pmu_suspend_chgcur2 = 1200
pmu_resume_chgcur2 = 400
pmu_shutdown_chgcur2 = 1200

pmu_suspendpwroff_vol = 3500

pmu_batdeten = 1

[recovery_key]
key_min = 4
key_max = 40

;----------------------------------------------------------------------------------
; dvfs voltage-frequency table configuration
;
; max_freq: cpu maximum frequency, based on Hz, can not be more than 1008MHz
; min_freq: cpu minimum frequency, based on Hz, can not be less than 60MHz
;
; LV_count: count of LV_freq/LV_volt, must be < 16
;
; LV1: core vdd is 1.45v if cpu frequency is (912Mhz, 1008Mhz]
; LV2: core vdd is 1.40v if cpu frequency is (864Mhz, 912Mhz]
; LV3: core vdd is 1.30v if cpu frequency is (792Mhz, 864Mhz]
; LV4: core vdd is 1.25v if cpu frequency is (720Mhz, 792Mhz]
; LV5: core vdd is 1.20v if cpu frequency is (624Mhz, 720Mhz]
; LV6: core vdd is 1.15v if cpu frequency is (528Mhz, 624Mhz]
; LV7: core vdd is 1.10v if cpu frequency is (312Mhz, 528Mhz]
; LV8: core vdd is 1.05v if cpu frequency is ( 60Mhz, 312Mhz]
;
;----------------------------------------------------------------------------------
[dvfs_table]
max_freq = 912000000
min_freq = 60000000

LV_count = 8

LV1_freq = 1008000000
LV1_volt = 1450

LV2_freq = 912000000
LV2_volt = 1400

LV3_freq = 864000000
LV3_volt = 1300

LV4_freq = 792000000
LV4_volt = 1250

LV5_freq = 720000000
LV5_volt = 1200

LV6_freq = 624000000
LV6_volt = 1150

LV7_freq = 528000000
LV7_volt = 1100

LV8_freq = 312000000
LV8_volt = 1050


возможное решение:


П.С.
сейчас пишу образ с принудительным модулем,посмотрим что получиться
жаль что собеседников нету и нужно самому думать..
все задрорты по игрушкам и нету думающих?
Я много чего не понимаю, но ждать по несколько лет я не собираюсь!! как где то читал что у одного планшет лежит пол года и прошивки нет нигде...зачем же плужить и в игры играть?Я вам и так много нужной инфы дал,вот и думайте :beee:
П.С.С. раз все жмут скрипт бин оригинальный или нанда.имг, то собрав образ рабочий я тоже зажму }-)
я и так заслужил медаль за поднос нужной инфы ленивым жукам....


Сообщение отредактировал PSYZuM - 06.11.15, 20:42
Причина редактирования: добавил возможное решение



Реп: (13)
вот решил выложить тестовый конфиг.. он более или менее стабильный и включает монитор на ваших белых экранах =) правда грузит он гсл680 а не гсл680нев и не работают тычки, но через отг вы можете нормально лазить ;)
тут и разные смещения можете выбрать!!
ах да, что бы грузил гсл680нев то ставте ctp_twi_addr = 0x40 (ежели не ошибаюсь)
бма250 вы можете в вендоре перебрать подходящий драйвер и переименовать в бма250

;Behind the equals sign said detected equipment corresponding to the name of the driver
;Note: don't change the file format!
gsensor_module_name="bma250"
ctp_module_name="gslX680"
light sensor_module_name=""
gyr sensor_module_name=""

или в гсенсор цфг выставить..вот от оригинального брависа!!
ежели выясню что драйвер работает, то начну переворачивать в конфиге...для этого мне нужно выкупить какой файл помогал врубить сенсор...я копировал весь оригинальный вендор и работал тач на прошивке а85,но не понял что за лажа в конфиге..а выставлены были нормально параметры..просто где то не хватает знаний..возможно дело было в i2s_para или power_ldo, в общем для самоучки и такой результат не плохой!
;Direction parameter adjustment, including the x, y, z axis, and xy interchange four variables,
;the name of the module used for identification, and drive registered name consistent
;--------------------------
;name:bma250
;--------------------------
gsensor_name = bma250
gsensor_direct_x = false
gsensor_direct_y = true
gsensor_direct_z = false
gsensor_xy_revert = false
;--------------------------
;name:dmard06
;--------------------------
gsensor_name = dmard06
gsensor_direct_x = true
gsensor_direct_y = true
gsensor_direct_z = true
gsensor_xy_revert = false
;--------------------------
;name:mma7660
;--------------------------
gsensor_name = mma7660
gsensor_direct_x = false
gsensor_direct_y = true
gsensor_direct_z = true
gsensor_xy_revert = true
;--------------------------
;name:mma8452
;--------------------------
gsensor_name = mma8452
gsensor_direct_x = false
gsensor_direct_y = true
gsensor_direct_z = false
gsensor_xy_revert = false

;--------------------------
;name:kxtik
;--------------------------
gsensor_name = kxtik
gsensor_direct_x = true
gsensor_direct_y = true
gsensor_direct_z = true
gsensor_xy_revert = false
;--------------------------
;name:afa750
;--------------------------
gsensor_name = afa750
gsensor_direct_x = false
gsensor_direct_y = false
gsensor_direct_z = false
gsensor_xy_revert = true
;--------------------------
;name:mxc622x
;--------------------------
gsensor_name = mxc622x
gsensor_direct_x = true
gsensor_direct_y = false
gsensor_direct_z = false
gsensor_xy_revert = false
;--------------------------
;name:mma865x
;--------------------------
gsensor_name = mma865x
gsensor_direct_x = true
gsensor_direct_y = true
gsensor_direct_z = false
gsensor_xy_revert = false
;--------------------------
;name:lis3de_acc
;--------------------------
gsensor_name = lis3de_acc
gsensor_direct_x = true
gsensor_direct_y = true
gsensor_direct_z = false
gsensor_xy_revert = false
;--------------------------
;name:lis3dh_acc
;--------------------------
gsensor_name = lis3dh_acc
gsensor_direct_x = true
gsensor_direct_y = true
gsensor_direct_z = false
gsensor_xy_revert = false
;--------------------------
;name:FreescaleAccelerometer
;--------------------------
gsensor_name = FreescaleAccelerometer
gsensor_direct_x = true
gsensor_direct_y = true
gsensor_direct_z = true
gsensor_xy_revert = false



сам конфиг,для многих это лучик света что их планшет не кусок пластмассы и надежда на будущее!
;A33 Y3 7.85" lcd panel board application
; the difference between Y2 and Y3:
; wifi/bt dram nand
; Y2 AP6210 SKHYNIX MICRON MLC
; Y3 rtl8723bs MIRA TOSHIBA MLC
;---------------------------------------------------------------------------------------------------------
; port configuration:
; port_name = port:GPIO<mux><pull up/down><driver level><default value>
; mux: GPIO function configuration, 0-input, 1-output, 2+: special funciton for modules
; pull up/down: 1-pull up, 2-pull down
; driver level: 0,1,2,3. 2 is recommended
; default value: default output value when this IO is configured as an output IO
;---------------------------------------------------------------------------------------------------------

[product]
version = "100"
machine = "KVT49L"

;---------------------------------------------------------------------------------------------------------
; eraseflag - 1 erase data partition, 0 - do not erase data partition
; next_work - action after burn, 0x0 by config, 0x1, normal, 0x2 reboot 0x3 ,shutdown,0x4 reupdate ,0x5 boot
;---------------------------------------------------------------------------------------------------------
[platform]
eraseflag = 1
next_work = 0

;----------------------------------------------------------------------------------
;[target] system bootup configuration
;boot_clock = CPU boot frequency, Unit: MHz
;storage_type = boot medium, 0-nand, 1-card0, 2-card2, -1(defualt)auto scan
;----------------------------------------------------------------------------------
[target]
boot_clock = 1008
storage_type = -1

;---------------------------------------------------------------------------------
; uboot key detect enable
; 当keyen_flag = 1 时,支持按键检测
; 当keyen_flag = 0 时,不支持
;---------------------------------------------------------------------------------
[key_detect_en]
keyen_flag = 1

;----------------------------------------------------------------------------------
;dcdc1_vol ---set dcdc1 voltage,mV,1600-3400,100mV/step
;dcdc2_vol ---set dcdc2 voltage,mV,600-1540,20mV/step
;dcdc3_vol ---set dcdc3 voltage,mV,600-1860,20mV/step
;dcdc4_vol ---set dcdc4 voltage,mV,600-1540,20mV/step
;dcdc5_vol ---set dcdc5 voltage,mV,1000-2550,50mV/step
;aldo2_vol ---set aldo2 voltage,mV,700-3300,100mV/step
;aldo3_vol ---set aldo3 voltage,mV,700-3300,100mV/step
;----------------------------------------------------------------------------------
[power_sply]
dcdc1_vol = 3000
dcdc2_vol = 1100
dcdc3_vol = 1200
dcdc4_vol = 0
dcdc5_vol = 1500
aldo2_vol = 2500
aldo3_vol = 3000

;----------------------------------------------------------------------------------
;card boot
;----------------------------------------------------------------------------------
[card_boot]
logical_start = 40960
sprite_gpio0 =
next_work = 3

;----------------------------------------------------------------------------------
;[cardx_boot_para] boot card configuration
;card_ctrl = boot card NO. 0 or 2
;card_high_speed = speed mode, 0-normal mode(up to 25MHz), 1-high speed mode(up to 50MHz)
;card_line = boot card buswidth(1 or 4)
;----------------------------------------------------------------------------------
[card0_boot_para]
card_ctrl = 0
card_high_speed = 1
card_line = 4
sdc_d1 = port:PF0<2><1><2><default>
sdc_d0 = port:PF1<2><1><2><default>
sdc_clk = port:PF2<2><1><2><default>
sdc_cmd = port:PF3<2><1><2><default>
sdc_d3 = port:PF4<2><1><2><default>
sdc_d2 = port:PF5<2><1><2><default>

[card2_boot_para]
card_ctrl = 2
card_high_speed = 1
card_line = 4
sdc_2xmode = 1
sdc_clk = port:PC05<3><1><2><default>
sdc_cmd = port:PC06<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>

;----------------------------------------------------------------------------------
;[twi_para] twi for boot code
;twi_port = twi controller ID
;----------------------------------------------------------------------------------
[twi_para]
twi_port = 0
twi_scl = port:PH02<2><default><default><default>
twi_sda = port:PH03<2><default><default><default>

;----------------------------------------------------------------------------------
;[uart_para] boot debug port configuration
;uart_debug_port = uart port ID for boot debug
;----------------------------------------------------------------------------------
[uart_para]
uart_debug_port = 0
uart_debug_tx = port:PF02<3><1><default><default>
uart_debug_rx = port:PF04<3><1><default><default>

[force_uart_para]
force_uart_port = 0
force_uart_tx = port:PF02<3><1><default><default>
force_uart_rx = port:PF04<3><1><default><default>

;----------------------------------------------------------------------------------
;[jtag_para] jtag configuration
;jtag_enable = 0-disable jtag, 1-enable jtag
;----------------------------------------------------------------------------------
[jtag_para]
jtag_enable = 0
jtag_ms = port:PF00<3><default><default><default>
jtag_ck = port:PF05<3><default><default><default>
jtag_do = port:PF03<3><default><default><default>
jtag_di = port:PF01<3><default><default><default>

;----------------------------------------------------------------------------------
;[clock] pll configuration
;----------------------------------------------------------------------------------
[clock]
pll3 = 297
pll4 = 300
pll6 = 600
pll8 = 408
pll9 = 480
pll10 = 297
pll_cpupat = 0
pll_gpupat = 0xc440e666
pll_videopat = 0
pll_vepat = 0
pll_hsicpat = 0
pll_depat = 0
pll_mipipat = 0
;zzzzzzzzzz
;pll_mipitun = 0x8a002008
;pll_mipibias= 0xf8100400
;---------------------------------------------------------------------------------------------------------
;[pm_para] power management
;standby_mode = 0-normal standby, 1-super standby
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode = 1

;*****************************************************************************
;sdram configuration
;
;*****************************************************************************
[dram_para]

dram_clk = 552
dram_type = 3
dram_zq = 0x3bbb
dram_odt_en = 1
dram_para1 = 0x10F20200
dram_para2 = 0x00
dram_mr0 = 0x1840
dram_mr1 = 0x40
dram_mr2 = 0x8
dram_mr3 = 0
dram_tpr0 = 0x0048A192
dram_tpr1 = 0x01B1B18d
dram_tpr2 = 0x00076052
dram_tpr3 = 0x0
dram_tpr4 = 0x0
dram_tpr5 = 0x0
dram_tpr6 = 0x0
dram_tpr7 = 0x0
dram_tpr8 = 0x0
dram_tpr9 = 0x0
dram_tpr10 = 0x0
dram_tpr11 = 0x0
dram_tpr12 = 168
dram_tpr13 = 0x900

;---------------------------------------------------------------------------------------------------------
; if 1 == standby_mode, then support super standby;
; else, support normal standby.
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode = 1

;---------------------------------------------------------------------------------------------------------
; wakeup_src_para:
; sometimes, u would like to add more wakeup src in standby mode, these para will be
; help;
; u need to make sure the standby mode support the wakeup src. Also, some hw
; condition must be guaranteed.
; including:
; cpu_en: power on or off.
; 1: mean power on
; 0: mean power off
; cpu_freq: indicating lowest freq. unit is Mhz;
; dram selfresh_en: selfresh or not.
; 1: enable enter selfresh
; 0: disable enter selfresh
; dram_pll: if not enter selfresh, indicating lowest freq. unit is Mhz;
; wakeup_src: to make the scenario work, the wakeup src is needed.
;---------------------------------------------------------------------------------------------------------
[wakeup_src_para]
cpu_en = 0
cpu_freq = 48
; (cpu:apb:ahb)
pll_ratio = 0x111
dram_selfresh_en= 1
dram_freq = 36
wakeup_src_wl = port:PL07<4><default><default><0>
wakeup_src_bt = port:PL09<4><default><default><0>
;bb_wake_ap = port:PL02<4><default><default><0>

;----------------------------------------------------------------------------------
;i2c configuration
; twi_used = twix enable
;----------------------------------------------------------------------------------
[twi0]
twi_used = 1
twi_scl = port:PH02<2><default><default><default>
twi_sda = port:PH03<2><default><default><default>

[twi1]
twi_used = 1
twi_scl = port:PH04<2><default><default><default>
twi_sda = port:PH05<2><default><default><default>

[twi2]
twi_used = 1
twi_scl = port:PE12<3><default><default><default>
twi_sda = port:PE13<3><default><default><default>


;----------------------------------------------------------------------------------
;uart configuration
;uart_used = uart x enable
;uart_type = 2:2 wire,4:4 wire,8:8 wire, full function
;----------------------------------------------------------------------------------
[uart0]
uart_used = 1
uart_port = 0
uart_type = 2
uart_tx = port:PF02<3><1><default><default>
uart_rx = port:PF04<3><1><default><default>

[uart1]
uart_used = 0
uart_type = 4
uart_tx = port:PG06<2><1><default><default>
uart_rx = port:PG07<2><1><default><default>
uart_rts = port:PG08<2><1><default><default>
uart_cts = port:PG09<2><1><default><default>

[uart2]
uart_used = 0
uart_type = 4
uart_tx = port:PB00<2><1><default><default>
uart_rx = port:PB01<2><1><default><default>
uart_rts = port:PB02<2><1><default><default>
uart_cts = port:PB03<2><1><default><default>

[uart3]
uart_used = 0
uart_type = 4
uart_tx = port:PH06<3><1><default><default>
uart_rx = port:PH07<3><1><default><default>
uart_rts = port:PH08<3><1><default><default>
uart_cts = port:PH09<3><1><default><default>

[uart4]
uart_used = 0
uart_port = 4
uart_type = 2
uart_tx = port:PA04<2><1><default><default>
uart_rx = port:PA05<2><1><default><default>
uart_rts = port:PA06<2><1><default><default>
uart_cts = port:PA07<2><1><default><default>

;----------------------------------------------------------------------------------
;SPI controller configuration
;spi_used = SPIx enable
;spi_cs_bitmap = SPI bit mapping
;----------------------------------------------------------------------------------
[spi0]
spi_used = 0
spi_cs_bitmap = 1
spi_mosi = port:PC00<3><default><default><default>
spi_miso = port:PC01<3><default><default><default>
spi_sclk = port:PC02<3><default><default><default>
spi_cs0 = port:PC03<3><1><default><default>

[spi1]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA00<2><1><default><default>
spi_sclk = port:PA01<2><default><default><default>
spi_mosi = port:PA02<2><default><default><default>
spi_miso = port:PA03<2><default><default><default>

;----------------------------------------------------------------------------------
;SPI device configuration
;spi_dev_num: number of spi devices
;----------------------------------------------------------------------------------
[spi_devices]
;spi_dev_num = 1
;zzzzzzzzzzzz
spi_dev_num = 0

;----------------------------------------------------------------------------------
;[spi_board0] spi device configuration
;modalias = spi device name
;max_speed_hz = max transfer speed
;bus_num = bus ID
;chip_select = chip select, 0,1
;mode = SPI transfer mode
;----------------------------------------------------------------------------------
[spi_board0]
modalias = "at25df641"
max_speed_hz = 50000000
bus_num = 0
chip_select = 0
mode = 0


;----------------------------------------------------------------------------------
;capacitor tp configuration
;ctp_twi_id : twi controller ID
;ctp_twi_addr : I2C slave address, 7bit
;ctp_screen_max_x/_y : resolution of touch panel
;ctp_revert_x/_y_flag : whether need to revert x/y
;ctp_exchange_x_y_flag: whether need to exchange the value of x and y
;ctp_int_port : port for tp's interrupt signal
;ctp_wakeup : port for wakeup tp
;----------------------------------------------------------------------------------
[ctp_para]
ctp_used = 1
;ctp_name = "gt910_707d5"
;ctp_name = "gslX680_inetd71"
;ctp_name = "gsl915"
ctp_twi_id = 1
ctp_twi_addr = 0x5d
;ctp_screen_max_x = 800
;ctp_screen_max_y = 480
ctp_screen_max_x = 768
ctp_screen_max_y = 1024
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 0

;zzzzzzzzz
;ctp_cob_gslX680_old = 0
;ctp_cob_gslX680 = 8601

;gsl915
;ctp_gslX680_OGS =1
;ctp_cob_gslX680 = 6

;gt910_update_file_path = "/system/etc/gt910_A23_mb707d5_depute_600_1024_20140506.cfg
;gt911_update_file_path = "/system/etc/gt911_A23_N02_OPDTP_800_480_20130819.cfg"
;gt912_update_file_path = "/system/etc/gt912_A23_N02_OPDTP_800_480_20131029.cfg"
;gt927_update_file_path =
;gt928_update_file_path =

ctp_int_port = port:PB05<4><default><default><default>
ctp_wakeup = port:PH01<1><default><default><1>
;ctp_power_ldo = "axp22_dldo4"
;zzzzz
ctp_power_ldo = "axp22_ldoio1"
;ctp_power_ldo_vol = 3000
;zzzzzzz
ctp_power_ldo_vol = 3300
ctp_power_io =

;--------------------------------------------------------------------------------
; CTP automatic detection configuration
;ctp_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[ctp_list_para]
ctp_det_used = 1
ft5x_ts = 0
gt82x = 0
gslX680 = 0
gslX680new = 1
gt9xx_ts = 0
gt9xxf_ts = 0
tu_ts = 0
gt818_ts = 0
zet622x = 0
aw5306_ts = 0
icn83xx_ts = 0
;zum gt9xxf_ts gslX680new
;----------------------------------------------------------------------------------
;touch key configuration
;tkey_twi_id : twi controller ID
;tkey_twi_addr : I2C slave address, 7bit
;tkey_int : port for touch key's interrupt signal
;----------------------------------------------------------------------------------
[tkey_para]
tkey_used = 0
tkey_twi_id =
tkey_twi_addr =
tkey_int =

;----------------------------------------------------------------------------------
;motor configuration
;motor_shake : port for making the moto shaking
;----------------------------------------------------------------------------------
[motor_para]
motor_used = 0
motor_shake = port:power3<1><default><default><1>
motor_ldo = ""
motor_ldo_voltage = 3300

;----------------------------------------------------------------------------------
;thermal configuration
;ths_trip_count : temperature trigger number
;ths_trip_0 : first temperature trigger
;ths_trip_1 : second temperature trigger
;ths_trip_2 : third temperature trigger, when upto this temperature, system shutdown
;ths_trip_0_min : first temperature trigger's min freq
;ths_trip_0_max : first temperature trigger's max freq
;ths_trip_1_min : second temperature trigger's min freq
;ths_trip_1_max : second temperature trigger's max freq
;----------------------------------------------------------------------------------
[ths_para]
ths_used = 1
ths_trip1_count = 3
ths_trip1_0 = 75
ths_trip1_1 = 90
ths_trip1_2 = 110
ths_trip1_0_min = 0
ths_trip1_0_max = 1
ths_trip1_1_min = 1
ths_trip1_1_max = 3
ths_trip1_2_min = 0
ths_trip1_2_max = 0
;----------------------------------------------------------------------------------
;cooler_table cooler_count <=32
;----------------------------------------------------------------------------------
[cooler_table]
cooler_count = 4
cooler0 = "1344000 4 4294967295 0"
cooler1 = "1200000 4 4294967295 0"
cooler2 = "1008000 4 4294967295 0"
cooler3 = "648000 4 4294967295 0"

;----------------------------------------------------------------------------------
;[nandx_para]
;nand_support_2ch = support dual channel
;nand0_used = nand0使能标识
;----------------------------------------------------------------------------------
[nand0_para]
nand_support_2ch = 0

nand0_used = 1
nand0_we = port:PC00<2><default><default><default>
nand0_ale = port:PC01<2><default><default><default>
nand0_cle = port:PC02<2><default><default><default>
nand0_ce1 = port:PC03<2><default><default><default>
nand0_ce0 = port:PC04<2><default><default><default>
nand0_nre = port:PC05<2><default><default><default>
nand0_rb0 = port:PC06<2><default><default><default>
nand0_rb1 = port:PC07<2><default><default><default>
nand0_d0 = port:PC08<2><default><default><default>
nand0_d1 = port:PC09<2><default><default><default>
nand0_d2 = port:PC10<2><default><default><default>
nand0_d3 = port:PC11<2><default><default><default>
nand0_d4 = port:PC12<2><default><default><default>
nand0_d5 = port:PC13<2><default><default><default>
nand0_d6 = port:PC14<2><default><default><default>
nand0_d7 = port:PC15<2><default><default><default>
nand0_ndqs = port:PC16<2><default><default><default>
nand0_ce2 = port:PC17<2><default><default><default>
nand0_ce3 = port:PC18<2><default><default><default>

;----------------------------------------------------------------------------------
;disp init configuration
;
;disp_mode (0:screen0<screen0,fb0>)
;screenx_output_type (0:none; 1:lcd; 3:hdmi;)
;screenx_output_mode (used for hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50)
; (5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60)
;fbx format (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)
;fbx pixel sequence (0:ARGB 1:BGRA 2:ABGR 3:RGBA)
;fb0_scaler_mode_enable(scaler mode enable, used FE)
;fbx_width,fbx_height (framebuffer horizontal/vertical pixels, fix to output resolution while equal 0)
;lcdx_backlight (lcd init backlight,the range:[0,256],default:197
;lcdx_yy (lcd init screen bright/contrast/saturation/hue, value:0~100, default:50/50/57/50)
;lcd0_contrast (LCD contrast, 0~100)
;lcd0_saturation (LCD saturation, 0~100)
;lcd0_hue (LCD hue, 0~100)
;----------------------------------------------------------------------------------
[disp_init]
disp_init_enable = 1
disp_mode = 0

screen0_output_type = 1
screen0_output_mode = 4

screen1_output_type = 1
screen1_output_mode = 4

fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0
fb0_width = 0
fb0_height = 0

fb1_format = 10
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 0
fb1_width = 0
fb1_height = 0

lcd0_backlight = 197
lcd1_backlight = 197

lcd0_bright = 50
lcd0_contrast = 50
;lcd0_saturation = 57
;zzzzzzzzzz
lcd0_saturation = 80
lcd0_hue = 50

lcd1_bright = 50
lcd1_contrast = 50
lcd1_saturation = 57
lcd1_hue = 50

;----------------------------------------------------------------------------------
;lcd0 configuration

;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:dsi; 5:edp; 6:extend dsi
;lcd_x: lcd horizontal resolution
;lcd_y: lcd vertical resolution
;lcd_width: width of lcd in mm
;lcd_height: height of lcd in mm
;lcd_dclk_freq: in MHZ unit
;lcd_pwm_freq: in HZ unit
;lcd_pwm_pol: lcd backlight PWM polarity
;lcd_pwm_max_limit lcd backlight PWM max limit(<=255)
;lcd_hbp: hsync back porch
;lcd_ht: hsync total cycle
;lcd_vbp: vsync back porch
;lcd_vt: vysnc total cycle
;lcd_hspw: hsync plus width
;lcd_vspw: vysnc plus width
;lcd_lvds_if: 0:single link; 1:dual link
;lcd_lvds_colordepth: 0:8bit; 1:6bit
;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither
;lcd_io_phase: 0:noraml; 1:intert phase(0~3bit: vsync phase; 4~7bit:hsync phase;
; 8~11bit:dclk phase; 12~15bit:de phase)
;lcd_gamma_en lcd gamma correction enable
;lcd_bright_curve_en lcd bright curve correction enable
;lcd_cmap_en lcd color map function enable
;deu_mode 0:smoll lcd screen; 1:large lcd screen(larger than 10inch)
;lcdgamma4iep: Smart Backlight parameter, lcd gamma vale * 10;
; decrease it while lcd is not bright enough; increase while lcd is too bright
;smart_color 90:normal lcd screen 65:retina lcd screen(9.7inch)
;----------------------------------------------------------------------------------
[lcd0_para]
lcd_used = 1

lcd_driver_name = "default_lcd"
lcd_if = 3
lcd_x = 768
lcd_y = 1024
lcd_width = 200
lcd_height = 135
lcd_dclk_freq = 59
lcd_pwm_used = 1
lcd_pwm_ch = 0
lcd_pwm_freq = 50000
lcd_pwm_pol = 0
lcd_hspw = 60
lcd_vspw = 8

;---------------------------768x1024----------
;768x1024
;lcd_hbp = 120
;lcd_ht = 948
;lcd_vbp = 80
;lcd_vt = 2280
;
;lcd_hbp = 120
;lcd_ht = 948
;lcd_vbp = 80
;lcd_vt = 1140
;
lcd_hbp = 23
lcd_ht = 928
lcd_vbp = 80
lcd_vt = 1065
;-------------------------------------------------
lcd_lvds_if = 0
lcd_lvds_colordepth = 0
lcd_lvds_mode = 0
lcd_frm = 1
lcd_gamma_en = 0
lcd_bright_curve_en = 0
lcd_cmap_en = 0

deu_mode = 0
lcdgamma4iep = 22
smart_color = 90

lcd_bl_en = port:PH06<1><0><default><1>
lcd_power = "axp22_dc1sw"
lcd_gpio_0 = port:PH07<1><0><default><1>
lcd_gpio_1 = port:PL05<1><0><default><1>

lcdd0 = port:PD00<2><0><default><default>
lcdd1 = port:PD01<2><0><default><default>
lcdd2 = port:PD02<2><0><default><default>
lcdd3 = port:PD03<2><0><default><default>
lcdd4 = port:PD04<2><0><default><default>
lcdd5 = port:PD05<2><0><default><default>
lcdd6 = port:PD06<2><0><default><default>
lcdd7 = port:PD07<2><0><default><default>
lcdd8 = port:PD08<2><0><default><default>
lcdd9 = port:PD09<2><0><default><default>
lcdd10 = port:PD10<2><0><default><default>
lcdd11 = port:PD11<2><0><default><default>
lcdd12 = port:PD12<2><0><default><default>
lcdd13 = port:PD13<2><0><default><default>
lcdd14 = port:PD14<2><0><default><default>
lcdd15 = port:PD15<2><0><default><default>
lcdd16 = port:PD16<2><0><default><default>
lcdd17 = port:PD17<2><0><default><default>
lcdd18 = port:PD18<2><0><default><default>
lcdd19 = port:PD19<2><0><default><default>
lcdd20 = port:PD20<2><0><default><default>
lcdd21 = port:PD21<2><0><default><default>
lcdd22 = port:PD22<2><0><default><default>
lcdd23 = port:PD23<2><0><default><default>
lcdclk = port:PD24<2><0><default><default>
lcdde = port:PD25<2><0><default><default>
lcdhsync = port:PD26<2><0><default><default>
lcdvsync = port:PD27<2><0><default><default>

;----------------------------------------------------------------------------------
;pwm config
;----------------------------------------------------------------------------------
[pwm0_para]
pwm_used = 1
pwm_positive = port:PH00<2><0><default><default>

[pwm1_para]
pwm_used = 0
pwm_positive = port:PH01<2><0><default><default>

;--------------------------------------------------------------------------------
;vip (video input port) configuration
;vip_used: 0:disable 1:enable
;vip_mode: 0:sample one interface to one buffer 1:sample two interface to one buffer
;vip_dev_qty: The quantity of devices linked to capture bus
;
;vip_define_sensor_list: If you want use sensor detect function, please set vip_define_sensor_list = 1, and
; verify that file /system/etc/hawkview/sensor_list_cfg.ini is properly configured!
;
;vip_dev(x)_pos: sensor position, "rear" or "front", if vip_define_sensor_list = 1,vip_dev(x)_pos must be configured!
;
;vip_dev(x)_isp_used 0:not use isp 1:use isp
;vip_dev(x)_fmt: 0:yuv 1:bayer raw rgb
;vip_dev(x)_stby_mode: 0:not shut down power at standby 1:shut down power at standby
;vip_dev(x)_vflip: flip in vertical direction 0:disable 1:enable
;vip_dev(x)_hflip: flip in horizontal direction 0:disable 1:enable
;vip_dev(x)_iovdd: camera module io power handle string, pmu power supply
;vip_dev(x)_iovdd_vol: camera module io power voltage, pmu power supply
;vip_dev(x)_avdd: camera module analog power handle string, pmu power supply
;vip_dev(x)_avdd_vol: camera module analog power voltage, pmu power supply
;vip_dev(x)_dvdd: camera module core power handle string, pmu power supply
;vip_dev(x)_dvdd_vol: camera module core power voltage, pmu power supply
;vip_dev(x)_afvdd: camera module vcm power handle string, pmu power supply
;vip_dev(x)_afvdd_vol: camera module vcm power voltage, pmu power supply
;x indicates the index of the devices which are linked to the same capture bus
;fill voltage in uV, e.g. iovdd = 2.8V, vip_devx_iovdd_vol = 2800000
;fill handle string as below:
;axp22_eldo3
;axp22_dldo4
;axp22_eldo2
;fill handle string "" when not using any pmu power supply
;--------------------------------------------------------------------------------

[csi0]

vip_used = 1
vip_mode = 0
;vip_dev_qty = 1
;zzzzzz
vip_dev_qty = 2
vip_define_sensor_list = 1
vip_csi_pck = port:PE00<2><default><default><default>
vip_csi_mck = port:PE01<2><default><default><default>
vip_csi_hsync = port:PE02<2><default><default><default>
vip_csi_vsync = port:PE03<2><default><default><default>
vip_csi_d0 = port:PE04<2><default><default><default>
vip_csi_d1 = port:PE05<2><default><default><default>
vip_csi_d2 = port:PE06<2><default><default><default>
vip_csi_d3 = port:PE07<2><default><default><default>
vip_csi_d4 = port:PE08<2><default><default><default>
vip_csi_d5 = port:PE09<2><default><default><default>
vip_csi_d6 = port:PE10<2><default><default><default>
vip_csi_d7 = port:PE11<2><default><default><default>

vip_dev0_mname = "gc0308"
vip_dev0_pos = "rear"
vip_dev0_lane = 1
vip_dev0_twi_id = 2
vip_dev0_twi_addr = 0x42
vip_dev0_isp_used = 0
vip_dev0_fmt = 0
vip_dev0_stby_mode = 0
vip_dev0_vflip = 0
vip_dev0_hflip = 0
vip_dev0_iovdd = "axp22_dldo3"
vip_dev0_iovdd_vol = 2800000
vip_dev0_avdd = "axp22_ldoio0"
vip_dev0_avdd_vol = 2800000
vip_dev0_dvdd = "axp22_eldo2"
vip_dev0_dvdd_vol = 1800000
vip_dev0_afvdd = ""
vip_dev0_afvdd_vol = 2800000
vip_dev0_power_en =
vip_dev0_reset = port:PE16<1><default><default><0>
vip_dev0_pwdn = port:PE17<1><default><default><1>
vip_dev0_flash_en =
vip_dev0_flash_mode =
vip_dev0_af_pwdn =

vip_dev0_act_used = 0
vip_dev0_act_name = "ad5820_act"
vip_dev0_act_slave = 0x18

vip_dev1_mname = "gc0328"
vip_dev1_pos = "front"
vip_dev1_lane = 1
vip_dev1_twi_id = 2
vip_dev1_twi_addr = 0x42
vip_dev1_isp_used = 0
vip_dev1_fmt = 0
vip_dev1_stby_mode = 0
vip_dev1_vflip = 0
vip_dev1_hflip = 0
vip_dev1_iovdd = "axp22_dldo3"
vip_dev1_iovdd_vol = 2800000
vip_dev1_avdd = "axp22_ldoio0"
vip_dev1_avdd_vol = 2800000
vip_dev1_dvdd = "axp22_eldo2"
vip_dev1_dvdd_vol = 1800000
vip_dev1_afvdd = ""
vip_dev1_afvdd_vol =
vip_dev1_power_en =
vip_dev1_reset = port:PE16<1><default><default><0>
vip_dev1_pwdn = port:PE17<1><default><default><1>
vip_dev1_flash_en =
vip_dev1_flash_mode =
vip_dev1_af_pwdn =

[camera_list_para]
camera_list_para_used =1
gc0328 =1
gc0329 =1
gc2155 =1
gc0308 =1
gc2035 =1
ov5647 =1
bf3703 =1
bf3920 =1


;-------------------------------------------------------------------------------
; mmc configuration
;
; Config Guide
; sdc_used: 1-enable card, 0-disable card
; sdc_detmode: card detect mode
; 1-detect card by gpio polling
; 2-detect card by gpio irq(must use IO with irq function)
; 3-no detect, always in for boot card
; 4-manually insert and remove by /proc/driver/sunxi-mmc.x/insert
; sdc_buswidth: card bus width, 1-1bit, 4-4bit, 8-8bit
; sdc_use_wp: 1-with write protect IO, 0-no write protect IO
; sdc_isio: for sdio card
; sdc_regulator: power control.if card supports UHS-I/DDR and HS200 timing for
; SD3.0 or eMMC4.5, regulator must be configured. the value is
; the ldo name of AXP221, eg: sdc_regulator = "axp22_eldo2"
; other: GPIO Mapping configuration
;
; Note:
; 1 if detmode=2, sdc_det's config=6
; else if detmode=1, sdc_det's config=0
; else sdc_det IO is not necessary
; 2 if the customer wants to support UHS-I and HS200 features, he must provide
; an independent power supply for the card. This is only used in platforms
; that supports SD3.0 cards and eMMC4.4+ flashes
;-------------------------------------------------------------------------------
[mmc0_para]
sdc_used = 1
sdc_detmode = 2
sdc_buswidth = 4
sdc_d1 = port:PF00<2><1><2><default>
sdc_d0 = port:PF01<2><1><2><default>
sdc_clk = port:PF02<2><1><2><default>
sdc_cmd = port:PF03<2><1><2><default>
sdc_d3 = port:PF04<2><1><2><default>
sdc_d2 = port:PF05<2><1><2><default>
sdc_det = port:PB04<4><1><2><default>
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc1_para]
sdc_used = 1
sdc_detmode = 4
sdc_buswidth = 4
sdc_clk = port:PG00<2><1><1><default>
sdc_cmd = port:PG01<2><1><1><default>
sdc_d0 = port:PG02<2><1><1><default>
sdc_d1 = port:PG03<2><1><1><default>
sdc_d2 = port:PG04<2><1><1><default>
sdc_d3 = port:PG05<2><1><1><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 1
sdc_regulator = "none"

[mmc2_para]
sdc_used = 0
sdc_detmode = 3
sdc_buswidth = 8
sdc_2xmode = 1
sdc_clk = port:PC05<3><1><2><default>
sdc_cmd = port:PC06<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>
sdc_d4 = port:PC12<3><1><2><default>
sdc_d5 = port:PC13<3><1><2><default>
sdc_d6 = port:PC14<3><1><2><default>
sdc_d7 = port:PC15<3><1><2><default>
emmc_rst = port:PC16<3><1><2><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

;----------------------------------------------------------------------------------
;usb configuration
;usb_used: usb controller enable, 0-disable, 1-enable
;usb_port_type: usb mode: 0-device, 1-host, 2-otg
;usb_detect_type: usb hotplug detect mode, 0-none, 1-vbus/id detect, 2-id/dpdm detect
;usb_id_gpio: usb id detect IO
;usb_det_vbus_gpio: usb vbus detect IO, "axp_ctrl" for axp
;usb_drv_vbus_gpio: usb dirve vbus IO
;usb_restrict_gpio: usb current restrict IO
;usb_restric_flag: usb current restrict flag
;----------------------------------------------------------------------------------
[usbc0]
usb_used = 1
usb_port_type = 2
usb_detect_type = 1
usb_id_gpio = port:PH08<0><1><default><default>
usb_det_vbus_gpio = "axp_ctrl"
usb_drv_vbus_gpio = port:power4<1><0><default><0>
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0
usb_restric_voltage = 3550000
usb_restric_capacity= 5
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_regulator_id_vbus = "axp22_dcdc1"
usb_regulator_id_vbus_vol = 3000000

[usbc1]
usb_used = 1
usb_drv_vbus_gpio =
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_not_suspend = 0


;----------------------------------------------------------------------------------

; USB Device vendor Info.
;----------------------------------------------------------------------------------
[usb_feature]
vendor_id = 0x1F3A
mass_storage_id = 0x1000
adb_id = 0x1001

manufacturer_name = ""
product_name = "Android"
serial_number = "20080411"

[msc_feature]
vendor_name = ""
product_name = "USB Flash Driver"
release = 100
luns = 2

[serial_feature]
serial_unique = 1

;--------------------------------------------------------------------------------
; G sensor configuration
; gs_twi_id --- TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2)
;--------------------------------------------------------------------------------
[gsensor_para]
gsensor_used = 1
;gsensor_twi_id = 1
gsensor_twi_id = 2
gsensor_twi_addr = 0x27
;gsensor_twi_addr = 0x18
gsensor_int1 = port:PB06<4><1><default><default>
gsensor_int2 =

;--------------------------------------------------------------------------------
; G sensor automatic detection configuration
;gsensor_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[gsensor_list_para]
gsensor_det_used = 1
bma250 = 1
stk831x = 0
mma8452 = 1
mma7660 = 1
mma865x = 1
mc32x0 = 0
afa750 = 1
lis3de_acc = 1
lis3dh_acc = 1
kxtik = 1
dmard10 = 0
dmard06 = 1
mxc622x = 1
fxos8700 = 1
lsm303d = 1

;--------------------------------------------------------------------------------
; gps gpio configuration
; gps_spi_id: the index of SPI controller. 0: SPI0, 1: SPI1, 2: SPI2, 15: no SPI used
; gps_spi_cs_num: the chip select number of SPI controller. 0: SPI CS0, 1: SPI CS1
; gps_lradc: the lradc number for GPS used. 0 and 1 is valid, set 2 if not use lradc
;--------------------------------------------------------------------------------
[gps_para]

;--------------------------------------------------------------------------------
;wifi configuration
;wifi_sdc_id: 0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3
;wifi_usbc_id: 0- USB0, 1- USB1, 2- USB2
;wifi_usbc_type: 1- EHCI(speed 2.0), 2- OHCI(speed 1.0)
;wifi_mod_sel: 0- none, 1- ap6181, 2- ap6210(wifi+bt),
; 3 - rtl8188eu, 4- rtl8723au(wifi+bt),
; 5 - rtl8723bs, 6- esp8089
;--------------------------------------------------------------------------------
[wifi_para]
wifi_used = 1
wifi_sdc_id = 1
wifi_usbc_id = 1
wifi_usbc_type = 1
wifi_mod_sel = 8
wifi_power = "axp22_dldo1"
wifi_power_ext1 = "axp22_dldo2"
wifi_power_ext2 = ""
wifi_power_switch = port:power0<1><0><default><0>

; 1 - ap6181 sdio wifi gpio config
;ap6xxx_wl_regon = port:PL06<1><default><default><0>
;ap6xxx_wl_host_wake = port:PL07<4><default><default><0>
;ap6xxx_lpo_use_apclk = 1

; 2 - ap6210 sdio wifi gpio config
;ap6xxx_wl_regon = port:PL06<1><default><default><0>
;ap6xxx_wl_host_wake = port:PL07<4><default><default><0>
;ap6xxx_bt_regon = port:PL08<1><default><default><0>
;ap6xxx_bt_wake = port:PL10<1><default><default><0>
;ap6xxx_bt_host_wake = port:PL09<4><default><default><0>
;ap6xxx_lpo_use_apclk = 1

; 3 - rtl8188eu usb wifi gpio conifg

; 4 - rtl8723au usb wifi + bt

; 5 - rtl8723bs sdio wifi + bt
;rtl8723bs_chip_en = port:PL11<1><default><default><0>
;rtl8723bs_wl_regon = port:PL06<1><default><default><0>
;rtl8723bs_wl_host_wake = port:PL07<4><default><default><0>
;rtl8723bs_bt_regon = port:PL08<1><default><default><0>
;rtl8723bs_bt_wake = port:PL10<1><default><default><0>
;rtl8723bs_bt_host_wake = port:PL09<4><default><default><0>
;rtl8723bs_lpo_use_apclk = 0

rtl8189es_shdn = port:PL06<1><default><default><0>
rtl8189es_host_wake = port:PL07<4><default><default><0>

; 6 - eagle sdio wifi
;esp_wl_chip_en = port:PL03<1><default><default><0>
;esp_wl_rst = port:PL02<1><default><default><0>

;--------------------------------------------------------------------------------
;blue tooth
;bt_used ---- blue tooth used (0- no used, 1- used)
;bt_uard_id ---- uart index
;--------------------------------------------------------------------------------
[bt_para]
bt_used = 0
bt_uart_id = 1

;--------------------------------------------------------------------------------
;3G configuration
;--------------------------------------------------------------------------------
[3g_para]
3g_used = 0
3g_usbc_num = 1
3g_uart_num = 2
bb_name = "em66"
bb_vbat =
bb_on =
bb_pwr_on = port:PL03<1><default><default><0>
bb_wake = port:PL04<1><default><default><0>
bb_rf_dis = port:PL11<1><default><default><0>
bb_rst = port:PL05<1><default><default><0>
bb_dldo = "axp22_aldo1"
bb_dldo_min_uV = 2800000
bb_dldo_max_uV = 2800000

;--------------------------------------------------------------------------------
;gyroscope
;--------------------------------------------------------------------------------
[gy_para]
gy_used = 0
gy_twi_id = 1
gy_twi_addr = 0x6a
gy_int1 =
gy_int2 =

;--------------------------------------------------------------------------------
; Gyro automatic detection configuration
;gy_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[gy_list_para]
;gy_det_used = 0
;
gy_det_used = 1
l3gd20_gyr = 1

;--------------------------------------------------------------------------------
;light sensor
;--------------------------------------------------------------------------------
[ls_para]
ls_used = 0
ls_twi_id = 1
ls_twi_addr = 0x23
ls_int = port:PB07<4><1><default><default>

;--------------------------------------------------------------------------------
; lsensor automatic detection configuration
;ls_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[ls_list_para]
ls_det_used = 0
ltr_501als = 1
jsa1212 = 1

;--------------------------------------------------------------------------------
;compass
;--------------------------------------------------------------------------------
[compass_para]
compass_used = 0
compass_twi_id = 1
compass_twi_addr = 0x0d
compass_int =

;--------------------------------------------------------------------------------
;i2s0_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;i2s0_select:0 is pcm.1 is i2s
;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
;sample_resolution :16bits/20bits/24bits
;word_select_size :16bits/20bits/24bits/32bits
;pcm_sync_period :16/32/64/128/256
;msb_lsb_first :0: msb first; 1: lsb first
;sign_extend :0: zero pending; 1: sign extend
;slot_index :slot index: 0: the 1st slot - 3: the 4th slot
;slot_width :8 bit width / 16 bit width
;frame_width :0: long frame = 2 clock width; 1: short frame
;tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;--------------------------------------------------------------------------------
[i2s0]
i2s0_used = 0
i2s0_channel = 2

i2s0_master = 1
i2s0_select = 0
audio_format = 4
signal_inversion = 3
over_sample_rate = 256

;i2s0_master = 4
;i2s0_select = 1
;audio_format = 1
;signal_inversion = 1
;over_sample_rate = 512

sample_resolution = 16
word_select_size = 32
pcm_sync_period = 256
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1

tx_data_mode = 0
rx_data_mode = 0

;tx_data_mode = 1
;rx_data_mode = 1
i2s0_mclk =
i2s0_bclk = port:PB04<2><1><default><default>
i2s0_lrclk = port:PB05<2><1><default><default>
i2s0_dout0 = port:PB06<2><1><default><default>
i2s0_dout1 =
i2s0_dout2 =
i2s0_dout3 =
i2s0_din = port:PB07<2><1><default><default>

;--------------------------------------------------------------------------------
;i2s1_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;i2s1_select:0 is pcm.1 is i2s
;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
;sample_resolution :16bits/20bits/24bits
;word_select_size :16bits/20bits/24bits/32bits
;pcm_sync_period :16/32/64/128/256
;msb_lsb_first :0: msb first; 1: lsb first
;sign_extend :0: zero pending; 1: sign extend
;slot_index :slot index: 0: the 1st slot - 3: the 4th slot
;slot_width :8 bit width / 16 bit width
;frame_width :0: long frame = 2 clock width; 1: short frame
;tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;--------------------------------------------------------------------------------
[i2s1]
i2s1_used = 0
i2s1_channel = 2
i2s1_master = 4
i2s1_select = 1

audio_format = 4
signal_inversion = 3

;audio_format = 1
;signal_inversion = 1

over_sample_rate = 512
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 64
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 0
rx_data_mode = 0
i2s1_mclk =
i2s1_bclk = port:PG11<2><1><default><default>
i2s1_lrclk = port:PG10<2><1><default><default>
i2s1_dout = port:PG12<2><1><default><default>
i2s1_din = port:PG13<2><1><default><default>

;--------------------------------------------------------------------------------
;pa_single_vol,pa_double_vol: 31 level,1.5db/step.0x1f is the large volume.
;cap_vol:use for system record,0x0--0db,0x1--24db,0x2--27db,0x3--30db,0x4--33db,0x5--36db,0x6--39db,0x7--42db
;headphone_vol,earpiece_vol: must least than 0x3b. 0x1 is a step.
;headset_mic_vol: headset mic(mic2) vol,use for phone headset mic call
;main_mic_vol: main mic(mic1) vol,use for phone main mic call
;--------------------------------------------------------------------------------
[audio0]
audio_used = 1
headphone_vol = 0x3b
earpiece_vol = 0x3b
cap_vol = 0x5
pa_single_vol = 0x3e
pa_double_used = 1
pa_double_vol = 0x3e
headphone_direct_used = 1
headset_mic_vol = 0x6
main_mic_vol = 0x6
audio_hp_ldo =none
audio_pa_ctrl = port:PH09<1><default><default><0>
;audio_pa_ctrl = port:PA18<1><default><default><0>
aif2_used = 0
aif3_used = 0
headphone_mute_used = 0
DAC_VOL_CTRL_SPK = 0x9e9e
DAC_VOL_CTRL_HEADPHONE = 0xa0a0
;main_mic_vol = 6

;-------------------------------------------------------------------------------------
;pmu_used ---0:not used,1:used
;pmu_twi_addr ---slave address
;pmu_twi_id ---i2c bus number (0 TWI0, 1 TWI2, 2 TWI3)
;pmu_irq_id ---irq number (0 irq0,1 irq1,……)
;pmu_battery_rdc ---battery initial resistance
;pmu_battery_cap ---battery capability,mAh
;pmu_batdeten ---battery detect en;0:disable 1:enable
;pmu_runtime_chgcur ---set initial charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_earlysuspend_chgcur ---set earlysuspend charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_suspend_chgcur ---set suspend charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_shutdown_chgcur ---set shutdown charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_init_chgvol ---set initial charing target voltage,mV,4100/4220/4200/4240
;pmu_init_chgend_rate ---set initial charing end current rate,10/15
;pmu_init_chg_enabled ---set initial charing enabled,0:disable,1:enable
;pmu_init_adc_freq ---set initial adc frequency,Hz,100/200/400/800
;pmu_init_adcts_freq ---set initial adc TS,Hz,100/200/400/800
;pmu_init_chg_pretime ---set initial pre-charging time,min,40/50/60/70
;pmu_init_chg_csttime ---set initial constance-charging time,min,360/480/600/720
;pmu_batt_cap_correct ---correct the battery capacity or not when one charge cycle 0:not correct 1:correct
;pmu_bat_regu_en ---bat regulator is enable or not when charge done 0:disable 1:enable
;pmu_bat_para1 ---battery indication at 3.13V
;pmu_bat_para2 ---battery indication at 3.27V
;pmu_bat_para3 ---battery indication at 3.34V
;pmu_bat_para4 ---battery indication at 3.41V
;pmu_bat_para5 ---battery indication at 3.48V
;pmu_bat_para6 ---battery indication at 3.52V
;pmu_bat_para7 ---battery indication at 3.55V
;pmu_bat_para8 ---battery indication at 3.57V
;pmu_bat_para9 ---battery indication at 3.59V
;pmu_bat_para10 ---battery indication at 3.61V
;pmu_bat_para11 ---battery indication at 3.63V
;pmu_bat_para12 ---battery indication at 3.64V
;pmu_bat_para13 ---battery indication at 3.66V
;pmu_bat_para14 ---battery indication at 3.7V
;pmu_bat_para15 ---battery indication at 3.73V
;pmu_bat_para16 ---battery indication at 3.77V
;pmu_bat_para17 ---battery indication at 3.78V
;pmu_bat_para18 ---battery indication at 3.8V
;pmu_bat_para19 ---battery indication at 3.82V
;pmu_bat_para20 ---battery indication at 3.84V
;pmu_bat_para21 ---battery indication at 3.85V
;pmu_bat_para22 ---battery indication at 3.87V
;pmu_bat_para23 ---battery indication at 3.91V
;pmu_bat_para24 ---battery indication at 3.94V
;pmu_bat_para25 ---battery indication at 3.98V
;pmu_bat_para26 ---battery indication at 4.01V
;pmu_bat_para27 ---battery indication at 4.05V
;pmu_bat_para28 ---battery indication at 4.08V
;pmu_bat_para29 ---battery indication at 4.1V
;pmu_bat_para30 ---battery indication at 4.12V
;pmu_bat_para31 ---battery indication at 4.14V
;pmu_bat_para32 ---battery indication at 4.15V
;pmu_usbvol_limit ---set usb-ac limited voltage enable,1:enable,0:disable
;pmu_usbcur_limit ---set usb-ac limited current enable,1:enable,0:disable
;pmu_usbvol ---set usb-ac limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur ---set usb-ac limited current level,mA,500/900, 0 - not limite
;pmu_usbvol_pc ---set usb-pc limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur_pc ---set usb-pc limited current level,mA,500/900, 0 - not limite
;pmu_pwroff_vol ---set protect voltage when system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pwron_vol ---set protect voltage after system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pekoff_time ---set pek off time,ms, 4000/6000/8000/10000
;pmu_pekoff_func ---set pek off func, 0:shutdown,1:restart
;pmu_pekoff_en ---set pek offlevel powerdown or not, 0:not powerdown,1:powerdown
;pmu_peklong_time ---set pek pek long irq time,ms,1000/1500/2000/2500
;pmu_pekon_time ---set pek on time,ms,128/1000/2000/3000
;pmu_pwrok_time ---set pmu pwrok delay time,ms,8/16/32/64
;pmu_battery_warning_level1 ---low power warning high level,5%-20%,1%/step
;pmu_battery_warning_level2 ---low power warning low level,0%-15%,1%/step
;pmu_restvol_time ---battery indicaton reflash time,30/60/120/
;pmu_ocv_cou_adjust_time ---ocv battery indication reflash time,60/120/30
;pmu_chgled_func ---CHGKED pin control,0:controlled by pmu,1:controlled by Charger
;pmu_chgled_type ---CHGLED Type select when pmu_chgled_func=0,0:Type A,1:Type B
;pmu_vbusen_func ---N_VBUSEN function select,0:as an output,1:as an input
;pmu_reset ---when power key press longer than 16's,PMU reset or not.0:not reset 1:reset
;pmu_IRQ_wakeup ---press IRQ wakeup or not when sleep or power down.0:not wakeup 1:wakeup
;pmu_hot_shutdowm ---when PMU over temperature protect or not;0:disable 1:enable
;pmu_inshort ---ACIN and VBUS inshort or not by software;0:auto detect 1:inshort
;pmu_temp_enable ---temp detect enable
;pmu_charge_ltf ---charge temp low threshold voltage
;pmu_charge_htf ---charge temp high threshold voltage
;pmu_discharge_ltf ---shutdown temp low threshold voltage
;pmu_discharge_htf ---shutdown temp high threshold voltage
;pmu_temp_para1 --- temp -25 voltage
;pmu_temp_para2 --- temp -15 voltage
;pmu_temp_para3 --- temp -10 voltage
;pmu_temp_para4 --- temp -5 voltage
;pmu_temp_para5 --- temp 0 voltage
;pmu_temp_para6 --- temp 5 voltage
;pmu_temp_para7 --- temp 10 voltage
;pmu_temp_para8 --- temp 20 voltage
;pmu_temp_para9 --- temp 30 voltage
;pmu_temp_para10 --- temp 40 voltage
;pmu_temp_para11 --- temp 45 voltage
;pmu_temp_para12 --- temp 50 voltage
;pmu_temp_para13 --- temp 55 voltage
;pmu_temp_para14 --- temp 60 voltage
;pmu_temp_para15 --- temp 70 voltage
;pmu_temp_para16 --- temp 80 voltage
;--------------------------------------------------------------------------------------------------------
[pmu1_para]
pmu_used = 1
pmu_twi_addr = 0x34
pmu_twi_id = 1
pmu_irq_id = 0
;pmu_battery_rdc = 100
pmu_battery_rdc = 112
pmu_battery_cap = 3300
pmu_batdeten = 1
;pmu_chg_ic_temp = 0
;pmu_runtime_chgcur = 900
pmu_runtime_chgcur = 450
;pmu_earlysuspend_chgcur = 1500
pmu_earlysuspend_chgcur = 1200
pmu_suspend_chgcur = 1500
pmu_shutdown_chgcur = 1500
pmu_init_chgvol = 4200
pmu_init_chgend_rate = 15
pmu_init_chg_enabled = 1
pmu_init_adc_freq = 800
pmu_init_adcts_freq = 800
pmu_init_chg_pretime = 70
pmu_init_chg_csttime = 720
pmu_batt_cap_correct = 1
pmu_bat_regu_en = 0

pmu_bat_para1 = 0
pmu_bat_para2 = 0
pmu_bat_para3 = 0
pmu_bat_para4 = 0
pmu_bat_para5 = 0
pmu_bat_para6 = 0
pmu_bat_para7 = 0
pmu_bat_para8 = 0
pmu_bat_para9 = 1
pmu_bat_para10 = 2
pmu_bat_para11 = 3
pmu_bat_para12 = 5
pmu_bat_para13 = 10
pmu_bat_para14 = 16
pmu_bat_para15 = 31
pmu_bat_para16 = 43
pmu_bat_para17 = 49
pmu_bat_para18 = 53
pmu_bat_para19 = 57
pmu_bat_para20 = 60
pmu_bat_para21 = 63
pmu_bat_para22 = 66
pmu_bat_para23 = 71
pmu_bat_para24 = 77
pmu_bat_para25 = 80
pmu_bat_para26 = 84
pmu_bat_para27 = 88
pmu_bat_para28 = 92
pmu_bat_para29 = 94
pmu_bat_para30 = 96
pmu_bat_para31 = 98
pmu_bat_para32 = 100

pmu_usbvol_limit = 0
pmu_usbcur_limit = 0
pmu_usbvol = 4000
pmu_usbcur = 0
pmu_usbvol_pc = 4400
pmu_usbcur_pc = 500
pmu_pwroff_vol = 3300
pmu_pwron_vol = 2600
pmu_pekoff_time = 6000
pmu_pekoff_func = 0
pmu_pekoff_en = 1
pmu_peklong_time = 1500
pmu_pekon_time = 1000
pmu_pwrok_time = 64
pmu_battery_warning_level1 = 15
pmu_battery_warning_level2 = 0
pmu_restvol_adjust_time = 60
pmu_ocv_cou_adjust_time = 60
pmu_chgled_func = 0
pmu_chgled_type = 0
pmu_vbusen_func = 1
pmu_reset = 0
pmu_IRQ_wakeup = 0
pmu_hot_shutdowm = 1
pmu_inshort = 0
power_start = 0

pmu_temp_enable = 1
pmu_charge_ltf = 2261
pmu_charge_htf = 388
pmu_discharge_ltf = 3200
pmu_discharge_htf = 237
pmu_temp_para1 = 7466
pmu_temp_para2 = 4480
pmu_temp_para3 = 3518
pmu_temp_para4 = 2786
pmu_temp_para5 = 2223
pmu_temp_para6 = 1788
pmu_temp_para7 = 1448
pmu_temp_para8 = 969
pmu_temp_para9 = 664
pmu_temp_para10 = 466
pmu_temp_para11 = 393
pmu_temp_para12 = 333
pmu_temp_para13 = 283
pmu_temp_para14 = 242
pmu_temp_para15 = 179
pmu_temp_para16 = 134

[pmu2_para]
pmu_used = 0
pmu_twi_addr = 0x34
pmu_twi_id = 1
pmu_irq_id = 0

;--------------------------------------------------------------------------------------------------------
[recovery_key]
key_min =8
key_max =14
;----------------------------------------------------------------------------------
; dvfs voltage-frequency table configuration
;
; extremity_freq(Hz): cpu extremity frequency when run benckmark or demo apk
; 1536MHz@1500mV with radiator, 1296MHz@1340mV without radiator
; max_freq: cpu maximum frequency, based on Hz, can not be more than 1200MHz
; min_freq: cpu minimum frequency, based on Hz, can not be less than 60MHz
;
; LV_count: count of LV_freq/LV_volt, must be < 16
;
; LV1: core vdd is 1.50v if cpu frequency is (1296Mhz, 1536Mhz]
; LV2: core vdd is 1.34v if cpu frequency is (1200Mhz, 1296Mhz]
; LV3: core vdd is 1.26v if cpu frequency is (1008Mhz, 1200Mhz]
; LV4: core vdd is 1.14v if cpu frequency is (816Mhz, 1008Mhz]
; LV5: core vdd is 1.04v if cpu frequency is (312Mhz, 816Mhz]
; LV6: core vdd is 0.96v if cpu frequency is (0Mhz, 312Mhz]
; LV7: core vdd is 0.96v if cpu frequency is (0Mhz, 312Mhz]
; LV8: core vdd is 0.96v if cpu frequency is (0Mhz, 312Mhz]
;
;----------------------------------------------------------------------------------
[dvfs_table]
extremity_freq = 1344000000
max_freq = 1200000000
min_freq = 120000000

LV_count = 8

LV1_freq = 1536000000
LV1_volt = 1500

LV2_freq = 1344000000
LV2_volt = 1460

LV3_freq = 1200000000
LV3_volt = 1320

LV4_freq = 1008000000
LV4_volt = 1200

LV5_freq = 816000000
LV5_volt = 1100

LV6_freq = 648000000
LV6_volt = 1040

LV7_freq = 0
LV7_volt = 1040

LV8_freq = 0
LV8_volt = 1040

;----------------------------------------------------------------------------------
;virtual device
;virtual device for pinctrl testing
;device have pin PA1 PA2
;----------------------------------------------------------------------------------
[Vdevice]
Vdevice_used = 1
Vdevice_0 = port:PA01<5><1><2><default>
Vdevice_1 = port:PA02<5><1><2><default>

;----------------------------------------------------------------------------------
;s_uart0 config parameters
;s_uart_used --s_uart0 whether used for arisc debugging
;----------------------------------------------------------------------------------
[s_uart0]
s_uart_used = 0
s_uart_tx = port:PL02<2><default><default><default>
s_uart_rx = port:PL03<2><default><default><default>

;----------------------------------------------------------------------------------
;s_rsb0 config parameters
;s_rsb_used --s_rsb0 whether used for arisc
;----------------------------------------------------------------------------------
[s_rsb0]
s_rsb_used = 1
s_rsb_sck = port:PL00<2><1><2><default>
s_rsb_sda = port:PL01<2><1><2><default>

;----------------------------------------------------------------------------------
;s_jtag0 config parameters
;s_jtag0_used --s_jtag0 whether used for arisc
;
;----------------------------------------------------------------------------------
[s_jtag0]
s_jtag_used = 0
s_jtag_tms = port:PL04<2><1><2><default>
s_jtag_tck = port:PL05<2><1><2><default>
s_jtag_tdo = port:PL06<2><1><2><default>
s_jtag_tdi = port:PL07<2><1><2><default>

;----------------------------------------------------------------------------------
;s_powchk cpus power check
;s_powchk_used --power check whether used for arisc in super standby
; bit31:enable power updat, bit1:wakeup when power state exception
; bit0:wakeup when power consumption exception
;s_power_reg the expected regs stand for power on/off state
;s_system_power the limit maxmum power consumption when super standby (unit: mw)
;
;----------------------------------------------------------------------------------
[s_powchk]
s_powchk_used = 0x80000000
s_power_reg = 0x00008061
s_system_power = 50

[mali_para]
mali_used = 1
mali_clkdiv = 1
mali_extreme_freq = 408
mali_extreme_vol = 1100


;----------------------------------------------------------------------------------
; dram dvfs voltage-frequency table configuration
;
; LV_count: count of LV_freq/LV_volt
;
; LV1: core vdd is 1.1v if dram frequency is (360Mhz, 552Mhz]
; LV2: core vdd is 1.0v if dram frequency is ( 0Mhz, 360Mhz]
; LV3: core vdd is 1.0v if dram frequency is ( 0Mhz, 360Mhz]
;
;----------------------------------------------------------------------------------
[dram_dvfs_table]
LV_count = 3

LV1_freq = 552000000
LV1_volt = 1100

LV2_freq = 360000000
LV2_volt = 1100

LV3_freq = 0
LV3_volt = 1100

;----------------------------------------------------------------------------------
;charging_type config parameters
;charging_type 0:uboot charging, 1:android charging
;----------------------------------------------------------------------------------
[charging_type]
charging_type = 1
;----------------------------------------------------------------------------------
; dram scene frequency table configuration
;
; LV_count: count of LV_scene/LV_freq
;
; LV1: dram frequency default is 360MHz in home, supported for 360MHz/552MHz
; LV2: dram frequency default is 240MHz in video play, supported for 240MHz/360MHz/552MHz
; LV3: dram frequency default is 168MHz in bgmusic play
;
;----------------------------------------------------------------------------------
[dram_scene_table]
LV_count = 3

LV1_scene = 1
LV1_freq = 360000000

LV2_scene = 2
LV2_freq = 240000000

LV3_scene = 3
LV3_freq = 168000000

;----------------------------------------------------------------------------------
;leds config parameters
;leds_used 0:uboot charging, 1:android charging
;----------------------------------------------------------------------------------
[leds_para]
leds_used = 1
red_led = port:power3<1><default><default><0>
red_led_active_low = 1
green_led = port:power1<1><default><default><0>
green_led_active_low = 0
blue_led =
blue_led_active_low = 0



кто подскажет где эти параметры выставляются? они работают, но хочу роздуплиться лучше в конфигах :blush:
03-15 16:31:22.880 I/[Gralloc]( 126): using (fd=18)
03-15 16:31:22.880 I/[Gralloc]( 126): id =
03-15 16:31:22.880 I/[Gralloc]( 126): xres = 768 px
03-15 16:31:22.880 I/[Gralloc]( 126): yres = 1024 px
03-15 16:31:22.880 I/[Gralloc]( 126): xres_virtual = 768 px
03-15 16:31:22.880 I/[Gralloc]( 126): yres_virtual = 2048 px
03-15 16:31:22.880 I/[Gralloc]( 126): bpp = 32
03-15 16:31:22.880 I/[Gralloc]( 126): r = 16:8
03-15 16:31:22.880 I/[Gralloc]( 126): g = 8:8
03-15 16:31:22.880 I/[Gralloc]( 126): b = 0:8
03-15 16:31:22.880 I/[Gralloc]( 126): width = 120 mm (162.559998 dpi)
03-15 16:31:22.880 I/[Gralloc]( 126): height = 160 mm (162.559998 dpi)
03-15 16:31:22.880 I/[Gralloc]( 126): refresh rate = 60.30 Hz

ах да, зип в бин и кидайте на планшет...жду поклонений мне...
не обломает, то займусь сенсором.. а пока что детё не даёт нормально сидеть за компом

Прикрепленные файлы

Прикрепленный файлscript.zip ( 36.53 КБ )



Реп: (13)
дмесг, маленькая подсказка =)
вот адреса на весь экран
sw_device_response_test: name = ft5x_ts, addr = 0x38
sw_device_response_test: name = gt82x, addr = 0x5d
sw_device_response_test: name = gslX680, addr = 0x40

sw_device_response_test: name = dmard06, addr = 0x1c (есть в оригинале)

sw_device_response_test: name = dmard10, addr = 0x18

sw_device_response_test: name = kxtik, addr = 0xf (есть в оригинале)

sw_device_response_test: name = mxc622x, addr = 0x15
sw_device_response_test: name = fxos8700, addr = 0x1c
sw_device_response_test: name = fxos8700, addr = 0x1d
sw_device_response_test: name = fxos8700, addr = 0x1e
sw_device_response_test: name = fxos8700, addr = 0x1f
sw_device_response_test: name = lsm303d, addr = 0x1e
sw_device_response_test: name = lsm303d, addr = 0x1d

sw_device_response_test: name = lis3de_acc, addr = 0x29 (есть в оригинале)
sw_device_response_test: name = lis3dh_acc, addr = 0x18 (есть в оригинале)
sw_device_response_test: name = lis3dh_acc, addr = 0x19 (есть в оригинале)


а вот половина но с тачем
sw_device_response_test: name = bma250, addr = 0x18 (есть в оригинале)
sw_device_response_test: name = bma250, addr = 0x19 (есть в оригинале)
sw_device_response_test: name = gslX680new, addr = 0x40
[VFE]Find sensor name is "gc2035", i2c address is 78, type is "YUV" !
[VFE]Find sensor name is "gc0308", i2c address is 42, type is "YUV" !
gsensor_detect:addr= 0x19,i2c_num:1
gsensor_detect:addr= 0x38,i2c_num:2



Реп: (13)
добился наконец то своего =) теперь есть с рабочим тачем, первая прошивка,урааа! правда теперь нужно вай фай врубить..а я не знаю какой чип, буду перебирать..а работает быстренько и без калибровочной проги..вот конфиг, радуйтесь..Теперь могу запросить куратора на прошивки,буду вылаживать прошивки на бравис
;A33 Y3 7.85" lcd panel board application
; the difference between Y2 and Y3:
; wifi/bt dram nand
; Y2 AP6210 SKHYNIX MICRON MLC
; Y3 rtl8723bs MIRA TOSHIBA MLC
;---------------------------------------------------------------------------------------------------------
; port configuration:
; port_name = port:GPIO<mux><pull up/down><driver level><default value>
; mux: GPIO function configuration, 0-input, 1-output, 2+: special funciton for modules
; pull up/down: 1-pull up, 2-pull down
; driver level: 0,1,2,3. 2 is recommended
; default value: default output value when this IO is configured as an output IO
;---------------------------------------------------------------------------------------------------------

[product]
version = "100"
machine = "KVT49L"

;---------------------------------------------------------------------------------------------------------
; eraseflag - 1 erase data partition, 0 - do not erase data partition
; next_work - action after burn, 0x0 by config, 0x1, normal, 0x2 reboot 0x3 ,shutdown,0x4 reupdate ,0x5 boot
;---------------------------------------------------------------------------------------------------------
[platform]
eraseflag = 1
next_work = 0

;----------------------------------------------------------------------------------
;[target] system bootup configuration
;boot_clock = CPU boot frequency, Unit: MHz
;storage_type = boot medium, 0-nand, 1-card0, 2-card2, -1(defualt)auto scan
;----------------------------------------------------------------------------------
[target]
boot_clock = 1008
storage_type = -1

;---------------------------------------------------------------------------------
; uboot key detect enable
; 当keyen_flag = 1 时,支持按键检测
; 当keyen_flag = 0 时,不支持
;---------------------------------------------------------------------------------
[key_detect_en]
keyen_flag = 1

;----------------------------------------------------------------------------------
;dcdc1_vol ---set dcdc1 voltage,mV,1600-3400,100mV/step
;dcdc2_vol ---set dcdc2 voltage,mV,600-1540,20mV/step
;dcdc3_vol ---set dcdc3 voltage,mV,600-1860,20mV/step
;dcdc4_vol ---set dcdc4 voltage,mV,600-1540,20mV/step
;dcdc5_vol ---set dcdc5 voltage,mV,1000-2550,50mV/step
;aldo2_vol ---set aldo2 voltage,mV,700-3300,100mV/step
;aldo3_vol ---set aldo3 voltage,mV,700-3300,100mV/step
;----------------------------------------------------------------------------------
[power_sply]
dcdc1_vol = 3000
dcdc2_vol = 1100
dcdc3_vol = 1200
dcdc4_vol = 0
dcdc5_vol = 1500
aldo2_vol = 2500
aldo3_vol = 3000

;----------------------------------------------------------------------------------
;card boot
;----------------------------------------------------------------------------------
[card_boot]
logical_start = 40960
sprite_gpio0 =
next_work = 3

;----------------------------------------------------------------------------------
;[cardx_boot_para] boot card configuration
;card_ctrl = boot card NO. 0 or 2
;card_high_speed = speed mode, 0-normal mode(up to 25MHz), 1-high speed mode(up to 50MHz)
;card_line = boot card buswidth(1 or 4)
;----------------------------------------------------------------------------------
[card0_boot_para]
card_ctrl = 0
card_high_speed = 1
card_line = 4
sdc_d1 = port:PF0<2><1><2><default>
sdc_d0 = port:PF1<2><1><2><default>
sdc_clk = port:PF2<2><1><2><default>
sdc_cmd = port:PF3<2><1><2><default>
sdc_d3 = port:PF4<2><1><2><default>
sdc_d2 = port:PF5<2><1><2><default>

[card2_boot_para]
card_ctrl = 2
card_high_speed = 1
card_line = 4
sdc_2xmode = 1
sdc_clk = port:PC05<3><1><2><default>
sdc_cmd = port:PC06<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>

;----------------------------------------------------------------------------------
;[twi_para] twi for boot code
;twi_port = twi controller ID
;----------------------------------------------------------------------------------
[twi_para]
twi_port = 0
twi_scl = port:PH02<2><default><default><default>
twi_sda = port:PH03<2><default><default><default>

;----------------------------------------------------------------------------------
;[uart_para] boot debug port configuration
;uart_debug_port = uart port ID for boot debug
;----------------------------------------------------------------------------------
[uart_para]
uart_debug_port = 0
uart_debug_tx = port:PF02<3><1><default><default>
uart_debug_rx = port:PF04<3><1><default><default>

[force_uart_para]
force_uart_port = 0
force_uart_tx = port:PF02<3><1><default><default>
force_uart_rx = port:PF04<3><1><default><default>

;----------------------------------------------------------------------------------
;[jtag_para] jtag configuration
;jtag_enable = 0-disable jtag, 1-enable jtag
;----------------------------------------------------------------------------------
[jtag_para]
jtag_enable = 0
jtag_ms = port:PF00<3><default><default><default>
jtag_ck = port:PF05<3><default><default><default>
jtag_do = port:PF03<3><default><default><default>
jtag_di = port:PF01<3><default><default><default>

;----------------------------------------------------------------------------------
;[clock] pll configuration
;----------------------------------------------------------------------------------
[clock]
pll3 = 297
pll4 = 300
pll6 = 600
pll8 = 408
pll9 = 480
pll10 = 297
pll_cpupat = 0
pll_gpupat = 0xc440e666
pll_videopat = 0
pll_vepat = 0
pll_hsicpat = 0
pll_depat = 0
pll_mipipat = 0
pll_mipitun = 0x8a002008
pll_mipibias = 0xf8100400
;---------------------------------------------------------------------------------------------------------
;[pm_para] power management
;standby_mode = 0-normal standby, 1-super standby
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode = 1

;*****************************************************************************
;sdram configuration
;
;*****************************************************************************
[dram_para]

dram_clk = 552
dram_type = 3
dram_zq = 0x3bbb
dram_odt_en = 1
dram_para1 = 0x10F20200
dram_para2 = 0x00
dram_mr0 = 0x1840
dram_mr1 = 0x40
dram_mr2 = 0x8
dram_mr3 = 0
dram_tpr0 = 0x0048A192
dram_tpr1 = 0x01B1B18d
dram_tpr2 = 0x00076052
dram_tpr3 = 0x0
dram_tpr4 = 0x0
dram_tpr5 = 0x0
dram_tpr6 = 0x0
dram_tpr7 = 0x0
dram_tpr8 = 0x0
dram_tpr9 = 0x0
dram_tpr10 = 0x0
dram_tpr11 = 0x0
dram_tpr12 = 168
dram_tpr13 = 0x900

;---------------------------------------------------------------------------------------------------------
; if 1 == standby_mode, then support super standby;
; else, support normal standby.
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode = 1

;---------------------------------------------------------------------------------------------------------
; wakeup_src_para:
; sometimes, u would like to add more wakeup src in standby mode, these para will be
; help;
; u need to make sure the standby mode support the wakeup src. Also, some hw
; condition must be guaranteed.
; including:
; cpu_en: power on or off.
; 1: mean power on
; 0: mean power off
; cpu_freq: indicating lowest freq. unit is Mhz;
; dram selfresh_en: selfresh or not.
; 1: enable enter selfresh
; 0: disable enter selfresh
; dram_pll: if not enter selfresh, indicating lowest freq. unit is Mhz;
; wakeup_src: to make the scenario work, the wakeup src is needed.
;---------------------------------------------------------------------------------------------------------
[wakeup_src_para]
cpu_en = 0
cpu_freq = 48
; (cpu:apb:ahb)
pll_ratio = 0x111
dram_selfresh_en = 1
dram_freq = 36
wakeup_src_wl = port:PL07<4><default><default><0>
;wakeup_src_bt = port:PL09<4><default><default><0>
;bb_wake_ap = port:PL02<4><default><default><0>

;----------------------------------------------------------------------------------
;i2c configuration
; twi_used = twix enable
;----------------------------------------------------------------------------------
[twi0]
twi_used = 1
twi_scl = port:PH02<2><default><default><default>
twi_sda = port:PH03<2><default><default><default>

[twi1]
twi_used = 1
twi_scl = port:PH04<2><default><default><default>
twi_sda = port:PH05<2><default><default><default>

[twi2]
twi_used = 1
twi_scl = port:PE12<3><default><default><default>
twi_sda = port:PE13<3><default><default><default>


;----------------------------------------------------------------------------------
;uart configuration
;uart_used = uart x enable
;uart_type = 2:2 wire,4:4 wire,8:8 wire, full function
;----------------------------------------------------------------------------------
[uart0]
uart_used = 1
uart_port = 0
uart_type = 2
uart_tx = port:PF02<3><1><default><default>
uart_rx = port:PF04<3><1><default><default>

[uart1]
uart_used = 0
uart_type = 4
uart_tx = port:PG06<2><1><default><default>
uart_rx = port:PG07<2><1><default><default>
uart_rts = port:PG08<2><1><default><default>
uart_cts = port:PG09<2><1><default><default>

[uart2]
uart_used = 0
uart_type = 4
uart_tx = port:PB00<2><1><default><default>
uart_rx = port:PB01<2><1><default><default>
uart_rts = port:PB02<2><1><default><default>
uart_cts = port:PB03<2><1><default><default>

[uart3]
uart_used = 0
uart_type = 4
uart_tx = port:PH06<3><1><default><default>
uart_rx = port:PH07<3><1><default><default>
uart_rts = port:PH08<3><1><default><default>
uart_cts = port:PH09<3><1><default><default>

[uart4]
uart_used = 0
uart_port = 4
uart_type = 2
uart_tx = port:PA04<2><1><default><default>
uart_rx = port:PA05<2><1><default><default>
uart_rts = port:PA06<2><1><default><default>
uart_cts = port:PA07<2><1><default><default>

;----------------------------------------------------------------------------------
;SPI controller configuration
;spi_used = SPIx enable
;spi_cs_bitmap = SPI bit mapping
;----------------------------------------------------------------------------------
[spi0]
spi_used = 0
spi_cs_bitmap = 1
spi_mosi = port:PC00<3><default><default><default>
spi_miso = port:PC01<3><default><default><default>
spi_sclk = port:PC02<3><default><default><default>
spi_cs0 = port:PC03<3><1><default><default>

[spi1]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA00<2><1><default><default>
spi_sclk = port:PA01<2><default><default><default>
spi_mosi = port:PA02<2><default><default><default>
spi_miso = port:PA03<2><default><default><default>

;----------------------------------------------------------------------------------
;SPI device configuration
;spi_dev_num: number of spi devices
;----------------------------------------------------------------------------------
[spi_devices]
spi_dev_num = 0

;----------------------------------------------------------------------------------
;[spi_board0] spi device configuration
;modalias = spi device name
;max_speed_hz = max transfer speed
;bus_num = bus ID
;chip_select = chip select, 0,1
;mode = SPI transfer mode
;----------------------------------------------------------------------------------
[spi_board0]
modalias = "at25df641"
max_speed_hz = 50000000
bus_num = 0
chip_select = 0
mode = 0


;----------------------------------------------------------------------------------
;capacitor tp configuration
;ctp_twi_id : twi controller ID
;ctp_twi_addr : I2C slave address, 7bit
;ctp_screen_max_x/_y : resolution of touch panel
;ctp_revert_x/_y_flag : whether need to revert x/y
;ctp_exchange_x_y_flag: whether need to exchange the value of x and y
;ctp_int_port : port for tp's interrupt signal
;ctp_wakeup : port for wakeup tp
;----------------------------------------------------------------------------------
[ctp_para]
ctp_used = 1
;ctp_name = "gsl1680e_86dz"
ctp_twi_id = 0
ctp_twi_addr = 0x40
ctp_screen_max_x = 768
ctp_screen_max_y = 1024
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 0

ctp_int_port = port:PB05<4><default><default><default>
ctp_wakeup = port:PH01<1><default><default><1>
ctp_power_ldo = "axp22_ldoio1"
ctp_power_ldo_vol = 3300
ctp_power_io =

;--------------------------------------------------------------------------------
; CTP automatic detection configuration
;ctp_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[ctp_list_para]
ctp_det_used = 1
ft5x_ts = 1
gt82x = 1
gslX680 = 0
gslX680new = 1
gt9xx_ts = 0
gt9xxf_ts = 1
tu_ts = 0
gt818_ts = 0
zet622x = 0
aw5306_ts = 0
icn83xx_ts = 0
;----------------------------------------------------------------------------------
;touch key configuration
;tkey_twi_id : twi controller ID
;tkey_twi_addr : I2C slave address, 7bit
;tkey_int : port for touch key's interrupt signal
;----------------------------------------------------------------------------------
[tkey_para]
tkey_used = 0
tkey_twi_id =
tkey_twi_addr =
tkey_int =

;----------------------------------------------------------------------------------
;motor configuration
;motor_shake : port for making the moto shaking
;----------------------------------------------------------------------------------
[motor_para]
motor_used = 0
motor_shake = port:power3<1><default><default><1>
motor_ldo = ""
motor_ldo_voltage = 3300

;----------------------------------------------------------------------------------
;thermal configuration
;ths_trip_count : temperature trigger number
;ths_trip_0 : first temperature trigger
;ths_trip_1 : second temperature trigger
;ths_trip_2 : third temperature trigger, when upto this temperature, system shutdown
;ths_trip_0_min : first temperature trigger's min freq
;ths_trip_0_max : first temperature trigger's max freq
;ths_trip_1_min : second temperature trigger's min freq
;ths_trip_1_max : second temperature trigger's max freq
;----------------------------------------------------------------------------------
[ths_para]
ths_used = 1
ths_trip1_count = 3
ths_trip1_0 = 75
ths_trip1_1 = 90
ths_trip1_2 = 110
ths_trip1_0_min = 0
ths_trip1_0_max = 1
ths_trip1_1_min = 1
ths_trip1_1_max = 3
ths_trip1_2_min = 0
ths_trip1_2_max = 0
;----------------------------------------------------------------------------------
;cooler_table cooler_count <=32
;----------------------------------------------------------------------------------
[cooler_table]
cooler_count = 4
cooler0 = "1344000 4 4294967295 0"
cooler1 = "1200000 4 4294967295 0"
cooler2 = "1008000 4 4294967295 0"
cooler3 = "648000 4 4294967295 0"

;----------------------------------------------------------------------------------
;[nandx_para]
;nand_support_2ch = support dual channel
;nand0_used = nand0使能标识
;----------------------------------------------------------------------------------
[nand0_para]
nand_support_2ch = 0

nand0_used = 1
nand0_we = port:PC00<2><default><default><default>
nand0_ale = port:PC01<2><default><default><default>
nand0_cle = port:PC02<2><default><default><default>
nand0_ce1 = port:PC03<2><default><default><default>
nand0_ce0 = port:PC04<2><default><default><default>
nand0_nre = port:PC05<2><default><default><default>
nand0_rb0 = port:PC06<2><default><default><default>
nand0_rb1 = port:PC07<2><default><default><default>
nand0_d0 = port:PC08<2><default><default><default>
nand0_d1 = port:PC09<2><default><default><default>
nand0_d2 = port:PC10<2><default><default><default>
nand0_d3 = port:PC11<2><default><default><default>
nand0_d4 = port:PC12<2><default><default><default>
nand0_d5 = port:PC13<2><default><default><default>
nand0_d6 = port:PC14<2><default><default><default>
nand0_d7 = port:PC15<2><default><default><default>
nand0_ndqs = port:PC16<2><default><default><default>
nand0_ce2 = port:PC17<2><default><default><default>
nand0_ce3 = port:PC18<2><default><default><default>

id_number_ctl = 0x2
nand_p1 = 0x00020016
;----------------------------------------------------------------------------------
;disp init configuration
;
;disp_mode (0:screen0<screen0,fb0>)
;screenx_output_type (0:none; 1:lcd; 3:hdmi;)
;screenx_output_mode (used for hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50)
; (5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60)
;fbx format (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)
;fbx pixel sequence (0:ARGB 1:BGRA 2:ABGR 3:RGBA)
;fb0_scaler_mode_enable(scaler mode enable, used FE)
;fbx_width,fbx_height (framebuffer horizontal/vertical pixels, fix to output resolution while equal 0)
;lcdx_backlight (lcd init backlight,the range:[0,256],default:197
;lcdx_yy (lcd init screen bright/contrast/saturation/hue, value:0~100, default:50/50/57/50)
;lcd0_contrast (LCD contrast, 0~100)
;lcd0_saturation (LCD saturation, 0~100)
;lcd0_hue (LCD hue, 0~100)
;----------------------------------------------------------------------------------
[disp_init]
disp_init_enable = 1
disp_mode = 0

screen0_output_type = 1
screen0_output_mode = 4

screen1_output_type = 1
screen1_output_mode = 4

fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0
fb0_width = 0
fb0_height = 0

fb1_format = 10
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 0
fb1_width = 0
fb1_height = 0

lcd0_backlight = 197
lcd1_backlight = 197

lcd0_bright = 50
lcd0_contrast = 50
lcd0_saturation = 80
lcd0_hue = 50

lcd1_bright = 50
lcd1_contrast = 50
lcd1_saturation = 57
lcd1_hue = 50

;----------------------------------------------------------------------------------
;lcd0 configuration

;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:dsi; 5:edp; 6:extend dsi
;lcd_x: lcd horizontal resolution
;lcd_y: lcd vertical resolution
;lcd_width: width of lcd in mm
;lcd_height: height of lcd in mm
;lcd_dclk_freq: in MHZ unit
;lcd_pwm_freq: in HZ unit
;lcd_pwm_pol: lcd backlight PWM polarity
;lcd_pwm_max_limit lcd backlight PWM max limit(<=255)
;lcd_hbp: hsync back porch
;lcd_ht: hsync total cycle
;lcd_vbp: vsync back porch
;lcd_vt: vysnc total cycle
;lcd_hspw: hsync plus width
;lcd_vspw: vysnc plus width
;lcd_lvds_if: 0:single link; 1:dual link
;lcd_lvds_colordepth: 0:8bit; 1:6bit
;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither
;lcd_io_phase: 0:noraml; 1:intert phase(0~3bit: vsync phase; 4~7bit:hsync phase;
; 8~11bit:dclk phase; 12~15bit:de phase)
;lcd_gamma_en lcd gamma correction enable
;lcd_bright_curve_en lcd bright curve correction enable
;lcd_cmap_en lcd color map function enable
;deu_mode 0:smoll lcd screen; 1:large lcd screen(larger than 10inch)
;lcdgamma4iep: Smart Backlight parameter, lcd gamma vale * 10;
; decrease it while lcd is not bright enough; increase while lcd is too bright
;smart_color 90:normal lcd screen 65:retina lcd screen(9.7inch)
;----------------------------------------------------------------------------------
[lcd0_para]
lcd_used = 1

lcd_driver_name = "default_lcd"
lcd_if = 3
lcd_x = 768
lcd_y = 1024
lcd_width = 200
lcd_height = 135
lcd_dclk_freq = 59
lcd_pwm_used = 1
lcd_pwm_ch = 0
lcd_pwm_freq = 50000
lcd_pwm_pol = 0
lcd_hbp = 80
lcd_ht = 928
lcd_hspw = 60
lcd_vbp = 23
lcd_vt = 1065
lcd_vspw = 8
lcd_lvds_if = 0
lcd_lvds_colordepth = 0
lcd_lvds_mode = 0
lcd_frm = 1
lcd_gamma_en = 0
lcd_bright_curve_en = 0
lcd_cmap_en = 0

deu_mode = 0
lcdgamma4iep = 22
smart_color = 90

lcd_bl_en = port:PH06<1><0><default><1>
lcd_power = "axp22_dc1sw"
lcd_gpio_0 = port:PH07<1><0><default><0>
;lcd_gpio_1 = port:PL04<1><0><default><1>
;lcd_gpio_2 = port:PL11<1><0><default><0>

lcdd0 = port:PD00<2><0><default><default>
lcdd1 = port:PD01<2><0><default><default>
lcdd2 = port:PD02<2><0><default><default>
lcdd3 = port:PD03<2><0><default><default>
lcdd4 = port:PD04<2><0><default><default>
lcdd5 = port:PD05<2><0><default><default>
lcdd6 = port:PD06<2><0><default><default>
lcdd7 = port:PD07<2><0><default><default>
lcdd8 = port:PD08<2><0><default><default>
lcdd9 = port:PD09<2><0><default><default>
lcdd10 = port:PD10<2><0><default><default>
lcdd11 = port:PD11<2><0><default><default>
lcdd12 = port:PD12<2><0><default><default>
lcdd13 = port:PD13<2><0><default><default>
lcdd14 = port:PD14<2><0><default><default>
lcdd15 = port:PD15<2><0><default><default>
lcdd16 = port:PD16<2><0><default><default>
lcdd17 = port:PD17<2><0><default><default>
lcdd18 = port:PD18<2><0><default><default>
lcdd19 = port:PD19<2><0><default><default>
lcdd20 = port:PD20<2><0><default><default>
lcdd21 = port:PD21<2><0><default><default>
lcdd22 = port:PD22<2><0><default><default>
lcdd23 = port:PD23<2><0><default><default>
lcdclk = port:PD24<2><0><default><default>
lcdde = port:PD25<2><0><default><default>
lcdhsync = port:PD26<2><0><default><default>
lcdvsync = port:PD27<2><0><default><default>


;----------------------------------------------------------------------------------
;pwm config
;----------------------------------------------------------------------------------
[pwm0_para]
pwm_used = 1
pwm_positive = port:PH00<2><0><default><default>

[pwm1_para]
pwm_used = 0
pwm_positive = port:PH01<2><0><default><default>

;--------------------------------------------------------------------------------
;vip (video input port) configuration
;vip_used: 0:disable 1:enable
;vip_mode: 0:sample one interface to one buffer 1:sample two interface to one buffer
;vip_dev_qty: The quantity of devices linked to capture bus
;
;vip_define_sensor_list: If you want use sensor detect function, please set vip_define_sensor_list = 1, and
; verify that file /system/etc/hawkview/sensor_list_cfg.ini is properly configured!
;
;vip_dev(x)_pos: sensor position, "rear" or "front", if vip_define_sensor_list = 1,vip_dev(x)_pos must be configured!
;
;vip_dev(x)_isp_used 0:not use isp 1:use isp
;vip_dev(x)_fmt: 0:yuv 1:bayer raw rgb
;vip_dev(x)_stby_mode: 0:not shut down power at standby 1:shut down power at standby
;vip_dev(x)_vflip: flip in vertical direction 0:disable 1:enable
;vip_dev(x)_hflip: flip in horizontal direction 0:disable 1:enable
;vip_dev(x)_iovdd: camera module io power handle string, pmu power supply
;vip_dev(x)_iovdd_vol: camera module io power voltage, pmu power supply
;vip_dev(x)_avdd: camera module analog power handle string, pmu power supply
;vip_dev(x)_avdd_vol: camera module analog power voltage, pmu power supply
;vip_dev(x)_dvdd: camera module core power handle string, pmu power supply
;vip_dev(x)_dvdd_vol: camera module core power voltage, pmu power supply
;vip_dev(x)_afvdd: camera module vcm power handle string, pmu power supply
;vip_dev(x)_afvdd_vol: camera module vcm power voltage, pmu power supply
;x indicates the index of the devices which are linked to the same capture bus
;fill voltage in uV, e.g. iovdd = 2.8V, vip_devx_iovdd_vol = 2800000
;fill handle string as below:
;axp22_eldo3
;axp22_dldo4
;axp22_eldo2
;fill handle string "" when not using any pmu power supply
;--------------------------------------------------------------------------------

[csi0]

vip_used = 1
vip_mode = 0
vip_dev_qty = 2
vip_define_sensor_list = 0
vip_csi_pck = port:PE00<2><default><default><default>
vip_csi_mck = port:PE01<2><default><default><default>
vip_csi_hsync = port:PE02<2><default><default><default>
vip_csi_vsync = port:PE03<2><default><default><default>
vip_csi_d0 = port:PE04<2><default><default><default>
vip_csi_d1 = port:PE05<2><default><default><default>
vip_csi_d2 = port:PE06<2><default><default><default>
vip_csi_d3 = port:PE07<2><default><default><default>
vip_csi_d4 = port:PE08<2><default><default><default>
vip_csi_d5 = port:PE09<2><default><default><default>
vip_csi_d6 = port:PE10<2><default><default><default>
vip_csi_d7 = port:PE11<2><default><default><default>

vip_dev0_mname = "gc2035"
vip_dev0_pos = "rear"
vip_dev0_lane = 1
vip_dev0_twi_id = 2
vip_dev0_twi_addr = 0x78
vip_dev0_isp_used = 0
vip_dev0_fmt = 0
vip_dev0_stby_mode = 0
vip_dev0_vflip = 0
vip_dev0_hflip = 0
vip_dev0_iovdd = "axp22_dldo3"
vip_dev0_iovdd_vol = 2800000
vip_dev0_avdd = "axp22_ldoio0"
vip_dev0_avdd_vol = 2800000
vip_dev0_dvdd = "axp22_eldo2"
vip_dev0_dvdd_vol = 1800000
vip_dev0_afvdd = "axp22_eldo3"
vip_dev0_afvdd_vol = 2800000
vip_dev0_power_en =
vip_dev0_reset = port:PE16<1><default><default><0>
vip_dev0_pwdn = port:PE15<1><default><default><1>
vip_dev0_flash_en =
vip_dev0_flash_mode =
vip_dev0_af_pwdn =


vip_dev1_mname = "gc0308"
vip_dev1_pos = "front"
vip_dev1_lane = 1
vip_dev1_twi_id = 2
vip_dev1_twi_addr = 0x42
vip_dev1_isp_used = 0
vip_dev1_fmt = 0
vip_dev1_stby_mode = 0
vip_dev1_vflip = 0
vip_dev1_hflip = 0
vip_dev1_iovdd = "axp22_dldo3"
vip_dev1_iovdd_vol = 2800000
vip_dev1_avdd = "axp22_ldoio0"
vip_dev1_avdd_vol = 2800000
vip_dev1_dvdd = "axp22_eldo2"
vip_dev1_dvdd_vol = 1800000
vip_dev1_afvdd = "axp22_eldo3"
vip_dev1_afvdd_vol = 2800000
vip_dev1_power_en =
vip_dev1_reset = port:PE16<1><default><default><0>
vip_dev1_pwdn = port:PE17<1><default><default><1>
vip_dev1_flash_en =
vip_dev1_flash_mode =
vip_dev1_af_pwdn =

;--------------------------------------------------------------------------
[camera_list_para]
camera_list_para_used = 1
ov7670 = 0
hi704 = 0
mt9m112 = 0
mt9m113 = 0
ov2655 = 0
hi253 = 0
gc0307 = 0
mt9d112 = 0
ov5647 = 0
gc2015 = 0
ov2643 = 0
tvp5150 = 0
s5k4ec = 0
ov5650_mv9335 = 0
;-----------------------0.3M---------------------------------------------
siv120d = 1
siv121d = 1
gc0309 = 1
gc0308 = 1
gc0311 = 1
gc0328 = 1
gc0329 = 1
sp0838 = 1
sp0718 = 1
sp0a19 = 1
bf3a03 = 1
bf3703 = 1
;-----------------------2M---------------------------------------------
sp2518 = 1
gc2035 = 1
gc2155 = 1
gc2145 = 1
bf3920 = 1
st25a = 1
gt2005 = 1
;-----------------------5M---------------------------------------------
ov5640 = 1


;-------------------------------------------------------------------------------
; mmc configuration
;
; Config Guide
; sdc_used: 1-enable card, 0-disable card
; sdc_detmode: card detect mode
; 1-detect card by gpio polling
; 2-detect card by gpio irq(must use IO with irq function)
; 3-no detect, always in for boot card
; 4-manually insert and remove by /proc/driver/sunxi-mmc.x/insert
; sdc_buswidth: card bus width, 1-1bit, 4-4bit, 8-8bit
; sdc_use_wp: 1-with write protect IO, 0-no write protect IO
; sdc_isio: for sdio card
; sdc_regulator: power control.if card supports UHS-I/DDR and HS200 timing for
; SD3.0 or eMMC4.5, regulator must be configured. the value is
; the ldo name of AXP221, eg: sdc_regulator = "axp22_eldo2"
; other: GPIO Mapping configuration
;
; Note:
; 1 if detmode=2, sdc_det's config=6
; else if detmode=1, sdc_det's config=0
; else sdc_det IO is not necessary
; 2 if the customer wants to support UHS-I and HS200 features, he must provide
; an independent power supply for the card. This is only used in platforms
; that supports SD3.0 cards and eMMC4.4+ flashes
;-------------------------------------------------------------------------------
[mmc0_para]
sdc_used = 1
sdc_detmode = 2
sdc_buswidth = 4
sdc_d1 = port:PF00<2><1><2><default>
sdc_d0 = port:PF01<2><1><2><default>
sdc_clk = port:PF02<2><1><2><default>
sdc_cmd = port:PF03<2><1><2><default>
sdc_d3 = port:PF04<2><1><2><default>
sdc_d2 = port:PF05<2><1><2><default>
sdc_det = port:PB04<4><1><2><default>
sdc_power_supply = "axp22_dcdc1"
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc1_para]
sdc_used = 1
sdc_detmode = 4
sdc_buswidth = 4
sdc_clk = port:PG00<2><1><1><default>
sdc_cmd = port:PG01<2><1><1><default>
sdc_d0 = port:PG02<2><1><1><default>
sdc_d1 = port:PG03<2><1><1><default>
sdc_d2 = port:PG04<2><1><1><default>
sdc_d3 = port:PG05<2><1><1><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 1
sdc_regulator = "none"

[mmc2_para]
sdc_used = 0
sdc_detmode = 3
sdc_buswidth = 8
sdc_2xmode = 1
sdc_clk = port:PC05<3><1><2><default>
sdc_cmd = port:PC06<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>
sdc_d4 = port:PC12<3><1><2><default>
sdc_d5 = port:PC13<3><1><2><default>
sdc_d6 = port:PC14<3><1><2><default>
sdc_d7 = port:PC15<3><1><2><default>
emmc_rst = port:PC16<3><1><2><default>
sdc_power_supply = "axp22_dcdc1"
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

;----------------------------------------------------------------------------------
;usb configuration
;usb_used: usb controller enable, 0-disable, 1-enable
;usb_port_type: usb mode: 0-device, 1-host, 2-otg
;usb_detect_type: usb hotplug detect mode, 0-none, 1-vbus/id detect, 2-id/dpdm detect
;usb_id_gpio: usb id detect IO
;usb_det_vbus_gpio: usb vbus detect IO, "axp_ctrl" for axp
;usb_drv_vbus_gpio: usb dirve vbus IO
;usb_restrict_gpio: usb current restrict IO
;usb_restric_flag: usb current restrict flag
;----------------------------------------------------------------------------------
[usbc0]
usb_used = 1
usb_port_type = 2
usb_detect_type = 1
usb_id_gpio = port:PH08<0><1><default><default>
usb_det_vbus_gpio = "axp_ctrl"
usb_drv_vbus_gpio = port:power4<1><0><default><0>
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0
usb_restric_voltage = 3550000
usb_restric_capacity= 5
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_regulator_id_vbus = "axp22_dcdc1"
usb_regulator_id_vbus_vol = 3000000

[usbc1]
usb_used = 0
usb_drv_vbus_gpio =
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_not_suspend = 0


;----------------------------------------------------------------------------------

; USB Device vendor Info.
;----------------------------------------------------------------------------------
[usb_feature]
vendor_id = 0x1F3A
mass_storage_id = 0x1000
adb_id = 0x1001

manufacturer_name = "USB Developer"
product_name = "Android"
serial_number = "20080411"

[msc_feature]
vendor_name = "USB 2.0"
product_name = "USB Flash Driver"
release = 100
luns = 2

[serial_feature]
serial_unique = 1

;--------------------------------------------------------------------------------
; G sensor configuration
; gs_twi_id --- TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2)
;--------------------------------------------------------------------------------
[gsensor_para]
gsensor_used = 1
gsensor_twi_id = 1
gsensor_twi_addr = 0x18
gsensor_int1 =
gsensor_int2 =

;--------------------------------------------------------------------------------
; G sensor automatic detection configuration
;gsensor_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[gsensor_list_para]
gsensor_det_used = 1
bma250 = 1
stk831x = 0
mma8452 = 1
mma7660 = 1
mma865x = 1
mc32x0 = 0
afa750 = 0
lis3de_acc = 1
lis3dh_acc = 1
kxtik = 0
dmard10 = 0
dmard06 = 1
mxc622x = 0
fxos8700 = 0
lsm303d = 0

;--------------------------------------------------------------------------------
; gps gpio configuration
; gps_spi_id: the index of SPI controller. 0: SPI0, 1: SPI1, 2: SPI2, 15: no SPI used
; gps_spi_cs_num: the chip select number of SPI controller. 0: SPI CS0, 1: SPI CS1
; gps_lradc: the lradc number for GPS used. 0 and 1 is valid, set 2 if not use lradc
;--------------------------------------------------------------------------------
[gps_para]

;--------------------------------------------------------------------------------
;wifi configuration
;wifi_sdc_id: 0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3
;wifi_usbc_id: 0- USB0, 1- USB1, 2- USB2
;wifi_usbc_type: 1- EHCI(speed 2.0), 2- OHCI(speed 1.0)
;wifi_mod_sel: 0- none, 1- ap6181, 2- ap6210(wifi+bt),
; 3 - rtl8188eu, 4- rtl8723au(wifi+bt),
; 5 - rtl8723bs, 6- esp8089
;--------------------------------------------------------------------------------
[wifi_para]
wifi_used = 1
wifi_sdc_id = 1
wifi_usbc_id = 1
wifi_usbc_type = 1
wifi_mod_sel = 8
wifi_power = "axp22_dldo1"
wifi_power_ext1 = "axp22_dldo2"
wifi_power_ext2 = ""
wifi_power_switch = ""

; 1 - ap6181 sdio wifi gpio config
;ap6xxx_wl_regon = port:PL06<1><default><default><0>
;ap6xxx_wl_host_wake = port:PL07<4><default><default><0>
;ap6xxx_lpo_use_apclk = 1

; 2 - ap6210 sdio wifi gpio config
;ap6xxx_wl_regon = port:PL06<1><default><default><0>
;ap6xxx_wl_host_wake = port:PL07<4><default><default><0>
;ap6xxx_bt_regon = port:PL08<1><default><default><0>
;ap6xxx_bt_wake = port:PL10<1><default><default><0>
;ap6xxx_bt_host_wake = port:PL09<4><default><default><0>
;ap6xxx_lpo_use_apclk = 1

; 3 - rtl8188eu usb wifi gpio conifg

; 4 - rtl8723au usb wifi + bt

; 5 - rtl8723bs sdio wifi + bt
;;rtl8723bs_chip_en = port:PL11<1><default><default><0>
;rtl8723bs_wl_regon = port:PL06<1><default><default><0>
;rtl8723bs_wl_host_wake = port:PL07<4><default><default><0>
;rtl8723bs_bt_regon = port:PL08<1><default><default><0>
;rtl8723bs_bt_wake = port:PL10<1><default><default><0>
;rtl8723bs_bt_host_wake = port:PL09<4><default><default><0>
;rtl8723bs_lpo_use_apclk = 0

; 6 - eagle sdio wifi
;esp_wl_chip_en = port:PL03<1><default><default><0>
;esp_wl_rst = port:PL02<1><default><default><0>

;rtl8189es sdio wifi
rtl8189es_shdn = port:PL06<1><default><default><0>
rtl8189es_host_wake = port:PL07<4><default><default><1>
;--------------------------------------------------------------------------------
;blue tooth
;bt_used ---- blue tooth used (0- no used, 1- used)
;bt_uard_id ---- uart index
;--------------------------------------------------------------------------------
[bt_para]
bt_used = 0
bt_uart_id = 1

;--------------------------------------------------------------------------------
;3G configuration
;--------------------------------------------------------------------------------
[3g_para]
3g_used = 0
3g_usbc_num = 1
3g_uart_num = 2
bb_name = "em66"
bb_vbat =
bb_on =
bb_pwr_on = port:PL03<1><default><default><0>
bb_wake = port:PL04<1><default><default><0>
bb_rf_dis = port:PL11<1><default><default><0>
bb_rst = port:PL05<1><default><default><0>
bb_dldo = "axp22_aldo1"
bb_dldo_min_uV = 2800000
bb_dldo_max_uV = 2800000

;--------------------------------------------------------------------------------
;gyroscope
;--------------------------------------------------------------------------------
[gy_para]
gy_used = 1
gy_twi_id = 1
gy_twi_addr = 0x6a
gy_int1 =
gy_int2 =

;--------------------------------------------------------------------------------
; Gyro automatic detection configuration
;gy_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[gy_list_para]
gy_det_used = 1
l3gd20_gyr = 1

;--------------------------------------------------------------------------------
;light sensor
;--------------------------------------------------------------------------------
[ls_para]
ls_used = 1
ls_twi_id = 1
ls_twi_addr = 0x23
ls_int = port:PB07<4><1><default><default>

;--------------------------------------------------------------------------------
; lsensor automatic detection configuration
;ls_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[ls_list_para]
ls_det_used = 1
ltr_501als = 1
jsa1212 = 1

;--------------------------------------------------------------------------------
;compass
;--------------------------------------------------------------------------------
[compass_para]
compass_used = 0
compass_twi_id = 1
compass_twi_addr = 0x0d
compass_int =

;--------------------------------------------------------------------------------
;i2s0_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;i2s0_select:0 is pcm.1 is i2s
;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
;sample_resolution :16bits/20bits/24bits
;word_select_size :16bits/20bits/24bits/32bits
;pcm_sync_period :16/32/64/128/256
;msb_lsb_first :0: msb first; 1: lsb first
;sign_extend :0: zero pending; 1: sign extend
;slot_index :slot index: 0: the 1st slot - 3: the 4th slot
;slot_width :8 bit width / 16 bit width
;frame_width :0: long frame = 2 clock width; 1: short frame
;tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;--------------------------------------------------------------------------------
[i2s0]
i2s0_used = 0
i2s0_channel = 2
i2s0_master = 4
i2s0_select = 1
audio_format = 1
signal_inversion = 1
over_sample_rate = 512
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 256
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 1
rx_data_mode = 1
i2s0_mclk =
i2s0_bclk = port:PB04<2><1><default><default>
i2s0_lrclk = port:PB05<2><1><default><default>
i2s0_dout0 = port:PB06<2><1><default><default>
i2s0_dout1 =
i2s0_dout2 =
i2s0_dout3 =
i2s0_din = port:PB07<2><1><default><default>

;--------------------------------------------------------------------------------
;i2s1_master:1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;i2s1_select:0 is pcm.1 is i2s
;audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;over_sample_rate: support 128fs/192fs/256fs/384fs/512fs/768fs
;sample_resolution :16bits/20bits/24bits
;word_select_size :16bits/20bits/24bits/32bits
;pcm_sync_period :16/32/64/128/256
;msb_lsb_first :0: msb first; 1: lsb first
;sign_extend :0: zero pending; 1: sign extend
;slot_index :slot index: 0: the 1st slot - 3: the 4th slot
;slot_width :8 bit width / 16 bit width
;frame_width :0: long frame = 2 clock width; 1: short frame
;tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;--------------------------------------------------------------------------------
[i2s1]
i2s1_used = 0
i2s1_channel = 2
i2s1_master = 4
i2s1_select = 1
audio_format = 1
signal_inversion = 1
over_sample_rate = 512
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 64
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 0
rx_data_mode = 0
i2s1_mclk =
i2s1_bclk = port:PG11<2><1><default><default>
i2s1_lrclk = port:PG10<2><1><default><default>
i2s1_dout = port:PG12<2><1><default><default>
i2s1_din = port:PG13<2><1><default><default>

;--------------------------------------------------------------------------------
;pa_single_vol,pa_double_vol: 31 level,1.5db/step.0x1f is the large volume.
;cap_vol:use for system record,0x0--0db,0x1--24db,0x2--27db,0x3--30db,0x4--33db,0x5--36db,0x6--39db,0x7--42db
;headphone_vol,earpiece_vol: must least than 0x3b. 0x1 is a step.
;headset_mic_vol: headset mic(mic2) vol,use for phone headset mic call
;main_mic_vol: main mic(mic1) vol,use for phone main mic call
;--------------------------------------------------------------------------------
[audio0]
audio_used = 1
headphone_vol = 0x3b
earpiece_vol = 0x3b
cap_vol = 0x5
pa_single_vol = 0x3b
pa_double_used = 1
pa_double_vol = 0x3b
headphone_direct_used = 0
headset_mic_vol = 0x6
main_mic_vol = 0x6
audio_hp_ldo =none
audio_pa_ctrl = port:PH09<1><default><default><0>
;audio_pa_ctrl = port:PA18<1><default><default><0>
aif2_used = 0
aif3_used = 0
headphone_mute_used = 0
DAC_VOL_CTRL_SPK = 0xa0a0
DAC_VOL_CTRL_HEADPHONE = 0xa0a0
agc_used = 0
drc_used = 0
;-------------------------------------------------------------------------------------
;pmu_used ---0:not used,1:used
;pmu_twi_addr ---slave address
;pmu_twi_id ---i2c bus number (0 TWI0, 1 TWI2, 2 TWI3)
;pmu_irq_id ---irq number (0 irq0,1 irq1,……)
;pmu_battery_rdc ---battery initial resistance
;pmu_battery_cap ---battery capability,mAh
;pmu_batdeten ---battery detect en;0:disable 1:enable
;PMU_CHG_IC_temp used for battery temperature protect when charging
;PMU_CHG_IC_temp --the object temperature want to adjust to (unit: 'C'), 0: this function unused, other value is object temperature
;pmu_runtime_chgcur ---set initial charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_earlysuspend_chgcur ---set earlysuspend charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_suspend_chgcur ---set suspend charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_shutdown_chgcur ---set shutdown charging current limite,mA,300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_init_chgvol ---set initial charing target voltage,mV,4100/4220/4200/4240
;pmu_init_chgend_rate ---set initial charing end current rate,10/15
;pmu_init_chg_enabled ---set initial charing enabled,0:disable,1:enable
;pmu_init_adc_freq ---set initial adc frequency,Hz,100/200/400/800
;pmu_init_adcts_freq ---set initial adc TS,Hz,100/200/400/800
;pmu_init_chg_pretime ---set initial pre-charging time,min,40/50/60/70
;pmu_init_chg_csttime ---set initial constance-charging time,min,360/480/600/720
;pmu_batt_cap_correct ---correct the battery capacity or not when one charge cycle 0:not correct 1:correct
;pmu_bat_regu_en ---bat regulator is enable or not when charge done 0:disable 1:enable
;pmu_bat_para1 ---battery indication at 3.13V
;pmu_bat_para2 ---battery indication at 3.27V
;pmu_bat_para3 ---battery indication at 3.34V
;pmu_bat_para4 ---battery indication at 3.41V
;pmu_bat_para5 ---battery indication at 3.48V
;pmu_bat_para6 ---battery indication at 3.52V
;pmu_bat_para7 ---battery indication at 3.55V
;pmu_bat_para8 ---battery indication at 3.57V
;pmu_bat_para9 ---battery indication at 3.59V
;pmu_bat_para10 ---battery indication at 3.61V
;pmu_bat_para11 ---battery indication at 3.63V
;pmu_bat_para12 ---battery indication at 3.64V
;pmu_bat_para13 ---battery indication at 3.66V
;pmu_bat_para14 ---battery indication at 3.7V
;pmu_bat_para15 ---battery indication at 3.73V
;pmu_bat_para16 ---battery indication at 3.77V
;pmu_bat_para17 ---battery indication at 3.78V
;pmu_bat_para18 ---battery indication at 3.8V
;pmu_bat_para19 ---battery indication at 3.82V
;pmu_bat_para20 ---battery indication at 3.84V
;pmu_bat_para21 ---battery indication at 3.85V
;pmu_bat_para22 ---battery indication at 3.87V
;pmu_bat_para23 ---battery indication at 3.91V
;pmu_bat_para24 ---battery indication at 3.94V
;pmu_bat_para25 ---battery indication at 3.98V
;pmu_bat_para26 ---battery indication at 4.01V
;pmu_bat_para27 ---battery indication at 4.05V
;pmu_bat_para28 ---battery indication at 4.08V
;pmu_bat_para29 ---battery indication at 4.1V
;pmu_bat_para30 ---battery indication at 4.12V
;pmu_bat_para31 ---battery indication at 4.14V
;pmu_bat_para32 ---battery indication at 4.15V
;pmu_usbvol_limit ---set usb-ac limited voltage enable,1:enable,0:disable
;pmu_usbcur_limit ---set usb-ac limited current enable,1:enable,0:disable
;pmu_usbvol ---set usb-ac limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur ---set usb-ac limited current level,mA,500/900, 0 - not limite
;pmu_usbvol_pc ---set usb-pc limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbcur_pc ---set usb-pc limited current level,mA,500/900, 0 - not limite
;pmu_pwroff_vol ---set protect voltage when system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pwron_vol ---set protect voltage after system start up,mV,2600/2700/2800/2900/3000/3100/3200/3300
;pmu_pekoff_time ---set pek off time,ms, 4000/6000/8000/10000
;pmu_pekoff_func ---set pek off func, 0:shutdown,1:restart
;pmu_pekoff_en ---set pek offlevel powerdown or not, 0:not powerdown,1:powerdown
;pmu_peklong_time ---set pek pek long irq time,ms,1000/1500/2000/2500
;pmu_pekon_time ---set pek on time,ms,128/1000/2000/3000
;pmu_pwrok_time ---set pmu pwrok delay time,ms,8/16/32/64
;pmu_battery_warning_level1 ---low power warning high level,5%-20%,1%/step
;pmu_battery_warning_level2 ---low power warning low level,0%-15%,1%/step
;pmu_restvol_time ---battery indicaton reflash time,30/60/120/
;pmu_ocv_cou_adjust_time ---ocv battery indication reflash time,60/120/30
;pmu_chgled_func ---CHGKED pin control,0:controlled by pmu,1:controlled by Charger
;pmu_chgled_type ---CHGLED Type select when pmu_chgled_func=0,0:Type A,1:Type B
;pmu_vbusen_func ---N_VBUSEN function select,0:as an output,1:as an input
;pmu_reset ---when power key press longer than 16's,PMU reset or not.0:not reset 1:reset
;pmu_IRQ_wakeup ---press IRQ wakeup or not when sleep or power down.0:not wakeup 1:wakeup
;pmu_hot_shutdowm ---when PMU over temperature protect or not;0:disable 1:enable
;pmu_inshort ---ACIN and VBUS inshort or not by software;0:auto detect 1:inshort
;pmu_temp_enable ---temp detect enable
;pmu_charge_ltf ---charge temp low threshold voltage
;pmu_charge_htf ---charge temp high threshold voltage
;pmu_discharge_ltf ---shutdown temp low threshold voltage
;pmu_discharge_htf ---shutdown temp high threshold voltage
;pmu_temp_para1 --- temp -25 voltage
;pmu_temp_para2 --- temp -15 voltage
;pmu_temp_para3 --- temp -10 voltage
;pmu_temp_para4 --- temp -5 voltage
;pmu_temp_para5 --- temp 0 voltage
;pmu_temp_para6 --- temp 5 voltage
;pmu_temp_para7 --- temp 10 voltage
;pmu_temp_para8 --- temp 20 voltage
;pmu_temp_para9 --- temp 30 voltage
;pmu_temp_para10 --- temp 40 voltage
;pmu_temp_para11 --- temp 45 voltage
;pmu_temp_para12 --- temp 50 voltage
;pmu_temp_para13 --- temp 55 voltage
;pmu_temp_para14 --- temp 60 voltage
;pmu_temp_para15 --- temp 70 voltage
;pmu_temp_para16 --- temp 80 voltage
;--------------------------------------------------------------------------------------------------------
[pmu1_para]
pmu_used = 1
pmu_twi_addr = 0x34
pmu_twi_id = 1
pmu_irq_id = 0
pmu_battery_rdc = 112
pmu_battery_cap = 2510
pmu_batdeten = 1
pmu_chg_ic_temp = 0
pmu_runtime_chgcur = 450
pmu_earlysuspend_chgcur = 1200
pmu_suspend_chgcur = 1500
pmu_shutdown_chgcur = 1500
pmu_init_chgvol = 4200
pmu_init_chgend_rate = 15
pmu_init_chg_enabled = 1
pmu_init_adc_freq = 800
pmu_init_adcts_freq = 800
pmu_init_chg_pretime = 70
pmu_init_chg_csttime = 720
pmu_batt_cap_correct = 1
pmu_bat_regu_en = 0

pmu_bat_para1 = 0
pmu_bat_para2 = 0
pmu_bat_para3 = 0
pmu_bat_para4 = 0
pmu_bat_para5 = 0
pmu_bat_para6 = 0
pmu_bat_para7 = 0
pmu_bat_para8 = 0
pmu_bat_para9 = 1
pmu_bat_para10 = 1
pmu_bat_para11 = 2
pmu_bat_para12 = 2
pmu_bat_para13 = 3
pmu_bat_para14 = 9
pmu_bat_para15 = 16
pmu_bat_para16 = 24
pmu_bat_para17 = 29
pmu_bat_para18 = 37
pmu_bat_para19 = 43
pmu_bat_para20 = 48
pmu_bat_para21 = 53
pmu_bat_para22 = 57
pmu_bat_para23 = 64
pmu_bat_para24 = 72
pmu_bat_para25 = 81
pmu_bat_para26 = 84
pmu_bat_para27 = 88
pmu_bat_para28 = 93
pmu_bat_para29 = 95
pmu_bat_para30 = 97
pmu_bat_para31 = 99
pmu_bat_para32 = 100

pmu_usbvol_limit = 0
pmu_usbcur_limit = 0
pmu_usbvol = 4000
pmu_usbcur = 0
pmu_usbvol_pc = 4400
pmu_usbcur_pc = 500
pmu_pwroff_vol = 3300
pmu_pwron_vol = 2600
pmu_pekoff_time = 6000
pmu_pekoff_func = 0
pmu_pekoff_en = 1
pmu_peklong_time = 1500
pmu_pekon_time = 1000
pmu_pwrok_time = 64
pmu_battery_warning_level1 = 15
pmu_battery_warning_level2 = 0
pmu_restvol_adjust_time = 60
pmu_ocv_cou_adjust_time = 60
pmu_chgled_func = 0
pmu_chgled_type = 0
pmu_vbusen_func = 1
pmu_reset = 0
pmu_IRQ_wakeup = 0
pmu_hot_shutdowm = 1
pmu_inshort = 0
power_start = 0

pmu_temp_enable = 1
pmu_charge_ltf = 2261
pmu_charge_htf = 388
pmu_discharge_ltf = 3200
pmu_discharge_htf = 237
pmu_temp_para1 = 7466
pmu_temp_para2 = 4480
pmu_temp_para3 = 3518
pmu_temp_para4 = 2786
pmu_temp_para5 = 2223
pmu_temp_para6 = 1788
pmu_temp_para7 = 1448
pmu_temp_para8 = 969
pmu_temp_para9 = 664
pmu_temp_para10 = 466
pmu_temp_para11 = 393
pmu_temp_para12 = 333
pmu_temp_para13 = 283
pmu_temp_para14 = 242
pmu_temp_para15 = 179
pmu_temp_para16 = 134

[pmu2_para]
pmu_used = 0
pmu_twi_addr = 0x34
pmu_twi_id = 1
pmu_irq_id = 0

;--------------------------------------------------------------------------------------------------------
[recovery_key]
key_min = 2
key_max = 100

;----------------------------------------------------------------------------------
; dvfs voltage-frequency table configuration
;
; extremity_freq(Hz): cpu extremity frequency when run benckmark or demo apk
; 1344MHz@1460mV with radiator
; max_freq: cpu maximum frequency, based on Hz, can not be more than 1344MHz
; min_freq: cpu minimum frequency, based on Hz, can not be less than 120MHz
;
; LV_count: count of LV_freq/LV_volt, must be < 16
;
; LV1: core vdd is 1.50v if cpu frequency is (1344Mhz, 1536Mhz]
; LV2: core vdd is 1.46v if cpu frequency is (1200Mhz, 1344Mhz]
; LV3: core vdd is 1.32v if cpu frequency is (1008Mhz, 1200Mhz]
; LV4: core vdd is 1.20v if cpu frequency is (816Mhz, 1008Mhz]
; LV5: core vdd is 1.10v if cpu frequency is (648Mhz, 816Mhz]
; LV6: core vdd is 1.04v if cpu frequency is (120Mhz, 648Mhz]
; LV7: core vdd is 1.04v if cpu frequency is (120Mhz, 648Mhz]
; LV8: core vdd is 1.04v if cpu frequency is (120Mhz, 648Mhz]
;
;----------------------------------------------------------------------------------
[dvfs_table]
extremity_freq = 1344000000
max_freq = 1200000000
min_freq = 120000000

LV_count = 8

LV1_freq = 1536000000
LV1_volt = 1500

LV2_freq = 1344000000
LV2_volt = 1460

LV3_freq = 1200000000
LV3_volt = 1320

LV4_freq = 1008000000
LV4_volt = 1200

LV5_freq = 816000000
LV5_volt = 1100

LV6_freq = 648000000
LV6_volt = 1040

LV7_freq = 0
LV7_volt = 1040

LV8_freq = 0
LV8_volt = 1040

;----------------------------------------------------------------------------------
;virtual device
;virtual device for pinctrl testing
;device have pin PA1 PA2
;----------------------------------------------------------------------------------
[Vdevice]
Vdevice_used = 1
Vdevice_0 = port:PA01<5><1><2><default>
Vdevice_1 = port:PA02<5><1><2><default>

;----------------------------------------------------------------------------------
;s_uart0 config parameters
;s_uart_used --s_uart0 whether used for arisc debugging
;----------------------------------------------------------------------------------
[s_uart0]
s_uart_used = 0
s_uart_tx = port:PL02<2><default><default><default>
s_uart_rx = port:PL03<2><default><default><default>

;----------------------------------------------------------------------------------
;s_rsb0 config parameters
;s_rsb_used --s_rsb0 whether used for arisc
;----------------------------------------------------------------------------------
[s_rsb0]
s_rsb_used = 1
s_rsb_sck = port:PL00<2><1><2><default>
s_rsb_sda = port:PL01<2><1><2><default>

;----------------------------------------------------------------------------------
;s_jtag0 config parameters
;s_jtag0_used --s_jtag0 whether used for arisc
;
;----------------------------------------------------------------------------------
[s_jtag0]
s_jtag_used = 0
s_jtag_tms = port:PL04<2><1><2><default>
s_jtag_tck = port:PL05<2><1><2><default>
s_jtag_tdo = port:PL06<2><1><2><default>
s_jtag_tdi = port:PL07<2><1><2><default>

;----------------------------------------------------------------------------------
;s_powchk cpus power check
;s_powchk_used --power check whether used for arisc in super standby
; bit31:enable power updat, bit1:wakeup when power state exception
; bit0:wakeup when power consumption exception
;s_power_reg the expected regs stand for power on/off state
;s_system_power the limit maxmum power consumption when super standby (unit: mw)
;
;----------------------------------------------------------------------------------
[s_powchk]
s_powchk_used = 0x80000000
s_power_reg = 0x00008061
s_system_power = 50

[mali_para]
mali_used = 1
mali_clkdiv = 1
mali_extreme_freq = 408
mali_extreme_vol = 1100


;----------------------------------------------------------------------------------
; dram dvfs voltage-frequency table configuration
;
; LV_count: count of LV_freq/LV_volt
;
; LV1: core vdd is 1.1v if dram frequency is (360Mhz, 552Mhz]
; LV2: core vdd is 1.0v if dram frequency is ( 0Mhz, 360Mhz]
; LV3: core vdd is 1.0v if dram frequency is ( 0Mhz, 360Mhz]
;
;----------------------------------------------------------------------------------
[dram_dvfs_table]
LV_count = 3

LV1_freq = 552000000
LV1_volt = 1100

LV2_freq = 360000000
LV2_volt = 1100

LV3_freq = 0
LV3_volt = 1100

;----------------------------------------------------------------------------------
;charging_type config parameters
;charging_type 0:uboot charging, 1:android charging
;----------------------------------------------------------------------------------
[charging_type]
charging_type = 1


;----------------------------------------------------------------------------------
; dram scene frequency table configuration
;
; LV_count: count of LV_scene/LV_freq
;
; LV1: dram frequency default is 360MHz in home, supported for 360MHz/552MHz
; LV2: dram frequency default is 240MHz in video play, supported for 240MHz/360MHz/552MHz
; LV3: dram frequency default is 168MHz in bgmusic play
;
;----------------------------------------------------------------------------------
[dram_scene_table]
LV_count = 3

LV1_scene = 1
LV1_freq = 360000000

LV2_scene = 2
LV2_freq = 240000000

LV3_scene = 3
LV3_freq = 168000000

;----------------------------------------------------------------------------------
;leds config parameters
;leds_used 0:uboot charging, 1:android charging
;----------------------------------------------------------------------------------
;[leds_para]
;leds_used = 1
;red_led = port:power3<1><default><default><0>
;red_led_active_low = 1
;green_led = port:power1<1><default><default><0>
;green_led_active_low = 0
;blue_led =
;blue_led_active_low = 0


ах да,нужно или нет, но я включил загрузку модуля
import init.sun8i.usb.rc

on init
#See storage config details at http://source.android.com/tech/storage/
#for muser
# mkdir /mnt/shell/emulated 0700 shell shell
# mkdir /storage/emulated 0555 root root

# export EXTERNAL_STORAGE /storage/emulated/legacy
# export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
# export EMULATED_STORAGE_TARGET /storage/emulated
## export MEDIA_STORAGE /mnt/media/sdcard

# Support legacy paths
# symlink /storage/emulated/legacy /sdcard
# symlink /storage/emulated/legacy /mnt/sdcard
# symlink /storage/emulated/legacy /storage/sdcard0
# symlink /mnt/shell/emulated/0 /storage/emulated/legacy

## export EXTERNAL_STORAGE /mnt/sdcard
## mkdir /mnt/sdcard 0000 system system
## symlink /mnt/sdcard /sdcard

# #mkdir /mnt/extsd 0000 system system
# #mkdir /mnt/usbhost1 0000 system system
# mkdir /mnt/extsd 0700 media_rw media_rw
# mkdir /storage/extsd 0700 root root
# mkdir /mnt/usbhost1 0700 media_rw media_rw
# mkdir /storage/usbhost1 0700 root root
mount debugfs debugfs /sys/kernel/debug
mkdir /databk 0700 root system
mkdir /private 0700 root system

#not muser
mkdir /mnt/sdcard 0000 shell shell
mkdir /mnt/extsd 0700 shell shell
mkdir /mnt/usbhost1 0700 shell shell
symlink /mnt/sdcard /sdcard
export EXTERNAL_STORAGE /mnt/sdcard

on early-fs
mount_all /fstab.sun8i
setprop ro.crypto.fuse_sdcard true
insmod /system/vendor/modules/disp.ko
insmod /system/vendor/modules/lcd.ko
insmod /system/vendor/modules/mali.ko
insmod /system/vendor/modules/leds-sunxi.ko
# insmod /system/vendor/modules/bcmdhd.ko

on post-fs-data
#mkdir /data/media 0770 media_rw media_rw
#mkdir /mnt/media/sdcard 0770 media_rw media_rw

on fs
format_userdata /dev/block/by-name/UDISK INOVALLEY
format_userdata /dev/block/by-name/private private
# radio related, such as imei.conf
mkdir /data/misc/radio 0777 system radio



#csi module
insmod /system/vendor/modules/videobuf-core.ko
insmod /system/vendor/modules/videobuf-dma-contig.ko
insmod /system/vendor/modules/cam_detect.ko
# insmod /system/vendor/modules/actuator.ko
# insmod /system/vendor/modules/ad5820_act.ko
insmod /system/vendor/modules/cci.ko
insmod /system/vendor/modules/vfe_os.ko
insmod /system/vendor/modules/vfe_subdev.ko
insmod /system/vendor/modules/gc0308.ko
insmod /system/vendor/modules/gc2035.ko
insmod /system/vendor/modules/gc0329.ko
insmod /system/vendor/modules/sp0838.ko
insmod /system/vendor/modules/ov5640.ko
insmod /system/vendor/modules/gc0309.ko
insmod /system/vendor/modules/siv121d.ko
insmod /system/vendor/modules/sid130b.ko
insmod /system/vendor/modules/gc0328.ko
insmod /system/vendor/modules/sp2518.ko
insmod /system/vendor/modules/bf3920.ko
insmod /system/vendor/modules/s5k4ec.ko
insmod /system/vendor/modules/bf3a03.ko
insmod /system/vendor/modules/sp0a19.ko
insmod /system/vendor/modules/gc2155.ko
insmod /system/vendor/modules/bf3703.ko
insmod /system/vendor/modules/gc2145.ko
insmod /system/vendor/modules/gc0312.ko
insmod /system/vendor/modules/vfe_v4l2.ko

# bluetooth
# UART device
# chmod 0660 /dev/ttyS1
# chown bluetooth net_bt_stack /dev/ttyS1

# power up/down interface
# chmod 0660 /sys/class/rfkill/rfkill0/state
# chmod 0660 /sys/class/rfkill/rfkill0/type
# chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
# chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type
# write /sys/class/rfkill/rfkill0/state 0

# bluetooth LPM
# chmod 0220 /proc/bluetooth/sleep/lpm
# chmod 0220 /proc/bluetooth/sleep/btwrite
# chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
# chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrite
# write /proc/bluetooth/sleep/lpm 1

#insmod tp and keyboard gsensor
insmod /system/vendor/modules/sw-device.ko
insmod /system/vendor/modules/sunxi-keyboard.ko
insmod /system/vendor/modules/bma250.ko
# insmod /system/vendor/modules/mma7660.ko
# insmod /system/vendor/modules/mma8452.ko
# insmod /system/vendor/modules/mma865x.ko
# insmod /system/vendor/modules/kxtik.ko
# insmod /system/vendor/modules/afa750.ko
# insmod /system/vendor/modules/lis3de_acc.ko
# insmod /system/vendor/modules/lis3dh_acc.ko
insmod /system/vendor/modules/gslX680new.ko

#insmod usb ethernet
insmod /system/vendor/modules/usbnet.ko
insmod /system/vendor/modules/asix.ko
insmod /system/vendor/modules/qf9700.ko
insmod /system/vendor/modules/mcs7830.ko
insmod /system/vendor/modules/rtl8150.ko
insmod /system/vendor/modules/cdc_ether.ko

# talking standby
chown radio system /sys/power/scene_lock
chmod 0644 /sys/power/scene_lock
chown radio system /sys/power/scene_unlock
chmod 0644 /sys/power/scene_unlock
chown radio system /sys/power/scene_state
chmod 0644 /sys/power/scene_state

#2G or 3G init.rc
import init.sunxi.3gdongle.rc

#service logcat /system/bin/logcat -r 1000 -n 10 -v time -f /data/local/logcat.log
# class main

#logger service: logger [kernel|android|radio]
service logger_kernel /system/bin/logger.sh kernel
user root
disabled
service logger_android /system/bin/logger.sh android
user root
disabled
service logger_radio /system/bin/logger.sh radio
user root
disabled
on property:rw.logger=1
start logger_kernel
start logger_android
start logger_radio

# virtual sdcard daemon running as media_rw (1023)
##service sdcard /system/bin/sdcard /data/media /mnt/shell/emulated 1023 1023
#service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
# class late_start

#service fuse_extsd /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/extsd /storage/extsd
# class late_start
# disabled

#service fuse_usbhost1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/usbhost1 /storage/usbhost1
# class late_start
# disabled

# ril related services
service ril-daemon /system/bin/rild -l libsoftwinner-ril.so -- -d /dev/ttyUSB2
class main
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
user root
disabled
group radio cache inet misc audio sdcard_rw log

# 1. realtek & eagle wifi service
# 1.1 realtek & eagle wifi sta service
service wpa_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-O/data/misc/wifi/sockets \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
# we will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
# group wifi inet keystore
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot

# 1.2 realtek & eagle wifi sta p2p concurrent service
service p2p_supplicant /system/bin/wpa_supplicant \
-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
-e/data/misc/wifi/entropy.bin -N \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-O/data/misc/wifi/sockets \
-g@android:wpa_wlan0
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot

# 2. broadcom wifi service
# 2.1 broadcom wifi station and softap
#service wpa_supplicant /system/bin/wpa_supplicant \
# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
# -I/system/etc/wifi/wpa_supplicant_overlay.conf \
# -O/data/misc/wifi/sockets \
# -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
# # we will start as root and wpa_supplicant will switch to user wifi
# # after setting up the capabilities required for WEXT
# # user wifi
# # group wifi inet keystore
# class main
# socket wpa_wlan0 dgram 660 wifi wifi
# disabled
# oneshot

# 2.2 broadcom wifi sta p2p concurrent service
#service p2p_supplicant /system/bin/wpa_supplicant \
# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
# -I/system/etc/wifi/wpa_supplicant_overlay.conf \
# -O/data/misc/wifi/sockets -N \
# -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
# -I/system/etc/wifi/p2p_supplicant_overlay.conf \
# -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin \
# -g@android:wpa_wlan0
# # we will start as root and wpa_supplicant will switch to user wifi
# # after setting up the capabilities required for WEXT
# # user wifi
# # group wifi inet keystore
# class main
# socket wpa_wlan0 dgram 660 wifi wifi
# disabled
# oneshot

on property:sys.boot_completed=1
start ril-daemon
start u3gmonitor


буилд проперт от брависа вставлял..нужно или нет, потом буду эксперементировать!
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=KVT49L
ro.build.version.incremental=20141024
ro.build.version.sdk=19
ro.build.version.codename=REL
ro.build.version.release=4.4.2
ro.build.date=Fri Oct 24 18:26:46 CST 2014
ro.build.date.utc=1414146406
ro.build.type=eng
ro.build.user=inet_lxp
ro.build.host=superFAE03
ro.build.tags=test-keys
ro.product.model=BRAVIS NP 844
ro.product.brand=BRAVIS
ro.product.name=astar_inet
ro.product.device=astar-inet
ro.product.board=exdroid
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=unknown
ro.product.locale.language=en
ro.product.locale.region=US
ro.wifi.channels=
ro.board.platform=polaris
# ro.build.product is obsolete; use ro.product.device
ro.build.product=astar-inet
# Do not try to parse ro.build.description or .fingerprint
ro.build.description=astar_inet-eng 4.4.2 KVT49L 20141024 test-keys
ro.build.fingerprint=iNet/astar_inet/astar-inet:4.4.2/KVT49L/20141024:eng/test-keys
ro.build.characteristics=tablet
# end build properties

#
# ADDITIONAL_BUILD_PROPERTIES
#
ro.com.android.dateformat=MM-dd-yyyy
ro.config.ringtone=Ring_Synth_04.ogg
ro.config.notification_sound=pixiedust.ogg
ro.carrier=wifi-only
ro.config.alarm_alert=Alarm_Classic.ogg
ro.zygote.disable_gl_preload=true
persist.sys.strictmode.visual=0
persist.sys.strictmode.disable=1
ro.opengles.version=131072
ro.kernel.android.checkjni=0
ro.reversion.aw_sdk_tag=exdroid4.4.2_r2-a33-v2.0
ro.sys.cputype=QuadCore-A33
wifi.interface=wlan0
wifi.supplicant_scan_interval=15
keyguard.no_require_sim=true
ro.sys.network_location=true
persist.demo.hdmirotationlock=0
drm.service.enabled=true
dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=64m
dalvik.vm.heapsize=384m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=512k
dalvik.vm.heapmaxfree=8m
ro.sw.embeded.telephony=false
ro.udisk.lable=USB DRIVE
ro.font.scale=1.0
ro.hwa.force=false
rw.logger=0
ro.sys.bootfast=false
debug.hwc.showfps=0
debug.hwui.render_dirty_regions=false
ro.sys.mutedrm=true
ro.adb.secure=0
ro.setupwizard.mode=OPTIONAL
ro.com.google.gmsversion=4.4_r3
persist.sys.usb.config=mass_storage,adb
persist.sys.language=uk
persist.sys.country=UA
ro.sf.lcd_density=160
ro.inet.board.name=U791C
ro.inet.model.name=U7912L3C_PG
ro.inet.wlan.type=8189es
ro.build.display.id=A33_U791C_U7912L3C_PG_1410054.20141030
ro.config.3ginformation.path=/system/etc/3ginfo.gz
persist.sys.timezone=Europe/Minsk
ro.inet.LauncherTransparent=false
ro.inet.chip.name=A33
ro.product.firmware=2.0_20141018
persist.sys.dalvik.vm.lib=libdvm.so
dalvik.vm.dexopt-flags=v=n,m=y
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt


девайс инфо
;Behind the equals sign said detected equipment corresponding to the name of the driver
;Note: don't change the file format!
gsensor_module_name="bma250"
ctp_module_name="gslX680new"
light sensor_module_name=""
gyr sensor_module_name=""

вот забавное нарыл про цтп_коб на планшете.
<4>[ 25.040358] IC :GSLX680
<4>[ 25.040362] AUTHOR :mbgalex@163.com
<4>[ 25.040366] VERSION:2014-02-10_17:13
<4>[ 25.040369]
<6>[ 25.040386] =====ctp_fetch_sysconfig_para=====.
<3>[ 25.040401] ctp_fetch_sysconfig_para: ctp_power_io script_get_item err.
<4>[ 25.047837] ctp_wakeup gpio number is 225
<4>[ 25.047849] ctp_irq gpio number is 37
<4>[ 25.047895] axp22_ldoio1: Failed to create debugfs directory
<4>[ 25.048046] ctp_cob_gslX680=999
<4>[ 25.048054] ++++++++++++++++++++++++
<4>[ 25.048062] Inet_Customer
<4>[ 25.048071]
<4>[ 25.048073] ==============================================================
<4>[ 25.048079] Project:U791C 768*1024
<4>[ 25.048083] Customer:Meng Tai
<4>[ 25.048087] TP: Min Rui PG
<4>[ 25.048090] Charge:HT-001-050200
<4>[ 25.048094] Author:Lei
<4>[ 25.048098] Date:20141023-17:52
<4>[ 25.048101]
<4>[ 25.048110] ++++++++++++++++++++++++
<4>[ 25.048117] fw_index=0
<6>[ 25.100413] ctp_detect: addr= 40
<6>[ 25.100653] I2C connection sucess!

в какой то прошивке я видел вай фай на брависе,нужно будет просмотреть конфиги.
кажись на этой прошивке
a33_8723-8703_v100_1024x600_gc2035_gc0308_2681_1224_jr2闪光灯0

осталось туда всунуть нужные параметры !


И это сделал без знаний о прошивках и конфигах, а вы все леньтяи!!
Жду лайки


Сообщение отредактировал PSYZuM - 25.11.15, 14:05



Реп: (13)
вот решил выложить прошивку с работоспособным тачем..правда я не помню,туда заливал модули от оригинала или нет ;) но факт что работает, это уже круто!!в игрушки можно играть офлайновые или читать .
моя первая рабочая прошивка

ах да, туда закинул удобный експлоер, прогу по калибровке тача и вибр для подбора к вайфаю }-)
рекавери тоже работает, но криво реагирует на тач!кнопочка возврата это уже волуме вниз,ею можно щёлкать в рекавери
камера тоже работает!
теперь говорите мне :thank_you:

П.С. убил прошивку из за вирусов,вот название хитрого вируса rs_9104_v31.apk он после обнаружения антивирусом сделал себя системным и я не смог без рута удалить его...естественно, я что то лишнее удалил и планшет перестал загружаться
вот скрин на этой прошивке
Прикрепленное изображение
Прикрепленное изображение
Прикрепленное изображение


вот посмотрел какие модули в оригинале были и обнаружил rtl8150.ko думаю это и есть наш вай фай!


Сообщение отредактировал PSYZuM - 25.11.15, 15:58
Причина редактирования: добавил rtl8150.ko



Реп: (13)
решил не затягивать и не тыкать на угад!взял и вскрыл планшет :blush:
там и увидел RTL8189ETV в модулях я увидел 8189es.ko ;) вот проблемка скорей всего и решиться!!можно загрузить этот модуль,а ежели нет,можно прошивку найти по названию и выдрать настройки
вот где взор концентрируем!
;rtl8189es sdio wifi
rtl8189es_shdn = port:PL06<1><default><default><0>
rtl8189es_host_wake = port:PL07<4><default><default><1>

вот описание чипа


может пригодится инфа по камерам..на шлейфе HY-Q791 c
BLX

И наконец упал мой взор на батарею!везде нас дурят в описаниях!!!на батарее надпись 3.7В 3000мАг 11.1Вт
А везде писали при покупке 3300!!!нужно править конфиг на 3000 ...хоть на 4пда правильная инфа!

П.С. в описание по вайфаю можно в кавычках добавить RTL8189ETV что бы люди не искали эту инфу!
По сути каждый модул на чип,в итоге около десятка модулей должно загрузить!лишак отрубить, что бы не сосало энергию и ресурсы!

Сообщение отредактировал PSYZuM - 26.11.15, 02:27



Реп: (18)
Сколько примерно стоит поменять экран на нашем?

Сообщение отредактировал YUNGVLADYA - 20.12.15, 11:24



Реп: (1)
На данный планшет не могу найти дисплей. Кто знает, может есть аналоги?



Реп: (13)
ленимся? около 600 грн видел..вот за 260 грн увидел...поиск и пиши не монитор ищу а тач на бравис }-) видимо он так нужен, раз ленитесь поиск нажать!
вот к примеру

Маркировка -

MF-637-079F-3 FPC

HS1282 V190

вы мне лучше инит.рц скинте или что там в середине!или лсмод (подгружаемые модули)
сейчас я не могу сидеть в инете, в больнице сижу уже больше месяца (( без компа деградирую...
я хоть от кого то помощи дождусь?

Сообщение отредактировал PSYZuM - 08.01.16, 18:35



Реп: (1)
* PSYZuM,
Нужен не сенсор, а дисплей!!!



Реп: (13)
* toschij,
и чем твой дисплей отличаеться от тача? :sveta:
Прикрепленное изображение


возможно ты имел в виду Матрицу!!!!!!!!!
ищи матрицу а не дисплей,выражай запрос корректно!!

Вот только в поиск вписал и нарыл!Не ленитесь искать, а то подавай вам под нос!!!!!

Bravis NP844 дисплей (матрица)
Производитель: Goclever
Модель: Bravis NP844
Наличие: В наличии
Цена: 985 грн.
Прикрепленное изображение



Сообщение отредактировал PSYZuM - 16.01.16, 23:12



Реп: (13)
эй, обладатели поломанных брависов на дисплей, отзовитеь!! я на воскресенке живу, мне нужны данные!! я бы слил с ваших брависов данные...скрипт.бин, инит.рц и от производителя рекавери, и разобрал бы его для выяснения что там в кишках за модули и настройки!!!!!!!!!!!
в ином случае я тупо не буду вылаживать рабочую прошивку!оптимальная для игр есть(с минимальным набором модулей), завтра начну перебирать с вайфаем и не поделюсь...я и так в одиночку раздуплился с нуля и злой потому что ни кто не общается, и не хотят помогать,жуки o.O :beee:



Реп: (13)
и подумал выложить инфу где работает вай фай

нужно или нет,вот сериално.сх
#!/system/bin/sh
M_DIR=/data/chiphd_snum
M_FILE=ULI/factory/snum.txt
mkdir $M_DIR
mount -t vfat /dev/block/nandi ${M_DIR}
#echo "/data/chiphd*/${M_FILE}"
snum=`cat ${M_DIR}/${M_FILE}`
echo "snum = $snum"
setprop def_serialno "$snum"
umount ${M_DIR}
rmdir ${M_DIR}
sync
exit 0


инит рц
import init.sun8i.usb.rc

on init
#See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root

export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
# export MEDIA_STORAGE /mnt/media/sdcard

# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy

# export EXTERNAL_STORAGE /mnt/sdcard
# mkdir /mnt/sdcard 0000 system system
# symlink /mnt/sdcard /sdcard

mkdir /mnt/extsd 0000 system system
mkdir /mnt/usbhost1 0000 system system
#mkdir /mnt/extsd 0700 media_rw media_rw
#mkdir /storage/extsd 0700 root root
#mkdir /mnt/usbhost1 0700 media_rw media_rw
#mkdir /storage/usbhost1 0700 root root
mount debugfs debugfs /sys/kernel/debug
mkdir /databk 0700 root system

mkdir /mnt/private 0000 system system

on early-fs
mount_all /fstab.sun8i
setprop ro.crypto.fuse_sdcard true
insmod /system/vendor/modules/disp.ko
insmod /system/vendor/modules/lcd.ko
insmod /system/vendor/modules/mali.ko
insmod /system/vendor/modules/leds-sunxi.ko
# insmod /system/vendor/modules/bcmdhd.ko

on post-fs-data
mkdir /data/media 0770 media_rw media_rw
#mkdir /mnt/media/sdcard 0770 media_rw media_rw

on fs
# format_userdata /dev/block/by-name/UDISK PMT3008
# format_userdata /dev/block/nandi private
# mkdir /private 0770 system system
# wait /dev/block/nandi
# mount vfat /dev/block/nandi /private gid=1019,uid=1019,fmask=0007,dmask=0007
# radio related, such as imei.conf
mkdir /data/misc/radio 0777 system radio



#csi module
insmod /system/vendor/modules/videobuf-core.ko
insmod /system/vendor/modules/videobuf-dma-contig.ko
insmod /system/vendor/modules/cam_detect.ko
insmod /system/vendor/modules/actuator.ko
insmod /system/vendor/modules/ad5820_act.ko
insmod /system/vendor/modules/cci.ko
insmod /system/vendor/modules/vfe_os.ko
insmod /system/vendor/modules/vfe_subdev.ko
insmod /system/vendor/modules/gc0328.ko
insmod /system/vendor/modules/gc0329.ko
insmod /system/vendor/modules/gc2155.ko
insmod /system/vendor/modules/ov5647.ko
insmod /system/vendor/modules/vfe_v4l2.ko

# bluetooth
# UART device
chmod 0660 /dev/ttyS1
chown bluetooth net_bt_stack /dev/ttyS1

# power up/down interface
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill0/type
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type
write /sys/class/rfkill/rfkill0/state 0

# bluetooth LPM
chmod 0220 /proc/bluetooth/sleep/lpm
chmod 0220 /proc/bluetooth/sleep/btwrite
chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrite
write /proc/bluetooth/sleep/lpm 1

#insmod tp and keyboard gsensor
insmod /system/vendor/modules/sw-device.ko
insmod /system/vendor/modules/sunxi-keyboard.ko

#insmod usb ethernet
insmod /system/vendor/modules/usbnet.ko
insmod /system/vendor/modules/asix.ko
insmod /system/vendor/modules/qf9700.ko
insmod /system/vendor/modules/mcs7830.ko
insmod /system/vendor/modules/rtl8150.ko
insmod /system/vendor/modules/cdc_ether.ko

# talking standby
chown radio system /sys/power/scene_lock
chmod 0644 /sys/power/scene_lock
chown radio system /sys/power/scene_unlock
chmod 0644 /sys/power/scene_unlock
chown radio system /sys/power/scene_state
chmod 0644 /sys/power/scene_state

#2G or 3G init.rc
import init.sunxi.3gdongle.rc

#service logcat /system/bin/logcat -r 1000 -n 10 -v time -f /data/local/logcat.log
# class main

#logger service: logger [kernel|android|radio]
service logger_kernel /system/bin/logger.sh kernel
user root
disabled
service logger_android /system/bin/logger.sh android
user root
disabled
service logger_radio /system/bin/logger.sh radio
user root
disabled
on property:rw.logger=1
start logger_kernel
start logger_android
start logger_radio

# virtual sdcard daemon running as media_rw (1023)
#service sdcard /system/bin/sdcard /data/media /mnt/shell/emulated 1023 1023
service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
class late_start

#service fuse_extsd /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/extsd /storage/extsd
# class late_start
# disabled

#service fuse_usbhost1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/usbhost1 /storage/usbhost1
# class late_start
# disabled

# ril related services
service ril-daemon /system/bin/rild -l libsoftwinner-ril.so -- -d /dev/ttyUSB2
class main
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
user root
disabled
group radio cache inet misc audio sdcard_rw log

#add wifi_mac_name
service engsetmacaddr /system/bin/setmacaddr /mnt/private/wifimac.txt
class main
oneshot
# 1. realtek & eagle wifi service
# 1.1 realtek & eagle wifi sta service
service wpa_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-O/data/misc/wifi/sockets \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
# we will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
# group wifi inet keystore
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot

# 1.2 realtek & eagle wifi sta p2p concurrent service
service p2p_supplicant /system/bin/wpa_supplicant \
-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
-e/data/misc/wifi/entropy.bin -N \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-O/data/misc/wifi/sockets \
-g@android:wpa_wlan0
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot

# Set serialno property
service setserialno /system/bin/sh /system/bin/setserialno.sh
class main
user root
group root
oneshot

# 2. broadcom wifi service
# 2.1 broadcom wifi station and softap
#service wpa_supplicant /system/bin/wpa_supplicant \
# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
# -I/system/etc/wifi/wpa_supplicant_overlay.conf \
# -O/data/misc/wifi/sockets \
# -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
# # we will start as root and wpa_supplicant will switch to user wifi
# # after setting up the capabilities required for WEXT
# # user wifi
# # group wifi inet keystore
# class main
# socket wpa_wlan0 dgram 660 wifi wifi
# disabled
# oneshot

# 2.2 broadcom wifi sta p2p concurrent service
#service p2p_supplicant /system/bin/wpa_supplicant \
# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
# -I/system/etc/wifi/wpa_supplicant_overlay.conf \
# -O/data/misc/wifi/sockets -N \
# -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
# -I/system/etc/wifi/p2p_supplicant_overlay.conf \
# -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin \
# -g@android:wpa_wlan0
# # we will start as root and wpa_supplicant will switch to user wifi
# # after setting up the capabilities required for WEXT
# # user wifi
# # group wifi inet keystore
# class main
# socket wpa_wlan0 dgram 660 wifi wifi
# disabled
# oneshot

on property:sys.boot_completed=1
start ril-daemon
start u3gmonitor

сисконфиг
;A33 Y3 7.85" lcd panel board application
; the difference between Y2 and Y3:
; wifi/bt dram nand
; Y2 AP6210 SKHYNIX MICRON MLC
; Y3 rtl8723bs MIRA TOSHIBA MLC
;---------------------------------------------------------------------------------------------------------
; port configuration:
; port_name = port:GPIO<mux><pull up/down><driver level><default value>
; mux: GPIO function configuration, 0-input, 1-output, 2+: special funciton for modules
; pull up/down: 1-pull up, 2-pull down
; driver level: 0,1,2,3. 2 is recommended
; default value: default output value when this IO is configured as an output IO
;---------------------------------------------------------------------------------------------------------

[product]
version = "100"
machine = "evb"

;---------------------------------------------------------------------------------------------------------
; eraseflag - 1 erase data partition, 0 - do not erase data partition
; next_work - action after burn, 0x0 by config, 0x1, normal, 0x2 reboot 0x3 ,shutdown,0x4 reupdate ,0x5 boot
;---------------------------------------------------------------------------------------------------------
[platform]
eraseflag = 1
next_work = 3

;----------------------------------------------------------------------------------
;[target] system bootup configuration
;boot_clock = CPU boot frequency, Unit: MHz
;storage_type = boot medium, 0-nand, 1-card0, 2-card2, -1(defualt)auto scan
;----------------------------------------------------------------------------------
[target]
boot_clock = 1008
storage_type = -1

;---------------------------------------------------------------------------------
; uboot key detect enable
; 当keyen_flag = 1 时,支持按键检测
; 当keyen_flag = 0 时,不支持
;---------------------------------------------------------------------------------
[key_detect_en]
keyen_flag = 1

;----------------------------------------------------------------------------------
;dcdc1_vol ---set dcdc1 voltage,mV,1600-3400,100mV/step
;dcdc2_vol ---set dcdc2 voltage,mV,600-1540,20mV/step
;dcdc3_vol ---set dcdc3 voltage,mV,600-1860,20mV/step
;dcdc4_vol ---set dcdc4 voltage,mV,600-1540,20mV/step
;dcdc5_vol ---set dcdc5 voltage,mV,1000-2550,50mV/step
;aldo2_vol ---set aldo2 voltage,mV,700-3300,100mV/step
;aldo3_vol ---set aldo3 voltage,mV,700-3300,100mV/step
;----------------------------------------------------------------------------------
[power_sply]
dcdc1_vol = 3000
dcdc2_vol = 1100
dcdc3_vol = 1200
dcdc4_vol = 0
dcdc5_vol = 1500
aldo2_vol = 2500
aldo3_vol = 3000

;----------------------------------------------------------------------------------
;card boot
;----------------------------------------------------------------------------------
[card_boot]
logical_start = 40960
sprite_gpio0 =

;----------------------------------------------------------------------------------
;[cardx_boot_para] boot card configuration
;card_ctrl = boot card NO. 0 or 2
;card_high_speed = speed mode, 0-normal mode(up to 25MHz), 1-high speed mode(up to 50MHz)
;card_line = boot card buswidth(1 or 4)
;----------------------------------------------------------------------------------
[card0_boot_para]
card_ctrl = 0
card_high_speed = 1
card_line = 4
sdc_d1 = port:PF0<2><1><2><default>
sdc_d0 = port:PF1<2><1><2><default>
sdc_clk = port:PF2<2><1><2><default>
sdc_cmd = port:PF3<2><1><2><default>
sdc_d3 = port:PF4<2><1><2><default>
sdc_d2 = port:PF5<2><1><2><default>

[card2_boot_para]
card_ctrl = 2
card_high_speed = 1
card_line = 4
sdc_2xmode = 1
sdc_clk = port:PC05<3><1><2><default>
sdc_cmd = port:PC06<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>

;----------------------------------------------------------------------------------
;[twi_para] twi for boot code
;twi_port = twi controller ID
;----------------------------------------------------------------------------------
[twi_para]
twi_port = 0
twi_scl = port:PH02<2><default><default><default>
twi_sda = port:PH03<2><default><default><default>

;----------------------------------------------------------------------------------
;[uart_para] boot debug port configuration
;uart_debug_port = uart port ID for boot debug
;----------------------------------------------------------------------------------
[uart_para]
uart_debug_port = 0
uart_debug_tx = port:PF02<3><1><default><default>
uart_debug_rx = port:PF04<3><1><default><default>

;----------------------------------------------------------------------------------
;[jtag_para] jtag configuration
;jtag_enable = 0-disable jtag, 1-enable jtag
;----------------------------------------------------------------------------------
[jtag_para]
jtag_enable = 1
jtag_ms = port:PF00<3><default><default><default>
jtag_ck = port:PF05<3><default><default><default>
jtag_do = port:PF03<3><default><default><default>
jtag_di = port:PF01<3><default><default><default>

;----------------------------------------------------------------------------------
;[clock] pll configuration
;----------------------------------------------------------------------------------
[clock]
pll3 = 297
pll4 = 300
pll6 = 600
pll8 = 408
pll9 = 480
pll10 = 297
pll_cpupat = 0
pll_gpupat = 0xc440e666
pll_videopat = 0
pll_vepat = 0
pll_hsicpat = 0
pll_depat = 0
pll_mipipat = 0
;---------------------------------------------------------------------------------------------------------
;[pm_para] power management
;standby_mode = 0-normal standby, 1-super standby
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode = 1

;*****************************************************************************
;sdram configuration
;
;*****************************************************************************
[dram_para]

dram_clk = 552
dram_type = 3
dram_zq = 0x3bbb
dram_odt_en = 1
dram_para1 = 0x10F20200
dram_para2 = 0x00
dram_mr0 = 0x1840
dram_mr1 = 0x40
dram_mr2 = 0x8
dram_mr3 = 0
dram_tpr0 = 0x0048A192
dram_tpr1 = 0x01B1B18d
dram_tpr2 = 0x00076052
dram_tpr3 = 0x0
dram_tpr4 = 0x0
dram_tpr5 = 0x0
dram_tpr6 = 0x0
dram_tpr7 = 0x0
dram_tpr8 = 0x0
dram_tpr9 = 0x0
dram_tpr10 = 0x0
dram_tpr11 = 0x0
dram_tpr12 = 168
dram_tpr13 = 0x900

;---------------------------------------------------------------------------------------------------------
; if 1 == standby_mode, then support super standby;
; else, support normal standby.
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode = 1

;---------------------------------------------------------------------------------------------------------
; wakeup_src_para:
; sometimes, u would like to add more wakeup src in standby mode, these para will be
; help;
; u need to make sure the standby mode support the wakeup src. Also, some hw
; condition must be guaranteed.
; including:
; cpu_en: power on or off.
; 1: mean power on
; 0: mean power off
; cpu_freq: indicating lowest freq. unit is Mhz;
; dram selfresh_en: selfresh or not.
; 1: enable enter selfresh
; 0: disable enter selfresh
; dram_pll: if not enter selfresh, indicating lowest freq. unit is Mhz;
; wakeup_src: to make the scenario work, the wakeup src is needed.
;---------------------------------------------------------------------------------------------------------
[wakeup_src_para]
cpu_en = 0
cpu_freq = 48
; (cpu:apb:ahb)
pll_ratio = 0x111
dram_selfresh_en= 1
dram_freq = 36
wakeup_src_wl = port:PL07<4><default><default><0>
wakeup_src_bt = port:PL09<4><default><default><0>
;bb_wake_ap = port:PL02<4><default><default><0>

;----------------------------------------------------------------------------------
;i2c configuration
; twi_used = twix enable
;----------------------------------------------------------------------------------
[twi0]
twi_used = 1
twi_scl = port:PH02<2><default><default><default>
twi_sda = port:PH03<2><default><default><default>

[twi1]
twi_used = 1
twi_scl = port:PH04<2><default><default><default>
twi_sda = port:PH05<2><default><default><default>

[twi2]
twi_used = 1
twi_scl = port:PE12<3><default><default><default>
twi_sda = port:PE13<3><default><default><default>


;----------------------------------------------------------------------------------
;uart configuration
;uart_used = uart x enable
;uart_type = 2:2 wire,4:4 wire,8:8 wire, full function
;----------------------------------------------------------------------------------
[uart0]
uart_used = 1
uart_port = 0
uart_type = 2
uart_tx = port:PF02<3><1><default><default>
uart_rx = port:PF04<3><1><default><default>

[uart1]
uart_used = 0
uart_type = 4
uart_tx = port:PG06<2><1><default><default>
uart_rx = port:PG07<2><1><default><default>
uart_rts = port:PG08<2><1><default><default>
uart_cts = port:PG09<2><1><default><default>

[uart2]
uart_used = 0
uart_type = 4
uart_tx = port:PB00<2><1><default><default>
uart_rx = port:PB01<2><1><default><default>
uart_rts = port:PB02<2><1><default><default>
uart_cts = port:PB03<2><1><default><default>

[uart3]
uart_used = 0
uart_type = 4
uart_tx = port:PH06<3><1><default><default>
uart_rx = port:PH07<3><1><default><default>
uart_rts = port:PH08<3><1><default><default>
uart_cts = port:PH09<3><1><default><default>

[uart4]
uart_used = 0
uart_port = 4
uart_type = 2
uart_tx = port:PA04<2><1><default><default>
uart_rx = port:PA05<2><1><default><default>
uart_rts = port:PA06<2><1><default><default>
uart_cts = port:PA07<2><1><default><default>

;----------------------------------------------------------------------------------
;SPI controller configuration
;spi_used = SPIx enable
;spi_cs_bitmap = SPI bit mapping
;----------------------------------------------------------------------------------
[spi0]
spi_used = 0
spi_cs_bitmap = 1
spi_mosi = port:PC00<3><default><default><default>
spi_miso = port:PC01<3><default><default><default>
spi_sclk = port:PC02<3><default><default><default>
spi_cs0 = port:PC03<3><1><default><default>

[spi1]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA00<2><1><default><default>
spi_sclk = port:PA01<2><default><default><default>
spi_mosi = port:PA02<2><default><default><default>
spi_miso = port:PA03<2><default><default><default>

;----------------------------------------------------------------------------------
;SPI device configuration
;spi_dev_num: number of spi devices
;----------------------------------------------------------------------------------
[spi_devices]
spi_dev_num = 1

;----------------------------------------------------------------------------------
;[spi_board0] spi device configuration
;modalias = spi device name
;max_speed_hz = max transfer speed
;bus_num = bus ID
;chip_select = chip select, 0,1
;mode = SPI transfer mode
;----------------------------------------------------------------------------------
[spi_board0]
modalias = "at25df641"
max_speed_hz = 50000000
bus_num = 0
chip_select = 0
mode = 0


;----------------------------------------------------------------------------------
;capacitor tp configuration
;ctp_twi_id : twi controller ID
;ctp_twi_addr : I2C slave address, 7bit
;ctp_screen_max_x/_y : resolution of touch panel
;ctp_revert_x/_y_flag : whether need to revert x/y
;ctp_exchange_x_y_flag: whether need to exchange the value of x and y
;ctp_int_port : port for tp's interrupt signal
;ctp_wakeup : port for wakeup tp
;----------------------------------------------------------------------------------
[ctp_para]
ctp_used = 1
ctp_name = "gt910_707d5"
ctp_twi_id = 0
ctp_twi_addr = 0x40
ctp_screen_max_x = 600
ctp_screen_max_y = 1024
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 0

gt910_update_file_path = "/system/etc/gt910_A23_mb707d5_depute_600_1024_20140506.cfg
gt911_update_file_path = "/system/etc/gt911_A23_N02_OPDTP_800_480_20130819.cfg"
gt912_update_file_path = "/system/etc/gt912_A23_N02_OPDTP_800_480_20131029.cfg"
gt927_update_file_path =
gt928_update_file_path =

ctp_int_port = port:PB05<4><default><default><default>
ctp_wakeup = port:PH01<1><default><default><1>
ctp_power_ldo = "axp22_dldo4"
ctp_power_ldo_vol = 3000
ctp_power_io =

;--------------------------------------------------------------------------------
; CTP automatic detection configuration
;ctp_detect_used --- Whether startup automatic inspection function. 1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection.
;--------------------------------------------------------------------------------
[ctp_list_para]
ctp_det_used = 1
ft5x_ts = 1
gt82x = 1
gslX680 = 1
gslX680new = 0
gt9xx_ts = 1
gt9xxf_ts = 1
tu_ts = 0
gt818_ts = 1
zet622x = 1
aw5306_ts = 1
icn83xx_ts = 0
;----------------------------------------------------------------------------------
;touch key configuration
;tkey_twi_id : twi controller ID
;tkey_twi_addr : I2C slave address, 7bit
;tkey_int : port for touch key's interrupt signal
;----------------------------------------------------------------------------------
[tkey_para]
tkey_used = 0
tkey_twi_id =
tkey_twi_addr =
tkey_int =

;----------------------------------------------------------------------------------
;motor configuration
;motor_shake : port for making the moto shaking
;----------------------------------------------------------------------------------
[motor_para]
motor_used = 0
motor_shake = port:power3<1><default><default><1>
motor_ldo = ""
motor_ldo_voltage = 3300

;----------------------------------------------------------------------------------
;thermal configuration
;ths_trip_count : temperature trigger number
;ths_trip_0 : first temperature trigger
;ths_trip_1 : second temperature trigger
;ths_trip_2 : third temperature trigger, when upto this temperature, system shutdown
;ths_trip_0_min : first temperature trigger's min freq
;ths_trip_0_max : first temperature trigger's max freq
;ths_trip_1_min : second temperature trigger's min freq
;ths_trip_1_max : second temperature trigger's max freq
;----------------------------------------------------------------------------------
[ths_para]
ths_used = 1
ths_trip1_count = 3
ths_trip1_0 = 75
ths_trip1_1 = 90
ths_trip1_2 = 110
ths_trip1_0_min = 0
ths_trip1_0_max = 1
ths_trip1_1_min = 1
ths_trip1_1_max = 3
ths_trip1_2_min = 0
ths_trip1_2_max = 0
;----------------------------------------------------------------------------------
;cooler_table cooler_count <=32
;----------------------------------------------------------------------------------
[cooler_table]
cooler_count = 4
cooler0 = "1344000 4 4294967295 0"
cooler1 = "1200000 4 4294967295 0"
cooler2 = "1008000 4 4294967295 0"
cooler3 = "648000 4 4294967295 0"

;----------------------------------------------------------------------------------
;[nandx_para]
;nand_support_2ch = support dual channel
;nand0_used = nand0使能标识
;----------------------------------------------------------------------------------
[nand0_para]
nand_support_2ch = 0

nand0_used = 1
nand0_we = port:PC00<2><default><default><default>
nand0_ale = port:PC01<2><default><default><default>
nand0_cle = port:PC02<2><default><default><default>
nand0_ce1 = port:PC03<2><default><default><default>
nand0_ce0 = port:PC04<2><default><default><default>
nand0_nre = port:PC05<2><default><default><default>
nand0_rb0 = port:PC06<2><default><default><default>
nand0_rb1 = port:PC07<2><default><default><default>
nand0_d0 = port:PC08<2><default><default><default>
nand0_d1 = port:PC09<2><default><default><default>
nand0_d2 = port:PC10<2><default><default><default>
nand0_d3 = port:PC11<2><default><default><default>
nand0_d4 = port:PC12<2><default><default><default>
nand0_d5 = port:PC13<2><default><default><default>
nand0_d6 = port:PC14<2><default><default><default>
nand0_d7 = port:PC15<2><default><default><default>
nand0_ndqs = port:PC16<2><default><default><default>
nand0_ce2 = port:PC17<2><default><default><default>
nand0_ce3 = port:PC18<2><default><default><default>

;------