Commit Graph

649217 Commits

Author SHA1 Message Date
Luke Go
080d738ff6 ODROID-C4: dts/arm64: android: add sd configs.
Change-Id: Ia5331c2cb5ccf2fb99befbfbb3d6494c6c724908
Signed-off-by: Luke Go <sangch.go@gmail.com>
2020-03-25 15:32:22 +09:00
Luke go
e7c77121f7 Merge changes I166f9f8a,I37b02ef1 into odroidg12-4.9.y-android
* changes:
  ODROID: mem; Removed memory size limitation.
  ODROID: WIFI/BT: Support the WIFI/BT Combo Shiled.
2020-03-25 13:49:12 +09:00
Luke Go
4f616906dc ODROID: mem; Removed memory size limitation.
Change-Id: I166f9f8a69d3c46d275ae282321599d21cd146fd
Signed-off-by: Luke Go <sangch.go@gmail.com>
2020-03-25 13:47:31 +09:00
Luke Go
af8b1f119b ODROID: WIFI/BT: Support the WIFI/BT Combo Shiled.
Change-Id: I37b02ef1638592aaf3f611de59b89cbe86c8ca85
Signed-off-by: Luke Go <sangch.go@gmail.com>
2020-03-24 18:39:14 +09:00
Chris KIM
e95437df7f ODROID: Enable to prevent Sleep mode.
If prevent_sleep is 1, system never enter sleep mode,
but system turn off HDMI PHY, if suspend_hdmiphy is not 0.

Signed-off-by: Chris KIM <codewalker@hardkernel.com>
Change-Id: Ic7848d174390a9a9549222e421b1b7bbfc7fc404
2020-03-19 09:54:00 +09:00
Luke Go
83c74b5315 ODROID-COMMON: arm/dts: add 'clear-map' to 'codec_mm'
Change-Id: I05475f202cc8b5bbe3666bfab2697e312c3b00c6
Signed-off-by: Luke Go <sangch.go@gmail.com>
2020-03-03 13:52:09 +09:00
Chris KIM
f11fd002ea Revert "HID: multitouch: do not retrieve all reports for all devices"
This reverts commit c6e3c6628d.

Fix for eGalax Inc. USB TouchController(0EEF:0001) malfuncion.

Change-Id: I2859086f481346fef9c95ccec2fc35367b141076
2020-03-03 13:51:19 +09:00
Chris KIM
bd15ee2fc4 ODROID-C4: Remove duplicated label.
Change-Id: Id883f28f02b5be0769754b6cfffade2917065b7c
Signed-off-by: Chris KIM <codewalker@hardkernel.com>
2020-03-03 13:50:40 +09:00
Chris KIM
5e6549fc30 ODROID-C4: dts: Fix max clock to 2016000000
Change-Id: I84ceb206a80a80ec2746312a6380f50b45c45ab2
2020-03-03 11:26:27 +09:00
Luke Go
0806c5fa6e ODROID: bt: Change gpio_reset, Bugfix.
- gpio_reset pin is moved to GPIOH_7 to avoid conflict.

- power_low_level value is not applied correctly.

Change-Id: Ibd9297e243bc131b9296ebfe69fa7a58a7033abb
Signed-off-by: Luke Go <sangch.go@gmail.com>
2020-03-03 11:22:30 +09:00
Chris KIM
3812a6da38 ODROID-C4: defconfig: Update features.
Change-Id: I2905a268a9cf6d88ff0857c6df7a1158396ffed1
2020-03-03 11:21:04 +09:00
Chris KIM
6e04426293 ODROID: dts: Remove sd_emmc_b1[2].
Change-Id: I14199665f4c212d4f7f9c722526f3f9d7300f645
2020-03-03 11:20:52 +09:00
Luke Go
60c80d82ad ODROID: bt: Apply bluetooth device and add bluetooth device tree
configs.

