platform/kernel/linux-amlogic.git
6 years agomedia: drop g12a register defintion change
Nanxin Qin [Wed, 28 Feb 2018 13:15:01 +0000 (21:15 +0800)]
media: drop g12a register defintion change

PD#156734: media: drop g12a register defintion change

Change-Id: Ieadb57750228755a18357567028fa5ef642dc397
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
6 years agomm: optimize for CMA allocate time
tao zeng [Sat, 24 Feb 2018 07:40:59 +0000 (15:40 +0800)]
mm: optimize for CMA allocate time

PD#159608: mm: optimize for CMA allocate time

1. Make all amlogic-changed mm code configuarable, which are
   wrapped by CONFIG_AMLOGIC_CMA/CONFIG_AMLOGIC_MEMORY_EXTEND
2. Implement some core code of CMA to a single file:
   drivers/amlogic/memory_ext/aml_cma.c
3. detailed imporove steps:
  a) use NOOP as default IO-scheduler for nand based storage.
    which can avoid long time wait for page lock found in
    CFQ scheduler;
  b) use per-cpu thread to allocate CMA concurrent when driver
    request large amount CMA memory; these threads have high
    user nice value to reduce schedule delay;
  c) increase task user nice of mmc queue and kswapd.
  d) wake up kswapd if page are hold by kswap shrink list and
    cma isolated test failed.
  e) Fobidden low user nice task use CMA, which can avoid priority
    inversion problem.
  f) optimize for LRU usage, devide each type of LRU to 2 parts,
    normal pages are linked after LRU head, CMA pages are linked
    after cma_list.
  g) avoid compaction case move cma forbidden pages to cma area.
  h) Increase strength of lowmemory killer.

4. Improve read speed of /proc/pagetrace, a filter can be set to
   reduce message which not print functions allocate memory less
   than filter value:

   echo filter=xxx > /proc/pagetrace

Change-Id: Ie79288b7947aa642e4f7eacc25565559a73660df
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
6 years agocvbs: drop busy mdelay, also update register settings
Nian Jing [Wed, 28 Feb 2018 12:14:45 +0000 (20:14 +0800)]
cvbs: drop busy mdelay, also update register settings

PD#156734: cvbs: drop busy mdelay, also update register settings

Change-Id: I7515dffda49bdd19407ebabf93ebfad5f8ce8125
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
6 years agosound: minor fix make array data ready only, short delay
Xing Wang [Wed, 28 Feb 2018 12:03:30 +0000 (20:03 +0800)]
sound: minor fix make array data ready only, short delay

PD#156734: sound: minor fix make array data ready only, short delay

Change-Id: I12d2de5d52c5774bdf56b9358fb9213c8c77fafa
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agoSR: only disable sr for g12a default
Dezhi Kong [Mon, 26 Feb 2018 11:41:26 +0000 (19:41 +0800)]
SR: only disable sr for g12a default

PD#156734: sr: only disable sr for g12a default

Change-Id: I32b7f8be08adaebb2557eab4ed1ad39c084f36d6
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
6 years agoaudio: auge: pdm supports 64k sample rate
Xing Wang [Sat, 24 Feb 2018 04:57:49 +0000 (12:57 +0800)]
audio: auge: pdm supports 64k sample rate

PD#156734: audio: auge: pdm supports 64k sample rate

Change-Id: Ia938906fc0aef51d66b947b376b62c21fb2c8c76
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agodv: add dolby vision driver for g12a
zhilei.wu [Fri, 2 Mar 2018 07:43:21 +0000 (15:43 +0800)]
dv: add dolby vision driver for g12a

PD#156734: dv: add dolby vision driver for g12a

Change-Id: I02490c69f6f834f491278403dfcc8923a3fcee77
Signed-off-by: zhilei.wu <zhilei.wu@amlogic.com>
6 years agodts: G12A: enable reboot and fix mhu playload base addr
Qiufang Dai [Sat, 10 Feb 2018 16:57:52 +0000 (00:57 +0800)]
dts: G12A: enable reboot and fix mhu playload base addr

PD#156734: enable reboot and fix mhu playload base addr

Change-Id: Ia0849bb9a695f91ea861c6f7ddd1079e4ba70175
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
6 years agoUSB: set UTMI interface is 8bit for new phy
qi duan [Sat, 24 Feb 2018 09:33:01 +0000 (17:33 +0800)]
USB: set UTMI interface is 8bit for new phy

PD#156734: USB: set UTMI interface is 8Bit for new phy on dwc2 controller.[1/1]

Change-Id: I2f57664ec75787066f6bac5bcee368b6904966f1
Signed-off-by: qi duan <qi.duan@amlogic.com>
6 years agonand: improve nfc clock
Liang Yang [Tue, 13 Feb 2018 05:23:50 +0000 (13:23 +0800)]
nand: improve nfc clock

PD#156734: nand: improve nfc clock base on pad driver strength
set level1

Change-Id: I1a9fd710e415a064572063292ef569bf67e527a4
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
6 years agoosd: fix the fifo ctrl setting error
Brian Zhu [Fri, 23 Feb 2018 10:07:56 +0000 (18:07 +0800)]
osd: fix the fifo ctrl setting error

PD#156734: osd: fix the fifo ctrl setting error

