Commit Graph

648844 Commits

Author SHA1 Message Date
Shuai Li
f87a281f68 audio: pull down audio I2S pins [1/1]
PD#TV-2362

Problem:
A DC voltage is always there about 300ms.
And coupled with LRCLK and SCLK which
may cause a toggle an DAC side.

Solution:
Pull down the data pin to clear
the DC level.

Verify:
Local verified.

Change-Id: Ib7aff22c44dcec2f653b7ed29495e5e52c16e038
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-03-17 21:33:26 -08:00
Bichao Zheng
849e419957 irblaster: meson: refactored irblaster driver [1/1]
PD#SWPL-1856

Problem:
refactored irblaster code

Solution:
1. Refactor the code according to the core, provider, and consumer
   frameworks.
2. Provide software encode to let irblaster work according to different
   protocols
3. Provide a unified consumer interface to allow other consumer drivers
   to use irblaster.

Verify:
test pass on g12a_u200_v1

Change-Id: Ifd841ef0ed741b7fd721defc25691744ea2103f0
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2019-03-17 19:08:43 -08:00
Hang Cheng
754ec0f2e8 hdmirx: set rxsense sync with pddq for tl1 [1/1]
PD#SWPL-5668

Problem:
recognized as dvi after suspend/resume
when connect xiaomi mtk box

Solution:
when resume, add rxsense pulse to avoid
sda pulled low by xiaomi mtk box

Verify:
TL1-T962X2_X301

Change-Id: I480cbb4376bbb0c3b38318df2e26f5cc85db3d59
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
2019-03-17 19:06:17 -08:00
Lei Yang
7c2800564d hdmirx: add debug interface for HBR 8CH modde. [1/1]
PD#SWPL-5813

Problem:
HBR audio cannot work on TL1

Solution:
add a debug interface force hdmi afifo in 8ch mode

Verify:
t962x2

Change-Id: Ied02f772634e2c326e18f6d6463c0ae000430e29
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2019-03-17 19:05:20 -08:00
Xiaoming Sui
33b1aeedb8 video: timming gets error when switching channels [1/1]
PD#TV-3062

Problem:
When switching channels, Hisense platform needs hold video,
and the timming obtained at this time is wrong

Solution:
because we have add hold video function, so get width and
height interface give the last video frame width and height,
and so on change the video

Verify:
X301

Change-Id: I331a4589dcb5f5785dce7eea6d8cd03c92d733d2
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
2019-03-17 17:59:37 -08:00
Zongdong Jiao
c254f9b962 hdmitx: add dongle_mode case for low power [2/2]
PD#SWPL-5302

Problem:
For dongle products, it is connected to TV directly, and some
parameters are different from mbox.

Solution:
Add dongle mode for driver's usage

Verify:
U211/S905Y2

Change-Id: Ibe45b167800d3b830d78ca8e9d7b67efd64d8564
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-03-17 17:56:34 -08:00
Bencheng Jing
f1da0924ea amvecm: fix g12a/g12b sharpness0 addr wrong [2/2]
PD#SWPL-5919

Problem:
add offset for g12a/g12b sharpness0

Solution:
db offset for g12a/g12b sharpness0

Verify:
u212

Change-Id: I9d800d7c8b4446cb19dc39777bc1f940b0d6124c
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-03-15 06:40:01 -08:00
Shuai Li
0e8d6ec67f audio: add spdif/HDMI mute ctrl [1/1]
PD#TV-3016

Problem:
HDMI SPDIF mute interface has no effect.

Solution:
Add these interfaces for auge platform.

Verify:
Tested locally.

Change-Id: I168c0940e0f2b3d94091d43c6b8190f6f833c0f1
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-03-15 04:20:27 -08:00
Brian Zhu
233779ef4d vpp: add log switch in vpp_set_filters [1/1]
PD#SWPL-5942

Problem:
Too many log when DI process called the vpp_set_filters with AFBC.