Signed-off-by: Luke Go <sangch.go@gmail.com>
Change-Id: Idc5fa7db15385b750e0c80365b7216b2676640db
2020-03-03 11:20:40 +09:00
Luke Go
b7c9b54ae6 ODROID-C4: Add wifi dts configs and remove pci access routine from
aml_wifi.

Signed-off-by: Luke Go <sangch.go@gmail.com>
Change-Id: I0111583e1812633be391b7997388c1be1deadd32
2020-03-03 11:20:29 +09:00
Kevin.Kim
13b924229f ODROID-C4: Add sound card driver
Change-Id: Ie91640c3f324076076be6b19b71eb54a74483e1f
2020-03-03 11:20:15 +09:00
Luke Go
f7668a3bb4 ODROID: bt: Apply bluetooth device and add bluetooth device tree
configs.

Change-Id: I2ebf83d4463c1ebbe006e21e65272d14f8e8295f
Signed-off-by: Luke Go <sangch.go@gmail.com>
2020-03-03 11:20:02 +09:00
Chris KIM
ef39f33578 ODROID-C4: dts: Fix max clock to 2100000.
Change-Id: Ic44a13ce33619854341bf75c85f581cac0f6a8c7
Signed-off-by: Chris KIM <codewalker@hardkernel.com>
2020-03-03 11:19:52 +09:00
Kevin.Kim
92dba0889d ODROID-C4: arm64/dts: Add overclock frequency table
Change-Id: If2ccfb890dedeeab98ad1a0c22d9eb592a7d99e5
2020-03-03 11:19:43 +09:00
Chris KIM
0dfee125d3 ODROID-C4: Fix dts like odroidn2.
Change-Id: Ica2602ef558050e0ddcd2759b4ef71e53a5178f8
2020-03-03 11:18:19 +09:00
Chris KIM
666de9a964 ODROID-C4: dts: fix to use rtc shield.
Change-Id: I5b0b5b68e8f4ec6c410f45804925d482290b9345
2020-03-03 11:18:08 +09:00
Luke Go
3477f40dec dts: ODROID-C4: Add odroid-c4 config files.
Change-Id: I1a3c8bebb6b7ca83cadfe4cf983f308956a7041f
2020-03-03 11:17:42 +09:00
Pengcheng Chen
3acd039728 osd: fix osd v/h filter mode not update [1/1]
PD#SWPL-19237

Problem:
osd v/h filter not update

Solution:
update osd v/h filter mode correctly

Verify:
ac214

Change-Id: I8f84faed59f269e61d55073b1f24af5d766cfd80
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2020-02-04 17:12:11 +09:00
Pengcheng Chen
7cb8710a69 amcsc: memset fake_vframe when send fake hdmi packet [1/1]
PD#SWPL-18439

Problem:
when send fake hdmi packet, fake_vframe.type has garbage
data, which trigger MVC type detected.

Solution:
memset fake_vframe when send fake hdmi packet

Verify:
ac214

Change-Id: I042eb060e01970db432fe05774f2c98278a74560
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2020-02-04 17:12:11 +09:00
yao liu
2cbbd995fc dv: OSD display highlights after stop playing [1/1]
PD#SWPL-19464

Problem:
After stop playing, dolby setting isn't update

Solution:
Trigger dv process once when stop playing, to
set dolby lut and regs.

At the same time, move DV fmt detection to the
front of HDR due to DV priority is higher than
HDR10.

Verify:
Verified on AC214

Change-Id: I4e6202f8b099164a9c6c3e49d7f63cab9cc6cbd9
Signed-off-by: yao liu <yao.liu@amlogic.com>
2020-02-04 17:12:11 +09:00
zhenxin.pu
8eef4d5c15 Thermal: SM1: thermal driver print error [2/2]
PD#SWPL-18939

Problem:
high temp restart fails to offline cpus

Solution:
make cpucore current state update at meson cdev probe

Verify:
S905X3_AC214

Change-Id: I1ab1e6b5219d8f62c5ad8586eaf614a5f3833765
Signed-off-by: zhenxin.pu <zhenxin.pu@amlogic.com>
2020-02-04 17:12:11 +09:00
zhenxin.pu
cdc01bd31a Thermal: SM1: thermal driver print error [1/2]
PD#SWPL-18939

