Commit Graph

648977 Commits

Author SHA1 Message Date
Luke Go
80b9ade1bb ODROID-C3: arm64/dts: Add android firmware & fstab infos.
- Add android dts.

Change-Id: I0cddcd443735e82ca0b58fb9f696ab2e21e5fa00
2019-12-11 15:03:40 +09:00
Kevin Kim
914cbd827e ODROID-C3: arm64/dts: changes for sound card configuration
Change-Id: I45b73be84c7e9a406b1d71ec141f706d40cce228
2019-12-11 15:03:32 +09:00
Kevin Kim
d4320f5488 ODROID-C3: arm64/dts: add support UHS-1 for uSD card
Change-Id: I365c7d333ae6a4e1568f7a486ab134f1afb679e3
2019-12-11 15:03:22 +09:00
Dongjin Kim
f22bb2af44 ODROID-C3: arm64/dts: add 'drive-strength = <3>' to i2c-3
Change-Id: I440ca37ae62fdfdd9909f7e7121d4ef35ab98130
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:03:13 +09:00
Dongjin Kim
9f6ed4a03d ODROID-C3: config: add to enable RTC driver PCF8563
Change-Id: I5b6d9ac23d3e930eeffd11725a983515a59b3c93
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:03:02 +09:00
Dongjin Kim
ee6827088f ODROID-C3: arm64/dts: add RTC component 'pcf8563' to 'i2c3'
Change-Id: I8b55481be6efee867b67f807e9b40870f2b3fc2d
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:02:47 +09:00
Dongjin Kim
34b93a8184 ODROID-C3: config: add to enable Hardkernel's ODROID-C3 board
Change-Id: I374bed44b920583708ddb5ae719fdaf64fb24783
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:02:35 +09:00
Dongjin Kim
1fe29d0099 ODROID-C3: add new Hardkernel's ARMv8 based board configuration
Change-Id: I8c20c453c60698b05e3adc7160653e5996a3db9c
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:02:25 +09:00
Dongjin Kim
72602869e4 ODROID-C3: arm64/dts: remove invalid hardware, external LCD panel
Change-Id: Ib45f41e24ccd3d258d3b9bfea38a4e52d6bc7827
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:02:11 +09:00
Dongjin Kim
dbe8710b98 ODROID-N2: usb/gadget: add 'compat_ioctl(...)' for 32bit Android
Change-Id: I0ff9c0c97feb7388db8bb8ec4fb283fceb088ee7
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:01:53 +09:00
Dongjin Kim
6944c4ae46 ODROID-C3: arm64/dts: remove non-onboard components on 'i2c0'
Change-Id: I141f36c3c5b7dbaf1eaaf2d20d7a1d4ee65bf4b6
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:01:43 +09:00
Dongjin Kim
fb303002f3 ODROID-C3: arm64/dts: fix to set the model name
Change-Id: I490de55a4aae3d93940ea007ac11470cb5a641c2
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:01:24 +09:00
Dongjin Kim
da5ec008c4 ODROID-C3: arm64/dts: add system LED with 'heartbeat' trigger
Change-Id: I78e85d395975a0c4849b9f67915e3fa680d65e53
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:01:12 +09:00
Robert Richter
2141927ed9 ODROID-C3: dts, kbuild: Implement support for dtb vendor subdirs
This patch adds support of vendor sub directories for dtb files.
Subdirectories can be specified in $(dts-dirs). Kbuild traverses over
all directories while building and installing dtb files. The directory
tree is also reflected in the install path.

Change-Id: Iab8d4cf4b76f7122892e87137fd0ec60565e1db0
Tested-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 15:00:36 +09:00
Robert Richter
536ed4340f ODROID-C3: dts, arm64: Add dtbs_install make target
This adds the dtbs_install make target to arm64. The target has been
introduced already to arch/arm with the following commit:

 f4d4ffc03e kbuild: dtbs_install: new make target

Implementation for arm64 is the same as for arm.

With 'dtbs_install' all config enabled dtb files are installed to
either the INSTALL_DTBS_PATH directory or the default location:

 $INSTALL_PATH/dtbs/$KERNELRELEASE

Change-Id: I5605ea7d723e2a658f7d85177d1221b83d612bcb
Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-12-11 14:57:48 +09:00
Joy Cho
1982cc2e11 ODROID-C3: arm64: configs: add odroid-c3 defconfig and dts
Change-Id: I2630a3a3d5ce9489990276ca655f37438ffdef3b
2019-12-11 14:57:38 +09:00
renjiang.han
76de9b2a7a ppmgr: Unbound kstrdup and Potential Null Dereference. [1/1]
PD#OTT-4872

