Commit Graph

645527 Commits

Author SHA1 Message Date
tao zeng
0c2c8fb684 ddr: fix wrong bandwidth result on g12 platform
PD#161475: ddr: fix wrong bandwidth result on g12 platform

Correct function name get_ddr_freq to get_dmc_freq in order
to avoid misunderstanding.

Change-Id: I9000970f100394cf63468149d431d05ece2aaa1d
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2018-05-08 23:38:14 -07:00
Hong Guo
922fb52799 arm64: dts: g12a: dvfs voltage duty modify.
PD#165143: cpufreq: dvfs voltage duty modify for 0.731mv.

Change-Id: I85370ea18b68eb3b37636629a9e0da8b26491f83
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2018-05-08 22:21:26 -07:00
Jian Hu
16a0d05225 pwm: optimizing pwm duty calculation
PD#165143: pwm: optimizing pwm duty calculation

1.Fix duty equal 0% and 100% duty count incorrect
2.Change period unit to ps to increase accuracy

Change-Id: Ied478f21ac4b4f9f3d1508d69dfbcdbb9ca4e732
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2018-05-08 18:45:58 -07:00
Nan Li
7ed184dc94 sd: add sd_uart to g12a.
PD#165584: add sd_uart on g12a.
test on u211.

Change-Id: Ia8e5cde6c60b3019329324445593d82cf2543afe
Signed-off-by: Nan Li <nan.li@amlogic.com>
2018-05-08 04:53:18 -07:00
Zongdong Jiao
6a927947f8 hdmitx: set frac_rate_policy as 1.[1/2]
PD#165862: hdmitx: set frac_rate_policy as 1
For most video/films or NTSC, they are 23.976/29.97/59.94fps, so
hdmitx should adjust set frac_rate_policy as 1.

Change-Id: I9671935c5121634d1af6879d8ccd91eb4f92c9cb
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2018-05-08 04:46:44 -07:00
manhao liang
b3aeeb5e81 dtv_mode: R311 add tuner mxl661
PD#165368: dtv_mode: R311 add tuner mxl661

Change-Id: Ifbc3ffece7d30d29e295f3e70c37d9d25ee0ac69
Signed-off-by: manhao liang <manhao.liang@amlogic.com>
2018-05-08 04:34:46 -07:00
Nan Li
dd85726020 sd: sd & wifi TDMA crash.
PD#164804: when system run with SD card in,
system will be crashed. rm post_dma() crash error.

Change-Id: I99c10fcbf151a4c349bf6b0584056cd9080349e8
Signed-off-by: Nan Li <nan.li@amlogic.com>
2018-05-08 00:50:49 -07:00
Zhuo Wang
1e1290ae25 ethernet: add delay after reset phy
PD#165891: can't readout phyid when bootup

Change-Id: I775f4fe9b8c4b2e76475f239e75539ecbe2bf843
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2018-05-08 00:39:02 -07:00
Brian Zhu
3b2697b90f vpp: use correct width to select the min skip ratio
PD#165601: vpp: use correct width to select the min skip ratio

Change-Id: Idcf9ff250c4d6af089dd2b8a25285b81c849a78a
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2018-05-07 07:06:52 -07:00
nengwen.chen
cdd5f6af3b atv_demod: Modify atv demod to adapter tuner
PD#165368: atv_demod: Modify atv demod to adapter tuner

Change-Id: Ifa69db980dfe9519c80932d22dffbb1fb6600fc9
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2018-05-07 02:53:03 -07:00
Yi Zeng
66a28439a4 mtd: add new slc nand type
PD#165148: mtd: add new slc nand type

add the MFR id, flash id and factory bad block
management of Dosilicon & ATO into our code.

Change-Id: If00e026460c6c3f5d354832bef9ba95a0733fdf3
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
2018-05-07 01:32:16 -07:00
Hui Zhang
0d07e6ac1b video_keeper: fixed greenscreen bug
PD#155455: fixed green screen bug

Change-Id: Idbb2ae30b1bd88d1782ff47b485e0cbf476641d0
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
2018-05-06 22:36:21 -07:00
Xing Wang
6de6b29305 dts: audio: disable dac for u211
PD#165585: dts: audio: disable dac for u211

Change-Id: I290cc1445e30c5b7de2003f579751d0cf6ce291f
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2018-05-06 22:32:47 -07:00
Weiming Liu
1d665546a7 lcd_extern: add mipi default driver [2/2]
PD#164036: lcd_extern: add mipi default driver