Problem:
1.read gpupp failed
2.binding cdev gpufreq failed

Solution:
1.add gpupp parameter and change the min state of gpufreq
2.put part of sm1 thermal dts parameter in dtsi

Verify:
S905X3_AC214

Change-Id: I364fabf05d606ee82bbe8cb30b40dae5063a0b00
Signed-off-by: zhenxin.pu <zhenxin.pu@amlogic.com>
2020-02-04 17:12:11 +09:00
qianqian.cai
eef1277a7f deinterlace: avoid timeout when enable iotrace [1/1]
PD#SWPL-19670

Problem:
when enalbe io trace, di will timeout

Solution:
switch seting order about mif enable and reset

Verify:
u212

Change-Id: Ie2e2b6a120d43a554458d655bbb475988c4e9028
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2020-02-04 17:12:11 +09:00
Cheng Wang
5f20bae263 hdr: hdr10+ color abnormal [1/1]
PD#SWPL-18339

Problem:
play source of hdr10+ color abnormal on hdr_policy always
caused by PROC_MATCH value.

Solution:
Modify PROC_MATCH value.

Verify:
on newton

Change-Id: Ia7e497844548ed06c5cb0e0292cc358a2689fd3c
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2020-02-04 17:07:55 +09:00
renjiang.han
505b07bcc9 video_keeper: keep frame garbage. [1/1]
PD#SWPL-18298

Problem:
keep frame garbage.

Solution:
keep two frame.

Verify:
on U212

Change-Id: I29e1c7ef813c49849091727537ed983fd75dd08f
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2020-02-04 17:07:55 +09:00
Xihai Zhu
72cd6d7aae di: fix colorbar transition fliker [1/1]
PD#SWPL-14832

Problem:
colorbar testing pattern transition
fliker several times

Solution:
code align with L3 combining andw
parameter finetune

Verify:
905x3

Change-Id: Idb7f0a6594c7723f7fe0449f7eb1880967232719
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
2020-02-04 17:07:55 +09:00
Brian Zhu
45bbd0d1cd di: if not support afbc, do not set the afbc type [1/1]
PD#SWPL-18701

Problem:
Even if the DI module does not support afbc format,
it still sets the afbc type in vframe.

Solution:
Add afbc support checking

Verify:
Verified by p212

Change-Id: I29fe433f38c80c8c66209556f8cb6b88a015a2de
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2020-02-04 17:07:55 +09:00
robin.zhu
abbd4bf13d vpp: after switch dv off, hdmi output not follow always hdr policy [1/1]
PD#SWPL-17427

Problem:
when turn off dv vmode set to null, not vsync interrupt,
cause csc fail to monitor cap change

Solution:
csc add monitor for VOUT_EVENT_MODE_CHANGE

Verify:
Verify on u212

Change-Id: I072dcc75a62888abe403c574f2ecd8e796fa3e00
Signed-off-by: robin.zhu <robin.zhu@amlogic.com>
2020-02-04 17:07:55 +09:00
Evoke Zhang
e88c4804b1 lcd: add vout_server protection when driver probe fail [1/1]
PD#SWPL-18118

Problem:
system crash for lcd vout_server api NULL pointer when driver probe fail

Solution:
add vout_server protection when driver probe fail

Verify:
x301

Change-Id: I13ff34a42f11490cdc3479517e11c1eea90895ac
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2020-02-04 17:04:10 +09:00
Hang Cheng
9c73b2bc69 hdmitx: optimize for signal disable flow [1/1]
PD#SWPL-16472

Problem:
on Hisense-HZ55A65, under Y420+deep color,
it will show blue(for some ms) and then keep
green screen after receive set_avmute

Solution:
after set avmute, decrease the delay time to
disable output, to avoid flash on Hisense-HZ55A65

Verify:
AC214