Change-Id: I67560a98592b800658d9d8da3a314aac42d66ad2
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agolcd: add mipi-dsi checking panel state support
Evoke Zhang [Thu, 22 Feb 2018 10:36:38 +0000 (18:36 +0800)]
lcd: add mipi-dsi checking panel state support

PD#156734: lcd: add mipi-dsi checking panel state support
after config check_state parameters in dts,
you can get state by below sysfs node:
cat /sys/class/lcd/mpstate

Change-Id: I6e1d8452e17166cd9c04c2a4979f42308f995b9a
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
6 years agoDRM: add drm support for g12a
Yalong Liu [Thu, 8 Feb 2018 12:55:04 +0000 (20:55 +0800)]
DRM: add drm support for g12a

PD#160546: DRM: add drm support for g12a
Verified on g12a

Change-Id: I5bfa4ad388e181af629e013a8d7c516ae5fc3fa4
Signed-off-by: Yalong Liu <yalong.liu@amlogic.com>
6 years agovpu: update vpu_clk_gate control for g12a
Evoke Zhang [Sun, 11 Feb 2018 09:06:12 +0000 (17:06 +0800)]
vpu: update vpu_clk_gate control for g12a

PD#156734: vpu: update vpu_clk_gate control for g12a

Change-Id: Ia0d2bce8ea0e6951a435fc236e4b82bbd32ebcca
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
6 years agobl_extern: add lp8556 driver
weiming.liu [Wed, 7 Feb 2018 06:37:33 +0000 (14:37 +0800)]
bl_extern: add lp8556 driver

PD#156734: bl_extern: add lp8556 driver

Change-Id: Id38b698cbc87a227abdcd52037c65df87fc8d654
Signed-off-by: weiming.liu <weiming.liu@amlogic.com>
6 years agodi: fix MADI flicker for mem enable
kele bai [Fri, 9 Feb 2018 03:25:41 +0000 (11:25 +0800)]
di: fix MADI flicker for mem enable

PD#156734: di: fix MADI flicter for mem disable

1) pre ctrl bit11 error cause mem disable
2) update vpu clkb rate
3) fix pulldown parameters probe error
4) fix pulldown count error add default threshold
5) fix pre timeout for intr shared with post
6) mif gate freerun according vlsi avoid mif reg config incorrect

Change-Id: Id8dddff213910bffb6e40b2667738e9ee3d720ca
Signed-off-by: kele bai <kele.bai@amlogic.com>
6 years agoaudio: auge: fix audio locker, resample, tdm format, eq/drc, share buffer
Xing Wang [Tue, 6 Feb 2018 09:21:00 +0000 (17:21 +0800)]
audio: auge: fix audio locker, resample, tdm format, eq/drc, share buffer

PD#156734: audio: auge: fix audio locker, resample, tdm format, eq/drc, share buffer

Change-Id: I03750c34310bdbc32eddc51f64cf4b91a95325bc
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agodisplay: power improvement for g12a
Brian Zhu [Sun, 11 Feb 2018 10:01:32 +0000 (18:01 +0800)]
display: power improvement for g12a

PD#156734: display: power improvement
1.pwr off osd2, osd3, osd2 scaler osd3 scaler mem pd
2.change osd fifo size
3.disable osd deband as default
4.disable vpu probe as init
5.disable sr as temp
6.disable vd1,vd2 mif gclk
7.disable vdin gclk

Change-Id: Iec93b4071618df67169cfc98c6056afe3e3464f0
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agohdmitx: bringup for g12a
Zongdong Jiao [Fri, 9 Feb 2018 11:58:10 +0000 (19:58 +0800)]
hdmitx: bringup for g12a

PD#156734: hdmitx: update hdmi phy parameters for 6Gbps
also, add missing clock setting, and redefine hpll reset

Change-Id: I4a16658b9a04d58e69747db71915b5841bb268e7
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
6 years agolcd: add mipi_dsi cmd debug interface
weiming.liu [Mon, 12 Feb 2018 02:53:35 +0000 (10:53 +0800)]
lcd: add mipi_dsi cmd debug interface

PD#156734: lcd: add mipi_dsi cmd debug interface

Change-Id: Ic6dc874b59f0ac310867378ec691ea3b3746dd90
Signed-off-by: weiming.liu <weiming.liu@amlogic.com>
6 years agodts: add 850M clk configure
Jiyu Yang [Thu, 8 Feb 2018 03:10:05 +0000 (11:10 +0800)]
dts: add 850M clk configure

PD#156734: dts: add 850M clk configure

the signoff maxfreq is 850M using gp0_pll.
this may conflict with dsi pannel. donot configure 850M if dsi was used.

Change-Id: I1a861163d97740404f9977993394d0ccb7ce929d
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
6 years agodtsi: meson-g12a: add pwm slave device node
Bo Yang [Wed, 7 Feb 2018 13:31:50 +0000 (21:31 +0800)]
dtsi: meson-g12a: add pwm slave device node

PD#156734: dtsi: meson-g12a: add pwm slave device node

Change-Id: I0c1838e25f7247c342a372bdc1cc5043fd7d8086
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agoamvecm: optimize g12a hdr effect
MingLiang Dong [Sun, 11 Feb 2018 12:14:46 +0000 (20:14 +0800)]
amvecm: optimize g12a hdr effect

