Signed-off-by: Bastian Krause
---
firmware/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/firmware/Kconfig b/firmware/Kconfig
index 9d4be855f99..d72b9dd4598 100644
--- a/firmware/Kconfig
+++ b/firmware/Kconfig
@@ -77,7 +77,7 @@ config FIRMWARE_IMX93_OPTEE
On Mon, Mar 18, 2024 at 10:45:32AM +0100, Oleksij Rempel wrote:
> Add fallback support for currently not supported HW. Instead of
> completely fail, it is better to use some kind of basic devicetree with
> reduced functionality.
>
> Signed-off-by: Oleksij Rempel
> ---
>
On Mon, 18 Mar 2024 11:18:14 +0100, Steffen Trumtrar wrote:
> This series adds support for HS200 mode to mci-core and sdhci.
> As the host driver also needs to handle clock setup, pin control and
> host specific tuning, this series only adds HS200 support to the Arasan
> SDHCI driver.
>
>
Linux uses a different sdhci_wait_idle function than what barebox
currently does. For HS200 support, the linux version needs to be used.
As currently only arasan-sdhci is tested with HS200, keep the old
sdhci_wait_idle as sdhci_wait_idle_data and convert all users of it.
Signed-off-by: Ahmad
The last patch accidentally drops the mask in sdhci_wait_for_done.
Signed-off-by: Steffen Trumtrar
---
drivers/mci/arasan-sdhci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mci/arasan-sdhci.c b/drivers/mci/arasan-sdhci.c
index 973e08779d..98f990b5c1 100644
---
Depending on the used SDHCI mode the clock phases are different.
Import the helper function to get these values from the DT from linux v6.7.
Signed-off-by: Steffen Trumtrar
Reviewed-by: Ahmad Fatoum
---
drivers/mci/arasan-sdhci.c | 121 +
1 file
The ZynpMP 8.9a has an Arasan IP core that supports HS200 tuning.
Register the callback with the mci-core.
Arasan uses the SDHCI tuning method.
Signed-off-by: Steffen Trumtrar
Reviewed-by: Ahmad Fatoum
---
drivers/mci/arasan-sdhci.c | 62 +++---
1 file
Use the newly introduced define for High Speed timing mode instead of
just '1'.
Signed-off-by: Steffen Trumtrar
Reviewed-by: Ahmad Fatoum
---
drivers/mci/mci-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index
HS200 is a timing mode for eMMCs to work 8bit with 200MHz clocks.
To be used, drivers need to set the correct drive strength, clock phases
and then SDHCI can start tuning for HS200.
Signed-off-by: Steffen Trumtrar
Acked-by: Ahmad Fatoum
---
drivers/mci/Kconfig| 7 ++
Read and register the sampleclk and sdcardclk. They are needed later for
HS200 tuning support.
Signed-off-by: Steffen Trumtrar
Reviewed-by: Ahmad Fatoum
---
drivers/mci/arasan-sdhci.c | 316 +
1 file changed, 316 insertions(+)
diff --git
The arasan SDHCI driver doesn't use MMC tuning but SDHCI tuning. Both
are not supported yet in barebox.
Add SDHCI tuning support from linux v6.7.
Signed-off-by: Steffen Trumtrar
Signed-off-by: Ahmad Fatoum
---
drivers/mci/sdhci.c | 275 +++-
Import missing EXT_CSD_CARD_TYPE_ defines from linux v6.7.
EXT_CSD_CARD_TYPE_SDR_1_8V/1_2V is unused in barebox. Replace with the
defines from linux.
Signed-off-by: Steffen Trumtrar
Reviewed-by: Ahmad Fatoum
---
include/mci.h | 15 +--
1 file changed, 13 insertions(+), 2
Port the linux v6.7 mmc host caps2 parsing.
While at it, remove the ->no_sd and ->no_sdio. These are bits in the
caps2 field.
Signed-off-by: Steffen Trumtrar
Reviewed-by: Ahmad Fatoum
---
drivers/mci/mci-core.c | 36 ++--
include/mci.h | 32
Linux mmc_host saves the actual_clock set on the HC. Do the same to use
it later.
Signed-off-by: Steffen Trumtrar
Reviewed-by: Ahmad Fatoum
---
drivers/mci/mci-core.c | 2 ++
include/mci.h | 1 +
2 files changed, 3 insertions(+)
diff --git a/drivers/mci/mci-core.c
This series adds support for HS200 mode to mci-core and sdhci.
As the host driver also needs to handle clock setup, pin control and
host specific tuning, this series only adds HS200 support to the Arasan
SDHCI driver.
Tested on: ZynqMP
Compile tested: for ZynqMP with/without CONFIG_MCI_TUNING
The Arasan on the zynqmp in version 8.9a doesn't meet the timing
requirements at 25MHz. It works at 19MHz instead.
Add the quirk from linux kernel v6.8-rc4.
Signed-off-by: Steffen Trumtrar
Reviewed-by: Ahmad Fatoum
---
drivers/mci/arasan-sdhci.c | 28 +++-
1 file
Add a function to reset DLL logic for SD devices.
Signed-off-by: Steffen Trumtrar
Reviewed-by: Ahmad Fatoum
---
arch/arm/mach-zynqmp/firmware-zynqmp.c | 17 +
1 file changed, 17 insertions(+)
diff --git a/arch/arm/mach-zynqmp/firmware-zynqmp.c
Add a function to set the tap delay for the clk phase of the sd host
controller.
Signed-off-by: Steffen Trumtrar
Reviewed-by: Ahmad Fatoum
---
arch/arm/mach-zynqmp/firmware-zynqmp.c | 42 ++
include/mach/zynqmp/firmware-zynqmp.h | 23 +++
2
The timings are used to check if mci_host->timing is equal to one of
this values. Linux uses a different numbering. Adapt that for compatability.
Signed-off-by: Steffen Trumtrar
Reviewed-by: Ahmad Fatoum
---
include/mci.h | 18 ++
1 file changed, 10 insertions(+), 8
Add fallback support for currently not supported HW. Instead of
completely fail, it is better to use some kind of basic devicetree with
reduced functionality.
Signed-off-by: Oleksij Rempel
---
arch/arm/boards/skov-imx8mp/board.c | 13 ++---
1 file changed, 10 insertions(+), 3
Add bd500 board variant.
Signed-off-by: Oleksij Rempel
---
arch/arm/boards/skov-imx8mp/board.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/boards/skov-imx8mp/board.c
b/arch/arm/boards/skov-imx8mp/board.c
index a45fe8517f..b4dd83a8cf 100644
---
21 matches
Mail list logo