Commit Graph

649165 Commits

Author SHA1 Message Date
Nan Li
61fb6bf299 sd: optimize sd_uart jtag pin cfg [1/1]
PD#SWPL-17140

Problem:
sd_uart jtag pin cfg error.

Solution:
modify sd_uart jtag pin dts cfgs.

Verify:
sm1

Change-Id: I66a2f147110e48d53bd2fa08ac3860426ffd1e7d
Signed-off-by: Nan Li <nan.li@amlogic.com>
2020-02-04 16:43:44 +09:00
Cao Jian
2938ec1029 dts: modify display_size_default for recovery buffer [4/4]
PD#SWPL-16902

Problem:
garbage screen for portrait panel in recovery mode

Solution:
modify display_size_default for recovery layout

Verify:
g12b-w400

Change-Id: Id42c8ed3ec824fdf00a598b25bde9c1f8383e532
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2020-02-04 16:31:54 +09:00
Cao Jian
db0d3810e3 osd: add canvas alignment for line length [1/4]
PD#SWPL-16902

Problem:
garbage screen for portrait panel in recovery mode

Solution:
add canvas alignment for line length
recovery takes it as framebuffer row_bytes

Verify:
g12b-w400

Change-Id: I9e94df3a7294fa3e388390e41eeb44e0588ec9d2
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2020-02-04 16:31:41 +09:00
Zhengrong.Zhu
b3705297a3 hdmitx: Playback HLG video color is abnormal during playing [1/1]
PD#SWPL-16374

Problem:
Playback HLG video color display is abnormal during playing

Solution:
Modify code related to color space.

Verify:
verify on the board of U212

Change-Id: Ie01ba1f9931a5e8f12bd1cfd70fd9ea752194f9b
Signed-off-by: Zhengrong Zhu <zhengrong.zhu@amlogic.com>
2020-02-04 16:31:33 +09:00
jian.zhou
a27e016c1c audio: disable spdifout play zero data function in driver [1/1]
PD#OTT-7246

Problem:
spdifout in platform probe function will cause pop sound
as we have done this at uboot stage

Solution:
disable spdifout play zero data function

Verify:
S905Y2-U221

Change-Id: I6885a200cdb909854e239bb172568ec0af503a06
Signed-off-by: jian.zhou <jian.zhou@amlogic.com>
2020-02-04 16:27:02 +09:00
Cheng Wang
7b0d2b8104 amvecm: Play part of the source lead to crash [1/1]
PD#SWPL-15906

Problem:
p212 g12a and so on no related register lead to crash.

Solution:
skip the function according chip ID.

Verify:
on P212

Change-Id: I5bcb17373365f8a07d5649a4405ea2468e103600
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2020-02-04 16:26:53 +09:00
Cao Jian
5f959c26f7 osd: modify register table update area [1/1]
PD#SWPL-16839

Problem:
display freezes and becomes slow/lags
while selecting PIP mode options in VLC app

Solution:
remove wait-vsync nearly vsync coming
use polling to avoid  long time waiting

Verify:
W400

Change-Id: I7498a68de3f6c45e0cd48aad2805f73a23adb7e6
Signed-off-by: Cao Jian <jian.cao@amlogic.com>
2020-02-04 16:26:46 +09:00
yao liu
f71527be08 DV: display black at smpte mode [2/2]
PD#SWPL-16027

Problem:
last_dst_format is wrong, it is DOVI even if on HDR TV

Solution:
Correct last_dst_format

Verify:
sm1

Change-Id: I77648ca989d3ff552cb4040d9f859d970eac7d98
Signed-off-by: yao liu <yao.liu@amlogic.com>
2020-02-04 16:22:38 +09:00
Cheng Wang
52f3fcc3c5 amvecm: fix SDR to HDR function has no effect [1/1]
PD#SWPL-16893

Problem:
The SDR to HDR function has no effect

Solution:
add sdr_mode changed judgement

Verify:
on P212

Change-Id: Ie3f03a51797f23866a6a6d1fb2c3c750741032f1
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2020-02-04 16:22:25 +09:00
Luan Yuan
76a12ae27c EMMC: default set HS200 instead of HS400. [1/1]
PD#SWPL-17426