PD#156734: amvecm: optimize g12a hdr effect

Change-Id: Iebb38ce8cc2f9884f6e3df3a740d5985a4e4cd2b
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
6 years agoamvecm: fix dynamic switch output mode
MingLiang Dong [Fri, 9 Feb 2018 12:21:34 +0000 (20:21 +0800)]
amvecm: fix dynamic switch output mode

PD#156734: amvecm: fix dynamic switch output mode

Change-Id: I22fbfae7de477870bdd4ad69a1279ae2ec52f290
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
6 years agovideo: add bypass cm interface and change afbc busrt
Brian Zhu [Fri, 9 Feb 2018 08:35:23 +0000 (16:35 +0800)]
video: add bypass cm interface and change afbc busrt

PD#156734: video: add bypass cm interface and change afbc busrt

Change-Id: I868057bc00e8ec3798675a20aba0010fda983f13
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agoclock: G12A: add 846M freq for pll table
Qiufang Dai [Sun, 4 Feb 2018 18:23:21 +0000 (02:23 +0800)]
clock: G12A: add 846M freq for pll table

PD#156734: G12A: add 846M freq for pll table

Change-Id: I3a2d7a265d0b8af8445a59f0585dd7bfd0caad39
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
6 years agoCPUFREQ: fix cpufreq at low 1.2G.
hong.guo [Sun, 11 Feb 2018 04:39:55 +0000 (12:39 +0800)]
CPUFREQ: fix cpufreq at low 1.2G.

PD#156734: cpufreq: fix cpufreq at low 1.2G.

Change-Id: I87e0c430af7807883bbda7c1e00d1165a1bb2d19
Signed-off-by: hong.guo <hong.guo@amlogic.com>
6 years agothermal: G12A: bind cooldev dts.
huan.biao [Sun, 11 Feb 2018 02:52:57 +0000 (10:52 +0800)]
thermal: G12A: bind cooldev dts.

PD#156734: bind cooling devices dts to tzd.

Change-Id: I82d3cdacd32cba3959ef4a3008c6e7896a67a5b4
Signed-off-by: huan.biao <huan.biao@amlogic.com>
6 years agoCPUFREQ: add cpufreq 1.7G.
hong.guo [Fri, 9 Feb 2018 11:02:08 +0000 (19:02 +0800)]
CPUFREQ: add cpufreq 1.7G.

PD#156734: cpufreq: add cpufreq 1.7G.

Change-Id: I5558fc5195621b4b70edb5718cd23e405fffe1ba
Signed-off-by: hong.guo <hong.guo@amlogic.com>
6 years agoaudio: dts: add audio efuse module support for g12a
Xing Wang [Fri, 9 Feb 2018 03:37:11 +0000 (11:37 +0800)]
audio: dts: add audio efuse module support for g12a

PD#156734: audio: dts: add audio efuse module support for g12a

Change-Id: I15510474ed191d0abafd2efc2999032b5c1a919c
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agodts: g12a: ethernet: re-organize ethernet dts/dtsi
Zhuo Wang [Fri, 9 Feb 2018 11:18:10 +0000 (19:18 +0800)]
dts: g12a: ethernet: re-organize ethernet dts/dtsi

PD#156734: re-organize dts of ethernet

Change-Id: I17724af9244fb1c2c06beceb8ef82f1550ddf8d6
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
6 years agodts: enable clocks of the media modules.
Nanxin.Qin [Wed, 7 Feb 2018 15:58:11 +0000 (23:58 +0800)]
dts: enable clocks of the media modules.

PD#156749:

Change-Id: Icc1b2d20ce3c470a91a9c6aa4374bc8462e2db6d
Signed-off-by: Nanxin.Qin <nanxin.qin@amlogic.com>
6 years agoamvecm: add hdr support for g12a
MingLiang Dong [Thu, 8 Feb 2018 11:57:25 +0000 (19:57 +0800)]
amvecm: add hdr support for g12a

PD#156734: amvecm: add hdr support for g12a

Change-Id: Ia1f5d3d7b13a6cec7f07bfe6cb7d06264ffcc82d
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
6 years agousb: fix usb device rename bug for g12a
Yue Wang [Fri, 9 Feb 2018 03:38:34 +0000 (11:38 +0800)]
usb: fix usb device rename bug for g12a

PD#156734: usb: fix usb device rename for g12a

Change-Id: Iecb0ae41f3eb41b7fd6005a842ce76fb50628039
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
6 years agousb: fix usb2 phy pll setting for g12a
Yue Wang [Thu, 8 Feb 2018 11:59:30 +0000 (19:59 +0800)]
usb: fix usb2 phy pll setting for g12a

PD#156734: usb: fix usb2 phy pll setting for g12a

Change-Id: I7b7ab2f9cddfa2b17e81f6691d2ba8f44f99555b
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
6 years agohdmitx: bringup for g12a
Yi Zhou [Thu, 8 Feb 2018 14:14:28 +0000 (22:14 +0800)]
hdmitx: bringup for g12a

PD#156734: bringup for g12a

update some registers address

