Commit Graph

649344 Commits

Author SHA1 Message Date
Tao Zeng
52ea200edd mm: fix cma allocation time too long [1/1]
PD#TV-6340

Problem:
When quickly enter live tv just after boot to home, video may display
more than 10 seconds late after sound comeout. The main problem is
cma allocation time too long.

Solution:
1, add a page flag for pages under cma allocating. And do not
increase page-ref count for cma pages under allocating when it
is used by user space again.
2, restrict shmem/swap back pages using cma
3, improve cma using policy check in page allocating process.
4, replace righ page trace for migrated pages.

Change-Id: Ie6b591213a9eda974c3443ca9b491fa8d00cee50
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:25 +09:00
Tao Zeng
56874a1301 ramdump: write compressed data [2/2]
PD#SWPL-6193

Problem:
ramdump need write compressed data to persist storage device.
But if we write it under uboot, it may cause journal and block
bitmap mismatch due to different version of file system. This
caused kernel panic after ramdump finished.

Solution:
Write compressed data under kernel.
This change also removed some extern function of ramdump since
we use sticky register to store ramdump information.

Verify:
p212

Change-Id: Idd83ec6ead4783918b90a39cf716fd3117402278
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/mesong12b.dtsi
	arch/arm/boot/dts/amlogic/mesonsm1.dtsi
	arch/arm64/boot/dts/amlogic/mesong12b.dtsi
	arch/arm64/boot/dts/amlogic/mesonsm1.dtsi
2020-06-29 11:45:25 +09:00
Tao Zeng
a1910df48d numa: fix compile error after open NUMA config [2/2]
PD#SWPL-5301

Problem:
When open NUMA config on ARM64, there is compile error

Solution:
fix some compile problems

Verify:
p212

Change-Id: I1ae9ef975c680e3e5545186aac9ca2b57597bfe4
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:25 +09:00
Tao Zeng
ffc0098128 mm: reclaim for unevictable cma pages [1/1]
PD#SWPL-3902

Problem:
If cma page is unevictable, migrate it will cost long time.

Solution:
1. Recalim unevictable cma file cache pages.
2. Using CMA after first water mark not ok.

Verify:
einstern

Change-Id: I0ecbf5dd535cb034430c4ea623891e7a7ae6e4dd
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:25 +09:00
Tao Zeng
c03d5e1529 watchpoint: add watch point driver for cpu [1/1]
PD#SWPL-4351

Problem:
Our cpu has 4 watch point on each cpu. It can be used for debug
purpose. But currently there is no driver support it.

Solution:
Bring up driver for it.

Verify:
p212

Change-Id: Ifbcb7f9b77e10fcb03b3c1a5e18f06b1a56ec2f0
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:25 +09:00
tao zeng
c98e7f7a41 mm: add cma debug interafce [1/1]
PD#GH-17

Problem:
sometimes cma allocation failed but it's hard to get
failed log and need recompile code.

Solution:
Add /proc/cma_debug to open cma debug message dynamic.
By default, no debug message is printed. If you write a
value large than 0 to this node, debug message will be
printed.

Verify:
p212

Change-Id: Ibcfd1d48be5f33f674f09df713dc2e493748c405
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:25 +09:00
Tao Zeng
cd6058593d mm: fix dead loop if signal pending for cma alloc task [1/1]
PD#GH-17

Problem:
If a task be killed during CMA allocation, then it will abort
cma allocation in function compact_unlock_should_abort. But in
function aml_cma_alloc_range, it will return -EBUSY. Which cause
cma allocation loop won't exit and run again and again.

Solution:
return -EINT for this case to exit cma allocaion loop.

Verify:
newman platform

Change-Id: I6559bb184fc035ae68c8ccd001407767e1e22f0c
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:25 +09:00
Tao Zeng
d502d2bb21 ramdump: add ramdump support for TL1 [4/4]
PD#TV-1924

Problem:
On TL1, ramdump is not enabled.

Solution:
Add ramdump support for TL1 chips in kernel.
Also add sticky register config for other chips

Verify:
tl1_x301_v1