Problem:
Unbound kstrdup and Potential Null Dereference.

Solution:
Add a judgment on the return value and the null pointer.

Verify:
on u212

Change-Id: I1e493c8125e08d4a6fb9fb46f28309eba6f0e47b
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:34:44 +08:00
renjiang.han
68580b1246 ppmgr: modify first frame garbage. [1/1]
PD#SWPL-9350

Problem:
ppmgr first frame garbage for afbc.

Solution:
alloc canvas.

Verify:
on u212

Change-Id: Ifd8d865240fee07f37d8ed47b224a39f24eac3d4
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:31:57 +08:00
renjiang.han
26ca83e283 ppmgr: add compatibility with doublewrite. [1/1]
PD#SWPL-9350

Problem:
For output with compressed and uncompressed formats,
ppmgr recognizes the compressed format and returns directly.

Solution:
add compatibility with doublewrite.

Verify:
on u212

Change-Id: I9fffa720deee80b5db4ef21086c4638a630f9a80
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:29:12 +08:00
renjiang.han
1f4c27e21f ppmgr: Interlaced video only shows half. [1/1]
PD#SWPL-9350

Problem:
Interlaced video only shows half.

Solution:
Interlaced video height is divided by 2.

Verify:
on U212

Change-Id: I983e3369687eeb55f03d3e7f8474b9e37549440f
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:25:02 +08:00
renjiang.han
3c257cbf92 ppmgr: add phy_addr add support. [6/6]
PD#SWPL-9350

Problem:
ppmgr not support vf with phy_addr.

Solution:
config canvas

Verify:
on U212

Change-Id: I96629ed6287edaf4e7d7a2673ff604e99e3b12df
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:23:25 +08:00
renjiang.han
74a6fddf48 ppmgr: add keep last frame in ppmgr. [5/6]
PD#SWPL-9350

Problem:
freeze frame fail among two vertical videos switching.

Solution:
add keep last frame in ppmgr

Verify:
on U212

Change-Id: I7192c69725ce08a546af3f2252e743224ad19ec3
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:20:18 +08:00
renjiang.han
307be27f2a ppmgr: Add the value of stats_get to protect tb_task. [4/6]
PD#SWPL-9350

Problem:
Low probability of system crash when play live channel

Solution:
Increase the value of stats_get to protect tb_task.

Verify:
on U212

Change-Id: I4a13a3f7f2a4259fc8d4dd6630dd28d82a8c2541
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:13:10 +08:00
renjiang.han
598c7e0fae ppmgr: Rotate the screen after rotation. [3/6]
PD#SWPL-9350

Problem:
After the HDR video is played, play normal video,
and the display is abnormal.

Solution:
Signal_type and bitdepth need to be reassigned.

Verify:
on U212

Change-Id: Ie2acddff3be34e01062a69d48bf4e82619559fb9
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 16:09:32 +08:00
renjiang.han
27aa9062d7 ppmgr: Detection of top and bottom for interlace sources. [2/6]
PD#SWPL-9350

Problem:
HDMI connection vertical screen, 1080i signal picture jitter.

Solution:
The interlace source is extracted based on the top and bottom values.

Verify:
on U212

Change-Id: I38f91fda32d1275dcc286fbb33034b4fd099e18f
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 15:37:36 +08:00
renjiang.han
44a35c9d11 ppmgr: add vdin support 10bit. [1/6]
PD#SWPL-9350

Problem:
ppmgr does not support 10bit to cause a rotating screen.

Solution:
add vdin support 10bit.

Verify:
on U212

Change-Id: Idbe90f7e351edbc12e0e2d905f06e0cdd18da148
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 15:34:09 +08:00
renjiang.han
86ce227bc3 ppmgr: Add IS_ERR_OR_NULL to determine if the thread exists [1/1]
PD#SWPL-8658

Problem:
handle is NULL cause kernel panic.

Solution:
Add IS_ERR_OR_NULL to prevent hanle from being NULL
to cause kernel panic.

Verify:
on T962X2

Change-Id: I3086a497d99646e6475a93b5a53b3c9aca2d2ada
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 15:27:28 +08:00
renjiang.han
a8ced46329 ppmgr: The cut table caused a crash. [1/1]
PD#SWPL-6557

Problem:
The cut table caused a crash.

Solution:
modify dma flag

Verify:
on X301

Change-Id: Ic0ced1f4934d1125c56a79d1e102de9d2e02a528
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-10-30 15:15:15 +08:00
Gongwei Chen
8660584028 dts: sync w400_a form W400 [1/1]
PD#SWPL-15005

