Commit Graph

21 Commits

Author SHA1 Message Date
jinbiao b6bce37072 SD: control sd io-related GPIO output low when reboot. [1/1]
PD#SWPL-164281

Problem:
SD io-related GPIO always output high when reboot.

Solution:
control sd io related GPIO output low via Pinctrl.

Verify:
C3_AW419

Change-Id: I487b5be27e2248b709c709c3bd7e3beb6d9adeee
Signed-off-by: jinbiao <jinbiao.ou@amlogic.com>
2024-08-15 01:42:32 -07:00
Long cb9cdc449a storage: dma access to memory physical addresses above 4G for MMC Host. [1/1]
PD#SWPL-176827

Problem:
1.need to access to memory physical above 4G.
2.sdio/sd/emmc need to use sg-link mode

Solution:
1.dma access to memory physical addresses
above 4G for MMC Host
2.sdio/sd/emmc use sg-link mode

Verify:
S6 bl201

Change-Id: I1726a8c086b2d665aefb32043ee19a251d0cdb3b
Signed-off-by: Long <long.yu@amlogic.com>
2024-08-09 08:04:26 -07:00
Rong Chen e75d5b42da mmc: add hs400 para save [1/1]
PD#SWPL-178572

Problem:
lack hs400 para save.

Solution:
add hs400 para save.

Verify:
S5

Change-Id: Ie363d3b303dd26c55b47778aa7753444be4af423
Signed-off-by: Rong Chen <rong.chen@amlogic.com>
2024-08-07 21:48:49 -07:00
Long 1622e39ea9 eMMC: optimizing the data tuning process of HS400ES. [1/1]
PD#SWPL-175417

Problem:
if any cmd resp timeout error in HS400es will not
continue to send the stop command.

Solution:
if there is cmd resp timeout error, we need to
send stop command additionally.

Verify:
txhd2

Change-Id: Id6652ab18e8e7b4281e06d8ff537986bdf60a31e
Signed-off-by: Long <long.yu@amlogic.com>
2024-08-01 06:25:56 -07:00
Long f0b480d4f1 eMMC: support amlogic CQE v2. [1/1]
PD#SWPL-160981

Problem:
The CQE v1 does not support placing tasks in memory
and does not support data encryption.

Solution:
support CQE v2

Verify:
S7 ax201

Change-Id: I0737d7b2b9e955838a9f3294d1f5faf5fd84aa17
Signed-off-by: Long <long.yu@amlogic.com>
2024-06-30 22:01:20 -07:00
Long 1d680881eb sdio: Optimize the throughput performance of sido wifi. [1/1]
PD#SWPL-174291

Problem:
need to improve sido wifi performance.

Solution:
Switch sdio source clock to DIV2 to provide bandwidth

Verify:
S7 ax201

Change-Id: I471517743851f381ec5d50aac3df9b26e5fe4aee
Signed-off-by: Long <long.yu@amlogic.com>
2024-06-23 23:02:29 -07:00
Long abdeb4129a eMMC: add sg-link descriptors for crypto. [1/1]
PD#SWPL-168640

Problem:
The old descriptor chain will cause dun to not be updated.

Solution:
add sg-link descriptors.

Verify:
S7

Change-Id: I50ccca0f441c4df4945a350cfdf9779497d9bba5
Signed-off-by: Long <long.yu@amlogic.com>
2024-05-26 23:03:04 -07:00
Long 0697ee9bb3 eMMC: support inlinecrypt feature. [1/1]
PD#SWPL-166960

Problem:
need inlinecrypt for emmc

Solution:
support inlinecrypt feature

Verify:
S7

Change-Id: I1d328d527a714b1f4661b0d0c328ecedec30d0d4
Signed-off-by: Long <long.yu@amlogic.com>
2024-05-07 04:04:59 -07:00
Long 6a35454196 eMMC: fix erase/sanitize timeout. [1/1]
PD#SWPL-152701

Problem:
Currently,we found that the Sanitize/Erase command may take longer
than that on the first factory reset after flashing.
This will cause the Sanitize/Erase command to timeout before completing.

Solution:
Enable max timeout in the eMMC controller only for Sanitize.
This will allow the factory reset command to always complete
successfully with the drawback that on eMMC failures, the device will
be stuck unless rebooted.

Verify:
T5d

Change-Id: Ifea2edfe758b2f723f2c02d369468e8ba9629fe3
Signed-off-by: Long <long.yu@amlogic.com>
2024-01-22 02:50:55 -07:00
Long 279006e0bf eMMC: Add method to sd clock sample cmd signal. [1/1]
PD#SWPL-143726

Problem:
Optimize the sampling method of cmd signal.

Solution:
sd_clk sample cmd response

Verify:
txhd2

