Commit Graph

643585 Commits

Author SHA1 Message Date
Jiamin Ma
df1d0cddf7 defect: driver defect cleanup
PD#163273: driver defect cleanup

435
477
478
479
480
482
485
486
487
488
555
573
594
617
648
650
678
855

Change-Id: Ifb2d89576e4cbb77449732d79f688c970bb0dca1
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2018-04-03 17:37:41 -08:00
Dezhi Kong
ba3e7b9198 di: optimize di buf optimization
PD#161171: optimize di buf optimization

1.optimize di buf queue operation
2.add di task semaphone check

Change-Id: Ia60d1ebd57d839fb1783b1257d82300469038415
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2018-04-02 23:07:39 -08:00
xianjun.liu
abc9e9e868 emmc: fix coverity question in kernel_4.9
PD#163327: emmc: fix coverity question in kernel_4.9

coverity id: #698 #729 #546 #456 #446 #531 #862
Change-Id: Iac65949972de4ce5388730a703432f8213af2f69
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
2018-04-02 20:37:19 -08:00
Long Yu
8ba4becb1e sdio: Adjust the location of the GXL best sampling point
PD#160789: sdio: optimizing the selection of sdio tuning sampling points

[problem] When all sampling points can be sampled correctly,

select 0 points as the best sampling point.M8 platform is normal,

but some S905 platform is not suitable.

[resolved] The GXL platfoarm selects the intermediate

point of all sampling points as the best sampling point

Change-Id: I59097daa8fe3d99f2f11a3e1347945c8eea4e1c9
Signed-off-by: Long Yu <long.yu@amlogic.com>
2018-04-02 19:17:48 -08:00
Chao Liu
9b43aa868f dts: add the attestationkeybox of unifykey[1/3]
PD#162644: Attestation key burn tool development

Change-Id: I53903436560957026b8dc1ab4b72c48b4b160399
Signed-off-by: Chao Liu <chao.liu@amlogic.com>
2018-04-01 21:46:16 -08:00
Qi Duan
37a06b2867 usb: compliance test partner
PD#163486: usb: compliance test parnter

Change-Id: If4f82e9a131af59187fed7df39b12630cb8db0f8
Signed-off-by: Qi Duan <qi.duan@amlogic.com>
2018-04-01 21:43:28 -08:00
kele bai
37b2212c07 di vpp: merge vskip condition from 3.14
PD#162624: di,vpp: merge vskip condition from 3.14

Change-Id: I2749a35758df814d4bf28806f7a9745801a0afbe
Signed-off-by: kele bai <kele.bai@amlogic.com>
2018-04-01 19:26:39 -08:00
Qiufang Dai
9abac91e33 clk: low clk mux printk message
PD#163212: clk: low clk mux printk message

make the printk message at debug level

Change-Id: Id7e7864755be4f8809e5c44d5eeea2f6a7c4b5c3
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
2018-04-02 10:29:12 +08:00
tao zeng
684f754f95 ddr: add driver for ddr bandwidth measure
PD#161475: ddr : add driver for ddr bandwidth measure

1. change dtsi for related chips;
2. porting driver for each dmc contoller;
3. export sysfs for debug and upper layer.

Change-Id: Iaac6ac671bae26d9bff9c7a480ef44e2b0912b3c
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2018-04-01 17:46:47 -08:00
yicheng shen
2dc6c2c455 hdmirx: fix Coverity errors
PD#163391: hdmirx: fix Coverity errors
#629
#633~640
#643
#587
#691~692
#715
#721
#757~759
#761
#601
#861

Change-Id: I088bc5f13bcad837e26d6216363063cad2ac497c
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2018-03-30 01:09:30 -08:00
Yi Zhou
36e16a4502 hdmitx: add prbs debug function
PD#163020: hdmitx: add prbs debug function

method(in kernel):
echo 444,8bit > /sys/class/amhdmitx/amhdmitx0/attr
echo 1080p60hz > /sys/class/display/mode
echo prbs > /sys/class/amhdmitx/amhdmitx0/debug

Change-Id: I07fe69166383105ec3df74fc7df24b95b1a3ab84
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2018-03-29 23:49:34 -08:00
Yi Zhou
2d0bb370d0 hdmitx: clean up deadcode
PD#163222: hdmitx: clean up deadcode

 #457
 #491~530
 #579
 #608
 #610
 #624~642
 #842~843

Change-Id: I939566450c2c18ade53d4d7e6a264dccc4982872
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2018-03-29 23:48:44 -08:00
hongmin hua
659be832df cec: add the control of arc line[1/2]
PD#159184: cec: add the control of arc line

add audio control interface for switch