Change-Id: Id2a25b21c56118f363f7085d22ac590051dec585
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
2020-02-04 17:04:02 +09:00
qianqian.cai
89349efd72 deintlace: Play a video1920x1086, DI will block [1/1]
PD#SWPL-18263

Problem:
PPTV_T972, Play a video1920x1086, DI will block

Solution:
from the VLSI feijun ,modify the mif setting flow

Verify:
verify on TL1 marconi

Change-Id: Iaae93bb48511b9194da59a100ab16d1c7f496cdc
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2020-02-04 17:03:54 +09:00
Yong Qin
9687156e29 cec: cec b ARB timing cause cec 9.6.1 fail [1/1]
PD#SWPL-17658

Problem:
ARB timing setting is too large, it will cause
cec cts 9.6.1 fail

Solution:
reducec ARB timing

Verify:
sm1-AC214

Change-Id: I09f135c63f0f6f810719f6313b58bf84ebc574c1
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-02-04 17:03:44 +09:00
Yong Qin
ff103b13da cec: sm1 send bus level check fail [1/1]
PD#SWPL-17583

Problem:
cec send msg, cec bus level check fail.
the register define is not right.

Solution:
cec bus input register is PREG_PAD_GPIO3_I.

Verify:
SM1

Change-Id: I2eb49cab79a0141141ae3fafb704239c2c779485
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-02-04 17:03:37 +09:00
Zongdong Jiao
34d556bc3d hdmitx: Fix parsing of HDR10plus and Dovi VSVDBs [1/1]
PD#SWPL-17786

Problem:
No dolby vision on latest Vizio TVs providing an EDID containing
both dolby vision and HDR10plus VSVDBs in the EDID.

Solution:
If an EDID contains both HDR10plus and Dovi VSVDBs, we are
incorrectly resetting both dovi and hdr10plus parsed info structs.
As a result, we are only left with the parsed info of the later
VSVDB in the EDID. So, if we have a hdr10plus VSVDB after dovi
VSVDB, dovi info will be reset while parsing for hdr10plus, and
we will not report any dovi capabilities to the frameworks. This
is what is happening on these TVs in question.

Parse HDR10plus and Dovi VSVDBs independently of one another. Do
not reset parsed info of one while parsing for the other.

Since Dovi->HDR10+->Dovi transitions are not defined, send zero
drm/vsif packets while exiting HDR10+ playback if going to dovi
mode next.

Verify:
HDR10plus and Dovi capabilities can be simultaneously and correctly
reported to the frameworks.

Change-Id: I7a344638e5a923c88ef23f0b3a03480c5a564548
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2020-02-04 16:59:51 +09:00
Zongdong Jiao
5655d11b18 hdmitx: correct the threshold value of rxsense [1/1]
PD#SWPL-17841

Problem:
need correct the threshold value of rxsense

Solution:
correct the threshold value of rxsense, regress OTT-1968 to trunk

Verify:
G12/U212

Change-Id: I53f370cf51c0ad39e92fd64a0cc98cc4680eea4d
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2020-02-04 16:59:43 +09:00
MingLiang Dong
7869ba630d hdr: optimize osd sdr2hdr color/luminance [1/1]
PD#SWPL-17683

Problem:
1. osd sdr2hdr color is different with video
2. osd sdr2hdr luminance is too high with astro pattern

Solution:
1. osd sdr2hdr matrix set 709 to 2020
2. osd sdr2hdr max luminance set 330

Verify:
verify on p212

Change-Id: I9c452f5bb2573089904e280a6e6ff98bea9441ab
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2020-02-04 16:59:34 +09:00
Zhengrong.Zhu
6c9ae88176 hdmitx: Coverity(upgraded) defect cleanup: hdmitx [1/1]
PD#SWPL-16574

Problem:
Coverity(upgraded) defect cleanup: hdmitx

Solution:
Modify code according to coverity

Verify:
verify on the board of U212