Solution:
Add log switch to disable it.

Verify:
verified on X301

Change-Id: I34c8573bed78e49d27ec386279e929e617bf76d5
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-03-15 03:35:13 -08:00
Hang Cheng
008e7e5035 hdmirx: optimize audio fifo config [1/1]
PD#SWPL-5579

Problem:
audio fifo underflow after switch audio pattern
on chroma 2233: only 2ch audio in, but audio fifo
is configed to read out 8ch afifo. chroma 2233
may change from multi-channel(witch audio overflows
and workaround to config read out all subpackets)
to 2-channel audio pattern, then issue happens.
so need to reset audio fifo config.

Solution:
except for workaround case, always config audio
fifo to only store valid subpackets.

Verify:
tl1

Change-Id: If32a55330fa7ebd9f6359a460eea4ad62872207b
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
2019-03-15 03:12:20 -08:00
Yong Qin
edc1970398 di: pretect reg unreg flow [1/1]
PD#SWPL-4918

Problem:
when reg unreg event called too fast, di cause system crash

Solution:
pretect reg and unreg flow

Verify:
tl1

Change-Id: I9b3e28c2b0b709d4f53f60b1f044a390933117ce
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-03-15 02:50:43 -08:00
Zongdong Jiao
bdee9fadcb hdmitx: sync hdmi_audio uevent to hdmi hpd [1/1]
PD#SWPL-5827

Problem:
When Mbox->AVR->TV connected, if TV switch input sources, there
may be up 3 times short HPD in Mbox side. And this may cause
audio module lost downstream's capability.

Solution:
Remove original 2s delay in 'hdmi_audio' event.

Verify:
S905X2/U212

Change-Id: I39512030f058ab9c72ee4c779f3b692898440271
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-03-14 19:20:33 -08:00
shichang.zhai
59619849c0 dts: add sensor name for imx307 [1/1]
PD#OTT-2643

Problem:
when bringup imx307,sensor name in dts need to update

Solution:
add sensor name for imx307 in dts

Verify:
W400

Change-Id: Ic5614326b0debd01efa028f66e7c6337d78ec242
Signed-off-by: shichang.zhai <shichang.zhai@amlogic.com>
2019-03-14 18:52:58 -08:00
Nanxin Qin
38c72c8cf1 codec_mm: changes the prot of pages to PAGE_KERNEL. [2/2]
PD#SWPL-4597

Problem:
Probabilistic full-screen display mosaic after seek 8K H265

Solution:
alloc mem area with the cached which from the vmap. this way
can improve the efficiency of I/O.

Change-Id: Icf18b9cd57bdc54f832aa827a535399939b28611
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2019-03-14 17:47:20 -08:00
nengwen.chen
d61c997693 atv_demod: Fix ATV audio output noise when switching channels to play [1/1]
PD#SWPL-2297, PD#SWPL-5450, PD#TV-2311

Problem:
Fix ATV audio output noise when switching channels to play.

Solution:
1.Add the judgment of SNR to prevent the weak signal
  from entering the OV mode.
2.Wait for the signal to be completely stable before OV detection.
3.OV detection is turned off by default,
  and will be turned on again when non-standard signals are encountered.
4.The OV detection moves from afc timer to monitor.
5.Optimize detection of A2/FM.
6.atv demod ver: V2.08.

Verify:
verified by x301

Change-Id: I3064230472ce51e1192a2d08ef6cc6f4ba10abaa
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-03-14 03:26:49 -08:00
Lei Yang
f725768513 hdmirx: change irq toggle mode [1/1]
PD#SWPL-5224

Problem:
missing DRM irq.

Solution:
1. modify irq toggle mode.
2. add double check for IP irq bit.

Verify:
T962x2

Change-Id: I6c77e5da92d5f21bc3710d9a6a744c10b1895e71
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2019-03-14 03:05:21 -08:00
Huan Biao
a7662d5b25 thermal: cooldev: update cpucore cooldev for multi cluster chip [1/1]
PD#SWPL-5366