Change-Id: I7a4660e3811d7f193ac8212fd7fb5fd80767c89e
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
6 years agoosd: enable osd rdma and afbc function
Brian Zhu [Wed, 7 Feb 2018 16:05:07 +0000 (00:05 +0800)]
osd: enable osd rdma and afbc function

PD#156734: osd: enable rdma and afbc function

Change-Id: I62b7a3bd84b758455deb2f614c763a145f751f63
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agoCPUFREQ: delete cpufreq driver's log config.
hong.guo [Thu, 8 Feb 2018 10:54:33 +0000 (18:54 +0800)]
CPUFREQ: delete cpufreq driver's log config.

PD#156734: cpufreq: delete cpufreq driver's log config.

Change-Id: Ic9ccdbab8cb92540f542151da69c1c37bfaeaf44
Signed-off-by: hong.guo <hong.guo@amlogic.com>
6 years agovdin: add reset patch && viu debug interface
Dezhi Kong [Tue, 6 Feb 2018 06:55:11 +0000 (14:55 +0800)]
vdin: add reset patch && viu debug interface

PD#156734: vdin: add reset patch && viu debug interface

1.add vdin reset for g12a
2.add viu-vd1/vd2/osd1/osd2 loop debug interface
3.add hiu reg r/w support
4.delete sr temp debug code

Change-Id: Ia503b2471827f835394dd81667a4672cb0434e69
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
6 years agothermal: G12A: update thermal driver
huan.biao [Thu, 8 Feb 2018 07:21:25 +0000 (15:21 +0800)]
thermal: G12A: update thermal driver

PD#156734:fix build error.

Change-Id: Iafa7c3a06d1c180ce69bcb58cc5c339c13fee65c
Signed-off-by: huan.biao <huan.biao@amlogic.com>
6 years agothermal: G12A: update thermal driver.
huan.biao [Thu, 8 Feb 2018 06:32:18 +0000 (14:32 +0800)]
thermal: G12A: update thermal driver.

PD#156734:
tsensor: update temp to reg calc.
cooldev: add cpufreq driver check.

Change-Id: I534716247908dd066c6dd8fe1680f977c5972b5a
Signed-off-by: huan.biao <huan.biao@amlogic.com>
6 years agothermal: G12A: add tsensor and cooldev dts.
huan.biao [Sat, 3 Feb 2018 16:57:13 +0000 (00:57 +0800)]
thermal: G12A: add tsensor and cooldev dts.

PD#156734: add tsensor and cooling devices dts.

Change-Id: Ia6875a5f06c225bb034c5301e14fb3bc3191aa14
Signed-off-by: huan.biao <huan.biao@amlogic.com>
6 years agosdio: both pio&dma are supported for g12a
Yonghui Yu [Tue, 6 Feb 2018 15:14:32 +0000 (23:14 +0800)]
sdio: both pio&dma are supported for g12a

PD#156734: g12a: sdio: both pio&dma are supported.

Change-Id: I92d0961c94cf1a77867af92870d1781d89a3168d
Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com>
6 years agothermal: G12A: fix cpucore cooling devices driver.
huan.biao [Thu, 8 Feb 2018 02:14:32 +0000 (10:14 +0800)]
thermal: G12A: fix cpucore cooling devices driver.

PD#156734: fix cpucore cooling issue.

Change-Id: I9c1340e605d51df5eae8e49814f948981c9dc763
Signed-off-by: huan.biao <huan.biao@amlogic.com>
6 years agothermal: G12A: tsensor and cooldev driver.
huan.biao [Sat, 3 Feb 2018 16:49:31 +0000 (00:49 +0800)]
thermal: G12A: tsensor and cooldev driver.

PD#156734: add thermal tsensor and cooling devices driver.

Change-Id: I22ea0e03692fbcf7da269330fde86e07f189c4e9
Signed-off-by: huan.biao <huan.biao@amlogic.com>
6 years agoppmgr: enable for g12a
Brian Zhu [Wed, 7 Feb 2018 12:13:41 +0000 (20:13 +0800)]
ppmgr: enable for g12a

PD#156734: ppmgr: enable for g12a

Change-Id: Iaf5076f7c3c6f58dfd40be29ba7d19e8c6b9145b
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agounifykey: add unifykey description in g12a_skt dts
Jiamin Ma [Wed, 7 Feb 2018 12:08:49 +0000 (20:08 +0800)]
unifykey: add unifykey description in g12a_skt dts

PD#156734: g12a bring up

Change-Id: Iae5bc74a1230df4d0c5025267b149e6a235a1681
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
6 years agoremote out: add irblaster config for G12A
Yu Tu [Tue, 6 Feb 2018 05:08:00 +0000 (13:08 +0800)]
remote out: add irblaster config for G12A

PD#156734: remote out: modify irblaster read register from dts for G12A

Change-Id: I36d1c4ce8ce968f7955d55c0678670e7258889f1
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
6 years agolcd: update pll parameter
weiming.liu [Tue, 6 Feb 2018 07:58:36 +0000 (15:58 +0800)]
lcd: update pll parameter

PD#156734: lcd: update pll parameter

Change-Id: Ie431c33abc794e043f07bd1bb9ff64d896f48f7f
Signed-off-by: weiming.liu <weiming.liu@amlogic.com>
6 years agoclock: G12A: add hevcf, spicc clock
Qiufang Dai [Sun, 4 Feb 2018 08:05:05 +0000 (16:05 +0800)]
clock: G12A: add hevcf, spicc clock

