Commit Graph

646705 Commits

Author SHA1 Message Date
nengwen.chen
8c9d51363c atv_demod: modify afc to prevent demod error locking [1/1]
PD#169984: modify afc to prevent demod error locking

Change-Id: I02d184309fdeb5696da6158e0f29311cdc7675a5
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2018-08-01 04:32:58 -07:00
yicheng shen
12a12b8555 hdmirx: keep bandgap enabled to fix bibi sound issue
PD#170722: hdmirx: keep bandgap enabled to fix bibi sound issue

Change-Id: I55e6cb9084ea93f5bf4accf1cffc04d873cb7c0e
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2018-08-01 04:31:28 -07:00
Evoke Zhang
31c9040d47 backlight: optimize pwm level step calculation
PD#168569: backlight: optimize pwm level step calculation

Change-Id: I570c12cc44af399a861ca54ad98180314924c180
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-08-01 04:07:52 -07:00
Shuide Chen
7ff9741701 power: battery add dummy battery driver [1/1]
PD#169027: add dummy battery and charger for CTS/VTS

some CTS and VTS testcases use the battery information, here
implement a dummy battery for it.
for P, it requires a dummy charger to set the online property to 1.

Change-Id: I7cf516f7050b3930cfdd933dc65b811289f89c4f
Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>
2018-08-01 01:04:15 -07:00
Shuide Chen
5d415782ab dts: bingup for u212 [2/3]
PD#170940: dts for u212, change codec cma to 196M

add dts for u212

Change-Id: I9d3f20d9c8e3a8a60a67d28d85bdfdfa7d4932b7
Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>
2018-08-01 00:46:09 -07:00
Yong Qin
7fa72600d9 cec: add debug cmd interface
PD#170470: cec: add debug cmd interface

	1.enable cec error_initator interrupt
	2.add debug cmd interfacec
	 1)dump info
	 2)register read write
	 3)bypass hal cmd
	3.boot reson ioctrl add mutex unlock

Change-Id: I340e4d363a46890001ff0494744cd9ec2fb28ea3
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2018-07-31 23:50:23 -07:00
Dezhi Kong
30329dbcbb di: fix pre mif reset issue for g12a
PD#169426: di: fix pre mif reset issue for g12a

Change-Id: I851ef6ff9a1ac844afd32bc40e73c4a189a47b6f
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2018-07-31 22:34:32 -07:00
Nian Jing
6af926107c tvafe: fix avin unstable issue
PD#170316: fix avin unstable issue

Change-Id: Id229eff1e996399251cf2d3c93c3d4b2561f8451
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
2018-07-31 20:11:19 -07:00
jiamin ma
7d5c6af845 unifykey: switch init order of unifykey and securitykey
PD#170850: unifykey: wrong unifykey driver init status

  The linux driver init order depends on init func level and
position in Makefile. Securitykey and unifykey are both
necessary for unifykey driver to work normal. Currently
securitykey is always initialized before unifykey, and the
unifykey init status checking API only checkes whether the
probe process of unifykey is done.So there is a chance when
LCD driver get unifykey probing process done status, while
securitykey is still under probing, which means unifykey
still cannot work normal
  We should switch the init order of these two module to
solve this issue

Change-Id: I8c4471d3689cff4356645fdc45df735be625baa2
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
2018-07-31 19:25:50 -07:00
Huan Biao
b9d6392bd9 thermal: fix big core smp fail to cooldev crash
PD#170391:thermal: fix big core smp fail to cooldev crash
	big core smp fail, cooldev driver cannot get
	cpu2 cpufreq policy, driver init fail, gpu cooldev
	data not init, mail ko init fail crash.

Change-Id: I705240b060d80f7afe97fe4dcb20bb2beebc2e13
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2018-07-31 01:06:08 -07:00
Zongdong Jiao
7dd1701cf5 hdmitx: forward partial EDID data to upstream [2/2]
PD#170713: hdmitx: forward partial EDID data to upstream

TXLX have both HDMITX and HDMIRX. We need forward nessary downstream
information to upstream.

Change-Id: Ie129415b49ceeba2f326d1e500323d39c3a8ba12
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2018-07-31 00:27:09 -07:00
Hanjie Lin
eee83d2d49 defconfig: disable ext2 support
PD#167122: defconfig: ext2 cause ltp test fail

now amlogic ext2 has disabled xattr feature
it cause ltp test fail
so disable ext2

Change-Id: I26876366bf4efecf2a3002ba36751bec31286ea9
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2018-07-30 20:21:28 -07:00
Shunzhou Jiang
0e7db6285c clk: clock: Fix PCIE100M clock output some corner chip swing small issue
PD#170610: clock: Fix PCIE100M clock output