Problem:
g12b cpucore cooling devices hotplug a little core and a big
when hot trippoint trigger, need to update cooling devices that
hotplug one core one hotstep for big core to little core.

Solution:
1.modify cpucore cooling for new solution.
2.modify hotplug core for can hotplug all big core.
3.ipa dts no cluster id, all cpucore is one cooling device
  dts have cluster id, one cluster is one cooling devices.

Verify:
test on g12b w400.

Change-Id: I3320b007e35e7ac415cf7623f74f0a5153fed9b5
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2019-03-13 23:28:17 -08:00
Yong Qin
291cf50feb di: play 1080i timing always print di err[1/1]
PD#SWPL-5807

Problem:
1080i always print di err,modify di pre idle register
define are wrong

Solution:
1.modify register define according g12a

Verify:
g12a

Change-Id: I13400d8b18e0e85894ba8d10afc0ae119874aab4
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-03-14 15:12:14 +08:00
Yong Qin
030872bf3c di: 1080p,the screen display anormal [1/1]
PD#SWPL-5874

Problem:
1080p the screen display anormal

Solution:
compress mode, modify vdin frame type.

Verify:
tl1

Change-Id: Ic1ee1472105861c8debce2a1645f70ed617fd132
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-03-13 22:56:53 -08:00
rongrong zhou
b7da1a0d36 ptsserv: fix pts lookup fail issue [3/3]
PD#SWPL-3730

Problem:
playback not smooth

Solution:
if p2 lookup fail, set p2 = p

Verify:
  verified by x301

Change-Id: I181eae2ba40edd937df12e0925c2a55c856162ba
Signed-off-by: rongrong zhou <rongrong.zhou@amlogic.com>
2019-03-13 21:59:09 -08:00
Matthew Shyu
28018bca11 crypto: fix and enable aes dma on G12B [1/1]
PD# SWPL-4823

Problem:
1. After stack optimization, stack memory cannot be
mapped as dma buffers and thus causing crypto dma failed to
generate correct result.
2. crypto dma was not enabled on G12B

Solution:
1. Move key_iv buffer from stack to memory provided by kzalloc
2. Enable crypto dma on G12B
3. Replace module_param with debugfs
4. Replace pr_err with dev_err

Verify:
verified on G12B

Change-Id: I6de682e3d1fc141f8c6179c7d91f9b4bff165eae
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2019-03-13 18:54:20 -08:00
Evoke Zhang
b88a0a9190 lcd: add vbyone large vswing support for tl1 [1/1]
PD#SWPL-5665

Problem:
some vbyone panel need large vswing

Solution:
add large vswing support for vbyone

Verify:
x301

Change-Id: I2e0e9ab6a73dab292e104a92b341867ceb5ecdbb
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-03-13 03:54:43 -08:00
Tao Guo
76a5e27b93 debug: add atrace support [1/1]
PD#SWPL-4956

Problem:
Need atrace to debug multimedia issue

Solution:
Add atrace functions

Verify:
P212

Change-Id: I0f07387dfa35a33c25e538a474a3a12bd88d5092
Signed-off-by: Tao Guo <tao.guo@amlogic.com>
2019-03-13 00:36:52 -08:00
Jianxin Pan
755c783ef1 Merge "ANDROID: sdcardfs: Change current->fs under lock" into amlogic-4.9-dev 2019-03-13 01:25:03 -07:00
yuehu mi
00caf231a9 vrtc: add debug nodes, set alarm time and wake up system [1/1]
PD#TV-3085

Problem:
Add VRTC debug interface into TL1 Android P

Solution:
add wakeup and wakeup_time debug nodes

if you want to set alarm time, for example, set alarm wakeup time 10s
echo 10 > /sys/kernel/debug/wakeup_time