Change-Id: I7981451c449435e5974c8321d99fc6c31e66f957
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2018-03-29 23:09:28 -08:00
Tong Li
8ab76fbd25 g12a_s905d2_skt: set the spicc1 disabled.[1/1]
PD#NONE:set the spicc1 disabled.

Change-Id: Ide96ade1278475d80548e87fa94361308ce7d2ba
Signed-off-by: Tong Li <tong.li@amlogic.com>
2018-03-29 22:03:04 -08:00
Xing Wang
fbb40bb539 audio: auge: fix oe pin setting
PD#162710: audio: auge: fix oe pin setting

Change-Id: Ia3a19b1887a60653a1b1bd13018808496ce6f595
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2018-03-29 21:45:50 -08:00
Xing Wang
8db438cca0 audio: auge: share buffer only for playback
PD#162769: audio: auge: share buffer only for playback

Change-Id: I5313a52ef493ee699a173370a82657bf27a43008
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2018-03-29 20:20:03 -08:00
Bencheng Jing
8b943141f8 amvecm: optimize gamma table write
PD#163289: amvecm: optimize gamma table write

Change-Id: I2e97b37084c78a0dfb7109c4aeef8898c2bf94c6
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2018-03-29 19:09:23 -08:00
Huan Biao
045ac549f6 dts: cooldev: enable gpu cooling devices.
PD#160967: dts: cooldev: enable g12a gpu cooling devices.

Change-Id: Ib04b1e835bdafe939015e4d085a3c76919d4a9fe
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2018-03-29 18:59:19 -08:00
Lei Qian
a66dcc8edf dts: add txlx_t962x_r311_720p.dts
PD#163339: dts: add txlx_t962x_r311_720p.dts

Change-Id: I007acf0b662b3dbcb8aad20c80bc968659a8f65f
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2018-03-29 18:58:45 -08:00
Huan Biao
273e388e67 cooldev: add gpu cooldev api set for mali ko.
PD#160967: cooldev: add g12a gpu cooldev api.

Change-Id: I5825afcdb22cebae885a373063b6ce9f4c6a9a7a
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2018-03-29 18:14:54 -08:00
wenbiao zhang
618aae0747 u200: set fb mem_alloc flag for mali test
PD#162862: u200: set fb mem_alloc flag for mali test

Change-Id: I129bf5cfb94f957a020cd957b85a1842321df0e0
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
2018-03-28 22:57:03 -08:00
Weiming Liu
07f48e93ac lcd: sync linux3.14 lcd driver
PD#163027: lcd: synchronous lcd driver from linux3.14

1.add the frame rate adaptive to each panel control alone

2.optimize vx1 phy large vswing

3.perfect the unifykey read way to improve efficiency

4.add i2c_pinmux for power sequence

Change-Id: I548591a5f54a9080e2d721b3b944d5bc511728cc
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
2018-03-28 22:41:31 -08:00
Brian Zhu
965bc34532 stb_dv: fix the dv dual layer playing out-sync
PD#163116:
	1. vfm: increase the receiver size from 16 to 32
	2. vpp: put el vframe toggle when omx dropping frame

Change-Id: Iecb0686e08a0bfb66ef259ea5fc32333fbbbd3e4
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2018-03-28 22:28:56 -08:00
Yi Zhou
199636b244 hdmitx: fix the zigzag problem in color depth mode
PD#160883: hdmitx: fix the zigzag problem in color depth mode

When reset HDMITX_DWC_MC_SWRSTZREQ directly, these pulses may not align.
Therefore, the following steps must be executed.

steps
1.disable video encoder output and controller clocks
2.reset HDMITX_DWC_MC_SWRSTZREQ
3.enable video encoder output and controller clocks

Change-Id: I6cebc299d0a61da878d7c87a131d06f2601b2989
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
2018-03-28 21:45:32 -08:00
wenbiao zhang
2482566150 ethernet: fix for ifconfig eth0 down error
PD#163006: ethernet: fix for ifconfig eth0 down error

Change-Id: I48bfbc8fe9b824269009c8d673cd097ccb85a5e4
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
2018-03-28 17:11:56 +08:00
Nanxin Qin
d494585914 media: fixes an issue that playback audio cause crash.
PD#161244: modify the short address of aiu fifo regs to match g12a.

Change-Id: Idfe935c1710d5a0f091a7796138a56f78fdfe7b4
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2018-03-27 23:44:46 -08:00
zhilei.wu
615f9964c8 ge2d: disable src2 alpha with notsupport src2_alp
PD#162344: ge2d: disable src2 alpha with notsupport src2_alp