Change-Id: I67a11d128343ff9e615377b19914a3fc77b7acef
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:25 +09:00
Huan Biao
438cd09ff8 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>
2020-06-29 11:45:25 +09:00
Luke Go
66324a04ae ODROID: sd: sync old g12.
Change-Id: Ia8192f0db986b3d17ce0feae5da198c1f76df6ba
2020-06-29 11:45:25 +09:00
Luke Go
a871625a8e Partial revert: emmc: modify cophase for tl1 [1/1]
- Becasue of history error, some code is not necessary.

Change-Id: Id61149c6456006afbb18720aa73d1d85a1da17ee
2020-06-29 11:45:24 +09:00
Chris KIM
b10be59e9a ODROID-N2: Fix sd card reboot or boot fail.
Change-Id: I275890c4f05ad700c06bf2976e9ba9beca97584d
2020-06-29 11:45:24 +09:00
Ruixuan Li
9c50b0ce3e emmc: gp0 is not closed when suspend [1/1]
PD#SWPL-17541

Problem:
gp0 is not power-off when suspend

Solution:
switch gp0 to xtal when poweroff

Verify:
passed on tl1_t962x2_x301

Change-Id: I7a6988d7bdb7af446645ac1b71428435d0b2cf33
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2020-06-29 11:45:24 +09:00
Ruixuan Li
b25e31b17d emmc: gp0 is not disabled when suspend [1/1]
PD#SWPL-18275

Problem:
gp0 is not disabled when suspend

Solution:
disable gp0 when suspend is called

Verify:
passed on tl1

Change-Id: I19013659a5a7c9d565a19197ff59c77059e37c75
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2020-06-29 11:45:24 +09:00
Nan Li
87e455555b emmc: optimize coverity warning [1/1]
PD#SWPL-16815

Problem:
commit e9dc698c503b8171e77f631427a360835c387e8e
The code has warning.

Solution:
modify code log2i().

Verify:
TL1

Change-Id: If7f66b8856f791c05781c5eb3f8691e2c63e033d
Signed-off-by: Nan Li <nan.li@amlogic.com>
2020-06-29 11:45:24 +09:00
Nan Li
e60824e3b7 emmc: optimize coverity warning [1/1]
PD#SWPL-16530

Problem:
The code has coverity warning.

Solution:
modify code.

Verify:
TL1

Change-Id: I0bbd1fc9ae39fb269b35e0a18f8ddeb01f3bffab
Signed-off-by: Nan Li <nan.li@amlogic.com>
2020-06-29 11:45:24 +09:00
Nan Li
c2eccd3ff2 sdio: optimize sdio suspend/resume [1/1]
PD#SWPL-16036

Problem:
When the system starts up, wifi is turned on.
When we manually turn off wifi and start the
suspend & resume operation, we will find that
the sdio error is reported when we wake up

Solution:
Add the sdio_notify() interface to notify the
sdio controller when wifi is on/off, enabling
the keep_power standard to be configured when suspend.

Verify:
TL1

Change-Id: I48e0c31bf7ea80d3efd4b0d41b4af378e859dc15
Signed-off-by: Nan Li <nan.li@amlogic.com>
2020-06-29 11:45:24 +09:00
Lei Qian
bd649ddc4c mmc: merge from mainline
PD#SWPL-15312

Change-Id: Ib35b38a4ec7a660e5fafddfbe6522952479753c4
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2020-06-29 11:45:24 +09:00
Nan Li
f832673b24 emmc: optimize sdio tuning print [1/1]
PD#SWPL-15797

Problem:
commit a5c3731f5d
this patch has err, the print buf will be out of bounds.

Solution:
Reposition the pointer before each loop.

Verify:
tl1

Change-Id: I8f44269c375147c5290af9c6d84fd5d85be271f0
Signed-off-by: Nan Li <nan.li@amlogic.com>
2020-06-29 11:45:24 +09:00
Nan Li
d54d5f30d7 sdio: optimize sdio tuning print [1/1]
PD#SWPL-14443

Problem:
sdio tuning print info is too much.

Solution:
optimize tuning print.

Verify:
tl1

Change-Id: Ia0a0315eb30480b0014aa1e35d12b50576221f2e
Signed-off-by: Nan Li <nan.li@amlogic.com>
2020-06-29 11:45:24 +09:00
Nan Li
098bcdb77b sdio: optimize mmc tuning operation [1/1]
PD#SWPL-13914