if you want to wake the system when an alarm is triggered, like this
echo 1 > /sys/kernel/debug/wakeup

Verify:
tl1_t962x2_x301

Change-Id: Ic40db0d9cb4ac2cab615206518d8db22b4095f72
Signed-off-by: yuehu mi <yuehu.mi@amlogic.com>
2019-03-12 23:31:04 -08:00
Daniel Rosenberg
e5805b4410 ANDROID: sdcardfs: Change current->fs under lock
PD#SWPL-5666

Problem:
STS test fail
testPocCVE_2018_9515

Solution:
bug: 111641492 from security

Verify:
U212

Change-Id: I79e9894f94880048edaf0f7cfa2d180f65cbcf3b
Reported-by: Jann Horn <jannh@google.com>
Signed-off-by: Daniel Rosenberg <drosen@google.com>
2019-03-13 14:43:12 +08:00
Shuai Li
009354756a audio: fix H-voltage when tdm disable [1/1]
PD#SWPL-2952

Problem:
High voltage will cause the tdmout
data pin wrong I2S data which cause pop.

Solution:
Disable the bias of gpio.

Verify:
I2S data will be low when I2s closed.

Change-Id: If5d68e0f30df074f528dfec21cbe297795bc4ea7
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-03-12 21:58:44 -08:00
Zhe Wang
1670aa7274 audio: tune audio volume slew time [1/1]
PD#SWPL-5845

Problem:
audio playback too slow

Solution:
change audio volume slew time

Verify:
Locally test on X301

Change-Id: I48c920037cac852aaa01818bb02eaa8991c1df6b
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-03-12 17:55:42 -08:00
nengwen.chen
6cd6de0ef3 atv_demod: Fix non standard for analog signal [1/1]
PD#TV-1549, PD#TV-2829, PD#TV-2830

Problem:
Fix non standard for analog signal.

Solution:
1.Add non standard config 3 for analog signal.
2.Fix non standard default value.
3.Fix audio control register an bits.
4.After correcting the frequency offset success,
 reset tuner to prevent audio from identifying errors.

Verify:
verified by x301

Change-Id: I65335dbe9ce9dc66d4ccaae3c1ff591660790616
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-03-12 02:58:18 -08:00
Peng Yixin
582028581e media_module: add function to statistics drop frame on video layer [1/1]
PD#SWPL-1885

Problem:
    We need a function to statistics drop frame.

Solution:
    Add a function to statistics drop frame.

Verify:
    Verified U212

Change-Id: I30b429c2f3710c5c8d0da6ec083060c9cc3e61ad
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
2019-03-12 02:52:08 -08:00
long yu
0fe15fe9c8 storage: emmc: Compatible with G12B revA and revB [1/1]
PD#SWPL-5575

Problem:
not Compatible with G12B version a and b

Solution:
add revA match-data

Verify:
G12B-W400 RevA and RevB

Change-Id: Iee09861f7b162ee0660ea12dab60a238a9ae6be5
Signed-off-by: long yu <long.yu@amlogic.com>
2019-03-12 02:51:10 -08:00
yujie.wu
42276afad4 audio: Add PDM lane mask [1/1]
PD#SWPL-5594

Problem:
  The PDM input channel is not always in the
  first lane, we need a mask to detect which
  lane to use

Solution:
  Add lane config in PDM module
  Add lane-mask-in in W411 config

Verify:
  W411

Change-Id: I48ca5927402282611ba5e225d75d034eeceacad6
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
2019-03-12 02:37:41 -08:00
yujie.wu
e9f798ceff audio: Merge code from RSR project [1/2]
PD#SWPL-5495

Problem:
  There is some improvement code on RSR
  project, we need to merge them back to
  trunk.

Solution:
  Merge the code from rsr branch

Verify:
  A113

Change-Id: I0ba11c8ff412db659ff2f10bfc00d63c49f84bb5
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
2019-03-12 01:19:18 -08:00
Zhiqiang Han
265251cca3 dvb: ca add DES for DVB DSC [1/2]
PD#SWPL-5358