Change-Id: I8ada918f6910b537374115260ebaea7a4489e9d6
Signed-off-by: Shunzhou Jiang <shunzhou.jiang@amlogic.com>
2018-07-30 20:01:06 -07:00
hongmin hua
63585c7993 cec: g12b: modify the reg definition
PD#170760: cec: g12b: modify the reg definition

Change-Id: I01cdbb5584c5af3b23b8a1bd18c00bfadf5c8aa2
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
2018-07-30 19:36:07 -07:00
Evoke Zhang
bd02e11614 backlight: ldim: add custome bl region num support for iw7027
PD#170488: ldim: add custome bl region num support for iw7027

Change-Id: If57cc7dd77f6143ce6c904716750c3edbfcbd546
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-07-30 00:20:25 -07:00
nengwen.chen
fba6331599 atv_demod: improve the nicam and a2 [1/6]
PD#169518: improve the nicam and a2

Change-Id: I91b48aea877ada0b733f4fe735fb8a2ab0f53163
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2018-07-29 21:16:23 -07:00
yicheng shen
9b92b53e83 hdmirx: mute audio when unsupport format received
PD#170497: hdmirx: mute audio when unsupport format received

Change-Id: Id849c725b88d1d80328f3ef6b76ba09248d5b9b8
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2018-07-30 10:30:00 +08:00
hongmin hua
073be5332d hdmirx: edid mix add hdr block
PD#169888: hdmirx: edid mix add hdr block

Change-Id: I0a280abbd37295abc8ba8dc61ee91ee888b6e2e5
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
2018-07-29 18:32:24 -07:00
Zongdong Jiao
87bcb75be7 hdmitx: forward hdr block data to rprx [1/1]
PD#168875: hdmitx: forward hdr block data to rprx
Under repeater mode, need forward hdr block data to rprx.

Change-Id: Ib57dc4071f621e620a88cdf24340194cca1f8b24
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2018-07-29 18:27:30 -07:00
Xing Wang
54b59fcb64 arm64: dts: txl: audio: re-map spk and dac mask
PD#170319: arm64: dts: txl: audio: re-map spk and dac mask

Change-Id: I47da64823dfa90460abf2327cd2e628320ef8ab1
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2018-07-26 19:37:00 -07:00
nengwen.chen
2f785f9696 atv_demod: modify tuner config in dts [1/3]
PD#170567: modify tuner config in dts

Change-Id: Ibd14a6d334f097b1df243bfdfb9e22cad5b80e93
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2018-07-26 07:25:00 -07:00
Evoke Zhang
8bb9596359 lcd: mute: wait vsync for display shadow [2/2]
PD#170101: lcd: mute: wait vsync for display shadow

Change-Id: If17838c40d46fd6f4b943d313456738fec50185a
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-07-26 07:21:02 -07:00
Evoke Zhang
6cf8325a38 lcd: lcd_extern: increase init_on table size support to 3000 [2/2]
PD#170356: lcd_extern: increase init_on table size support to 3000

Change-Id: Ic37f918553436fe40c0afc5b307c54d9b07febba
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-07-26 03:03:14 -07:00
Lei Qian
903dc66a88 dts:txl:optimize ion memory usage [2/2]
PD#170336:dts:txl: optimize ion memory usage

Change-Id: I8eb3cbf60ceeba959dbb74b51912947c9880ceb4
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2018-07-25 23:43:14 -07:00
Nan Li
b25ef33d8e emmc: g12a: optimize sd_uart for revA.
PD#170542: optimize sd_uart dts /sd1 for g12a revA.

Change-Id: I35bbb52790a1a11cc1d95d02c6cda717f43c9f75
Signed-off-by: Nan Li <nan.li@amlogic.com>
2018-07-25 19:20:05 -07:00
Xing Wang
16c9cd9443 audio: auge: fix S/PDIF reset
PD#170264: audio: auge: fix S/PDIF reset

Change-Id: I515319feb04b6c97850d218a5786990980054c51
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2018-07-25 06:59:08 -07:00
nengwen.chen
9a89c68999 demod: prevent the agc pin conflict when used in atv or dtv demod [1/3]
PD#170409: prevent the agc pin conflict when used in atv or dtv demod

Change-Id: I78359502a97d79a703e990669bd1acddae6679ce
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2018-07-25 03:26:12 -07:00
rongrong zhou
3319c45585 media: ptsserv: set pts_us64 in pts_lookup_offset
PD#170127: media: ptsserv: set pts_us64 in pts_lookup_offset

Setiting pts_us64 prevents the decoder from using uninitialized values,
Sometimes the function return pts valid only if pts is set.

