Commit Graph

649358 Commits

Author SHA1 Message Date
Qianggui Song
15cf4ac5d4 pinctrl: fix tl1 bt656 wrong configuration [1/1]
PD#SWPL-5360

Problem:
According to TL1-core-pin-mux-register-spec.xlsx:
bt656 pins function number is 3 but not 2.

Solution:
bt656 func change 2-->3

Verify:
TL1-sktboard

Change-Id: I740e0a446ef2b6018b2eca706548148b8c9d1156
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2020-06-29 11:45:26 +09:00
Qianggui Song
b4b86acd18 pinctrl: rename m8b pinmux function gpio to gpio_periphs [1/2]
PD#SWPL-4501

Problem:
All platforms but m8b use "gpio_periphs" as gpio pinctrl function, that
breaks consistency.

Solution:
rename m8b pinctrl function "gpio" to "gpio_periphs" to make it
consistent with code and other platform.

ref:
https://patchwork.kernel.org/patch/10720219/

Verify:
m200

Change-Id: I940d1e30882cc8b042c02022ed3435a659aa3921
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2020-06-29 11:45:26 +09:00
Xingyu Chen
1610f70bc1 pinctrl: meson: update pin groups for tl1 [1/1]
PD#172587

Problem:
some pin groups are not supported

Solution:
update pin groups according to pinmux document v8.

Verify:
TL1 skt board.

Change-Id: I88750e307208fd30c20343c1c5418c1035961b4e
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
2020-06-29 11:45:26 +09:00
changqing.gao
18b910673d memory_ext: Coverity defect cleanup: memory_ext [1/1]
PD#SWPL-16531

Problem:
Coverity defect cleanup: memory_ext

Solution:
Modify code according to coverity

Verify:
verify on the board of U212

Change-Id: Ibfba4655938561071f40cd9cd78c7ec0d5c51194
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
2020-06-29 11:45:26 +09:00
Tao Zeng
b71bdd47e6 pagetrace: fix /proc/pagetrace lost in 64bit os [1/1]
PD#SWPL-14800

Problem:
/proc/pagetrace is not exist in 64bit kernel.

Solution:
Using right macro for create fs node.

Verify:
x301

Change-Id: I27b8db9a349f37db4bc0d6752b06f3d6a6a6c46c
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:26 +09:00
Tao Zeng
94de04350d mm: change lmk/cma using policy [1/1]
PD#TV-10462

Problem:
Memory will allocation fail if play secure vedio source. Usually
seen by zram/wifi driver

Solution:
1, wake up kswapd earlier if water mark without free cma is not ok;
2, using zone-filecache to increace active of lmk. Which can be more
accurate than using global page status;
3, remove some restrict of using cma when allocate movable page by
zram or migrate from cma pool;
4, try allocate hard for atomic request in soft IRQ

Verify:
T950L

Change-Id: Ibf03f3c11a32175e9983ee8a61a14ae4b2436f1e
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:26 +09:00
Jiamin Ma
99847b48ee page_trace: fix compile error [1/1]
PD#SWPL-14800

Problem:
Compile error

Solution:
Fix compile error

Verify:
Compile pass

Change-Id: Iffb95fef1572e4ce17ec80f0765920b8afad8513
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
2020-06-29 11:45:26 +09:00
Tao Zeng
7fbcb9480e slab: trace for each slab object [1/1]
PD#TV-8287

Problem:
Slab memleak is hard to track;

Solution:
Add slab trace to fix it

Verify:
P212

Change-Id: Ie1c44f28d5539c7bf71f9825c617c36af65d8058
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:26 +09:00
Tao Zeng
2bb63a6a74 ramdump: not set sticky register if ramdump disabled [1/1]
PD#TV-1924

Problem:
Sticky register which control compress in bl2z will always be set
if ramdump driver probed.

Solution:
If ramdump is disabled by envrioment under uboot. sticky register
should not set for not enter compress under bl2z

Verify:
x301

Change-Id: I1f41c98cebf7957f0dc214046e6d011e08c326de
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:26 +09:00
Tao Zeng
f3ff8e986f vmap: fix wrong mmu setting in check sp funciton [1/1]
PD#TV-9668

Problem:
If sp address is in linear mapping range, check_sp_fault_again
function in vmap fault handler will still map a new page for it.
This will cause some data in R/W section polluted.

Solution:
Avoid map page if sp is in linear range.

Verify:
TL1 x301

Change-Id: I0e02a2048b586854c528cd3eeafb725751b9dc82
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:26 +09:00
Tao Zeng
7b16736376 mm: fix wrong kasan report [1/1]
PD#SWPL-13281

Problem:
There are 2 types of wrong kasan report after merge change of
save wasted slab.
1, slab-out-of-bounds, which is caused by krealloc set shadow
   memory out-of-range, since tail of page was freed.
2, use-after-free, which is caused by kasan_free_pages called
   after a page freed. Because this function already called in
   free_page, so it marked shadow memory twice.

Solution:
1, make shadow do not out of range if a tail page was freed and
   been realloc again.
2, remove call of kasan_free_pages.

Verify:
X301

Change-Id: Ib5bdcbb618a783920009bb97d112c361888b0d7c
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:26 +09:00
Chia-hung Duan
d12f067d05 build: fix uninitialized-use when build with prebuilt toolchain [1/1]
PD#SWPL-8241

Problem:
** SYNC FROM GOOGLE **
Build failed due to uninitialzed variable

Solution:
Init to reasonable value

Verify:
Build with Android prebuilt toolchain

Change-Id: I09615276b48b6253f8084743a7d50081cfc24ec4
Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>
2020-06-29 11:45:26 +09:00
Tao Zeng
a5ba93a43b kasan: close vmap if enabled kasan [1/1]
PD#SWPL-10141

Problem:
if opened kasan with vmap, there will be some wrong kasan reports

Solution:
close vmap if open kasan

Verify:
p212

Change-Id: I37cdcb26cfb6fe87529db1ece3b7740ac072ba1a
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:25 +09:00
Tao Zeng
cd6b4477ed kasan: fix panic issue when open kasan with vmap stack [1/1]
PD#SWPL-10141

Problem:
When open kasan with vmap stack on ARM32 platform, there
will be a panic issue which pc is running out of range:
[ 56.726530@2] PC is at 0x50
[ 56.729301@2] LR is at 0x0

Solution:
Close kasan when open vmap stack on ARM32

Verify:
TL1

Change-Id: Id82eb27543e8eade86b281cde9e160b8bf4e7878
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2020-06-29 11:45:25 +09:00
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