Problem:
openlinux use HS200 instead of HS400.
it is more stability.

Solution:
openlinux use HS200 instead of HS400.

Verify:
verify by newton.

Change-Id: Iafea97a36b559c666eb440a4e7951b9fd3c64c5f
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2020-02-04 16:21:43 +09:00
Hong Guo
b6c07c0dc7 dvfs: update cpufreq tables for ac214 [1/1]
PD#SWPL-16915

Problem:
update cpufreq tables for ac214

Solution:
update cpufreq tables for ac214

Verify:
test pass on ac_214

Change-Id: I62941d8fe25d4e326fba06d1ba15a46ace3eff7c
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2020-02-04 16:17:37 +09:00
Zongdong Jiao
97b607d889 hdmitx: fix sda hold low issue [1/1]
PD#SWPL-8231

Problem:
When HDMI cable plugin, the SDA may hold low forever or for short time.

Solution:
Add sw_reset_flt reset to resolve hold low forever issue

Verify:
G12/Dongle

Change-Id: I53bbf704bb48a2cd3cc2ebef1444c69ad1623e87
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2020-02-04 13:50:39 +09:00
Luan Yuan
695cede0cc Amlogic: sync the code from mainline. [1/1]
PD#SWPL-17246

Problem:
sync the code from mainline.

Solution:
sync the code from mainline.

7c03859983c2 OSS vulnerability found in [boot.img]:[linux_kernel] (CVE-2018-12232) Risk:[] [1/1]
ba89a3d9c791 OSS vulnerability found in [boot.img]:[linux_kernel] (CVE-2019-8912) Risk:[] [1/1]
c434d0530610 Android Security Bulletin - November 2019-11 - Kernel components binder driver - CVE-2019-2214 [1/1]
ff8d9012fbd4 Android Security Bulletin - November 2019-11 - Kernel components ext4 filesystem - CVE-2019-11833 [1/1]
3c52e964495e cec: store msg after bootup from st [1/2]
94198a56ee10 lcd: support tcon vac and demura data [2/2]
1add1a008a03 vout: spi: porting lcd driver and SPI to Linux [1/1]
3e8d7b0e5f97 hdmirx: add hpd recovery logic when input clk is unstable [1/1]
f92e7ba21c62 ppmgr: Add 10bit, dolby and HDR video rotation. [1/1]
dab2cc37cd95 dvb: fix dmx2 interrupt bug [1/1]
9d31efae4a55 dv: add dv target output mode [1/1]
e86eb9d1b5c5 hdmirx: add rx phy tdr enable control [1/1]
8ea66f645bf6 dts: enable spi for gva [1/1]
baf6e74528ef drm: add drm support for tm2 [1/1]

Verify:
verify by newton

Change-Id: I9415060a4b39895b5d624117271a72fc6a1fd187
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2020-02-04 13:48:58 +09:00
Evoke Zhang
eef80c823b dts: g12a: panel: fix panel gpio config mistake [1/1]
PD#SWPL-16517

Problem:
g12a u200 panel gpio config is incorrect

Solution:
fix panel gpio config mistake

Verify:
u200

Change-Id: I6e20389a4ae356d9b44f7eefa224c7680d2e2c65
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2020-02-04 12:17:42 +09:00
renjiang.han
d9a14b5360 ppmgr: Add 10bit, dolby and HDR video rotation. [1/1]
PD#SWPL-16854

Problem:
10bit, dolby, and HDR video do not support rotation.

Solution:
Add 10bit, dolby and HDR video rotation.

Verify:
on w400

Change-Id: I8d61926939d7277f7030e0dab4ded59057b1c5e0
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2020-02-04 12:17:42 +09:00
zhiyuan.zhu
2df4f5e9ec common: Join the code to the openlinux branch [1/5]
PD#SWPL-16484

Problem:
The DTVkit code is merged into the openlinux branch

Solution:
The DTVkit code is merged into the openlinux branch

Verify:
verify by newton