Problem:
G12A TDMA affects the tuning, make tuning process
+/- dly is useless.

Solution:
add pdata save val operation.

Verify:
G12A_u212

Change-Id: I204dd989fae0d400b14725df068378be0262b1cc
Signed-off-by: Nan Li <nan.li@amlogic.com>
2020-06-29 11:45:24 +09:00
Lei Qian
e15bde6367 Revert "emmc: run hs400 200M busmode on tl1 [1/1]"
This reverts commit ea031bebea352820707e13743ef5a6935efc9393.
2020-06-29 11:45:24 +09:00
Ruixuan Li
3c9855f23b emmc: run hs400 200M busmode on tl1 [1/1]
PD#SWPL-11266

Problem:
tl1 is running hs200 200M

Solution:
modify dts

Verify:
passed on tl1_t962x2_x301

Change-Id: Ib515d62e92564bb71980bb8122de7dc54a89a2fb
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2020-06-29 11:45:23 +09:00
Long Yu
50d01b999e emmc: Fixed adj mode for HS200 uses 1G clock source [1/1]
PD#SWPL-12162

Problem:
1)no use 1G source clock

Solution:
1)use 1G

Verify:
TL1

Change-Id: I4bf9036cb8223e9adf865c9cbdc64a8f6031ec05
Signed-off-by: Long Yu <long.yu@amlogic.com>
2020-06-29 11:45:23 +09:00
Long Yu
944c610889 emmc: Set a flag when all sampling points are valid [1/1]
PD#SWPL-12209

Problem:
fixed SWPL-11917
When all the sample points are valid,
they fall into the changes of 111917

Solution:
flag is set when all sampling points are valid
so tuning does not enter the changes of 11197

Verify:
txlx

Change-Id: I591993f3007db913b0030b108dcb18c304bf1042
Signed-off-by: Long Yu <long.yu@amlogic.com>
2020-06-29 11:45:23 +09:00
Nan Li
908c0167f8 sd: optimize sduart not supported flag [1/1]
PD#SWPL-4858

Problem:
Soc not support sduart

Solution:
add not supported flag in dts

Verify:
verify by tl1 skt

Change-Id: Ifd1f975bd13b150aac9d99f60423ab4f0b903c98
Signed-off-by: Nan Li <nan.li@amlogic.com>
2020-06-29 11:45:23 +09:00
ruixuan.li
239d8db2c1 tm2: make emmc run high speed [1/1]
PD#SWPL-5658

Problem:
emmc run hs200 report cmd18 rx data crc

Solution:
emmc run high speed first

Verify:
passed on t962e2_ab319

Change-Id: Iaeef33e38f7c5130ebfd0e7c5886459b8138a803
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/mesontm2.dtsi
	arch/arm/boot/dts/amlogic/tm2_t962e2_ab311.dts
	arch/arm/boot/dts/amlogic/tm2_t962e2_ab319.dts
	arch/arm64/boot/dts/amlogic/mesontm2.dtsi
	arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311.dts
	arch/arm64/boot/dts/amlogic/tm2_t962e2_ab319.dts
2020-06-29 11:45:23 +09:00
Qiang Li
441d225410 sdcard: sm1: add sdcard support. [1/2]
PD#SWPL-5409

Problem:
sm1 sdcard failed.

Solution:
change sm1 sdcard high speed mode co_phase.

Verify:
SM1_AC200

Change-Id: I295c6fac2594e611bf278f83a97bb503fb8bb13b
Signed-off-by: Qiang Li <qiang.li@amlogic.com>
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/sm1_pxp.dts
	arch/arm/boot/dts/amlogic/sm1_s905d3_ac200.dts
	arch/arm/boot/dts/amlogic/sm1_s905d3_skt.dts
	arch/arm64/boot/dts/amlogic/sm1_pxp.dts
	arch/arm64/boot/dts/amlogic/sm1_s905d3_ac200.dts
	arch/arm64/boot/dts/amlogic/sm1_s905d3_skt.dts
	drivers/amlogic/mmc/aml_sd_emmc.c