Change-Id: I049568f57c328ed6128e95ee83c6974226c36544
Signed-off-by: zhilei.wu <zhilei.wu@amlogic.com>
2018-03-28 14:59:41 +08:00
Jiacheng Mei
5ea879e6aa dts: enable node amvenc_avc for encoder[1/2]
PD#162608: enable node amvenc_avc for encoder

Change-Id: If66e4d04b3803b22c638f38958f96db157c2ef14
Signed-off-by: Jiacheng Mei <jiacheng.mei@amlogic.com>
2018-03-28 11:19:54 +08:00
Xingyu Chen
3fcf2b78e4 pinctrl: keep the same GPIO ID after adding GPIOV_0 for G12A
PD#163124: pinctrl: keep the same GPIO ID after adding GPIOV_0 for G12A

Change-Id: I45b99df3a15e2bf0f7ad34ae8705dc4a509c70a1
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2018-03-27 04:22:54 -08:00
yu.fang
ae1d0b86a4 DTS: partitions: change axg partitions for bringup android O
PD#158937: A113 Android O trunk bring up.

Change-Id: Ibdb605b5c17abe8165270621e6893ea1d2ab88ef
Signed-off-by: Yu Fang <yu.fang@amlogic.com>
Signed-off-by: yuehu mi <yuehu.mi@amlogic.com>
2018-03-27 00:32:12 -08:00
Xingyu Chen
ffa4aa65ca pinctrl: improve the eth groups for gxl
PD#163038: pinctrl: improve the eth groups for gxl

add "eth_link_led" and "eth_act_led" pin groups to eth function group

Change-Id: I28f434f100be7636ddbc9a5159418d6efb7f027a
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2018-03-27 16:18:21 +08:00
Sunny Luo
22587c5484 spicc: support irregular bit-width
PD#162464: spicc: support irregular bit-width

some device work at a irregular bit-width for example,
11 bit-width and tx data is {0xa1, 0x62},
the LSB bit order is: 10100001 011 (0xa1 + 3 bits of 0x62)
the MSB bit order is: 01100010 101 (0x62 + 3 bits of 0xa1)
note: all case more than 16 bits will run at 4-byte-per-word though one
byte discarded.

to print the difference between tx and rx if mode[16]=1

Change-Id: Ibdd438c3fe764986c71b77ec2d4fa0db489dd439
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2018-03-26 23:45:21 -08:00
Zhuo Wang
ba83052961 ethernet: add eye pattern and phy default value
PD#163016: add eye pattern and modify internal phy status

Change-Id: I18e0164646b17b86187fe1fe5c0189c9c2302130
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2018-03-26 18:37:24 -08:00
Xingyu Chen
ea4dac67b9 keypad: avoid repetition of reporting power key event
PD#160889: keypad: avoid repetition of reporting power key event

If the adc_keypad and gpio_keypad driver are enabled at the same time,
the system will report two power key event when it resumes, and the
second event will result in the system suspend again. The patch resolves
the bug.

Change-Id: Iea4d9e2bf6632e4603dc9743fce07e5af74d0273
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2018-03-26 17:58:00 -08:00
Weiming Liu
50df814984 lcd_extern: add tl050fhv02ct driver
PD#162533: lcd_extern: add tl050fhv02ct driver

Change-Id: Ie046eb45542327b77ad3897785ecd99378b689fd
Signed-off-by: Weiming Liu <weiming.liu@amlogic.com>
2018-03-26 17:35:16 -08:00
Xingyu Chen
0731af6113 pinctrl: add virtual GPIO "GPIOV_0" for g12a
PD#162992: pinctrl: add virtual GPIO "GPIOV_0" for g12a

The gpio is used to set the bit PERIPHS_PIN_MUX_2 BIT[17]. Please refer
the following method to use it.

1). set the PERIPHS_PIN_MUX_2 BIT[17] to <1>
mux_en {
	groups = "sdio_dummy";
	function = "sdio";
}

2). set the PERIPHS_PIN_MUX_2 BIT[17] to <0>
mux_dis {
	groups = "GPIOV_0";
	function = "gpio_periphs";
}

Change-Id: Ied0e6c71ed1ff8ab9a26cb76ec1508d83a4453d7
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2018-03-26 01:41:10 -08:00
Xingyu Chen
6e0c76302d pinctrl: add new pinconf attrs "output-high" and "output-low"
PD#162858: pinctrl: add new pinconf attrs "output-high" and "output-low"

we can refer the following example to use:
mux {
	groups = "GPIOC_0", "GPIOC_1", "GPIOC_2",
		"GPIOC_3", "GPIOC_4", "GPIOC_5";
	function = "gpio_periphs";

	output-high; // or output-low
}
output-high: GPIO_EN_N[pin]=<0> and GPIO_O[pin]=<1>
output-low : GPIO_EN_N[pin]=<0> and GPIO_O[pin]=<0>