Change-Id: If7348733893f0518e68bd7d74593a78b510b88e2
Signed-off-by: zhiyuan.zhu <zhiyuan.zhu@amlogic.com>
2020-02-04 12:17:42 +09:00
zhiyuan.zhu
f453255de7 common: Join the code to the November branch [6/7]
PD#SWPL-16484

Problem:
The DTVkit code is merged into the November branch

Solution:
The DTVkit code is merged into the November branch

Verify:
verify by newton

Change-Id: If9b10321078083fc9dc402175c73bd2d79225029
Signed-off-by: zhiyuan.zhu <zhiyuan.zhu@amlogic.com>
2020-02-04 12:17:42 +09:00
Pengcheng Chen
88ccbf93c0 osd: add wait_hw_vsync_viu2 [1/1]
PD#TV-7584

Problem:
osd on viu2 present timeout

Solution:
add wait_hw_vsync_viu2

Verify:
Verified on X30A1-T962X2

Change-Id: Iab80f4cef830652923e1de73eba6d87715bad855
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2020-02-04 12:17:42 +09:00
shuanglong.wang
09a58616a1 tsync: tunnel mode do not set first vpts for stream mode [1/2]
PD#SWPL-11210

Problem:
stream mode set vpts in check in pts

Solution:
tunnel mode do not set first vpts for stream mode

Verify:
verify by u212

Change-Id: Ic369b83411051a819eb65ad5d1585e26e0342f3f
Signed-off-by: shuanglong.wang <shuanglong.wang@amlogic.com>
2020-02-04 12:17:42 +09:00
Luan Yuan
ad76f09655 dts: increase i2c3 clock frequency to 300k [2/2]
PD#SWPL-13393

Problem:
demod init cost about 8s

Solution:
increase i2c3 clock frequency

Verify:
on s905x3

Change-Id: Id8c7ec326b5cfccb5ec3ea4c286b95860527082a
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2020-02-04 12:17:42 +09:00
Shuai Li
a00af0b6ad audio: mclk pad0 doesn't output clk [1/1]
PD#OTT-5603

Problem:
Configurate GPIO_AO 9 as mclk_0,it doesn't work.

Solution:
From SM1, the mclk pad register is changed.
Using standard clk tree to make it compitable.

Verify:
TM2, SM1.

Change-Id: I8d53296297536c90768495232570f33fc89db131
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2020-02-04 12:17:42 +09:00
Gongwei Chen
bf922b332f dts: ac214 add tunner DVB-S2+ISDB-T:AV2018+CXD22856+R836 [1/3]
PD#SWPL-12874

Problem:
ac214 add tunner DVB-S2+ISDB-T:AV2018+CXD22856+R836

Solution:
ac214 add tunner DVB-S2+ISDB-T:AV2018+CXD22856+R836

Verify:
Verify by Android P ac214

Change-Id: If7cd5f35b12b44a2080ff0c9d1e3d90d5d3d96a9
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2020-02-04 12:17:42 +09:00
Gongwei Chen
6a8292f1f4 dts: add ac214 [1/2]
PD#SWPL-12710

Problem:
add ac214

Solution:
add ac214 dts

Verify:
Verify by Android P ac214

Change-Id: I24890bce6506331bdb9d8dbe21e5697c334ffc3c
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>

Conflicts:
	MAINTAINERS
2020-02-04 12:17:42 +09:00
Cheng Tong
5b6e5c597d dts: increase i2c3 clock frequency to 300k [2/2]
PD#SWPL-13393

Problem:
demod init cost about 8s

Solution:
increase i2c3 clock frequency

Verify:
on s905x3

Change-Id: I6e69629f088599f2e3b36f36d4da35df4d65034a
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
2020-02-04 12:17:42 +09:00
Luan Yuan
2628cf24c7 dts: add support s805y config. [2/3]
PD#SWPL-16193

Problem:
add support s805y config.

Solution:
add support s805y config.

Verify:
verify by anning.

Change-Id: I2bbf2d72ca694e847078b3b4e3e439759840fcc3
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2020-02-04 12:17:42 +09:00
Tao Zeng
f35f013da4 mm: fix crash in vmap stack [1/1]
PD#SWPL-12145