Change-Id: Id120299c2434a3cce9b154064cd0c7e5dd0bbe8e
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
2018-05-06 22:31:42 -07:00
Chuangcheng Peng
67d51ac6ae demux: add demux irq for txlx
PD#165368: add demux irq for txlx

Change-Id: I165a524cd5e161b22ee21318d9379bb139622e2f
Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
2018-05-07 11:29:25 +08:00
Jihong Sui
f645e84376 dtv_demod: add dtv demod for txlx
PD#165005: dtv_demod: add dtv demod for txlx

Change-Id: I311fea46351644902a5e886be4623601e21ec6ac
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2018-05-04 03:37:40 -07:00
Bang Peng
e5f9ab37c8 mm: fixed tvp alloc failed
PD#159668: fixed tvp alloc failed

[<ffffff80091c38a0>] shrink_inactive_list+0x578/0x584
[<ffffff80091c42c4>] shrink_node_memcg.isra.71+0x6a4/0x734
[<ffffff80091c43c8>] shrink_node+0x74/0x1e0
[<ffffff80091c46f0>] try_to_free_pages+0x1bc/0x4c0
[<ffffff80091b3f10>] __alloc_pages_nodemask+0x5a8/0xd0c
[<ffffff8009983898>] get_migrate_page+0x2c/0x34
[<ffffff8009203c84>] migrate_pages+0xe0/0x890
[<ffffff8009983548>] aml_alloc_contig_migrate_range+0x98/0x150
[<ffffff8009983788>] cma_boost_work_func+0x188/0x26c
[<ffffff80090c53e8>] kthread+0x10c/0x120
[<ffffff80090836e0>] ret_from_fork+0x10/0x30

Change-Id: Iada340b48dcb2ba2ebf7570a15cec21553fd0d0a
Signed-off-by: Bang Peng <bang.peng@amlogic.com>
2018-05-04 03:30:00 -07:00
Yi Zhou
065822467b hdmitx: fix frac_rate flag changed when setting mode
PD#165548: hdmitx: fix frac_rate flag changed when setting mode

Change-Id: Ie6d96ec6c7f58d17f02e241aa0aa122c7db1c0a2
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2018-05-04 01:10:49 -07:00
Nan Li
c36c75aacb sd: open the macro of sd_uart func.
PD#165593: open the macro of sd_uart func.

Change-Id: Icf7c4c2faf7297a1da0bda47b4c648bb49faac2a
Signed-off-by: Nan Li <nan.li@amlogic.com>
2018-05-03 20:09:03 -07:00
bichao.zheng
8dd460189d dts: g12a: add system led control for u200 [2/2]
PD#165027: gpio-led: g12a_s905d2_u200 add system led

1.Turns on green light when booting and resume.
2.Turns off green light,turns on red light when suspend and shutdown

Change-Id: I170b4745b320a5525fe128c025f2670103950922
Signed-off-by: bichao.zheng <bichao.zheng@amlogic.com>
2018-05-03 19:20:02 -07:00
Hui Zhang
dd68fe9b52 video_keeper: fixed unexpected green screen when seek
PD#162351:
	when start to toggle frame, the disable video cmd is set,
and seek immediately, play will be quit before enable video,
so keep failed and cur_dispbuf is uncertain, it may cause
unexpected green screen after seek

Change-Id: I62526b3dda0256d7a9476d378a13baffb4785bd6
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
2018-05-03 04:34:23 -07:00
Hui Zhang
15549c90b6 codec_mm: fixed scatter cached bug
PD#159652: it may occur in tvp mode, no tvp may a lost less.
	some free slot not insert free list after first alloc.
	this leads to a lot of wasted memory

Change-Id: Ia62d7f661ee5bc1563cac0980da604e5d8356113
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
2018-05-03 17:44:14 +08:00
zhilei.wu
ab93cf4997 dv: maintain previous md when md parser error to fix red screen
PD#157814: dv: maintain previous md when md parser error to fix red screen

Change-Id: Ie1b0c556ae65d275fdbd074356f633485bc5217a
Signed-off-by: zhilei.wu <zhilei.wu@amlogic.com>
2018-05-03 02:16:17 -07:00
Nan Li
565504efbc emmc: modify emmc shutdown time too long
PD#164859: modify emmc shutdown time too long.
Kingston EMMC08G-T227 POWER_OFF_LONG_TIME is 0xff,
shutdown time is too long.
modify mmc_delay 0 when POWER_OFF_LONG_TIME is 0xff.