Problem:
no DES support for DVB DSC

Solution:
add DSC support for DVB DSC

Verify:
Local build on R314

Change-Id: Ia66a69b49eaaa14ad249d7b2a459f3143e813185
Signed-off-by: Zhiqiang Han <zhiqiang.han@amlogic.com>
2019-03-11 22:40:40 -08:00
Shaochan Liu
9cafce62c1 lcd: add more panel clk ss step for tl1 [2/2]
PD#SWPL-5290

Problem:
add more panel clk ss step for tl1

Solution:
change 5000ppm to 2000ppm for a step

Verify:
verify by t962x2-x301

Change-Id: Id8e6795f657cc4edf1fa0411721f741e87a0fcba
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
2019-03-11 21:44:25 -08:00
Shaochan Liu
c2695dc746 lcd: optimize vsync probe method, by string, not index value in dts [2/2]
PD#SWPL-4679

Problem:
optimize vsync probe method, by string, not index value in dts

Solution:
optimize vsync probe method, by string, not index value in dts

Verify:
verify by t962x2-x301

Change-Id: Ib87a2913b7dafb3ea3c9c5a936b29939ab7ee034
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
2019-03-11 21:30:45 -08:00
Tao Zeng
688caca498 binder: replace vmalloc range if need more memory [1/1]
PD#SWPL-5553

Problem:
Binder will allocate about 1MB vmalloc memory for IPC for each process,
but under code like GTVS, there are about over 100 vmalloc ranges
allocated by binder, which cause vmalloc address range not enough for
other modules.

Solution:
1, only vmalloc 4KB at first;
2, if user space need more memory, try to allocate a new vmalloc
   range with large size and move all related data to new place
3, dump vmalloc info if vmalloc failed

Verify:
P212

Change-Id: I07eea2623e5e19d410e0ff8a0bc6b11e2037023c
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-03-11 21:21:22 -08:00
sky zhou
d8c8e08253 dts: add u212/w400 wayland+drm dts [1/4]
PD#SWPL-3996

Problem:
no dts for u212/w400 drm.

Solution:
add drm dts for u212/w400.

Verify:
verify on u212/w400.

Change-Id: I534e3e6e847dfa10fc3515c256048ea237bdcd68
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2019-03-11 21:15:55 -08:00
lingjie li
c1142c9d5a osd: update osd_count according to the chip [2/4]
PD#SWPL-3996

Problem:
g12b/g12a wayland-drm device print below error
"fb: error osd index=0" while start wayland-client.
while start wayland-client.

Solution:
set to the proper osd_count

Verify:
W400

Change-Id: I3c4c6d821ff0778cd4912a67046f7dbab60be2ad
Signed-off-by: lingjie li <lingjie.li@amlogic.com>
2019-03-11 21:14:43 -08:00
Yi Zeng
4a8a66d7b5 mtd: nand: support new slc nand [1/1]
PD#SWPL-4511

Problem:
1Gb SLC Nand ZDND1G08U3D-IA requested by Marketing
aka ZDND1G08U3D-xx module number in code

Solution:
add the nand id into amlogic nand flash id table

Verify:
AXG_S400

Change-Id: I4e221497b801239aa62f62f844ff247fa05925d0
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
2019-03-11 18:37:40 -08:00
yujie.wu
485d3f167f audio: Add tas5782 volume control [1/1]
PD#SWPL-4734

Problem:
  There is no volume control for tas5782

Solution:
  Add ch1/ch2 volume control for tas5782

Verify:
  A113

Change-Id: I1e866a2bc024713278aea0c19cc8c91084a24b90
Signed-off-by: yujie.wu <yujie.wu@amlogic.com>
2019-03-11 04:14:28 -08:00
Evoke Zhang
b32b869103 arm: dts: x301: enable vdin0 afbc function [1/1]
PD#SWPL-4115