Problem:
When switch IRQ stack, there is a 16 bytes miss match of irq
stack. This may cause context not match some times;

Solution:
Save sp to right place

Verify:
X301

Change-Id: I75dfa5208cb3cec050c1568ac78ae2e783ca106b
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-02-04 12:17:42 +09:00
Tao Zeng
256d948c1d kasan: fix pc crash if open kasan with vmap stack [1/1]
PD#SWPL-10141

Problem:
If open KASAN, connect wifi, and auto-start apk dianshijia, it will
soon crash as:
[ 56.655524@2] Unable to handle kernel NULL pointer dereference
               at virtual address 00000050
[ 56.658155@2] pgd = d0104000
[ 56.661008@2] [00000050] *pgd=00000000
[ 56.664744@2] Internal error: Oops: 80000005 1 PREEMPT SMP ARM
               common(O) firmware(O) media_clock(O) tb_detect(O)
               dnlp_alg ldim_alg mxl661_fe_32(O)
[ 56.709028@2] CPU: 2 PID: 4930 Comm: kworker/u9:3 Tainted: O 4.9.113 #1
[ 56.716908@2] Hardware name: Generic DT based system
[ 56.721858@2] task: f2632bc0 task.stack: c2010000
[ 56.726530@2] PC is at 0x50
[ 56.729301@2] LR is at 0x0

Solution:
Fix wrong pmd check address

Verify:
TL1 X301

Change-Id: I85e01418789801e0ef7691a9d8963c233e115b28
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-02-04 12:17:42 +09:00
Luke Go
0f0317ba0c android: media: osd: The zoom related problem fix.
- In android, zoom in/out feature cause osd's free scale adjust problem.
  So I separate the resolution table to adjust free scale mode.
  I Limited applying free scale handling logic from 1920x1200. The free
  scale handling will applied above 1920x1200 resolutions.

Change-Id: I00edf256ca9de16cb8fcbf987ee6dd75dec28a81
Signed-off-by: Luke Go <sangch.go@gmail.com>
2020-02-04 12:17:42 +09:00
Joy Cho
df6070a050 ODROID-N2: vout: hdmi: Add hpd control
Change-Id: Iebf0bf99dbdf7630dc972bba31a770fb1c7cd823
(cherry picked from commit ef4bb25aa5)
2020-02-04 12:17:42 +09:00
Chris KIM
22238af31a Revert "dts: add video11 and video12 for screencontrol [2/6]"
This reverts commit e7c5b28ea3.

Change-Id: I0a5856da1324b73998c81303c3996c702426b4dc
2020-02-03 17:37:27 +09:00
Joy Cho
8f241b68b6 media: osd: Limit android fb size to 1920x1080
On Android, higher framebuffer over 1920x1080
will be limited to 1920x1080 except 2560x1080
and osd driver needs to scale the size
to fit in actual hdmi output resolution.

Change-Id: I7ea24fb3f3d162b87a8a5b43af70d9ca7e5442fc
2020-02-03 17:37:27 +09:00
Joy Cho
464de8e282 media: osd: Adjust osd scaler setting to fix osd shift issue
Change-Id: I5987a49de58db8e40cd7a21475353ecde34512c1
2020-02-03 17:37:27 +09:00
Joy Cho
28a9e2e70c ODROID-N2: dts: Fix opp voltage values of cpu_opp_table
Change-Id: I07ef3ec6ae98e6e76ab920b043e57d5ad9f18616
2020-01-07 10:59:23 +09:00
Joy Cho
01703ed598 ODROID-N2: configs: Add AMLOGIC CPU frequency driver
Change-Id: I728ddc04040c686c5222c958b824a6673d5de21a
2020-01-07 10:59:23 +09:00
Joy Cho
770b747e76 cpufreq: meson-cpufreq: Fix errors
Change-Id: I8e17e8053451245d371006527f082a067af1439f
2020-01-07 10:59:23 +09:00
afl1
2650086cb3 sound/soc/auge: fix clock for DD+
Change-Id: Ibc3f7e27152f196440698a57bcef81506edc9ffb
2020-01-07 10:59:23 +09:00
afl1
6b4f23b79d sound/soc/auge: fix HD audio passthrough
Change-Id: Ied7699c596d97803f5d4e01749e514502e47b965
2020-01-07 10:59:23 +09:00
Kevin Kim
4863522d51 pwm: gpio: Add a generic gpio based PWM driver
From: Olliver Schinagl <oliver@schinagl.nl>