Change-Id: Iac69fb896dd22b38ae56b58701d6fd26aefe958c
Signed-off-by: Zhengrong Zhu <zhengrong.zhu@amlogic.com>
2020-02-04 16:59:26 +09:00
Zongdong Jiao
313dac7573 hdmitx: revert original hpd_state mark [1/1]
PD#SWPL-17710

Problem:
Suppose hdmitx already output in uboot, and next kernel boots up,
the output will disable and then enable

Solution:
When hdmitx hpd_states initializes, read edid when hpd is high

Verify:
G12/U212

Change-Id: I538b8af2d59a7b2b34739f14d0b0cb6fd89aed2e
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2020-02-04 16:54:16 +09:00
Brian Zhu
885d844b61 dv: improve the dv process flow [1/1]
PD#SWPL-18116

Problem:
Under keeping frame case, dv toggle frame with wrong
mode, it may cause non-dv effect .

Solution:
Improve the toggle flow , pass the correct mode into
dv driver. Then using the last meta data

Verify:
Verified on u212

Change-Id: I456bb16e16810c166aba23d07a3296595032861e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2020-02-04 16:54:05 +09:00
renjiang.han
cc9016c91e video_keeper: use ge2d keep last frame. [1/1]
PD#SWPL-17670

Problem:
can't keep last frame with ge2d.

Solution:
Use the address of the vframe to make a judgment.

Verify:
on w400

Change-Id: Id652500d77d5b70837f29606b6336c592580d466
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2020-02-04 16:53:55 +09:00
renjiang.han
6bc70d79c0 ppmgr: Vf canvas configuration finishing. [2/2]
PD#SWPL-17670

Problem:
The vf structure is too large, causing the function to
exceed the stack size limit.

Solution:
Vf canvas configuration finishing.

Verify:
on U212

Change-Id: Id8b2c23001ae3c11d9c3824837cd1342c36dce25
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2020-02-04 16:49:54 +09:00
renjiang.han
d45de899d5 ppmgr: canvas which ppmgr used has some conflict with decode side. [1/2]
PD#SWPL-17670

Problem:
canvas which ppmgr used has some conflict with decode side.

Solution:
Canvas is allocated dynamically.

Verify:
on U212

Change-Id: Ia265a70ec39005f8e8adc67be496308d6f6b87b7
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2020-02-04 16:49:47 +09:00
Zongdong Jiao
947849829a hdmitx: add a fake hpd for system test [1/1]
PD#SWPL-16891

Problem:
For automatical test, the HDMI cable are always connected between Tx and Rx
without manully action.

Solution:
add a fake hpd for system test
echo 0[1] > /sys/class/amhdmitx/amhdmitx0/fake_plug

Verify:
G12/U212

Change-Id: I826fc0094845a13066a1535a4a87727b4ecad452
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2020-02-04 16:49:37 +09:00
Brian Zhu
9d40ac02c2 amvideo: need enable vd2 when dv dual layer playback [1/1]
PD#SWPL-17597

Problem:
When playing dual layer dv streaming, vd2 does not enable.

Solution:
Enable vd2 when dual layer dv streaming

Verify:
Verfied on u212

Change-Id: Iacbcfb7baec2344ab1e897b5e8af43cd9bb368c1
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2020-02-04 16:49:26 +09:00
Brian Zhu
c4bdacb1b3 amvideo: fix black screen issue when provide reset [1/1]
PD#SWPL-17497

Problem:
When decode resets before first frame coming, vpp will
disable video layer.

Solution:
Only switch the dispbuf_mapping after available frame toggled

Verify:
Verifed on u212

Change-Id: I798997ac9355efd0c477a7c9c59513c82110748f
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2020-02-04 16:49:16 +09:00
Pengcheng Chen
cb9997dac2 osd: update osd freescaler reg every hwc cmd [1/1]
PD#SWPL-17309

Problem:
do switch resolution test, sc regs miss-set caused display garbage

Solution:
update osd freescaler reg every hwc cmd

Verify:
ac214

Change-Id: I4c09094a477442b6f9f7bd782f9360d98eff299c
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2020-02-04 16:44:44 +09:00