Problem:
vdin0 afbc is disabled default

Solution:
enable vdin0 afbc

Verify:
x301

Change-Id: I482514095174b36d555c2b2d6f28f3a1f34cc5ab
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-03-11 04:13:34 -08:00
Zhe Wang
ab04046551 audio: add kcontrol of EQ setting [1/2]
PD#TV-1808,TV-1809,TV-1810,TV-1811

Problem:
HW EQ on TL1 doesn't work

Solution:
Add kcontrol of EQ setting and getting

Verify:
test on X301

Change-Id: Iea1525b4a57241a99389c746c0238d96424df316
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-03-11 01:48:59 -08:00
Yong Qin
3f4854e57d di: support the interlace format from vdin afbc [2/2]
PD#SWPL-5205

Problem:
support afbc from vdin and decoder on tl1

Solution:
1.add this function
2.support from vdin and decoder

Verify:
tl1

Change-Id: I258d40ad5706f4a9a5749298dd9a33a9b4bbafa2
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-03-11 01:37:25 -08:00
Jian Hu
a3fb1dc0b7 clkmsr: axg: delete hard code which added during bringup [1/1]
PD#SWPL-5356

Problem:
when cat clkmsr node in sysfs, i2c bus does not work

Solution:
delete hard code

Verify:
verify on axg s400

Change-Id: Ib01f251f4b77685db5a57df395f1c1a75620c07b
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2019-03-11 01:23:56 -08:00
Xing Wang
6e58c2a20d audio: auge: modify share buffer can be occupied by later module [1/2]
PD#SWPL-5300

Problem:
share buffer is not alaway used for tdm and spdif,
but raw data needs to output by spdif.
this would lead to spk silence for dual output

Solution:
share buffer can be occupied by later module.
when tdm and spdif output in share buffer, then play spdif,
spdif will release from share buffer,
only frddr is only used for tdm, another new frddr is used for spdif.

Verify:
x301

Change-Id: Ib0c2e02e575f496c0b0911d347857ede0d0cfa14
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
2019-03-10 23:42:27 -08:00
Yong Qin
89a190a7dc vpp: support the interlace format from vdin afbc [1/2]
PD#SWPL-5205

Problem:
Now vdin support afbc+interlace format

Solution:
In vpp, add case to support vdin afbc with interlace

Verify:
tl1_x301, verify pass

Change-Id: I6540b03a6cb5308fc2bc202069aa87234fd35df6
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-03-10 23:02:24 -08:00
Brian Zhu
b00582b23b vpp: config the vd1 canvas1 correctly when 3D enabled [1/1]
PD#TV-3086

Problem:
3D display abnormal. The vd1 canvas1 was incorrect.

Solution:
When enabled 3D function, config vd1 canvas1 correctly

Verify:
x301

Change-Id: I201cda2f33badf1af54ab4f177a17f761c7cea8d
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-03-10 23:00:38 -08:00
Brian Zhu
607bc19f48 vpp: support 3D with afbc format [1/1]
PD#TV-3042

Problem:
3D function did not support afbc format before

Solution:
Add the support case which format is afbc.

Verify:
x301

Change-Id: I38189bfa78eec6ac811fb81631514d7d7b8b3d62
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-03-10 22:59:23 -08:00
Daogao Xu
e2c9db9405 i2c: add retry-process when slave NACK. [1/1]
PD#SWPL-4761

Problem:
When slave device is busy processing, it is unable to handle the
incoming communication attempts. i2c master have to repeatedly attemp
communication  until the slave sends an ACK after receiving its slave
address.

Solution:
add retry-process when slave NACK.

Verify:
mesonaxg_s420_32_release

Change-Id: Ieb195176cac4b80e223ea6adb502ffd3bc9ef728
Signed-off-by: Daogao Xu <daogao.xu@amlogic.com>
2019-03-10 19:21:36 -08:00