2020-06-29 11:45:23 +09:00
ruixuan.li
480564fb45 tm2: emmc run hs400 200M [1/1]
PD#SWPL-5658

Problem:
emmc run hs200 200M now

Solution:
set emmc busmode to hs400 200M

Verify:
passed on t962e2 ab311

Change-Id: If5fef5c3b55cc95152b0d5d19bb5a56b293aafcf
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/sm1_s905x3_ac213.dts
	arch/arm/boot/dts/amlogic/tm2_t962e2_ab311.dts
	arch/arm/boot/dts/amlogic/tm2_t962e2_ab319.dts
	arch/arm/boot/dts/amlogic/tm2_t962x3_ab301.dts
	arch/arm64/boot/dts/amlogic/sm1_s905x3_ac213.dts
	arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311.dts
	arch/arm64/boot/dts/amlogic/tm2_t962e2_ab319.dts
	arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts
2020-06-29 11:45:23 +09:00
Ruixuan Li
e2b93503cd emmc: run hs400 200M on sm1 [1/1]
PD#SWPL-5404

Problem:
run hs400 200M on sm1

Solution:
config sm1 and modify dts

Verify:
passed on ac200

Change-Id: I34e54f88db79ce42f9effbf8d673ade613de328f
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/sm1_s905d3_ac200.dts
	arch/arm64/boot/dts/amlogic/sm1_s905d3_ac200.dts
2020-06-29 11:45:23 +09:00
Long Yu
04c8f997a1 emmc: modified the fixed adj tuning mode for HS200 [1/1]
PD#SWPL-11917

Problem:
Data sampling window has discontinuity

Solution:
Move the data as a whole to find a continuous data window

Verify:
txlx

Change-Id: I76fd41c22ff4c9e2e40b2b47580e25e0284ffbfa
Signed-off-by: Long Yu <long.yu@amlogic.com>
2020-06-29 11:45:23 +09:00
ruixuan.li
7d87c9ffe3 sm1: emmc run hs200 busmode [1/1]
PD#SWPL-5404

Problem:
emmc report data crc error in hs200 busmode

Solution:
set hs200 co_phase to 2 and did not reset the
hs200 co_phase and tx_phase when adjust tuning is
find the error point in sm1

Verify:
verify pass on sm1_s905d3_ac200

Change-Id: I56aa8eb666fb55641db75878a3488f66c721bd6d
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>

Conflicts:
	arch/arm64/boot/dts/amlogic/sm1_s905d3_ac200.dts
	arch/arm64/boot/dts/amlogic/sm1_s905d3_skt.dts
	drivers/amlogic/mmc/aml_sd_emmc.c
2020-06-29 11:45:23 +09:00
Ruixuan Li
766e9299ea emmc: run hs400 166M busmod on sm1 [1/1]
PD#SWPL-10719

Problem:
hs400 200M not stable on sm1

Solution:
run hs400 166M busmod

Verify:
passed on sm1_ac200

Change-Id: I5e5f4db821e8360fdd3ccd6ce24df83446073cf2
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/sm1_s905d3_ac200.dts
	arch/arm64/boot/dts/amlogic/sm1_s905d3_ac200.dts
2020-06-29 11:45:23 +09:00
Ruixuan Li
1704b15c7d emmc: rescan cmd delay windows to set cmd delay [1/1]
PD#SWPL-10095

Problem:
command delay may too close to the command edge

Solution:
rescan cmd delay windows and find cmd delay value
after data alignment

Verify:
passed on g12b

Change-Id: I258e93aa87e35c843c45f62c58af3609bebe0901
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2020-06-29 11:45:23 +09:00
Nan Li
9181c96a92 sdio: optimize sdio clk cfg [2/2]
PD#SWPL-9640

Problem:
sdio auto_clk close fail.

Solution:
optimize sdio auto_clk cfg,
add sdio_clk_always_on(int on).

Verify:
G12A_u211

Change-Id: Id760b41a948c6b7e15f675376084b0cdd4edc151
Signed-off-by: Nan Li <nan.li@amlogic.com>
2020-06-29 11:45:22 +09:00
Nan Li
67f1fce48a sdio: optimize sdio clk cfg [1/1]
PD#SWPL-9640