Change-Id: Ie85be335a77d9ec82a12158996c2c773d113c41f
Signed-off-by: Nan Li <nan.li@amlogic.com>
2018-05-03 01:59:55 -07:00
zhilei.wu
07d8ca719e dv: below 720p was chaged to HDR10 mode in Dolby
PD#163239: dv: below 720p was changed to HDR10 in Dolby

Change-Id: Ie6cedbc03582e4b36b6d3a8c628bbf41001862c2
Signed-off-by: zhilei.wu <zhilei.wu@amlogic.com>
2018-05-02 23:57:14 -07:00
Brian Zhu
f2653f4294 vpp: adjust dmc for every YUV444 frame
PD#165450: vpp: adjust dmc for every YUV444 frame

Change-Id: I07da12c337b2ba5b8af3b9d5c17e6a9ba080f83e
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2018-05-02 21:38:28 -07:00
nengwen.chen
3aab13f88d atv_demod: Modify atv io ctrl and memory alloc for atv crash.
PD#165008: Modify atv io ctrl and memory alloc for atv crash.

Change-Id: Ib6aa737ffad5d155022ad276ecf16ce2a7537138
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2018-05-02 19:46:06 -07:00
Xingyu Chen
a7169fd161 dts: disable saradc feature for u221
PD#165535: dts: disable saradc feature for u221

Change-Id: I442690cfdae5c1964bcef3cfb7810421cfc77d01
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2018-05-02 17:36:27 +08:00
Yue Wang
03a15dd78b pcie: disable pcie feature in u221.
PD#165524: pcie: disable pcie feature in u211.

Change-Id: I7fd8108a167a745622b0b4d0582ca25caf3f0286
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2018-05-02 17:01:20 +08:00
Yonghui Yu
a1015e7b4c emmc: using rx delay to avoid invalid tuning
PD#165303: emmc: using rx delay to avoid invalid tuning

When emmc work at hs200@200Mhz, tuning result using fixed
adj mode may got a full window. The tuning result contains
invalid point. we have to adjust rx-delay to avoid it.

Change-Id: I33c5e234fe0f480180b0c9312641ba7a0a4e9cfb
Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com>
2018-04-28 02:24:09 -07:00
yicheng shen
fc307b359a vdin: add force_color_range control[1/2]
PD#165178: vdin: add force_color_range control[1/2]

Change-Id: I5f8a94ed0416867841bc8d1c744e176cced64fc6
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2018-04-28 02:23:07 -07:00
wenbiao zhang
11eadad3a7 dts: update q200/p241 buildroot dts
PD#160248: dts: update q200/p241 buildroot dts

Change-Id: Ice6038373877ad2911e45a21888beed5a2f2f604
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
2018-04-28 00:00:23 -07:00
pengcheng chen
287c5c111a osd: fix buildroot compile error issue
PD#163270: osd: fix buildroot compile error issue

Change-Id: I4745a302bc78a714a3f1cba464f4cfac86309378
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
2018-04-27 23:30:27 -07:00
Yi Zhou
6db36ed854 hdmitx: add drm flag in hdmitx driver
PD#165128: hdmitx: add drm flag in hdmitx driver

Change-Id: I56e4dc7ecf88a7ec330665d9dcff9744eac3d701
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2018-04-27 22:17:20 -07:00
yicheng shen
8adcc4775c hdmirx: fix no HDR effect issue when the box is playing HDR videos
PD#164596: hdmirx: fix no HDR effect issue when the box is playing HDR videos

The previous irq_handle logic may miss some interrupts with a low probability.

Change-Id: I6ff1d8d9e25abc5b36dd60b7a479cab7700458ee
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2018-04-27 21:51:02 -07:00
Dezhi Kong
5173584cb2 di: mark di debug info default
PD#164230: di; mark di debug info default

Change-Id: Ib09afe967167f5974540232870e9c19e6c065bfb
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2018-04-27 21:50:05 -07:00
Evoke Zhang
1de4379a85 r311: lcd: modify lvds panel backlight pwm polarity
PD#163711: r311: modify lvds panel backlight pwm polarity

Change-Id: Iaa9211554957cb0bed0794561192cc9e960d378c
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-04-27 20:20:53 -07:00
Weiming Liu
484d55f899 ldim: add iw7027 driver
PD#164701: ldim: add iw7027 driver

Change-Id: I75dd8e802b2eecf2d3d9d2f32935721f1a1bb285
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
2018-04-27 05:42:35 -07:00
Dezhi Kong
aeaa1174bd sr: fix calc issue
PD#159391: sr: fix calc issue