Change-Id: If4b0a329bbc013902fd2045207420f0f85bfff4e
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
2018-07-25 03:14:03 -07:00
hongmin hua
93ff2f4d51 cec: modify the line check for g12a
PD#168682: cec: modify the line check for g12a

Change-Id: Id7f318caae3230df9bd6689f566524e05fd512bd
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
2018-07-25 02:10:27 -07:00
Yixun Lan
d14b49bef6 net: xfrm: enable compat xfrm syscall
PD#170491: net: xfrm: enable compat xfrm syscall

When using 32bit user space and 64bit kernel in ARM64 platform,
we do not need to disable compat syscall, since there is struct size
difference between user space and kernel space.

This will fix error in xfrm test cases of VtsKernelNetTest.

Change-Id: Ifd6c1f5e678138286678d5c119c0efa42d5b3a59
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
2018-07-24 18:26:33 -07:00
can.cao
42f5d936ca dts: Add low memory config for u200 [1/2]
PD#170190: Add new dts file for u200

Change-Id: Ia5332c20906666fa7828d671f16f872e05954cac
Signed-off-by: can.cao <can.cao@amlogic.com>
2018-07-24 00:33:17 -07:00
Yong Qin
ccbd66f027 cec: add cec support for txl p346 p341
PD#170469: cec: add cec support for txl p346 p341
	1.support p346
	2.support p341

Change-Id: I4b680d407ce0c79eb952a3b74c2cf06df15d32ae
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2018-07-23 22:40:34 -07:00
Jiyu Yang
677c0ebda6 dts: gpu: g12b: enable ACE-lite
PD#168676: dts: gpu: g12b: enable ACE-lite

Change-Id: I19eaa04dd0ce35499b162fb1caafa7fa8a438404
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
2018-07-23 19:06:43 -07:00
jiaming.huang
1fad2518c2 arm64: dts: txl: add 4g emmc support
PD#170439: arm64: dts: txl: add 4g emmc support

arm64: dts: txl: add 4g emmc config for txl board

Change-Id: I452efa07da038d8d8316c8afadf121522122afeb
Signed-off-by: jiaming.huang <jiaming.huang@amlogic.com>
2018-07-23 03:26:46 -07:00
Ting Li
b82336b302 RTC: enable rtc dev for systemclock save[1/1]
PD#170346: RTC: enable rtc dev for systemclock save[1/1]

enable rtc dev for systemclock save

Change-Id: I1a055b0c2448160fa1554ac3b82da0760b26a4fd
Signed-off-by: Li Ting <ting.li@amlogic.com>
2018-07-23 02:17:51 -07:00
rongrong zhou
31b9813228 codec_mm: set enable_slot_from_sys to try one page
PD#170091: codec_mm: set enable_slot_from_sys to try one page

set enable_slot_from_sys to try one page

Change-Id: I53a50b666e7986abe1627a70b5112c234a6ce1ec
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
2018-07-23 01:55:59 -07:00
Sunny Luo
09f3fbb011 dts: spicc: change txl dts to use upstream driver
PD#164751: dts: spicc: change txl dts to use upstream driver

Change-Id: Ibf51059122d31316bb644d6431466e36afe44cb6
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2018-07-23 01:51:15 -07:00
wenfeng.guo
6995d4a158 di: add more debug info into dumpstate_board
PD#170100: di: add more debug info into dumpstate_board

1. add new debugfs:
	cat /sys/kernel/debug/di/state
	cat /sys/kernel/debug/vdin0/state
2. Retain the original usage
	echo state > /sys/class/vdin/vdin0/attr;
	echo state > /sys/class/deinterlace/di0/debug;

Change-Id: I98054baa260ae5e9bf945d23b5becd2064c81a69
Signed-off-by: wenfeng.guo <wenfeng.guo@amlogic.com>
2018-07-23 01:24:31 -07:00
Long Yu
3b89c036c2 emmc: Modify txlx latest data for data6
PD#169386: emmc: modify txlx latest data for data6

Change-Id: I5bbfa5fa7fa7641a3a532ef74f5e5450b518135c
Signed-off-by: Long Yu <long.yu@amlogic.com>
2018-07-22 23:55:25 -07:00
Renjun Xu
3cd92497ed audio: support the number of datain+loopback beyond 8 channel feature
PD#168268: add support datain+loopback beyond 8 channel feature

   You need add  datain_datalb_total = <10>; at the end
   of aml_loopback node on dts or amixer command to enable.

   e.g. pdm 8ch + loopback 2ch case
        pdm 8ch + loopback 8ch case
        pdm 6ch + loopback 4ch case

   if total number of channel beyond 8 , must utilize 16ch to capture.
   so that  we change relevant parameter like this:
   if (lb_cfg->datain_datalb_total > 8) {
     lb_cfg->datain_chnum = 8;
     lb_cfg->datain_chmask = 0xff;
     lb_cfg->datalb_chnum = 8;
     lb_cfg->datalb_chmask = 0xff;
     lb_cfg->datalb_chswap = 0x76543210;
   }
   capture command:
   arecord -Dhw:0,3 -c 16 -r 48000 -f S32_LE /test.wav

   You can use asound.conf to choose your channel.