Problem:
sdio auto_clk close fail.

Solution:
optimize sdio auto_clk cfg,
add sdio_clk_always_on().

Verify:
G12A_u211

Change-Id: Iec6e9460ad650001f079844f183d905789aa76e7
Signed-off-by: Nan Li <nan.li@amlogic.com>
2020-06-29 11:45:22 +09:00
Ruixuan Li
7c7d0d6e08 emmc: change emmc busmode from hs400 to hs200 [1/1]
PD#SWPL-9326

Problem:
hs400 200M not stable on some platform

Solution:
modify dts to hs200 mode

Verify:
passed on g12b_revb tl1 sm1 tm2

Change-Id: I45670c979b62a2caeed1e7ebc35b035bbbf8968c
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/sm1_s905d3_ac200.dts
	arch/arm/boot/dts/amlogic/sm1_s905d3_ac200_buildroot.dts
	arch/arm/boot/dts/amlogic/sm1_s905d3_ac202.dts
	arch/arm/boot/dts/amlogic/sm1_s905d3_ac202_1g.dts
	arch/arm/boot/dts/amlogic/sm1_s905x3_ac213.dts
	arch/arm/boot/dts/amlogic/tm2_t962e2_ab311.dts
	arch/arm/boot/dts/amlogic/tm2_t962x3_ab301.dts
	arch/arm64/boot/dts/amlogic/sm1_s905d3_ac200.dts
	arch/arm64/boot/dts/amlogic/sm1_s905d3_ac200_buildroot.dts
	arch/arm64/boot/dts/amlogic/sm1_s905d3_ac202.dts
	arch/arm64/boot/dts/amlogic/sm1_s905d3_ac202_1g.dts
	arch/arm64/boot/dts/amlogic/sm1_s905x3_ac213.dts
	arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311.dts
	arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts
2020-06-29 11:45:22 +09:00
ruixuan.li
2dfb3f09d3 tm2: emmc run hs200 busmode [1/1]
PD#SWPL-5658

Problem:
emmc run high speed now

Solution:
modify dts

Verify:
passed on t962e2_ab319

Change-Id: Iedef30bed9547e7f57c883077462f1762c55fda3
Signed-off-by: ruixuan.li <ruixuan.li@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/tm2_t962e2_ab319.dts
	arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311.dts
	arch/arm64/boot/dts/amlogic/tm2_t962e2_ab319.dts
2020-06-29 11:45:22 +09:00
Long Yu
97964df0de emmc: After standby sleep, clear the CMD tuning flag [1/1]
PD#SWPL-9075

Problem:
Because the CMD tune flag was not cleared before standby,
debug printing was performed during auto tune

Solution:
After standby sleep, clear the CMD tuning flag

Verify:
passed on TL1

Change-Id: Ie4a531346f50983009477131408d81c76d5c020f
Signed-off-by: Long Yu <long.yu@amlogic.com>
2020-06-29 11:45:22 +09:00
Long Yu
60f5d0668e emmc: report response crc error on G12B when hs400 200M busmode [1/1]
PD#SWPL-8670

Problem:
G12B report response crc error when hs400 200M busmode

Solution:
find a eyetest hole between 14-20 or 48-54, otherwise
tuning tx_delay and find again and
adjust CMD rx timing dynamically in HS400 mode

Verify:
passed on G12B

Change-Id: I23e4d5118e0ca0564367a77102aea9e1085633a9
Signed-off-by: Long Yu <long.yu@amlogic.com>
2020-06-29 11:45:22 +09:00
Ruixuan Li
b29ea67a5d emmc: report response crc error on tl1 when hs400 200M busmode [1/1]
PD#SWPL-7740

Problem:
tl1 report response crc error on tl1 when hs400 200M busmode

Solution:
find a eyetest hole between 14-20 or 48-54, otherwise
tuning tx_delay and find again

Verify:
passed on tl1_skt

Change-Id: I46e2c3c4d7ef24bcac7b44fee73112894540fc33
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2020-06-29 11:45:22 +09:00
Long Yu
5be14ba9ab emmc: Clear the value of txdelay in legacy mode on the resume process [1/1]
PD#SWPL-7181