Change-Id: I4c52efe4fb09fd3b2516e8e46cef793a19a4003d
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2018-04-27 04:49:09 -07:00
kele bai
bd04d89909 di: fix pre timeout issue for pq load
PD#165280: di: fix timeout issue for pq load

1) freerun pre clock
2) skip ctrl&enable regsiters loaded from pq db

Change-Id: If9a5c7923195b29f7cef0cb97aaa2cc4c2533ff2
Signed-off-by: kele bai <kele.bai@amlogic.com>
2018-04-27 03:31:21 -07:00
pengcheng chen
aac9863355 dts: q201: fix osd driver probe fail issue
PD#163270: osd: fix q201 osd driver probe fail issue

Change-Id: I41276e09367079bafdbfedaea41cf8484815ac33
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
2018-04-27 03:26:34 -07:00
Long Yu
6fa50ed517 emmc: DS shift picked the wrong window middle point
PD#165086: emmc: DS shift picked the wrong window middle point

Change-Id: If96b854b4e9669426351ba89d36e2d2a7dcf6be4
Signed-off-by: Long Yu <long.yu@amlogic.com>
2018-04-27 02:35:43 -07:00
Evoke Zhang
de3cb02ece lcd: correct CONFIG_AMLOGIC_UNIFYKEY for lcd unifykey usage [5/5]
PD#163711: lcd: correct CONFIG_AMLOGIC_UNIFYKEY for lcd unifykey usage

Change-Id: I235bada07a7082e5315fb4e48c30a34c11145f40
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2018-04-27 02:11:49 -07:00
jiamin ma
7771f2cbe3 unifykey: add helper API so we can call unifykey APIs from drivers [4/5]
PD#165222: crash if call unifykey APIs from other drivers

example to call unifykey APIs from kernel space:

  ret = key_unify_query(get_ukdev(), key_name, &key_exist, &keypermit);

Change-Id: I2e7f6cdad21c9faa4d95d0536b187ece485a5b46
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
2018-04-27 02:10:10 -07:00
pengcheng chen
9a016e699d osd: add osd support hwc interface
PD#163270: osd: add osd support hwc interface

Change-Id: I17854518b63b0ecb6c13a4550364b6ede02fdb8d
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
2018-04-27 01:52:57 -07:00
Dezhi Kong
b45899887d vpp: fix vskip line calc issue
PD#164045: vpp: fix vskip line calc issue

Change-Id: I9ff41cac9220bae9f521987d4716e462b28c5fff
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2018-04-27 01:39:40 -07:00
kele bai
9521390c55 di: fix hardlock issue
PD#157641: di: fix hardlock issue

1) add protection for di vf get
2) add missing irq restore

Change-Id: I8e0cfce609b04564279a90109851f8e2859b1651
Signed-off-by: kele bai <kele.bai@amlogic.com>
2018-04-26 23:00:36 -07:00
Matthew Shyu
fc54bf7139 dts: Enable dm-verity on system and vendor [2/3]
PD#164354: Enable dm-verity on system and vendor partition for
partition_mbox_normal.dtsi

Change-Id: Ia6b7d89de5d03734cd76425415776fd32dc9598a
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
2018-04-26 19:44:37 -07:00
Hui Zhang
83f3b93426 kernel: add s805 package define
PD#163927: add a interlace to get s805x package

Change-Id: I7ff61a52e24215aae557c12fcffea783abceac2c
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
2018-04-26 04:19:22 -07:00
rongrong zhou
2f22a9bc74 media: fix crash in viu_set_dcu
PD#164288: 1. add check in viu_set_dcu.
2. do not clear cur_dispbuf in irq & unreg

Unable to handle kernel NULL pointer dereference at virtual address
 0000000c
task: ffffff800a688900 task.stack: ffffff800a670000
PC is at vsync_isr+0x2c20/0x51e0
LR is at vsync_isr+0x2c04/0x51e0
[<ffffff80098398cc>] vsync_isr+0x2c20/0x51e0
[<ffffff80091072bc>] __handle_irq_event_percpu+0x68/0x23c
[<ffffff80091074d0>] handle_irq_event_percpu+0x40/0x94
[<ffffff8009107570>] handle_irq_event+0x4c/0x7c
[<ffffff800910b66c>] handle_fasteoi_irq+0xd4/0x1a4
[<ffffff8009106268>] generic_handle_irq+0x34/0x4c
[<ffffff8009106974>] __handle_domain_irq+0x90/0xf8
[<ffffff80090815f4>] gic_handle_irq+0x5c/0xa8

Change-Id: I871bf078c25cbb92889d592ee7cb88cea62f089c
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
2018-04-26 03:49:39 -07:00