Change-Id: Id851a1c81792f4267f766b4a9b904ebbffcc84aa
Signed-off-by: Long <long.yu@amlogic.com>
2023-12-26 00:31:08 -07:00
Long 482b6555d3 G12a: sdio and sdcard use time-sharing multiplexing. [1/1]
PD#SWPL-133324

Problem:
not support time-sharing multiplexing function.

Solution:
enable time-sharing multiplexing function.

Verify:
g12a_u212

Change-Id: I78392775c01b6b58aaf224b47537669bfe7737e1
Signed-off-by: Long <long.yu@amlogic.com>
2023-11-01 20:38:03 -07:00
ziyi f38b40750a emmc: clock is not disabled after suspend [1/1]
PD#SWPL-123245

Problem:
clock is not disabled after suspend

Solution:
revise code

Verify:
t5w

Change-Id: I60c1005e18ad94f685bd71f6b9b6bca2a65ee0df
Signed-off-by: ziyi <ziyi.huang@amlogic.com>
2023-06-26 04:48:07 -07:00
ziyi 50f5138544 t3x: pxp add high speed emmc and high sd [1/1]
PD#SWPL-111610

Problem:
no high speed emmc and sd

Solution:
add high speed emmc and sd and enlarge desc's buffer

Verify:
mimic,pxp

Change-Id: I397af3ddbdf13c507178bfdcea423a8a87a1d119
Signed-off-by: ziyi <ziyi.huang@amlogic.com>
2023-05-18 21:08:38 +08:00
Long d6b97e58a7 eMMC: support CQE. [1/2]
PD#SWPL-119703

Problem:
support CQE

Solution:
support CQE

Verify:
T5m

Change-Id: Iaf97dac88e1cafbd8b897506dd044e3a3518a593
Signed-off-by: Long <long.yu@amlogic.com>
2023-05-15 02:04:25 -07:00
Long 4791f52e8a S5: fixed sdcard timing. [1/1]
PD#SWPL-108753

Problem:
rx window compatibility is poor in sdcard sdr104 mode.

Solution:
fixed sdcard sdr104 core_phase

Verify:
S5 ax201

Change-Id: I9c4eb90001803d5dae17c9659fa261a8204e00f3
Signed-off-by: Long <long.yu@amlogic.com>
2023-04-15 08:59:04 +08:00
Long 5ec6ff86a3 sdio: config autoclock for c3. [1/1]
PD#SWPL-115224

Problem:
don't config auto clock

Solution:
config auto clock

Verify:
c3

Change-Id: I5479d9c58e8365655b89d9b98a6213a74002755b
Signed-off-by: Long <long.yu@amlogic.com>
2023-04-10 06:14:03 -07:00
Rong Chen 5e3ee02786 sdio: limited to 167M [1/1]
PD#SWPL-89453

Problem:
Some are unstable running 200M

Solution:
limited to 167M

Verify:
sc2_ah212

Change-Id: I99e15c4e42ff177e53993822a078434d5202b995
Signed-off-by: Rong Chen <rong.chen@amlogic.com>
2022-09-07 20:06:42 +08:00
Long 1b0b89a1c6 emmc : vendor hook change to timer func [1/1]
PD#SWPL-89620

Problem:
change way to add dtb key device

Solution:
revise code

Verify:
c2 af400

Change-Id: I186fbc477ce9215b8218f54f8a364dd029ea5822
Signed-off-by: Long <long.yu@amlogic.com>
2022-08-15 04:14:12 -07:00
Rong Chen 48bfc73a33 sdio: support sdio reset. [1/1]
PD#SWPL-74441

Problem:
not support sdio reset

Solution:
support reset

Verify:
s4d

Change-Id: Id9f91e492d7394cec0f715c83077e2b7863e53c8
Signed-off-by: Rong Chen <rong.chen@amlogic.com>
2022-03-23 02:13:34 -07:00
ziyi a46d66ea37 emmc: 64bit kernel 5.15 C2 (S4d) eMMC high speed(1\1)
PD#SWPL-73048

Problem:
in kernel 5.15,emmc clock is not OK for C2 platform

Solution:
change the clock setting

Verify:
Local

Change-Id: I55820e08e7ba73e1c57e07fa762c237ae5127edb
Signed-off-by: ziyi <ziyi.huang@amlogic.com>
2022-02-24 15:26:01 +08:00
Long Yu 0531d3b475 MMC: porting mmc driver [1/1]
PD#SWPL-68831

Problem:
porting mmc driver

Solution:
porting mmc driver

Verify:
s4d

Change-Id: If21f1e1300b1ee8393e24f8bc1f857497a3f975f
Signed-off-by: Rong Chen <rong.chen@amlogic.com>
2022-01-20 22:50:43 -07:00