Problem:
switch to high-speed from hs200 failed for resume process.

Solution:
set tx_delay as 0 for legacy mode.
clear cfg_cmd_setup

Verify:
verify by TL1

Change-Id: I5dbb1bbc391da864464bf137837a2b0f54ccda42
Signed-off-by: Long Yu <long.yu@amlogic.com>
2020-06-29 11:45:22 +09:00
long yu
b5217bc0ee emmc: backward compatible with all HS400 clock sources [1/1]
PD#SWPL-6294

Problem:
TL1 and G12B uses clkin3,TXLX uses clkin2

Solution:
unifying the HS400 source clock name in DTS

Verify:
TL1-T962X2_X301 G12B-Reva G12B-Revb

Change-Id: I7acaf7b4392d757955f43a0b17ac1fad84f53d26
Signed-off-by: Long Yu <long.yu@amlogic.com>
2020-06-29 11:45:22 +09:00
long yu
de8540862b storage: emmc: reduce cmd/ds/data pins driver strength for TL1 SOC [1/1]
PD#SWPL-5334

Problem:
TX window is not stable

Solution:
Reduce the drive capability of emmc controller pins

Verify:
TL1-T962X2_X301

Change-Id: Ib641c66131c2dee41eb68fb262f4770f431676b9
Signed-off-by: long yu <long.yu@amlogic.com>
2020-06-29 11:45:22 +09:00
long yu
35a4be18ba storage: emmc: Add HS400 busmode support for G12B-RevB [1/1]
PD#SWPL-5040

Problem:
not support HS400 busmode

Solution:
add HS400 busmode support for G12B-RevB

Verify:
T962X-R311,TL1-T962X2_X301,G12B-W400

Change-Id: I11a1f47b9473fa341c7d754a51d6e270551758a7
Signed-off-by: long yu <long.yu@amlogic.com>
2020-06-29 11:45:22 +09:00
Nan Li
0f16306557 sdio: set sdio hs mode co_phase [1/1]
PD#SWPL-5206

Problem:
Setup time in sdio highspeed mode of txlx is
inconsistent with the protocol standard.

Solution:
set co_phase = 2.

Verify:
r321

Change-Id: I3e5a1bca335faea6397513de772d3ee35ea76d40
Signed-off-by: Nan Li <nan.li@amlogic.com>
2020-06-29 11:45:21 +09:00
Nan Li
35bc41f8d8 sd: add sduart not supported flag [1/1]
PD#SWPL-4858

Problem:
tl1 not support sduart

Solution:
add not supported flag in match_data

Verify:
verify by tl1 skt

Change-Id: I651765433bb62892fad770c85a5eccd4805e7c79
Signed-off-by: Nan Li <nan.li@amlogic.com>
2020-06-29 11:45:21 +09:00
Long Yu
e6bbfaf869 storage: emmc: Add HS400 busmode support for TL1 [1/1]
PD#SWPL-2311

Problem:
not support HS400 busmode

Solution:
add HS400 busmode support for TL1

Verify:
TL1-T962X2_X301

Change-Id: I95ac19e9c0c5b84c9225602cda6964aaaee4151e
Signed-off-by: Long Yu <long.yu@amlogic.com>
2020-06-29 11:45:21 +09:00
long yu
1d2e33a395 storage: emmc: Set core_phase to 2 for HS200 mode [1/1]
PD#TV-2112

Problem:
eMMC timing test failed on item tISU

Solution:
set core_phase to 2 for HS200 busmode

Verify:
TL1-T962X2_X301

Change-Id: I1025b6b6b66b2591b7a8faca68ff1852eeb9b85c
Signed-off-by: long yu <long.yu@amlogic.com>
2020-06-29 11:45:21 +09:00
Ruixuan Li
2406d5a0e6 emmc: modify cophase for tl1 [1/1]
PD#172587

Problem:
emmc data crc error

Solution:
modify cophase under kernel for tl1

Verify:
test pass on skt

Change-Id: Id4997ef2288a53e6f401744664aaf6b05cf36e38
Signed-off-by: Ruixuan Li <ruixuan.li@amlogic.com>
2020-06-29 11:45:21 +09:00