Re: [PATCH] mmc: sdhci: Correct ADMA_DESC_LEN to 12

2024-05-02 Thread Judith Mendez
f56e4be66 100644 --- a/include/sdhci.h +++ b/include/sdhci.h @@ -300,7 +300,7 @@ struct sdhci_ops { #define ADMA_MAX_LEN 65532 #ifdef CONFIG_DMA_ADDR_T_64BIT -#define ADMA_DESC_LEN 16 +#define ADMA_DESC_LEN 12 #else #define ADMA_DESC_LEN 8 #endif on TI AM62 platform: Tested-by: Judith Mendez

Re: [GIT PULL] Please pull u-boot-mmc master

2024-05-02 Thread Judith Mendez
Hi Greg, On 5/1/24 9:40 PM, Greg Malysa wrote: On Tue, Apr 30, 2024 at 3:42 AM Francesco Dolcini wrote: On Mon, Apr 29, 2024 at 03:39:53PM -0500, Judith Mendez wrote: A patch in this series caused a regression for AM62x SK with the following error: +1, this affects also Verdin AM62. Hi

[PATCH] configs: am62x_evm_r5: Increase size of malloc_simple heap after relocation

2024-04-29 Thread Judith Mendez
On AM62x SK we can see a boot failure with signature "alloc space exhausted", so fix by increasing size of SPL_STACK_R_MALLOC_SIMPLE_LEN. Fixes: 128f81290b ("arm: dts: k3: binman: am625: add support for signing TIFSSTUB Images") Signed-off-by: Judith Mendez --- configs/am

Re: [GIT PULL] Please pull u-boot-mmc master

2024-04-29 Thread Judith Mendez
Hi all, On 4/26/24 10:51 AM, Tom Rini wrote: On Fri, Apr 26, 2024 at 07:38:30PM +0900, Jaehoon Chung wrote: Dear Tom, Please pull u-boot-mmc master into u-boot master branch. If there is any problem, let me know, plz Best Regards, Jaehoon Chung CI:

[PATCH v2 4/5] mmc: am654_sdhci: Set ENDLL=1 for DDR52 mode

2024-04-18 Thread Judith Mendez
According to the device datasheet [0], ENDLL=1 for DDR52 mode, so call am654_sdhci_setup_dll() and write itapdly after since we do not carry out tuning. [0] https://www.ti.com/lit/ds/symlink/am62p.pdf Fixes: c964447ea3d6 ("mmc: am654_sdhci: Add support for input tap delay") Signed-off-

[PATCH v2 5/5] mmc: am654_sdhci: Fix ITAPDLY for HS400 timing

2024-04-18 Thread Judith Mendez
. Fixes: c964447ea3d6 ("mmc: am654_sdhci: Add support for input tap delay") Signed-off-by: Judith Mendez --- Changes since v1: - Use ENABLE macro instead of 0x1 --- drivers/mmc/am654_sdhci.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mmc/am654_sdhci.c b/d

[PATCH v2 1/5] mmc: am654_sdhci: Add tuning algorithm for delay chain

2024-04-18 Thread Judith Mendez
t;mmc: am654_sdhci: Add support for software tuning") Signed-off-by: Judith Mendez --- Changes since v1: - Remove extra param from mmc_send_tunning() call --- drivers/mmc/am654_sdhci.c | 107 +++--- 1 file changed, 89 insertions(+), 18 deletions(-) diff --git a/d

[PATCH v2 3/5] mmc: am654_sdhci: Add itap_del_ena[] to store itapdlyena bit

2024-04-18 Thread Judith Mendez
Set itap_del_ena if ITAPDLY is found in DT or if the tuning algorithm was executed and found the optimal ITAPDLY. Add the functionality to save ITAPDLYENA that can be referenced later by storing the bit in array itap_del_ena[]. Signed-off-by: Judith Mendez --- Changes since v1: - Use ENABLE

[PATCH v2 0/5] Fix MMC tuning algorithm

2024-04-18 Thread Judith Mendez
- Fix assignment to val variable in j721e_4bit_sdhci_set_ios_post() - Remove extra param from mmc_send_tunning() call - Add Reviewed by Judith Mendez (4): mmc: am654_sdhci: Add tuning algorithm for delay chain mmc: am654_sdhci: Add itap_del_ena[] to store itapdlyena bit mmc: am654_sdhci: Set

[PATCH v2 2/5] mmc: am654_sdhci: Fix OTAP/ITAP delay values

2024-04-18 Thread Judith Mendez
From: Nitin Yadav U-Boot is failing to boot class U1 UHS SD cards due to incorrect OTAP and ITAP delay select values. Update OTAP and ITAP delay select values from DT. Fixes: c7d106b4eb3 ("mmc: am654_sdhci: Update output tap delay writes") Signed-off-by: Nitin Yadav Signed-off-

Re: [PATCH 3/5] mmc: am654_sdhci: Add itap_del_ena[] to store itapdlyena bit

2024-04-18 Thread Judith Mendez
On 4/17/24 6:34 AM, Jaehoon Chung wrote: Hi, -Original Message- From: Judith Mendez Sent: Tuesday, April 16, 2024 6:28 AM To: Peng Fan ; Jaehoon Chung ; Tom Rini Cc: Nitin Yadav ; Simon Glass ; u-boot@lists.denx.de Subject: [PATCH 3/5] mmc: am654_sdhci: Add itap_del_ena[] to store

Re: [PATCH 2/5] mmc: am654_sdhci: Fix OTAP/ITAP delay values

2024-04-18 Thread Judith Mendez
On 4/17/24 6:28 AM, Jaehoon Chung wrote: Hi Judith, -Original Message- From: Judith Mendez Sent: Tuesday, April 16, 2024 6:28 AM To: Peng Fan ; Jaehoon Chung ; Tom Rini Cc: Nitin Yadav ; Simon Glass ; u-boot@lists.denx.de Subject: [PATCH 2/5] mmc: am654_sdhci: Fix OTAP/ITAP delay

Re: [PATCH 1/5] mmc: am654_sdhci: Add tuning algorithm for delay chain

2024-04-18 Thread Judith Mendez
Hi, On 4/17/24 6:23 AM, Jaehoon Chung wrote: -Original Message- From: Judith Mendez Sent: Tuesday, April 16, 2024 6:28 AM To: Peng Fan ; Jaehoon Chung ; Tom Rini Cc: Nitin Yadav ; Simon Glass ; u-boot@lists.denx.de Subject: [PATCH 1/5] mmc: am654_sdhci: Add tuning algorithm

Re: [PATCH] configs: am62px_evm_a53_defconfig: Enable MMC UHS config option

2024-04-16 Thread Judith Mendez
Hi all, On 4/8/24 11:01 AM, Judith Mendez wrote: Enable MMC UHS support for to allow to enter the UHS modes for MMC0. I have sent v2 for this patch since there was a typo in the patch description. ~ Judith

[PATCH v2] configs: am62px_evm_a53_defconfig: Enable MMC UHS config option

2024-04-16 Thread Judith Mendez
Enable MMC UHS support for to allow to enter the UHS modes for MMC1. Signed-off-by: Judith Mendez --- Changes since v1: - Fix typo in patch description --- configs/am62px_evm_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am62px_evm_a53_defconfig b/configs

[PATCH 2/5] mmc: am654_sdhci: Fix OTAP/ITAP delay values

2024-04-15 Thread Judith Mendez
From: Nitin Yadav U-Boot is failing to boot class U1 UHS SD cards due to incorrect OTAP and ITAP delay select values. Update OTAP and ITAP delay select values from DT. Fixes: c7d106b4eb3 ("mmc: am654_sdhci: Update output tap delay writes") Signed-off-by: Nitin Yadav Signed-off-

[PATCH 4/5] mmc: am654_sdhci: Set ENDLL=1 for DDR52 mode

2024-04-15 Thread Judith Mendez
According to the device datasheet [0], ENDLL=1 for DDR52 mode, so call am654_sdhci_setup_dll() and write itapdly after since we do not carry out tuning. [0] https://www.ti.com/lit/ds/symlink/am62p.pdf Fixes: c964447ea3d6 ("mmc: am654_sdhci: Add support for input tap delay") Signed-off-

[PATCH 1/5] mmc: am654_sdhci: Add tuning algorithm for delay chain

2024-04-15 Thread Judith Mendez
t;mmc: am654_sdhci: Add support for software tuning") Signed-off-by: Judith Mendez --- drivers/mmc/am654_sdhci.c | 107 +++--- 1 file changed, 89 insertions(+), 18 deletions(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index 05595bdac39..e5ad00e2

[PATCH 0/5] Fix MMC tuning algorithm

2024-04-15 Thread Judith Mendez
of am654_sdhci_setup_delay_chain() according to device datasheet[1]. [0] https://www.ti.com/lit/an/spract9/spract9.pdf [1] https://www.ti.com/lit/ds/symlink/am62p.pdf Judith Mendez (4): mmc: am654_sdhci: Add tuning algorithm for delay chain mmc: am654_sdhci: Add itap_del_ena[] to store

[PATCH 5/5] mmc: am654_sdhci: Fix ITAPDLY for HS400 timing

2024-04-15 Thread Judith Mendez
. Fixes: c964447ea3d6 ("mmc: am654_sdhci: Add support for input tap delay") Signed-off-by: Judith Mendez --- drivers/mmc/am654_sdhci.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index dee56dfdbaa..ce3813ea

[PATCH 3/5] mmc: am654_sdhci: Add itap_del_ena[] to store itapdlyena bit

2024-04-15 Thread Judith Mendez
Set itap_del_ena if ITAPDLY is found in DT or if the tuning algorithm was executed and found the optimal ITAPDLY. Add the functionality to save ITAPDLYENA that can be referenced later by storing the bit in array itap_del_ena[]. Signed-off-by: Judith Mendez --- drivers/mmc/am654_sdhci.c | 30

[PATCH] configs: am64x_evm_*_defconfig: Increase offsets for eMMC raw boot

2024-04-10 Thread Judith Mendez
(128 KB)| 0x3900+---+ Signed-off-by: Judith Mendez --- configs/am64x_evm_a53_defconfig | 2 +- configs/am64x_evm_r5_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/am64x_evm_a53_defconfig b/configs

[PATCH] configs: am62px_evm_a53_defconfig: Enable MMC UHS config option

2024-04-08 Thread Judith Mendez
Enable MMC UHS support for to allow to enter the UHS modes for MMC0. Signed-off-by: Judith Mendez --- configs/am62px_evm_a53_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am62px_evm_a53_defconfig b/configs/am62px_evm_a53_defconfig index 2621abb8ce1..d1ae18bedf6 100644

[PATCH] configs: am6*_evm_a53_defconfig: Enable config to support mmc rescan

2024-03-19 Thread Judith Mendez
Enable MMC_SPEED_MODE_SET config option in defconfig to enable mmc rescan for various Sitara devices. Signed-off-by: Judith Mendez --- configs/am62px_evm_a53_defconfig | 1 + configs/am62x_evm_a53_defconfig | 1 + configs/am64x_evm_a53_defconfig | 1 + configs/am65x_evm_a53_defconfig | 1

[PATCH v3] doc: ti: Add switch setting for boot modes on AM62 SK

2023-04-06 Thread Judith Mendez
List some common boot modes and their corresponding switch settings for AM62 SK. List in a ASCII-style table. Signed-off-by: Judith Mendez --- Changes from v1: Change table format from ascii-art to list-table Changes from v2: Change table format to ASCII style doc/board/ti/am62x_sk.rst | 29

[PATCH] doc: ti: Add switch setting for boot modes on AM62 SK

2023-03-31 Thread Judith Mendez
List some common boot modes and their corresponding switch settings for AM62 SK. Signed-off-by: Judith Mendez --- Changes from v1: Change table format from ascii-art to list-table doc/board/ti/am62x_sk.rst | 36 1 file changed, 36 insertions(+) diff --git

[PATCH] doc: ti: Add switch setting for boot modes on AM62 SK

2023-03-27 Thread Judith Mendez
List some common boot modes and their corresponding switch settings for AM62 SK. Signed-off-by: Judith Mendez --- doc/board/ti/am62x_sk.rst | 29 + 1 file changed, 29 insertions(+) diff --git a/doc/board/ti/am62x_sk.rst b/doc/board/ti/am62x_sk.rst index b1b7d99befb