| #
af9b8f5c |
| 11-Mar-2025 |
Shawn Lin <shawn.lin@rock-chips.com> |
mmc: rockchip_dw_mmc: Fix drv phase settings
Change-Id: I71a68bebaa45442aca20195194ae4d32437cef42 Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
|
| #
5d93e2ef |
| 21-Feb-2025 |
Ziyuan Xu <xzy.xu@rock-chips.com> |
mmc: rockchip_dw_mmc: fixes internal phase dependency
rv1103b hasn't ciu-sample/ciu-drive on cru.
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com> Change-Id: If73a9658f3013b7f071c5ecf2e474d80f156b0
mmc: rockchip_dw_mmc: fixes internal phase dependency
rv1103b hasn't ciu-sample/ciu-drive on cru.
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com> Change-Id: If73a9658f3013b7f071c5ecf2e474d80f156b08a
show more ...
|
| #
7105ed4d |
| 12-Jun-2024 |
Shawn Lin <shawn.lin@rock-chips.com> |
mmc: rockchip_dw_mmc: Fix internal phase calculate
ciu clock from CRU is 2 times of interface clock, so the delay number maybe not so accurate as the sample phase is based on interface clock.
Chang
mmc: rockchip_dw_mmc: Fix internal phase calculate
ciu clock from CRU is 2 times of interface clock, so the delay number maybe not so accurate as the sample phase is based on interface clock.
Change-Id: Icf20da2f99f463174d32ce413c0744bcf8afafcd Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
show more ...
|
| #
cb907bf0 |
| 03-Jun-2024 |
Xuhui Lin <xuhui.lin@rock-chips.com> |
drivers: mmc: Add rockchip_mmc_set_phase definition when MMC_SIMPLE enabled
Change-Id: Iee75c07da8b5d6885e3b7f583a2748499c5e541f Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>
|
| #
78a06bb7 |
| 30-May-2024 |
Yifeng Zhao <yifeng.zhao@rock-chips.com> |
mmc: rockchip_dw_mmc: Fix sample_clk judging conditions
bug: "Synchronous Abort" handler, esr 0x96000006
* Reason: Exception from a Data abort, from current exception level * PC =
mmc: rockchip_dw_mmc: Fix sample_clk judging conditions
bug: "Synchronous Abort" handler, esr 0x96000006
* Reason: Exception from a Data abort, from current exception level * PC = 0000000040235998 * LR = 0000000040274470 * SP = 00000000fb9f9090 * ESR_EL2 = 0000000096000006 * Reloc Off = 00000000bda1b000
x0 : 00000000fbc1ba20 x1 : 0000000000000000
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com> Change-Id: I60ca2958b4f9ca768b3087a1a0dddf59d5961b6e
show more ...
|
| #
5ddf1f49 |
| 17-May-2024 |
Yifeng Zhao <yifeng.zhao@rock-chips.com> |
drivers: mmc: rockchip_dw_mmc: set default sample phase for initializate
bug: MMC error: The cmd index is 8, ret is -5 mmc_init: -5, time 30
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
drivers: mmc: rockchip_dw_mmc: set default sample phase for initializate
bug: MMC error: The cmd index is 8, ret is -5 mmc_init: -5, time 30
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com> Change-Id: Iaf6893fe61bc4ec01b9dc7f941854bfc9be2ed66
show more ...
|
| #
57b8ceed |
| 18-Apr-2024 |
Xuhui Lin <xuhui.lin@rock-chips.com> |
mmc: rockchip_dw_mmc: Fix compile error
Compile error commands: make rv1106-spi-nor_defconfig rv1106-spi-nor-wakeup.config rk-sfc.config ./make.sh --spl-new CROSS_COMPILE=arm-rockchip830-linux-uclib
mmc: rockchip_dw_mmc: Fix compile error
Compile error commands: make rv1106-spi-nor_defconfig rv1106-spi-nor-wakeup.config rk-sfc.config ./make.sh --spl-new CROSS_COMPILE=arm-rockchip830-linux-uclibcgnueabihf-
When CONFIG_MMC_SIMPLE enable, no use rockchip_mmc_set_phase for now.
Change-Id: I28fa02d87fa5f3cec962960c02099b8810d7c3ae Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>
show more ...
|
| #
b512fec4 |
| 15-Apr-2024 |
Shawn Lin <shawn.lin@rock-chips.com> |
mmc: rockchip_dw_mmc: Add internal phase support
From RK3576 on, phase unit is moved to dwmmc IP interal, copy code from kernel to support it.
Change-Id: I750c008ec1d8c4c31adf39215f026c9067ea492e S
mmc: rockchip_dw_mmc: Add internal phase support
From RK3576 on, phase unit is moved to dwmmc IP interal, copy code from kernel to support it.
Change-Id: I750c008ec1d8c4c31adf39215f026c9067ea492e Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> (cherry picked from commit 0b10ba26ae8659e785a11014c19bae8939570dce)
show more ...
|
| #
c58ea627 |
| 20-Nov-2023 |
Yifeng Zhao <yifeng.zhao@rock-chips.com> |
mmc: porting the tuning code from the linux kernel
The original four phase tuning mechanisms used had some boundary conditions that were not properly handled, resulting in EMMC communication errors.
mmc: porting the tuning code from the linux kernel
The original four phase tuning mechanisms used had some boundary conditions that were not properly handled, resulting in EMMC communication errors.
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com> Change-Id: Ie19027da88a637dd365e489956d0d71d8ac443dc
show more ...
|
| #
48f38745 |
| 11-Nov-2022 |
Yifeng Zhao <yifeng.zhao@rock-chips.com> |
mmc: fix compile warning
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com> Change-Id: I7b6dc892179fb24668dc1c70d158d13cd63689dc
|
| #
54b86674 |
| 30-Mar-2022 |
Jason Zhu <jason.zhu@rock-chips.com> |
mmc: dw_mmc: reset the mmc clk phase
When the spl run the mmc hs200 mode, it will set the mmc clk phase. Then in the uboot, mmc will be re-initialized. If the mmc clk phase do not reset, there is an
mmc: dw_mmc: reset the mmc clk phase
When the spl run the mmc hs200 mode, it will set the mmc clk phase. Then in the uboot, mmc will be re-initialized. If the mmc clk phase do not reset, there is an cmd error occur.
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com> Change-Id: Ib9d40153d1b6f8ff4784c8827ecbc0fceb88ef39
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
|
| #
2fa7482a |
| 23-Sep-2021 |
Jason Zhu <jason.zhu@rock-chips.com> |
mmc: dw_mmc: return 0 if get mmc clock fail
Since the function return value is uint. If return a negative number, it will be converted to a large number. Then the mmc device will use the large numbe
mmc: dw_mmc: return 0 if get mmc clock fail
Since the function return value is uint. If return a negative number, it will be converted to a large number. Then the mmc device will use the large number to set its clock, this will make mistake.
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com> Change-Id: Ibaa42a0958d5169533603432818820e50c332f37
show more ...
|
| #
7564b6b9 |
| 24-Feb-2020 |
Jason Zhu <jason.zhu@rock-chips.com> |
mmc: dw_mmc: implement the function board_mmc_dm_reinit
Change-Id: I18409bd6857d3bc8f4268a78593b23b3e19e744f Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
|
| #
1a0c3c4d |
| 24-Feb-2020 |
Jason Zhu <jason.zhu@rock-chips.com> |
mmc: dw_mmc: implement the function board_mmc_dm_reinit
Change-Id: I18409bd6857d3bc8f4268a78593b23b3e19e744f Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
|
| #
ace0ade6 |
| 17-Feb-2020 |
Jason Zhu <jason.zhu@rock-chips.com> |
mmc: add func mmc_gpio_init_direct in spl
Sometimes we need to reconfigure the eMMC gpio state in spl without pinctrl driver. So add func mmc_gpio_init_direct to initialize the eMMC gpio in differen
mmc: add func mmc_gpio_init_direct in spl
Sometimes we need to reconfigure the eMMC gpio state in spl without pinctrl driver. So add func mmc_gpio_init_direct to initialize the eMMC gpio in different platform.
Change-Id: I22500f8865a9e29e59be6ff224001bad899cec48 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
show more ...
|
| #
15737894 |
| 26-Sep-2019 |
Jason Zhu <jason.zhu@rock-chips.com> |
mmc: add func mmc_gpio_init_direct in spl
Sometimes we need to reconfigure the eMMC gpio state in spl without pinctrl driver. So add func mmc_gpio_init_direct to initialize the eMMC gpio in differen
mmc: add func mmc_gpio_init_direct in spl
Sometimes we need to reconfigure the eMMC gpio state in spl without pinctrl driver. So add func mmc_gpio_init_direct to initialize the eMMC gpio in different platform.
Change-Id: I5917c1bbe474f33dc8ba3f47b6368e4337ee2f35 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
show more ...
|
| #
5ef89808 |
| 21-Aug-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
mmc: dw_mmc: set DWMCI_MSIZE to 6
We set the fifo_depth to 0x100 word in Rockchip platform, and fifo_depth/2 must be multiple of dma_multiple_transaction_size. So we can set DWMCI_MSIZE to 6 accordi
mmc: dw_mmc: set DWMCI_MSIZE to 6
We set the fifo_depth to 0x100 word in Rockchip platform, and fifo_depth/2 must be multiple of dma_multiple_transaction_size. So we can set DWMCI_MSIZE to 6 according to max dma_multiple_transaction_size being 128.
The DWMCI_MSIZE must be set as larger as possible. If not, dma fifo will be full, and crc error occur when the clock stop during the data phase.
Change-Id: I013b6f9c272edbc723b2f627e88d30d653c42d1b Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
show more ...
|
| #
4a6b8656 |
| 25-Jul-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
mmc: dw_mmc: change the strategy of tuning
The valid window of mmc sample phase is 0-360. It is separated to four options for tuning to improve tuning efficiency. If init_retry counter exceeds four,
mmc: dw_mmc: change the strategy of tuning
The valid window of mmc sample phase is 0-360. It is separated to four options for tuning to improve tuning efficiency. If init_retry counter exceeds four, set init_retry to zero.
If the default_phase is set, we use it. If fail, try strategy of tuning above.
Change-Id: I4938717937d37ef156c278277d188f1b25d6ebbc Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
show more ...
|
| #
e860ec32 |
| 27-Aug-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
mmc: add init_retry
Use the init_retry when mmc error occur.
Change-Id: I5db56d59d4c1f2ed2744d800f475da228cfcaf69 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
|
| #
09494d3a |
| 25-Jul-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
mmc: add default_phase
Add default sample clock phase and it can be used when run mmc_send_tuning.
The function mmc_send_tuning will use default_phase directly to set the sample clock phase, and th
mmc: add default_phase
Add default sample clock phase and it can be used when run mmc_send_tuning.
The function mmc_send_tuning will use default_phase directly to set the sample clock phase, and this can improve tuning's efficiency. If use default_phase to run mmc_send_tuning fail, it will change to tune 0&45...&270 phase.
Change-Id: I747f7820a7d2a67ffb9152794acec31b15e97e2b Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
show more ...
|
| #
1e72694f |
| 06-Sep-2018 |
Kever Yang <kever.yang@rock-chips.com> |
rockchip: dw_mmc: do not print msg when not find sample clock
Use debug instead of print for not always print the message, we can use mmc info to know MMC mode. Update the info by the way.
Change-I
rockchip: dw_mmc: do not print msg when not find sample clock
Use debug instead of print for not always print the message, we can use mmc info to know MMC mode. Update the info by the way.
Change-Id: Iaf5762246b4dbbbb4baf92aca478304dc1f49746 Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
show more ...
|
| #
60f62d26 |
| 24-Jul-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
mmc: dw_mmc: print a caution when find ciu-sample fail
BUG: If not find ciu-sample, probe will fail. This make mmc device unusable.
Change-Id: I86310cd2bc84cea5a81b72d103c8947ed4c1b07b Signed-off-b
mmc: dw_mmc: print a caution when find ciu-sample fail
BUG: If not find ciu-sample, probe will fail. This make mmc device unusable.
Change-Id: I86310cd2bc84cea5a81b72d103c8947ed4c1b07b Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
show more ...
|
| #
16cc62c8 |
| 16-Jul-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
mmc: dw_mmc: support mmc hs200
we can set mmc-hs200-1_8v to the node of emmc in the dts to support hs200.
Change-Id: I5fa195505b877449864f294564cfc33bcd4202e5 Signed-off-by: Jason Zhu <jason.zhu@ro
mmc: dw_mmc: support mmc hs200
we can set mmc-hs200-1_8v to the node of emmc in the dts to support hs200.
Change-Id: I5fa195505b877449864f294564cfc33bcd4202e5 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
show more ...
|
| #
08c9dc10 |
| 12-Jul-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
mmc: dw_mmc: rockchip: fix get ciu-sample bug
1.judge the clk_get_by_name return value 2.rename the ciu_sample to ciu-sample according to dts
Change-Id: I60c9f43f8cf0dd02815ee9078f5e957dc9c6d24d
mmc: dw_mmc: rockchip: fix get ciu-sample bug
1.judge the clk_get_by_name return value 2.rename the ciu_sample to ciu-sample according to dts
Change-Id: I60c9f43f8cf0dd02815ee9078f5e957dc9c6d24d Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
show more ...
|