Problem:
sync w400_a form W400

Solution:
sync w400_a form W400

Verify:
Verify by Android P w400_a

Change-Id: I0ace7496f26bacac6343fd772ec2ab8c87721e76
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-10-28 19:06:40 +08:00
Luan Yuan
b36aaedd1c galilei: update g12b_w200 config for compile error.[1/1]
PD#SWPL-15005

Problem:
update g12b_w200 dts config for compile error

Solution:
update g12b_w200 dts config for compile error.

Verify:
verify by galilei.

Change-Id: Id0cffc41a9bf633dba3d1d052d28bb7a0a2e9d69
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-10-26 17:13:31 +08:00
Cheng Wang
8e9563d189 amvecm: control cm_en status [1/1]
PD#SWPL-14964

Problem:
the screen color will abnormal after open cm_en

Solution:
adjust am_en status according to chip ID

Verify:
on newton

Change-Id: I8619dc4119c4d6c7e5a2d8f2985bbd508c7f94d7
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2019-10-25 16:15:21 +08:00
Shuai Li
e5f05183b0 audio: make loopback compitable with chips [1/1]
PD#TV-8363

Problem:
Loopback doesn't work on TM2.
TL1 doesn't support loopback in OE pins.

Solution:
Make it compitable with chips.
Add tdm_lb format and chmasks.

Verify:
TM2 AB311 and TL1 X301.

Change-Id: If878fe75fc87857eae7a44439a451c5b2f494c67
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-10-24 14:28:47 +08:00
Gongwei Chen
76ba3b956e audio: no_mclk for amp [1/1]
PD#SWPL-15422

Problem:
Play video without HDMI connection, no sound output

Solution:
no_mclk for amp

Verify:
Verify by Android P w400

Change-Id: Ic95a1e28f8ccbf6e3ba4a21f7d7b329f5854ea49
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-10-24 13:50:16 +08:00
Gongwei Chen
cac66d706a audio: no_mclk for amp [1/1]
PD#SWPL-15422

Problem:
Play video without HDMI connection, no sound output

Solution:
no_mclk for amp

Verify:
Verify by Android P w400

Change-Id: Ic95a1e28f8ccbf6e3ba4a21f7d7b329f5854ea49
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-10-24 13:33:18 +08:00
Pengcheng Chen
d3e33ccdae vpp: sr software flow improvement [1/1]
PD#SWPL-13633

Problem:
sr input size need improvement

Solution:
improvement sr software flow

Verify:
verified by sm1

Change-Id: I10b9dd6d057fc8906ce312576623480aa14ae8a3
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-10-24 11:34:51 +08:00
Zongdong Jiao
e165b1bbcc hdmitx: add missing 'product_desc' in SPD infoframe [1/1]
PD#SWPL-14801

Problem:
Sharp/LCD-42GX50A TV will be black when it receives vendor_name
but without product_desc in SPD infoframe

Solution:
Add missing 'product_desc' in SPD infoframe

Verify:
G12A/U212

Change-Id: I630fa416580855883a80be2747d39887ef67ef5c
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-10-23 16:51:36 +08:00
Bencheng Jing
47d6b33ff9 vpp: dynamic adjust scaler path according to supsc0 h&v ratio [2/2]
PD#SWPL-12202

Problem:
scaler path need adjust according to supsc0 h&v ratio

Solution:
add dynamic adjust scaler path

Verify:
g12a&sm1

Change-Id: If00b4c321e24910ff7abd166d9a828dc424ab0d0
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-10-23 16:04:37 +08:00
Brian Zhu
62d79dab80 vpp: set the sr position reg correctly [1/1]
PD#SWPL-14963

Problem:
The position bits of super scaler is incorrect.

Solution:
Set the position bits correctly

Verify:
Verified on U212

Change-Id: I133662859456f65e130b8795f574da845039c717
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-10-23 14:00:36 +08:00
Brian Zhu
e60c74ffd2 vpp: sr: disable more latch ctrl for SR0 [1/1]
PD#TV-7673

Problem:
SR0 register enabled the latch function, it will cause
frame size setting out of sync when bypass sr0.

Solution:
Disable the latch option.

Verify:
Verified with X301

Change-Id: Ibfc4c5f8f695757ddd7d7d9e50e4b5be23268388
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-10-23 14:00:18 +08:00
baocheng sun
abb6df9408 ion: ion_sync_for_device use swiotlb_dma_ops not dummy_dma_ops [1/1]
PD#OTT-5276