PD#156734: add hevcf, spicc clock

Change-Id: Ibe63b44e61058255b3b72ef9efaded765e262b0a
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
6 years agoBT: g12a_skt: initial host wake bt pin [1/1]
kuibao zhang [Fri, 2 Feb 2018 13:28:39 +0000 (21:28 +0800)]
BT: g12a_skt: initial host wake bt pin [1/1]

PD#156734: bt: g12a_skt: initial host wake bt pin

1.host wake bt pin (gpiox_19) should keep high when bt
lpm function is enabled, otherwise bt moudle would go
to sleep.
2.set this pin in dts

Change-Id: I401fa158bf11b60ef1a7727ea25e55f94cf273a8
Signed-off-by: kuibao zhang <kuibao.zhang@amlogic.com>
6 years agoi2c: meson: set clk div for fast mode
Bo Yang [Mon, 5 Feb 2018 15:02:47 +0000 (23:02 +0800)]
i2c: meson: set clk div for fast mode

PD#156734: i2c: meson: set clk div for fast mode

According to I2C-BUS Spec 2.1, in FAST-MODE, LOW period should be at
least 1.3uS, and HIGH period should be at lease 0.6. HIGH to LOW
ratio as 1 to 2 is more safe.

So in FAST-MODE, we should control the SCL low time.

And fix REG_SLAVE_DDR write  mask.

Change-Id: I39ec81c67f543dfdf261d39e8da79489f2c79483
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agoCPUFREQ: modify cpufreq dts.
hong.guo [Mon, 5 Feb 2018 10:43:10 +0000 (18:43 +0800)]
CPUFREQ: modify cpufreq dts.

PD#156734: cpufreq: modify cpufreq dts.

Change-Id: I16113e3414a3e336cbd4c0eb869706dd3d22a15b
Signed-off-by: hong.guo <hong.guo@amlogic.com>
6 years agohdmitx: bringup for g12a
Yi Zhou [Sun, 4 Feb 2018 17:29:47 +0000 (01:29 +0800)]
hdmitx: bringup for g12a

PD#156734: bringup for g12a

1.use ioremap
2.enalbe hpd for the first time

Change-Id: I5375c8b7732f4dd552e7c7207b90d411aeacafbd
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
6 years agovout: add missed vout2_module macro definition protection
Evoke Zhang [Thu, 1 Feb 2018 16:24:35 +0000 (00:24 +0800)]
vout: add missed vout2_module macro definition protection

PD#156734: vout: add missed vout2_module macro definition protection

Change-Id: I141d05ec9f40e4b42eb39b72d069907aa4480a99
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
6 years agonand: free controller when no nand inserted or error
Liang Yang [Sun, 4 Feb 2018 13:34:39 +0000 (21:34 +0800)]
nand: free controller when no nand inserted or error

PD#156734: nand : no nand or init error handle

Change-Id: I9a1383117db2021204826e04d36fb91ba4213126
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
6 years agoCPUFREQ: add dvfs cpufreq and latency.
hong.guo [Sun, 4 Feb 2018 05:46:10 +0000 (13:46 +0800)]
CPUFREQ: add dvfs cpufreq and latency.

PD#156734: cpufreq: add dvfs cpufreq cpufreq and latency.

Change-Id: I0d7c74e54b2e6dcbd949c1c59cce41deec5047f7
Signed-off-by: hong.guo <hong.guo@amlogic.com>
6 years agohdmitx: eliminate unnecessary print
Yi Zhou [Sun, 4 Feb 2018 11:47:09 +0000 (19:47 +0800)]
hdmitx: eliminate unnecessary print

PD#156734: hdmitx: eliminate unnecessary print

Change-Id: Id79e6f14367f3c0201d1968a3d61168a47a14e3a
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
6 years agolcd: add g12a support
weiming.liu [Fri, 2 Mar 2018 07:36:27 +0000 (15:36 +0800)]
lcd: add g12a support

PD#156734: lcd: add lcd driver for g12a

Change-Id: Ib859dfdc2a1785c7e1e2ab506bf1dfd0cad55887
Signed-off-by: weiming.liu <weiming.liu@amlogic.com>
6 years agopwm: meson-g12a: fix pwm xtal
Bo Yang [Sun, 4 Feb 2018 09:07:44 +0000 (17:07 +0800)]
pwm: meson-g12a: fix pwm xtal

PD#156734: pwm: meson-g12a: fix pwm xtal

Fix pwm xtal.
And update pwm dts compatible.

Change-Id: I0314ed1b628abfe4a3e303ca827bdd50f2a2c2e8
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agomedia: fixed the issure of mpeg12 playback.
Nanxin Qin [Sun, 4 Feb 2018 08:55:25 +0000 (16:55 +0800)]
media: fixed the issure of mpeg12 playback.

PD#156734:

Change-Id: I87d814707d864a8fc81bcb35712ef0c25fea65db
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
6 years agodts: meson-g12a: update hmditx i2c pinctrl
Bo Yang [Sun, 4 Feb 2018 08:45:16 +0000 (16:45 +0800)]
dts: meson-g12a: update hmditx i2c pinctrl