Change-Id: I0a59c4c12da603efd8709bf36d6dac640fdf788a
Signed-off-by: Renjun Xu <renjun.xu@amlogic.com>
2018-07-22 23:53:31 -07:00
xuhua zhang
14d4d6e55e vdin: g12a/g12b: fix screencap error from ENCL
PD#170320: vdin: g12a/g12b: fix screencap error from ENCL

Change-Id: I16bd33f31d126b714aa15e09bd782525b25da54b
Signed-off-by: xuhua zhang <xuhua.zhang@amlogic.com>
2018-07-22 22:59:53 -07:00
Jianxiong Pan
050b1cce5d defect: fix code defects in public parts
PD#166793: code defects in public parts

crypto: exclude the of_match_device function return value is NULL
ddr_tool: solve problems of bad_shift and use_after_free
debug: prevent the number of cpus from exceeding the total
efuse: solve the problem of buffer_size_warning
memory_ext: solve the problems of divide_by_zero and overrun
unifykey: solve the problem of buffer_size_warning,and add a variable
          for useless_call
wifi: exclude the of_match_node function return value is NULL,and avoid
   the problem of string_overflow

Change-Id: I099ce7c60ddd0266d067215108f0e2baeb31c234
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2018-07-20 02:58:58 -07:00
Dezhi Kong
f66e7afdf8 vlock: add dynamic switch from pll to enc mdoe
PD#169634: vlock: add dynamic switch from pll to enc mode

1.seperate vlock process from amvecm_on_vs,
avoid the influence of repeate call.
2.add dynamic switch from pll to enc mode,
pll adj firstly,then switch to enc mode do fine tuning.
3.seperate vlock reg init from amcm interface,
avoid the influence of rdma mode.
4.decrease enc line adjust limit.
5.add enc adjust range check.

Change-Id: I6352b45e9ec8869be43660c03352d1a406ca8a0a
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2018-07-20 00:33:59 -07:00
nengwen.chen
aadf8893c8 atv_demod: improve atv demod timer handler [1/1]
PD#169330: improve atv demod timer handler

1.Add work queue to do the time consuming operations.
2.Optimize code.
3.V2.02

Change-Id: I809179ab84fc236cc4dba234e21448d6528f9c5e
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2018-07-20 00:27:50 -07:00
Yong Qin
77532c164e cec: add otp in str mode
PD#170099: cec: add otp in str mode

	1.add otp function in str mode

Change-Id: I49cee530f63246bc080ec4a6eb9538a0bb6c6bae
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2018-07-19 23:33:05 -07:00
xuhua zhang
f5627693c2 arm64: dts: vdin: use discontinus way to alloc cma
PD#170275: arm64: dts: vdin: use discontinus way to alloc cma

Change-Id: I9a0ed8e612a98f5558f90df2b91b3384e954b9e4
Signed-off-by: xuhua zhang <xuhua.zhang@amlogic.com>
2018-07-19 22:52:54 -07:00
Gongwei
35ee4d1f59 dts: g12b: add efusekey support [1/1]
PD#169961: dts: g12b: add efusekey support

Change-Id: Ideed83ddc3ad59370165079e2c8e236510507573
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2018-07-19 06:31:54 -07:00
shihong.zheng
6a4c11d035 dts: audio: g12b audio config spdif_a;
PD#169619: dts: g12b audiobus tdmb samesource_sel config to 3.

Change-Id: I853d60297fa3b24989c160ec95c68e4ccd76623b
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
2018-07-19 06:27:02 -07:00
Qianggui Song
43a3a58106 touchscreen: optimize module init flow
PD#169285: touchscreen: optimize module init flow

1.Initializing/Uninitializing resource in probe/remove function is more
appropriate in this case.
2.Use module_i2c_driver to replace module_init/exit to make code more
compact.
verify on a311d_w400

Change-Id: If02f12a6c290a6346d439785060e60a6cd815c12
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2018-07-18 19:35:29 -07:00
nengwen.chen
86b3a92b0c arm64: dts: txlx: modify the txlx adaptation to txl bringup
PD#168480: arm64: dts: txlx: modify the txlx adaptation to txl bringup

Change-Id: I85190803871ea9982a0ec41d87680c975c84d171
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2018-07-18 06:08:04 -07:00