This patch adds a bit-banging gpio PWM driver. It makes use of hrtimers,
to allow nano-second resolution, though it obviously strongly depends on
the switching speed of the gpio pins, hrtimer and system load.

Each pwm node can have 1 or more "pwm-gpio" entries, which will be
treated as pwm's as part of a pwm chip.

Change-Id: Idd42bf6d79f8ce52275a15965b02af470f28da7c
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2020-01-07 10:59:23 +09:00
Kevin.Kim
7a0aa6f1f3 ODROID-N2:Support hdmitx audio pass-through
Change-Id: I8435a4294740dc0087881f365ed9c63ae01984fc
2020-01-07 10:59:23 +09:00
Kevin Kim
2bf686f60d ODROID-COMMON:Add Mixer control for LINE-OUT Mute
Mute : tinymix -D 0 199 1
Unmute : tinymix -D 0 199 0
Boot on state : unmute

Change-Id: If899ea5607cbef8b62fb35b66c79089beb192d1a
2020-01-07 10:59:23 +09:00
Kevin Kim
6ac75c4379 ODROID-COMMON:Removed HS400
Change-Id: Ic2082a938ff2966f74717796e3d52a4546fef0e6
2020-01-07 10:59:23 +09:00
Kevin Kim
5d66c94ad1 ODROID-COMMON:Modify hdmi audio source to be selectable
Change-Id: Ifcf533c157ac1b461100ac38fc1b87781d70a739
2020-01-07 10:59:23 +09:00
Joy Cho
8d4ac81601 ODROID: media: hdmi: add switching vout mode logic (dvi/hdmi)
ex)
setenv bootargs ${bootargs} voutmode=hdmi
setenv bootargs ${bootargs} voutmode=dvi

Change-Id: I2fd6cdafa6ae7dff7a7297982add66b038f3ae40
2020-01-07 10:59:23 +09:00
Joy Cho
d4efd8c098 ODROID-N2: hdmitx: add hdmi phy custombuilt mode
Change-Id: I2ee9c9eccda7d54e6a801ed6b90039deb3c3fc75
(cherry picked from commit 75a95d6280)
2020-01-07 10:59:22 +09:00
Chris KIM
b2db180811 ODROID: media: hdmitx: add new hdmi resolutions
Change-Id: Idf6a74dcb73c3c6a03fb2cdf41219a2acfb31ccb
2020-01-07 10:59:22 +09:00
Joy Cho
e6ca16d999 vout: vout_serve: Set default vmode and initial state
Change-Id: I29d62c0cefcbd961605d4a63cf9fd47d2932a37e
2020-01-07 10:59:22 +09:00
Luke Go
394a4550a4 ODROID: bt: Bugfix.
- power_low_level value is not applied correctly.

Change-Id: Id98d8e819e0502f7ec2ae27f972a926ac7c855d2
Signed-off-by: Luke Go <sangch.go@gmail.com>
2019-12-31 14:48:03 +09:00
Chris KIM
87c3291554 ODROID-N2: Update missing features.
Change-Id: I7fde0dbb9fad498976af73266444e4e880e7c950
2019-12-12 15:09:31 +09:00
Luke Go
8d24f02652 arm64/dts: android: fstab: add product partition and remove vmeta.
Change-Id: I4d28a4e82959f04f39f6fec141355f3d99940b81
2019-12-12 15:09:31 +09:00
Luke Go
ec38cf85c2 hdmi-cec: Apply stream path power on flag on hdmi-cec feature.
Change-Id: Id1bb59774fa3758ce7d8b0231a911915ce6b6d04
2019-12-12 12:26:08 +09:00