PD#156734: dts: meson-g12a: update hmditx i2c pinctrl

Remove repetitive i2c definition.

Change-Id: Ide1b6467385b0f31da30aeffe8244d3918d8a0f8
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agodi: di post wr&vpp link disaply ok
kele bai [Sun, 4 Feb 2018 08:27:20 +0000 (16:27 +0800)]
di: di post wr&vpp link disaply ok

PD#156734: di:
1) fix 0x1a0a error config in video.c
2) update gate control for if0

Change-Id: I6f1a7080b1f6f2d343ed3773ef55b2834d55d0d6
Signed-off-by: kele bai <kele.bai@amlogic.com>
6 years agodts: g12a-skt: add touch device node
Sunny Luo [Sun, 4 Feb 2018 07:57:09 +0000 (15:57 +0800)]
dts: g12a-skt: add touch device node

PD#156734: dts: g12a-skt:
1. add and enable focaltech ftxx
2. add and enable goodix gtxx

Change-Id: Iff3a2d0a28c5ba78c93f23623b3c34b651bb2cae
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
6 years agoosd: make osd2 and osd3 work
Brian Zhu [Sat, 3 Feb 2018 21:24:26 +0000 (05:24 +0800)]
osd: make osd2 and osd3 work

PD#156734: osd:
1. fix the osd2 & osd3 init error
2. enable all mem_pd

Change-Id: Ib0d817e98ad5381fdd9dc436ff30bf4ed8bbbcca
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agovideo: enable ionvideo
Jiyu Yang [Sat, 3 Feb 2018 19:33:44 +0000 (03:33 +0800)]
video: enable ionvideo

PD#156734 enable ionvideo for online video play

Change-Id: I316d9abb2708538813cf2c09d47bb854676ed7e7
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
6 years agovideo: disable blend ctrl when video off
Brian Zhu [Sat, 3 Feb 2018 15:29:41 +0000 (23:29 +0800)]
video: disable blend ctrl when video off

PD#156734: video: disable blend ctrl when video off

Change-Id: I31bc906212dde34dd684ba3953ae8ada59107734
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agonand: add clock for mtd nand driver
Liang Yang [Sat, 3 Feb 2018 14:40:51 +0000 (22:40 +0800)]
nand: add clock for mtd nand driver

PD#156734: nand: add clock and disable nand module in dts to
avoid conflit with sd_emmc_c.

Change-Id: I204bbc58960cbed47b1c55194e371cd1c61be12a
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
6 years agoCPUFREQ: add cpufreq driver.
hong.guo [Fri, 2 Mar 2018 07:46:13 +0000 (15:46 +0800)]
CPUFREQ: add cpufreq driver.

PD#156734: cpufreq: add cpufreq driver[2/2].

Change-Id: If38dba0973aa7c0d4e9bbba1bee1af81e84ba6b8
Signed-off-by: hong.guo <hong.guo@amlogic.com>
6 years agodtsi: meson-g12a: add all pwm pinmux definitions
Bo Yang [Sat, 3 Feb 2018 09:59:26 +0000 (17:59 +0800)]
dtsi: meson-g12a: add all pwm pinmux definitions

PD#156734: dtsi: meson-g12a: add all pwm pinmux definitions

Replace pinctrl used by wifi and cpufreq.
Aand remove repetitive definitions.

Change-Id: Ia2eb89fac9fe6e960333ff3d3e691f7e7f1cfaa1
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agomedia: add the HEVC_DBLK_CFGE to hevc regs.
Nanxin.Qin [Sat, 3 Feb 2018 04:33:39 +0000 (12:33 +0800)]
media: add the HEVC_DBLK_CFGE to hevc regs.

PD#156734: media: add the HEVC_DBLK_CFGE to hevc regs.

Change-Id: I9e885017176502d0227a353cb049ddf0742e38fe
Signed-off-by: Nanxin.Qin <nanxin.qin@amlogic.com>
6 years agoeth: meson-g12a: add Ethernet driver support
Yixun Lan [Thu, 1 Feb 2018 11:58:02 +0000 (19:58 +0800)]
eth: meson-g12a: add Ethernet driver support

PD#156734: eth: meson-g12a: add Ethernet driver support

Enable the ethernet driver on G12A board, which tested
with RTL8211F 1000M PHY && Internal PHY.

And here we enable Internal PHY for g12a_skt board.

Change-Id: I839639ac92790c27117b9745275b346cd4ce40d7
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
6 years agocec: cec g12a bring up
hongmin hua [Fri, 12 Jan 2018 07:42:38 +0000 (15:42 +0800)]
cec: cec g12a bring up

PD#156734: cec: change interrupt/pinmux for g12a

Change-Id: I5f9f652addf81db4b792796d41f367073a8ac5b9
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
6 years agopcie: fix config spaces error
Zan Peng [Sat, 3 Feb 2018 09:11:42 +0000 (17:11 +0800)]
pcie: fix config spaces error

PD#156734: pcie: fix config spaces error

Change-Id: I217b0941a4facd874f4df74e4d0eefa5a72af527
Signed-off-by: Zan Peng <zan.peng@amlogic.com>
6 years agodts: g12a-skt: removed repetitive definition of i2c pinmux
Bo Yang [Sat, 3 Feb 2018 08:48:15 +0000 (16:48 +0800)]
dts: g12a-skt: removed repetitive definition of i2c pinmux