Problem:
CTS EncodeDecodeTest failed. Ion sync ioctrl was
forwarded to a dummy implementation. So cached dma buffer
syncing between device and driver was inconsistent occasionally.

Solution:
Changed the dummy_dma_ops to swiotbl_dma_ops when ion_sync_for_device

Verify:
franklin, hertz

Change-Id: I16863bba6c3fe16b9c3b2b410ade6e45c9e74826
Signed-off-by: baocheng sun <baocheng.sun@amlogic.com>
2019-10-23 13:42:42 +08:00
Gongwei Chen
0efd978c77 tp: enble tp in w400 dts [2/2]
PD#SWPL-15292

Problem:
W400 is not touch panel

Solution:
add touch panel in w400

Verify:
verify by w400

Change-Id: Ibb4323458a2e84ba9fa84177fe6c747611277c55
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-10-17 19:45:12 +08:00
shaochan.liu
0984f6e8e4 lcd: add lcd_init_level to control lcd display [2/2]
PD#TV-9856

Problem:
need change display driver for cool boot to enter
kernel stage freeze mode

Solution:
add lcd_panel_ctrl to control lcd display

Verify:
t962x2-x301

Change-Id: I8b58ab0a0f87c49791af7dddf7b05db37f7ad716
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
2019-10-17 19:08:28 +08:00
Shaochan Liu
ff51a5a14c lcd: add lcd_ctrl bootargs for lcd driver control [2/2]
PD#SWPL-4097

Problem:
add lcd_ctrl bootargs for lcd driver control

Solution:
add lcd_ctrl bootargs for lcd driver advance control
and debug function in kernel

Verify:
verify by t962x2-r311

Change-Id: I4d741eef42505e259b54cd4f00e395d09edf7604
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
2019-10-17 19:04:43 +08:00
Luan Yuan
be3eb2fdbf Revert "lcd: 1.3.15 HS Exit compliance testing for 480p and 720p [2/2]"
This reverts commit aa2d34181f.
2019-10-17 13:35:17 +08:00
shaochan.liu
aa2d34181f lcd: 1.3.15 HS Exit compliance testing for 480p and 720p [2/2]
PD#SH-1295

Problem:
need A113D mipi HS Exit compliance testing for 480p and 720p

Solution:
1, add A113D mipi HS Exit compliance testing
2, add 480p and 720p panel setting

Verify:
A113D_s400

Change-Id: I4c95b5532782f6f083c4d61a43cc17cb8ed120b6
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-10-16 16:44:07 +08:00
Hong Guo
cef86dc78a dvfs: update cpufreq table for sm1 corner [1/1]
PD#SWPL-13264

Problem:
update cpufreq table for sm1 corner

Solution:
update cpufreq table for sm1 corner

Verify:
test pass on sm1_ac200

Change-Id: Iba08ceb00dc00994e1c383090d6ff5d9dfb91ce3
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-10-14 19:46:44 +08:00
Hong Guo
6cceb5e6fa dts: update s905x3 vddcpu pwm to 30 steps [1/1]
PD#SWPL-11792

Problem:
update s905x3 vddcpu pwm to 30 steps

Solution:
update s905x3 vddcpu pwm to 30 steps

Verify:
test pass on S905X3_AC213

Change-Id: I30bfe855e3bb0a4b0a33f6d9029a718b7de68829
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-10-14 19:30:35 +08:00
Hong Guo
d033cded44 CPUFREQ: use gp1 pll for cpufreq. [1/1]
PD#SWPL-3826

Problem:
use gp1 pll for cpufreq.

Solution:
use gp1 pll for cpufreq.

Verify:
x301_tl1

Change-Id: Iefb6d31ec40ba304f41024e4b7adceec881d043e
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-10-14 19:08:16 +08:00
Hong Guo
4d74b99e2b dvfs: update cpu clk after adjust cpufeq for g12b big core [1/1]
PD#SWPL-11796

Problem:
update cpu clk after adjust cpufeq

Solution:
update cpu clk after adjust cpufeq

Verify:
test pass on g12b_w400

Change-Id: I5e4593e4b65de5f7536ddde793d682cc67df0e64
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-10-14 19:07:45 +08:00
Hong Guo
463ea2d748 cpufreq: dynamic adjustment dsu clk with tl1 cpu clk [1/3]
PD#SWPL-2842

Problem:
dynamic adjustment dsu clk with cpu clk.

Solution:
dynamic adjustment dsu clk with cpu clk.

Verify:
tl1_x301, verify pass

Change-Id: I75f97d9e259dee2c3067e5989b3626e38cf20337
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-10-14 18:55:54 +08:00