History log of /rk3399_rockchip-uboot/drivers/mmc/mmc.c (Results 1 – 25 of 297)
Revision Date Author Comments
# ea6a84b6 19-Jun-2025 Ziyuan Xu <xzy.xu@rock-chips.com>

mmc: Fixes block read prepare flow for eMMC

In order to start a multiple block read with pre-defined block count the
host must use the SET_BLOCK_COUNT command (CMD23) immediately preceding
the READ_

mmc: Fixes block read prepare flow for eMMC

In order to start a multiple block read with pre-defined block count the
host must use the SET_BLOCK_COUNT command (CMD23) immediately preceding
the READ_MULTIPLE_BLOCK (CMD18) command. Otherwise the Device will start
an open-ended multiple block read that can be stopped using the
STOP_TRANSMISSION command.

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I976623d4bf90f47a7548ad0e9cfb65cac215df89

show more ...


# 388345ac 21-Feb-2025 Ziyuan Xu <xzy.xu@rock-chips.com>

mmc: select the correct bus-width

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I6b0bd8c4abf4077b0f416a8d19c97439ac15f611


# e09ef32e 20-Nov-2023 Yifeng Zhao <yifeng.zhao@rock-chips.com>

mmc: send stop command when tuning error occurs

It is necessary to send the stop command to restore the
controller state machine when tuning error occurs.

Signed-off-by: Yifeng Zhao <yifeng.zhao@ro

mmc: send stop command when tuning error occurs

It is necessary to send the stop command to restore the
controller state machine when tuning error occurs.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I153556156136943c6dfd6fdb4e31ed6750e72776

show more ...


# 983bba80 18-Apr-2023 Yifeng Zhao <yifeng.zhao@rock-chips.com>

drivers: mmc: select high speed to reduce initialization time

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ia8a1b72e6f6611c475f6591dd2445e65cc578eef


# 99685543 10-Jan-2023 Yifeng Zhao <yifeng.zhao@rock-chips.com>

mmc: support drive strength config for hs400 and hs400es

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I4e1feca2527f9a6cb3086b1d3db6693b46efc445


# 7a9b5d70 02-Dec-2022 Yifeng Zhao <yifeng.zhao@rock-chips.com>

mmc: support drive strength config for emmc by dts

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I9f6b924b3e9ebc81aedf67dc837a9aa706dc3217


# 13669fc5 28-Nov-2022 Yifeng Zhao <yifeng.zhao@rock-chips.com>

mmc: rockchip: support hs400es mode

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I5c80afca7cdd5616935f65914872a972c892c775


# a95f7caa 30-Mar-2022 Jason Zhu <jason.zhu@rock-chips.com>

mmc: allow sending ext_csd cmd several times

The mmc_send_ext_csd() is used to get mmc info, and may be update.
So allow to excute mmc_send_ext_csd() several times in normal
process.

Signed-off-by:

mmc: allow sending ext_csd cmd several times

The mmc_send_ext_csd() is used to get mmc info, and may be update.
So allow to excute mmc_send_ext_csd() several times in normal
process.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I7fbc2e4befa6b385a1d0db523ef097320cf8cfad

show more ...


# 699945cb 02-Mar-2022 Jason Zhu <jason.zhu@rock-chips.com>

mmc: add CONFIG_MMC_SIMPLE

Delete hs200 & hs400 & some redundant code.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I10a61d79357a192a7f978e2b8dea5d4b582bd2af


# e56bff5b 24-Nov-2021 Jason Zhu <jason.zhu@rock-chips.com>

mmc: change the clock firstly in hs400 mode

In U-Boot, if change MMC device to hs400, it has to change to hs200
firstly. Then change to hs ddr mode. This may occur error that change
the mode firstly

mmc: change the clock firstly in hs400 mode

In U-Boot, if change MMC device to hs400, it has to change to hs200
firstly. Then change to hs ddr mode. This may occur error that change
the mode firstly since the clock is higher than the hs ddr mode needed.
So change the clock firstly before change to hs ddr mode.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ic564579cbd7dad9376a27b2102c83c802c702dbd

show more ...


# fe414819 27-Aug-2021 Jason Zhu <jason.zhu@rock-chips.com>

mmc: use the common macro definition

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ied62935e9b0ea0e116db05be22dde5e8c5e30aeb


# 7863dac1 06-Aug-2020 Jason Zhu <jason.zhu@rock-chips.com>

dm: mmc: remove mmc_bread_prepare in mmc_blk_ops

Merge it to mmc_bread() with using op_flag.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I3f63ebf66c43184a134c49a39a62feb2d5ae9821


# 47f7fd3a 05-Jun-2020 Jason Zhu <jason.zhu@rock-chips.com>