Change-Id: I3f8ec1bd1eff7c7d6e7416b608e4c5d6c7b15955
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2018-03-25 22:00:22 -08:00
Yixun Lan
48fe27347d clk: meson: axg: fix the od shift of the sys_pll
PD#159137: clk: meson: axg: fix the od shift of the sys_pll

According to datasheet, the od shift of sys_pll is 16,
fix the typo which introduced at previous commit.

Change-Id: I8d7e36b1178c0ab7f89791964fe4bb216c551d6d
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
2018-03-26 10:13:27 +08:00
Zhe Wang
ee8657ab98 audio: fixed dts error for spdif out[1/1]
PD#162258: spdif out is no audio output

1) fixed pinmux error
2) add mute flag for Pause

Change-Id: Icb60dba86d5b305eedf78b0fd410e0a16800c503
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2018-03-24 01:22:27 -08:00
Yi Zeng
79fe27f635 mtd: use sprintf instead of printk in show functions
PD#134355: mtd: use sprintf instead of printk in show functions

Remove the unused system attribute in dtb and env.

Change-Id: Ie7f7bda60ac1b192708a6b6fd0dc1c77ca1eb0e0
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
2018-03-24 01:20:56 -08:00
Kaifu Hu
6d6abcb26a hdmitx: add enci clktree
PD#162219: hdmitx: add enci clktree

Add enci clktree support for 480i and 576i.

Change-Id: Id7bc3444bd634deb1a52c8faf7f3d2f017d33e73
Signed-off-by: Kaifu Hu <kaifu.hu@amlogic.com>
2018-03-23 07:26:05 -08:00
wenbiao zhang
48356ebe30 g12a: add g12a buildroot dts.
PD#162359: g12a: add g12a buildroot dts.

Change-Id: Ie6013b3e5c3a9b04197599ae047f6806bfb9d37d
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
2018-03-23 01:58:32 -08:00
Yao.Liu
46634bf199 video_sink: disable video_type_compress for resolution over 720p
PD#159581: video_sink: disable video_type_compress for resolution over 720p

Change-Id: Ie5909bc087a2770a93e0e617f319143f5cacaa7f
Signed-off-by: Yao.Liu <yao.liu@amlogic.com>
2018-03-23 00:13:58 -08:00
Yao.Liu
7c34cfb346 codec_mm: clear scatter cache when codec_mm_codec_in failed
PD#158909: clear scatter cache when codec_mm_codec_in failed

Change-Id: Ie3f4da06699222b6dbd8caee6982dc71288881c1
Signed-off-by: Yao.Liu <yao.liu@amlogic.com>
2018-03-23 00:08:20 -08:00
zhilei.wu
3c7c04dc46 ge2d: revised q201 ge2d dts
PD#162855: ge2d: revised q201 ge2d dts

Change-Id: Ifd5878b720138e646377063a2707ef13c48ca94a
Signed-off-by: zhilei.wu <zhilei.wu@amlogic.com>
2018-03-23 13:59:19 +08:00
Yue Wang
31e9b44277 usb: fix u211 dts setting.
PD#162619: usb: fix u211 dts setting.

Change-Id: I098f9d857272ce94ddb9fe16d876b4e0b2e0d8e8
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2018-03-22 18:28:59 -08:00
Yue Wang
b54f713390 pcie: enable pcie legacy irq.
PD#162549: pcie: enable pcie legacy irq.

Change-Id: I46eaf7aadec8083b97f4cab103414ea302435fd8
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2018-03-22 18:03:56 -08:00
Brian Zhu
d8640c010e vpp: remove vd1 & vd2 mif gate setting
PD#161364: vpp remove vd1 & vd2 mif gate setting to avoid screen flicker

Change-Id: I6fa8eed89b33cbde698472167ba000f132c897ad
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2018-03-22 01:39:33 -08:00
zhilei.wu
72ee0d6143 dv: fixed compile error when disable CONFIG_DOLBYVISION
PD#162653: dv: fixed compile error when disable CONFIG_DOLBYVISION

Change-Id: Ia56e72deb9d4d47d38beff6295eee2d9e99b6d58
Signed-off-by: zhilei.wu <zhilei.wu@amlogic.com>
2018-03-21 23:55:59 -08:00
Ruixuan Li
2ce3582aba emmc: fix dtb backup mechanism
PD#162119: emmc: fix dtb backup mechanism

Change-Id: I32ca6ffb2c01bb5f50a5af3f0b2942077da61eb8
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2018-03-21 23:08:36 -08:00