PD#156734: dts: g12a-skt: removed repetitive definition of i2c pinmux

Replace i2c3 pinctrl with standard definition.

Change-Id: I28f64dfde90ccb71f5b3fb12437b92f392de28ce
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agodts: g12a-skt: add i2c-0 enable
Bo Yang [Sat, 3 Feb 2018 08:36:03 +0000 (16:36 +0800)]
dts: g12a-skt: add i2c-0 enable

PD#156734: dts: g12a-skt: add i2c-0

Default freq 100k.

Change-Id: Id39713b7d06b885667e5daef0a012bfae1b9882e
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agordma: enable rdma mem_PD g12a
Brian Zhu [Sat, 3 Feb 2018 08:21:23 +0000 (16:21 +0800)]
rdma: enable rdma mem_PD g12a

PD#156734: rdma: enable rdma mem_PD g12a

Change-Id: I3e2f74b524f07372a54a172d7d05b5a55c8f01df
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agopcie: fix pcie reset gpio failed
Zan Peng [Sat, 3 Feb 2018 08:16:01 +0000 (16:16 +0800)]
pcie: fix pcie reset gpio failed

PD#156734: pcie: fix pcie reset gpio failed
1. config 1M spaces for I/O

Change-Id: I0ec9a6e920c5fd2fbf922e3f1338a19dbc373aa6
Signed-off-by: Zan Peng <zan.peng@amlogic.com>
6 years agodi: G12A add di nrds&pps&diwr support
kele bai [Fri, 2 Mar 2018 07:17:05 +0000 (15:17 +0800)]
di: G12A add di nrds&pps&diwr support

PD#156734: G12A add di nrds&pps&diwr support

1) move hdr&vd1&viu releated reg into di_regs.h
2) delete unuseful reg definition
3) add pps in post function
4) add new framereset

Change-Id: I49c58072cc90aa556ab368dcc616c3be4a692db4
Signed-off-by: kele bai <kele.bai@amlogic.com>
6 years agodtsi: meson-i2c: add g12a i2c pinmux definitions
Bo Yang [Fri, 2 Mar 2018 07:39:29 +0000 (15:39 +0800)]
dtsi: meson-i2c: add g12a i2c pinmux definitions

PD#156734: dtsi: meson-i2c: add g12a i2c pinmux definitions

Change-Id: I24ef24db8214ce1c927d3a32571fe1ed96fa3ac1
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
6 years agoosd: enable lacth and use extern canvas mode
Brian Zhu [Fri, 2 Feb 2018 14:42:20 +0000 (22:42 +0800)]
osd: enable lacth and use extern canvas mode

PD#156734: osd: enable lacth and use extern canvas modeWq

Change-Id: Ia7506e04068f4980eee86b28acc65b8763b8f29a
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agoaudio: auge: fix tdm skew, pdm clk, spdif to hdmxtx clk inv
Xing Wang [Fri, 2 Feb 2018 14:33:27 +0000 (22:33 +0800)]
audio: auge: fix tdm skew, pdm clk, spdif to hdmxtx clk inv

PD#156734: audio: auge: fix tdm skew, pdm clk, spdif to hdmxtx clk inv

Change-Id: I2033bb0d0843eca309ad58483183293f1c4d92fa
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agousb: add usb otg driver support for g12a
Yue Wang [Sat, 3 Feb 2018 06:34:18 +0000 (14:34 +0800)]
usb: add usb otg driver support for g12a

PD#156734: usb: add usb otg driver support for g12a

Change-Id: I1af8d290568bca947a6612f31cef3b640c7cd927
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
6 years agoclock: g12a: add emmc portA and aoclkc
Qiufang Dai [Thu, 1 Feb 2018 15:38:17 +0000 (23:38 +0800)]
clock: g12a: add emmc portA and aoclkc

PD#156734: add emmc portA and aoclkc

Change-Id: Ib54a6eb113bdce21eacc7a2d460df23ee9129e92
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
6 years agoemmc: g12a: enable emmc at high speed mode
Yonghui Yu [Fri, 2 Feb 2018 14:22:34 +0000 (22:22 +0800)]
emmc: g12a: enable emmc at high speed mode

PD#156734: emmc: g12a: enable emmc at high speed mode

Change-Id: I8e314182afa3e7088818d4fd9a83f369bb29ba84
Signed-off-by: Yonghui Yu <yonghui.yu@amlogic.com>
6 years agousb: add usb3.0 driver support for g12a
Yue Wang [Fri, 2 Feb 2018 11:41:59 +0000 (19:41 +0800)]
usb: add usb3.0 driver support for g12a

PD#156734: usb: add usb3.0 driver support for g12a

Change-Id: Iac057b29d041a5c80114407df0ccd965aae11ca1
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
6 years agovpp: config vdin/sr for g12a
Dezhi Kong [Mon, 1 Jan 2018 12:05:06 +0000 (20:05 +0800)]
vpp: config vdin/sr for g12a

PD#156734: vpp: config vdin/sr for g12a

1.config vd1 vpp patch default
2.add viuin debug path
3.merged sr from 3.14
4.add vdin support
5.enable sr for g12a