blk/mmc: add function blk_dread_prepare

This function prepares to read data without confirming completed.
We can use it to prefetch data and run other process.

Signed-off-by: Jason Zhu <jason.zhu@r

blk/mmc: add function blk_dread_prepare

This function prepares to read data without confirming completed.
We can use it to prefetch data and run other process.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I76116c25dfdb7559b80a0216c414189e85409a3e

show more ...


# b0c97083 08-May-2020 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot


# 2056aa9f 06-May-2020 Jason Zhu <jason.zhu@rock-chips.com>

drivers: mmc: pass the mmc ext_csd to kernel

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I95dbd0da5d8750e5b19f00a54596ca484f72ecb2


# a4d1e7ee 03-Apr-2020 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot


# 479fbf72 02-Apr-2020 Jason Zhu <jason.zhu@rock-chips.com>

drivers: mmc: use pre-configure set by pre-loader or bootrom

The MMC is initialized by pre-loader or bootrom, so it is no need to
initialize it again. Open this config to skip some unused initialize

drivers: mmc: use pre-configure set by pre-loader or bootrom

The MMC is initialized by pre-loader or bootrom, so it is no need to
initialize it again. Open this config to skip some unused initialized
process.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: If00fc3ce7df4d15e71ecfd8f8717a59640c3b7a9

show more ...


# e531136e 17-Feb-2020 Jason Zhu <jason.zhu@rock-chips.com>

mmc: avoid reading ext_csd several times

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Iaf952a4721ea74a1fa55da9f1a3eece5cdcd2c0c


# 1f250d0a 17-Feb-2020 Jason Zhu <jason.zhu@rock-chips.com>

mmc: support hs200 in spl

Change-Id: I9c25265a2a1e2b10a4e6815c918b6bba750c5df8
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>


# 00dd75d2 10-Oct-2019 Jason Zhu <jason.zhu@rock-chips.com>

mmc: avoid reading ext_csd several times

Change-Id: I1fc0b719d3a6da2afd1f2dff904b15167c76158c
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>


# af6c3684 24-Sep-2019 Jason Zhu <jason.zhu@rock-chips.com>

mmc: support hs200 in spl

Change-Id: I21e965c58e92e3bec55f0319da7a10488c7fbc5b
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>


# ae1f243a 19-Nov-2018 Jason Zhu <jason.zhu@rock-chips.com>

mmc: delete SEND_STATUS after set-timing in hs200 mode

In the eMMC spec, “Note that while the actual timing change is done,
the behavior of any command sent command sent (like CMD13) cannot be
guara

mmc: delete SEND_STATUS after set-timing in hs200 mode

In the eMMC spec, “Note that while the actual timing change is done,
the behavior of any command sent command sent (like CMD13) cannot be
guaranteed due to the asynchronous operation. Therefore it is not
recommended to use CMD13 to check the busy completion of the timing
change indication.” indicates that SEND_STATUS can not be send after
set-timing, so delete it.

Test eMMC model:
Manufacturer ID: 45
OEM: 100
Name: DG401
Rd Block Len: 512
MMC version 5.1
Capacity: 14.7 GiB

Change-Id: Idd47461b529f28af649f2275041f36ef998ee404
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>

show more ...


# 9e8ce816 06-Nov-2018 Ziyuan Xu <xzy.xu@rock-chips.com>

mmc: distinguish switch command via send_status

The cmd13 can't guarantee the switch command is success even it response
without any error bit assert. So we should wait busy signal to wait the
behav

mmc: distinguish switch command via send_status

The cmd13 can't guarantee the switch command is success even it response
without any error bit assert. So we should wait busy signal to wait the
behaviour of the device is completed.

Change-Id: Ia7e9efc27b5e05a7bcb9b4c98eef1e134efc29e7
Fixes: 55e5defd2071 ("mmc: rework mmc_switch for non-send_status scenario")
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>

show more ...


# c30b5115 25-Jul-2018 Jason Zhu <jason.zhu@rock-chips.com>

mmc: re-init when read error occur

Change-Id: I1cb7e913159c4588e0f5dee2180aa1945504eaf5
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>


# a6a1f5f8 23-Jul-2018 Jason Zhu <jason.zhu@rock-chips.com>

mmc: add mmc_can_trim flag

The emmc support several erase mode, we add mmc_can_trim
flag hear to support trim.

Change-Id: Iaee154eb0ef5edb95783aa3753421afd7c058263
Signed-off-by: Jason Zhu <jason.z

mmc: add mmc_can_trim flag

The emmc support several erase mode, we add mmc_can_trim
flag hear to support trim.

Change-Id: Iaee154eb0ef5edb95783aa3753421afd7c058263
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>

show more ...


12345678910>>...12