Change-Id: Ica1a7e7e31330e223528329accb149db74e00cf5
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
6 years agonand: mtd nand modification
Liang Yang [Fri, 2 Feb 2018 09:23:06 +0000 (17:23 +0800)]
nand: mtd nand modification

PD#156734: nand: modification
1)sync partition talbe with bootloadr setting.
2)keep compatibale with other platform(a113, etc) when setting lower clock.
3)add a new tested nand flash type

Change-Id: Iff277e6d22bb76c543db76747b22b38f3d60eb11
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
6 years agoCPUFREQ: add cpufreq dts and config.
hong.guo [Fri, 2 Feb 2018 07:26:37 +0000 (15:26 +0800)]
CPUFREQ: add cpufreq dts and config.

PD#156734: cpufreq: add cpufreq dts and config[1/2].

Change-Id: I39fff8a6049d8cc0b6f9b4dbfa11d2b1be504339
Signed-off-by: hong.guo <hong.guo@amlogic.com>
6 years agomedia: add the cpu type of G12A and AVS2 vformat
Nanxin.Qin [Fri, 2 Feb 2018 08:20:06 +0000 (16:20 +0800)]
media: add the cpu type of G12A and AVS2 vformat

PD#156749:

Change-Id: I7fb09105a939d9a0c6cd3a66202ad29ab9c3c272
Signed-off-by: Nanxin.Qin <nanxin.qin@amlogic.com>
6 years agoaudio: codec: add ad82584f driver
Xing Wang [Fri, 2 Feb 2018 07:03:56 +0000 (15:03 +0800)]
audio: codec: add ad82584f driver

PD#156734: audio: codec: add ad82584f driver

Change-Id: I1e2d8b452e5560c84c60d965e7a916fa0ff03bf4
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agopcie: add pcie dts support for G12A
Zan Peng [Fri, 2 Feb 2018 08:02:07 +0000 (16:02 +0800)]
pcie: add pcie dts support for G12A

PD#156734: pcie: add pcie dts support for G12A

Change-Id: Ia437be3df71062fe89f8203778d5b1b42df37dba
Signed-off-by: Zan Peng <zan.peng@amlogic.com>
6 years agocvbs: cvbs bring up for g12a
Nian Jing [Wed, 3 Jan 2018 13:06:19 +0000 (21:06 +0800)]
cvbs: cvbs bring up for g12a

PD#156734: cvbs bring up for g12a

Change-Id: I8a69d85a921e78300db9ec96c2f93807f6f139b4
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
6 years agopcie: add pcie driver support for G12A
Zan Peng [Fri, 2 Feb 2018 04:42:02 +0000 (12:42 +0800)]
pcie: add pcie driver support for G12A

PD#156734: pcie: add pcie driver support for G12A

Change-Id: I497e17ac212448934416c8af73206cd88766e406
Signed-off-by: Zan Peng <zan.peng@amlogic.com>
6 years agoaudio: auge: avout and notify spdifb to hdmitx
Xing Wang [Thu, 1 Feb 2018 01:21:26 +0000 (09:21 +0800)]
audio: auge: avout and notify spdifb to hdmitx

PD#156734: audio: auge: avout and notify spdifb to hdmitx

Change-Id: I63b9fe4d18979b33907a3ed848f99abf42ae8972
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
6 years agoosd: disable out fence and wait infence
Jiyu Yang [Thu, 22 Feb 2018 09:33:40 +0000 (17:33 +0800)]
osd: disable out fence and wait infence

PD#156734: osd: disable out fence and wait infence

Change-Id: Id0390f5c6667a64915d202362af87db761ef2783
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
6 years agovideo: disable vd1 post and pre as default
Brian Zhu [Thu, 1 Feb 2018 16:28:21 +0000 (00:28 +0800)]
video: disable vd1 post and pre as default

PD#156734

Change-Id: I43b372d55e4997999fe7c99ea9d0ab4f7b8a5e57
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
6 years agohdmitx: update hdmitx mode parameters
Yi Zhou [Thu, 22 Feb 2018 09:08:40 +0000 (17:08 +0800)]
hdmitx: update hdmitx mode parameters

PD#156734: hdmitx: update hdmitx mode parameters

1.update 6G signal
2.add hpd interrupt
3.add ddc channel
4.enable every mode output

Change-Id: I7d505f41b4f182324e6d8c560a17fb0b2bbb6b7a
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
6 years agoremote in: add remote dtsi config for G12A
Yu Tu [Fri, 2 Feb 2018 04:23:57 +0000 (12:23 +0800)]
remote in: add remote dtsi config for G12A

PD#156734: remote in: add remote dtsi config for G12A

Change-Id: Ia38c95bf8b16be9bafad396fc681405c98d6bc35
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
6 years agowifi/bt: add wifi bt config [1/1]
Weiguang.ruan [Thu, 1 Feb 2018 15:16:55 +0000 (23:16 +0800)]
wifi/bt: add wifi bt config [1/1]

PD#156734: wifi/bt: add wifi bt config

1. add wifi/bt configure

2. set pwm e for 32k clock

3. enable cts/rts of uart_a

Change-Id: I94800030a95119ed8ff0c60171faa2cca8eca287
Signed-off-by: Weiguang.ruan <Weiguang.ruan@amlogic.com>