[PATCH v2 1/7] mmc: am654_sdhci: Get Xin clock by name

2020-01-16 Thread Faiz Abbas
Get clk_xin by name instead of by index to avoid having to put clocks in the same order in all devices. Signed-off-by: Faiz Abbas --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 3 ++- drivers/mmc/am654_sdhci.c| 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff

[PATCH v2 6/7] configs: j721e_evm_a72: Add Support for GPT partitions

2020-01-16 Thread Faiz Abbas
Introduce a default GPT partition table for eMMC. Signed-off-by: Faiz Abbas --- include/configs/j721e_evm.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index 71cea3dd8a..e4296e 100644 --- a/include/configs/j721e_evm.h

[PATCH v2 2/7] mmc: am654_sdhci: Add Support for configuring PHY in J721e

2020-01-16 Thread Faiz Abbas
compared to 4 bit wide for AM65x. Add yet another flag to indicate this difference. Strobe select is used only for HS400 speed mode, support for which has not been added in AM65x. Signed-off-by: Faiz Abbas --- drivers/mmc/am654_sdhci.c | 127 +- 1 file changed, 98

[PATCH v2 4/7] arm: dts: k3-j721e-common-proc-board: Add pinmux for SD card

2020-01-16 Thread Faiz Abbas
Add pinmux for sdhci1 node connected to the SD card. Signed-off-by: Faiz Abbas --- .../k3-j721e-common-proc-board-u-boot.dtsi| 4 arch/arm/dts/k3-j721e-common-proc-board.dts | 20 ++- .../arm/dts/k3-j721e-r5-common-proc-board.dts | 16 +++ 3 files changed

[PATCH v2 7/7] configs: j721e_evm: Add configs for environment in eMMC

2020-01-16 Thread Faiz Abbas
Add config to save and read back environment from eMMC. Signed-off-by: Faiz Abbas --- configs/j721e_evm_a72_defconfig | 7 ++- configs/j721e_evm_r5_defconfig | 6 +- include/configs/j721e_evm.h | 6 ++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/configs

Re: [U-Boot] boot partition access at HS200 speed in eMMC

2018-08-05 Thread Faiz Abbas
Hi, +JJ, Jaehoon Chung I had CCd them in my original mail but they seem to have been dropped in the U-boot list. On Thursday 02 August 2018 03:14 PM, Faiz Abbas wrote: > Hi Everyone, > > After the following patch from JJ, U-boot shifts to a lower speed mode > from HS200 when acce

Re: [U-Boot] [PATCH v2 22/26] mmc: Change mode when switching to a boot partition

2018-07-24 Thread Faiz Abbas
Hi, On Thursday 21 September 2017 08:00 PM, Jean-Jacques Hiblot wrote: > Boot partitions do not support HS200. Changing to a lower performance mode > is required to access them. I see that the spec says "HS200 and HS400 modes are not supported during *boot operation*". Can you point out where it

Re: [U-Boot] [PATCH V3 1/2] mmc: add HS400 support

2018-07-24 Thread Faiz Abbas
Hi, On Saturday 19 May 2018 06:24 PM, Peng Fan wrote: > Add HS400 support. > Selecting HS400 needs first select HS199 according to spec, so use > a dedicated function for HS400. > Add HS400 related macros. > Remove the restriction of only using the low 6 bits of > EXT_CSD_CARD_TYPE, using all the

Re: [U-Boot] [PATCH V3 1/2] mmc: add HS400 support

2018-07-24 Thread Faiz Abbas
Hi Peng, On Tuesday 24 July 2018 02:14 PM, Peng Fan wrote: > Hi Faiz, > > It's 2 months since this patchset out (: Has it already been accepted? > drivers/mmc/Kconfig >> >> On Saturday 19 May 2018 06:24 PM, Peng Fan wrote: >>> Add HS400 support. >>> Selecting HS400 needs first select HS199 acco

[U-Boot] boot partition access at HS200 speed in eMMC

2018-08-02 Thread Faiz Abbas
Hi Everyone, After the following patch from JJ, U-boot shifts to a lower speed mode from HS200 when accessing a boot partition. 01298da31d mmc: Change mode when switching to a boot partition I have looked through the JESD84-B51 spec for eMMC card and don't see it say anywhere that boot0 partitio

[U-Boot] [PATCH 00/13] Add Support for eMMC in AM65x-evm

2019-01-27 Thread Faiz Abbas
added in a subsequent series. Support for booting from eMMC will also be added in subsequent patches. Tested on Lokesh's branch[1] as sysfw loading for AM65x is not yet upstream. [1] https://github.com/lokeshvutla/u-boot/tree/devel/am65x-evm-boot Faiz Abbas (13): arm64: dts: k3: Sync sdhci0 n

[U-Boot] [PATCH 02/13] mmc: am654_mmc: Change driver name

2019-01-27 Thread Faiz Abbas
This driver works with the sdhci controller present on TI's AM65x devices. Change the name to make this clearer and match the compatible with kernel. Signed-off-by: Faiz Abbas --- configs/am65x_evm_a53_defconfig | 2 +- configs/am65x_evm_r5_defconfig

[U-Boot] [PATCH 01/13] arm64: dts: k3: Sync sdhci0 node from kernel

2019-01-27 Thread Faiz Abbas
Sync the sdhci0 node from kernel. This changes the compatible that is required to be there in the driver. Change the same for the SD card node which is not yet supported in kernel. Also sync the main_pmx0 node as a side effect. Signed-off-by: Faiz Abbas --- arch/arm/dts/k3-am65-main.dtsi

[U-Boot] [PATCH 03/13] mmc: am654_sdhci: Remove quirks

2019-01-27 Thread Faiz Abbas
The host controller works perfectly well without having to add any quirks. Remove them. Signed-off-by: Faiz Abbas --- drivers/mmc/am654_sdhci.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index 3afdb58293..69914deb0c 100644 --- a

[U-Boot] [PATCH 08/13] arm: dts: k3: Add phy specific properties to SD card node

2019-01-27 Thread Faiz Abbas
With changes in the driver requiring phy related properties, add the same for the SD card node to prevent breaking boot with the driver update. Signed-off-by: Faiz Abbas --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/dts/k3-am654

[U-Boot] [PATCH 10/13] mmc: am654_sdhci: Add Support for PHY

2019-01-27 Thread Faiz Abbas
Add support in the driver for handling phy specific registers. Signed-off-by: Faiz Abbas --- drivers/mmc/Kconfig | 1 + drivers/mmc/am654_sdhci.c | 224 +- 2 files changed, 222 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/Kconfig b/drivers

[U-Boot] [PATCH 06/13] mmc: sdhci: Add support for sdhci-caps-mask

2019-01-27 Thread Faiz Abbas
Add Support for masking some bits in the capabilities register of a host controller. Also remove the redundant readl() into caps1. Signed-off-by: Faiz Abbas --- drivers/mmc/sdhci.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/sdhci.c b

[U-Boot] [PATCH 04/13] regmap: Add API regmap_init_mem_index()

2019-01-27 Thread Faiz Abbas
In device nodes with more than one entry in the reg property, it is sometimes useful to regmap only of the entries. Add an API regmap_init_mem_index() to facilitate this. Signed-off-by: Faiz Abbas --- drivers/core/regmap.c | 42 ++ include/regmap.h

[U-Boot] [PATCH 05/13] regmap: Add support for polling on a register

2019-01-27 Thread Faiz Abbas
Add an API to continuously read a register until a condition is satisfied or a timeout occurs. Signed-off-by: Faiz Abbas --- include/regmap.h | 34 ++ 1 file changed, 34 insertions(+) diff --git a/include/regmap.h b/include/regmap.h index 3cd97d3b94..dfc3a4f231

[U-Boot] [PATCH 11/13] configs: am65x_evm: Enable CONFIG_REGMAP

2019-01-27 Thread Faiz Abbas
Add Support for CONFIG_REGMAP. Signed-off-by: Faiz Abbas --- configs/am65x_evm_a53_defconfig | 2 ++ configs/am65x_evm_r5_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index 6db3dac4c7..8fb28ca127 100644 --- a

[U-Boot] [PATCH 09/13] mmc: sdhci: Make set_ios_post() return int

2019-01-27 Thread Faiz Abbas
Make set_ios_post() return int to faciliate error handling in platform drivers. Signed-off-by: Faiz Abbas --- drivers/mmc/sdhci.c | 6 +- drivers/mmc/xenon_sdhci.c | 4 +++- include/sdhci.h | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/mmc

[U-Boot] [PATCH 12/13] mmc: sdhci: Add support for HOST_CONTROL2 and setting UHS timings

2019-01-27 Thread Faiz Abbas
From: Faiz Abbas The HOST_CONTROL2 register is a part of SDHC v3.00 and not just specific to arasan/zynq controllers. Add the same to sdhci.h. Also create a common API to set UHS timings in HOST_CONTROL2. Signed-off-by: Faiz Abbas --- drivers/mmc/sdhci.c | 28

[U-Boot] [PATCH 13/13] mmc: am654_sdhci: Add a platform specific set_control_reg() callback

2019-01-27 Thread Faiz Abbas
From: Faiz Abbas Add a platform specific set_control_reg() callback to help switch to UHS speed modes. Signed-off-by: Faiz Abbas --- drivers/mmc/am654_sdhci.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc

[U-Boot] [PATCH 07/13] mmc: sdhci: Make sdhci_set_clock() non static

2019-01-27 Thread Faiz Abbas
The am654_sdhci driver needs to switch the clock off before disabling its phy dll and needs to re-enable the clock before enabling the phy again. Therefore, make the sdhci_set_clock() function accessible in the am654_sdhci driver. Signed-off-by: Faiz Abbas --- drivers/mmc/sdhci.c | 2

Re: [U-Boot] [PATCH 09/13] mmc: sdhci: Make set_ios_post() return int

2019-01-29 Thread Faiz Abbas
Hi Tom, On 30/01/19 7:50 AM, Tom Rini wrote: > On Mon, Jan 28, 2019 at 12:15:27PM +0530, Faiz Abbas wrote: > >> Make set_ios_post() return int to faciliate error handling in >> platform drivers. >> >> Signed-off-by: Faiz Abbas >> --- >> drivers/mm

Re: [U-Boot] [PATCH 12/13] mmc: sdhci: Add support for HOST_CONTROL2 and setting UHS timings

2019-01-29 Thread Faiz Abbas
Hi Tom, On 30/01/19 7:50 AM, Tom Rini wrote: > On Mon, Jan 28, 2019 at 12:15:30PM +0530, Faiz Abbas wrote: > >> From: Faiz Abbas >> >> The HOST_CONTROL2 register is a part of SDHC v3.00 and not just specific >> to arasan/zynq controllers. Add the same to sdhci.h.

Re: [U-Boot] configs: Enable CONFIG_BLK in a few TI boards

2019-01-30 Thread Faiz Abbas
Hi, On 25/01/19 8:24 PM, Tom Rini wrote: > On Fri, Jan 25, 2019 at 03:40:35PM +0100, Jean-Jacques Hiblot wrote: >> >> On 15/01/2019 15:28, Tom Rini wrote: >>> On Tue, Jan 08, 2019 at 06:16:31PM +0530, Faiz Abbas wrote: >>> >>>> With DM conversio

[U-Boot] [PATCH] mmc: omap_hsmmc: Workaround errata regarding SDR104/HS200 tuning failures (i929)

2019-01-30 Thread Faiz Abbas
current temperature. In stage 2, if the chosen value is close to the small failure band, move away from it in the appropriate direction. References: [1] http://www.ti.com/lit/pdf/sprz426 [2] http://www.ti.com/lit/pdf/SPRACA9 Signed-off-by: Faiz Abbas --- drivers/mmc/omap_hsmmc.c | 92

[U-Boot] [PATCH v2 00/13] Add Support for eMMC in AM65x-evm

2019-02-05 Thread Faiz Abbas
Patch 12: Fixed spacing Faiz Abbas (13): arm64: dts: k3: Sync sdhci0 node from kernel mmc: am654_mmc: Change driver name mmc: am654_sdhci: Remove quirks regmap: Add API regmap_init_mem_index() regmap: Add support for polling on a register mmc: sdhci: Add support for sdhci-caps-mask m

[U-Boot] [PATCH v2 02/13] mmc: am654_mmc: Change driver name

2019-02-05 Thread Faiz Abbas
This driver works with the sdhci controller present on TI's AM65x devices. Change the name to make this clearer and match the compatible with kernel. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- configs/am65x_evm_a53_defconfig | 2 +- configs/am65x_evm_r5_defc

[U-Boot] [PATCH v2 01/13] arm64: dts: k3: Sync sdhci0 node from kernel

2019-02-05 Thread Faiz Abbas
Sync the sdhci0 node from kernel. This changes the compatible that is required to be there in the driver. Change the same for the SD card node which is not yet supported in kernel. Also sync the main_pmx0 node as a side effect. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- arch/arm/dts

[U-Boot] [PATCH v2 05/13] regmap: Add support for polling on a register

2019-02-05 Thread Faiz Abbas
Add an API to continuously read a register until a condition is satisfied or a timeout occurs. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- include/regmap.h | 34 ++ 1 file changed, 34 insertions(+) diff --git a/include/regmap.h b/include/regmap.h index

[U-Boot] [PATCH v2 03/13] mmc: am654_sdhci: Remove quirks

2019-02-05 Thread Faiz Abbas
The host controller works perfectly well without having to add any quirks. Remove them. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/am654_sdhci.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index 3afdb58293

[U-Boot] [PATCH v2 09/13] mmc: sdhci: Make set_ios_post() return int

2019-02-05 Thread Faiz Abbas
Make set_ios_post() return int to faciliate error handling in platform drivers. Signed-off-by: Faiz Abbas --- drivers/mmc/sdhci.c | 8 ++-- drivers/mmc/xenon_sdhci.c | 4 +++- include/sdhci.h | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/mmc

[U-Boot] [PATCH v2 07/13] mmc: sdhci: Make sdhci_set_clock() non static

2019-02-05 Thread Faiz Abbas
The am654_sdhci driver needs to switch the clock off before disabling its phy dll and needs to re-enable the clock before enabling the phy again. Therefore, make the sdhci_set_clock() function accessible in the am654_sdhci driver. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers

[U-Boot] [PATCH v2 06/13] mmc: sdhci: Add support for sdhci-caps-mask

2019-02-05 Thread Faiz Abbas
Add Support for masking some bits in the capabilities register of a host controller. Also remove the redundant readl() into caps1. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/sdhci.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a

[U-Boot] [PATCH v2 08/13] arm: dts: k3: Add phy specific properties to SD card node

2019-02-05 Thread Faiz Abbas
With changes in the driver requiring phy related properties, add the same for the SD card node to prevent breaking boot with the driver update. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git

[U-Boot] [PATCH v2 11/13] configs: am65x_evm: Enable CONFIG_REGMAP

2019-02-05 Thread Faiz Abbas
Add Support for CONFIG_REGMAP. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- configs/am65x_evm_a53_defconfig | 2 ++ configs/am65x_evm_r5_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index 6db3dac4c7

[U-Boot] [PATCH v2 04/13] regmap: Add API regmap_init_mem_index()

2019-02-05 Thread Faiz Abbas
In device nodes with more than one entry in the reg property, it is sometimes useful to regmap only of the entries. Add an API regmap_init_mem_index() to facilitate this. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/core/regmap.c | 42

[U-Boot] [PATCH v2 13/13] mmc: am654_sdhci: Add a platform specific set_control_reg() callback

2019-02-05 Thread Faiz Abbas
From: Faiz Abbas Add a platform specific set_control_reg() callback to help switch to UHS speed modes. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/am654_sdhci.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/mmc

[U-Boot] [PATCH v2 10/13] mmc: am654_sdhci: Add Support for PHY

2019-02-05 Thread Faiz Abbas
Add support in the driver for handling phy specific registers. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/Kconfig | 1 + drivers/mmc/am654_sdhci.c | 224 +- 2 files changed, 222 insertions(+), 3 deletions(-) diff --git a/drivers

[U-Boot] [PATCH v2 12/13] mmc: sdhci: Add support for HOST_CONTROL2 and setting UHS timings

2019-02-05 Thread Faiz Abbas
From: Faiz Abbas The HOST_CONTROL2 register is a part of SDHC v3.00 and not just specific to arasan/zynq controllers. Add the same to sdhci.h. Also create a common API to set UHS timings in HOST_CONTROL2. Signed-off-by: Faiz Abbas --- drivers/mmc/sdhci.c | 28

[U-Boot] [PATCH v3 00/13] Add Support for eMMC in AM65x-evm

2019-02-12 Thread Faiz Abbas
Changes in v2: Patch 9: Fixed return value Patch 12: Fixed spacing Faiz Abbas (13): arm64: dts: k3: Sync sdhci0 node from kernel mmc: am654_mmc: Change driver name mmc: am654_sdhci: Remove quirks regmap: Add API regmap_init_mem_index() regmap: Add support for polling on a register

[U-Boot] [PATCH v3 05/13] regmap: Add support for polling on a register

2019-02-12 Thread Faiz Abbas
Add an API to continuously read a register until a condition is satisfied or a timeout occurs. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- include/regmap.h | 34 ++ 1 file changed, 34 insertions(+) diff --git a/include/regmap.h b/include/regmap.h index

[U-Boot] [PATCH v3 01/13] arm64: dts: k3: Sync sdhci0 node from kernel

2019-02-12 Thread Faiz Abbas
Sync the sdhci0 node from kernel. This changes the compatible that is required to be there in the driver. Change the same for the SD card node which is not yet supported in kernel. Also sync the main_pmx0 node as a side effect. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- arch/arm/dts

[U-Boot] [PATCH v3 03/13] mmc: am654_sdhci: Remove quirks

2019-02-12 Thread Faiz Abbas
The host controller works perfectly well without having to add any quirks. Remove them. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/am654_sdhci.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index 3afdb58293

[U-Boot] [PATCH v3 02/13] mmc: am654_mmc: Change driver name

2019-02-12 Thread Faiz Abbas
This driver works with the sdhci controller present on TI's AM65x devices. Change the name to make this clearer and match the compatible with kernel. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- configs/am65x_evm_a53_defconfig | 2 +- configs/am65x_evm_r5_defc

[U-Boot] [PATCH v3 08/13] arm: dts: k3: Add phy specific properties to SD card node

2019-02-12 Thread Faiz Abbas
With changes in the driver requiring phy related properties, add the same for the SD card node to prevent breaking boot with the driver update. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git

[U-Boot] [PATCH v3 13/13] mmc: am654_sdhci: Add a platform specific set_control_reg() callback

2019-02-12 Thread Faiz Abbas
From: Faiz Abbas Add a platform specific set_control_reg() callback to help switch to UHS speed modes. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/am654_sdhci.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/mmc

[U-Boot] [PATCH v3 10/13] mmc: am654_sdhci: Add Support for PHY

2019-02-12 Thread Faiz Abbas
Add support in the driver for handling phy specific registers. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/Kconfig | 1 + drivers/mmc/am654_sdhci.c | 224 +- 2 files changed, 222 insertions(+), 3 deletions(-) diff --git a/drivers

[U-Boot] [PATCH v3 07/13] mmc: sdhci: Make sdhci_set_clock() non static

2019-02-12 Thread Faiz Abbas
The am654_sdhci driver needs to switch the clock off before disabling its phy dll and needs to re-enable the clock before enabling the phy again. Therefore, make the sdhci_set_clock() function accessible in the am654_sdhci driver. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers

[U-Boot] [PATCH v3 04/13] regmap: Add API regmap_init_mem_index()

2019-02-12 Thread Faiz Abbas
In device nodes with more than one entry in the reg property, it is sometimes useful to regmap only of the entries. Add an API regmap_init_mem_index() to facilitate this. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/core/regmap.c | 42

[U-Boot] [PATCH v3 06/13] mmc: sdhci: Add support for sdhci-caps-mask

2019-02-12 Thread Faiz Abbas
Add Support for masking some bits in the capabilities register of a host controller. Also remove the redundant readl() into caps1. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/sdhci.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a

[U-Boot] [PATCH v3 11/13] configs: am65x_evm: Enable CONFIG_REGMAP

2019-02-12 Thread Faiz Abbas
Add Support for CONFIG_REGMAP. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- configs/am65x_evm_a53_defconfig | 2 ++ configs/am65x_evm_r5_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig index 6db3dac4c7

[U-Boot] [PATCH v3 09/13] mmc: sdhci: Make set_ios_post() return int

2019-02-12 Thread Faiz Abbas
Make set_ios_post() return int to faciliate error handling in platform drivers. Signed-off-by: Faiz Abbas --- drivers/mmc/sdhci.c | 2 +- drivers/mmc/xenon_sdhci.c | 4 +++- include/sdhci.h | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/mmc

[U-Boot] [PATCH v3 12/13] mmc: sdhci: Add support for HOST_CONTROL2 and setting UHS timings

2019-02-12 Thread Faiz Abbas
From: Faiz Abbas The HOST_CONTROL2 register is a part of SDHC v3.00 and not just specific to arasan/zynq controllers. Add the same to sdhci.h. Also create a common API to set UHS timings in HOST_CONTROL2. Signed-off-by: Faiz Abbas Reviewed-by: Tom Rini --- drivers/mmc/sdhci.c | 28

Re: [U-Boot] [PATCH] power: regulator: Return success on attempt to disable an always-on regulator

2018-12-26 Thread Faiz Abbas
; Reported-by: Jean-Jacques Hiblot > Signed-off-by: Lokesh Vutla Reviewed-by: Faiz Abbas Thanks, Faiz ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH] configs: Enable CONFIG_BLK in a few TI boards

2019-01-08 Thread Faiz Abbas
With DM conversion completed, enable CONFIG_BLK for a few pending TI boards. Signed-off-by: Faiz Abbas --- configs/am335x_boneblack_vboot_defconfig | 1 - configs/am335x_evm_defconfig | 1 - configs/am335x_hs_evm_defconfig | 1 - configs/am335x_hs_evm_uart_defconfig

[U-Boot] [PATCH] configs: Remove am335x_boneblack_defconfig

2019-01-17 Thread Faiz Abbas
The am335x_evm_defconfig supports all am335x_boneblack variants. Remove the redundant am335x_boneblack_defconfig. Signed-off-by: Faiz Abbas --- configs/am335x_boneblack_defconfig | 50 -- 1 file changed, 50 deletions(-) delete mode 100644 configs

Re: [U-Boot] [PATCH 25/25] mmc: Add hardware partition support

2018-11-06 Thread Faiz Abbas
Hi Simon, On Wednesday 07 November 2018 03:51 AM, Simon Glass wrote: > MMC devices support multiple partitions, defined by the hardware. At > present U-Boot can only access partition zero. Add support for selecting > other partitions. > There is already support to switch to another hardware part

Re: [U-Boot] [PATCH] env: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it

2018-02-08 Thread Faiz Abbas
Hi Wolfgang, On Wednesday 07 February 2018 02:22 PM, Wolfgang Denk wrote: > Dear Faiz Abbas, > > In message <1517564875-10237-1-git-send-email-faiz_ab...@ti.com> you wrote: >> When booting from a non-MMC device, the MMC sub-system may not be >> initialized when the en

[U-Boot] [PATCH v2] env: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it

2018-02-12 Thread Faiz Abbas
When booting from a non-MMC device, the MMC sub-system may not be initialized when the environment is first accessed. We need to make sure that the MMC sub-system is ready in even a non-MMC boot case. Therefore, initialize mmc before loading environment from it. Signed-off-by: Faiz Abbas

[U-Boot] [PATCH] mmc: Drop unnecessary case for mmc_probe()

2018-02-12 Thread Faiz Abbas
Drop the unnecessary empty function case for mmc_probe(). Signed-off-by: Faiz Abbas --- drivers/mmc/mmc.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 255310a..e0b9a42 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c

[U-Boot] [RFC] usb: host: xhci-omap: Remove redundant board_usb_init and board_usb_cleanup functions

2018-02-14 Thread Faiz Abbas
board_usb_init()/_cleanup() should be in board files and don't have a place in the xhci-omap driver. Weak versions for board_usb_init()/_cleanup() already exist in common/usb.c (for host mode) and drivers/usb/gadget/g_dnl.c (for gadget mode). Signed-off-by: Faiz Abbas --- Since 1a9a5f7

Re: [U-Boot] [RFC] usb: host: xhci-omap: Remove redundant board_usb_init and board_usb_cleanup functions

2018-02-14 Thread Faiz Abbas
Hi, On Wednesday 14 February 2018 03:46 PM, Marek Vasut wrote: > On 02/14/2018 11:10 AM, Faiz Abbas wrote: >> board_usb_init()/_cleanup() should be in board files and don't have >> a place in the xhci-omap driver. Weak versions for >> board_usb_init()/_cleanup() alr

Re: [U-Boot] [RFC] usb: host: xhci-omap: Remove redundant board_usb_init and board_usb_cleanup functions

2018-02-14 Thread Faiz Abbas
Hi, On Wednesday 14 February 2018 06:53 PM, Marek Vasut wrote: > On 02/14/2018 12:20 PM, Faiz Abbas wrote: >> Hi, >> >> On Wednesday 14 February 2018 03:46 PM, Marek Vasut wrote: >>> On 02/14/2018 11:10 AM, Faiz Abbas wrote: >>>> board_usb_init()/_cleanup

[U-Boot] [PATCH] dfu: Limit dfu_mmc to non-SPL case

2018-02-14 Thread Faiz Abbas
ned-off-by: Faiz Abbas --- drivers/dfu/Makefile | 2 ++ drivers/dfu/dfu.c| 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/dfu/Makefile b/drivers/dfu/Makefile index 61f2b71..5628734 100644 --- a/drivers/dfu/Makefile +++ b/drivers/dfu/Makefile @@ -6,7 +6,9 @@

Re: [U-Boot] [PATCH] dfu: Limit dfu_mmc to non-SPL case

2018-02-14 Thread Faiz Abbas
Hi, On Wednesday 14 February 2018 08:04 PM, Tom Rini wrote: > On Wed, Feb 14, 2018 at 07:59:46PM +0530, Faiz Abbas wrote: > >> Since 82b9dc63 ("Only build cli_readline.o for CMDLINE on non-SPL"), >> cli_simple.c is only being built for non-SPL case. However, dfu_mmc

Re: [U-Boot] [RFC] usb: host: xhci-omap: Remove redundant board_usb_init and board_usb_cleanup functions

2018-02-14 Thread Faiz Abbas
Hi Uri, On Wednesday 14 February 2018 08:56 PM, Uri Mashiach wrote: > Hi, > Sorry for the late response. > > On 02/14/2018 04:19 PM, Marek Vasut wrote: >> On 02/14/2018 03:14 PM, Faiz Abbas wrote: >>> Hi, >>> >>> On Wednesday 14 February 2018 06:53 PM

[U-Boot] [PATCH] dfu: Build only RAM for DFU in SPL

2018-02-15 Thread Faiz Abbas
In SPL, DFU only has RAM support. Therefore, only build RAM for DFU in SPL. Signed-off-by: Faiz Abbas --- drivers/dfu/Makefile | 5 + include/dfu.h| 8 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/dfu/Makefile b/drivers/dfu/Makefile index 61f2b71

[U-Boot] [PATCH v2] usb: host: xhci-omap: Remove redundant board_usb_init and board_usb_cleanup functions

2018-02-15 Thread Faiz Abbas
xhci-omap and implement them in the board files. Signed-off-by: Faiz Abbas Reviewed-by: Marek Vasut Reviewed-by: Bin Meng --- v2: Added init and cleanup implementations for boards which were relying on the weak implementation. Uri please test the compulab boards. board/compulab/cl-som-am5

[U-Boot] [PATCH] configs: am335x_evm_usbspl: Add CONFIG_SPL_NET_VCI_STRING

2018-02-16 Thread Faiz Abbas
Add CONFIG_SPL_NET_VCI_STRING to enable USB-Ethernet boot mode support. Signed-off-by: Faiz Abbas --- configs/am335x_evm_usbspl_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_evm_usbspl_defconfig b/configs/am335x_evm_usbspl_defconfig index 5afc740..d61aa94 100644

[U-Boot] [PATCH] spl: Kconfig: Rename SPL_USBETH_SUPPORT to SPL_USB_ETHER to match with the U-boot CONFIG

2018-02-16 Thread Faiz Abbas
Rename CONFIG_SPL_USBETH_SUPPORT to CONFIG_SPL_USB_ETHER. This enables users to block text using CONFIG_IS_ENABLED() instead of resorting to #if ladders with SPL and non-SPL cases. Signed-off-by: Faiz Abbas --- arch/arm/mach-omap2/boot-common.c | 2 +- board/birdland/bav335x/board.c | 2

Re: [U-Boot] [PATCH] mmc: Drop unnecessary case for mmc_probe()

2018-02-18 Thread Faiz Abbas
Hi, On Monday 12 February 2018 07:35 PM, Faiz Abbas wrote: > Drop the unnecessary empty function case for mmc_probe(). > > Signed-off-by: Faiz Abbas > --- > drivers/mmc/mmc.c | 7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/mmc/m

Re: [U-Boot] [PATCH v2] env: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it

2018-02-18 Thread Faiz Abbas
Hi, On Monday 12 February 2018 07:24 PM, Faiz Abbas wrote: > When booting from a non-MMC device, the MMC sub-system may not be > initialized when the environment is first accessed. > We need to make sure that the MMC sub-system is ready in even a non-MMC > boot case. > > The

Re: [U-Boot] [U-Boot, v2] env: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it

2018-02-26 Thread Faiz Abbas
Hi, On Sunday 25 February 2018 07:18 PM, Tom Rini wrote: > On Sun, Feb 25, 2018 at 09:53:10AM +0100, Wolfgang Denk wrote: >> Dear Tom Rini, >> >> In message <20180224215325.GQ4311@bill-the-cat> you wrote: >>> Why do you ignore this NAK, and why do you add this patch so late in the releas

Re: [U-Boot] [U-Boot, v2] env: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it

2018-03-05 Thread Faiz Abbas
Hi, On Wednesday 28 February 2018 02:38 PM, Lukasz Majewski wrote: > On Mon, 26 Feb 2018 19:59:46 +0530 > Faiz Abbas wrote: > >> Hi, >> >> On Sunday 25 February 2018 07:18 PM, Tom Rini wrote: >>> On Sun, Feb 25, 2018 at 09:53:10AM +0100, Wolfgang Denk wrote

[U-Boot] [PATCH 0/2] Fix boot in some am335x sk boards

2018-03-15 Thread Faiz Abbas
am335x standard kit boards with rev >= 1.2A require gpio support to enable DDR in SPL. This was failing because gpio drivers were not getting bound to the gpio devices in SPL. These patches fix this issue. Faiz Abbas (2): gpio: omap_gpio: Add DM_FLAG_PRE_RELOC flag configs: am335x_

[U-Boot] [PATCH 1/2] gpio: omap_gpio: Add DM_FLAG_PRE_RELOC flag

2018-03-15 Thread Faiz Abbas
With DM enabled in SPL, DM_FLAG_PRE_RELOC is required for the omap_gpio driver to be bound to the gpio devices. Therefore, add DM_FLAG_PRE_RELOC flag to the omap_gpio driver. Signed-off-by: Faiz Abbas --- drivers/gpio/omap_gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio

[U-Boot] [PATCH 2/2] configs: am335x_evm: Increase SPL_SYS_MALLOC_F_LEN to accomodate gpio_devices

2018-03-15 Thread Faiz Abbas
With gpio devices getting created in SPL, the size of the heap is no longer sufficient. Therefore, increase SPL_SYS_MALLOC_F_LEN to 0x1000. Signed-off-by: Faiz Abbas --- configs/am335x_evm_defconfig| 1 + configs/am335x_hs_evm_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a

[U-Boot] Problem with initialize in mmc_initialize in mmc.c

2017-10-30 Thread Faiz Abbas
Hi, The variable *initialized* in mmc_initialize() is declared as static and initialised to 0 in the following commit. This makes the compiler put it in the .bss section of the image. commit 1b26bab12e85e8b0d382d6775e40d14445249574 Author: Daniel KochmaƄski Date: Fri May 29 16:55:43 2015 +0200

Re: [U-Boot] Problem with initialize in mmc_initialize in mmc.c

2017-11-02 Thread Faiz Abbas
On Monday 30 October 2017 07:37 PM, Faiz Abbas wrote: > Hi, > > The variable *initialized* in mmc_initialize() is declared as static and > initialised to 0 in the following commit. This makes the compiler put it > in the .bss section of the ima

Re: [U-Boot] [PATCH v4 1/3] thermal: ti-bandgap: Add support for temperature sensor

2017-11-12 Thread Faiz Abbas
Hi On Monday 23 October 2017 01:28 PM, Faiz Abbas wrote: > The dra7xx series of SOCs contain a temperature sensor and an > associated analog-to-digital converter (ADC) which produces > an output which is proportional to the SOC temperature. > Add support for this temperature sensor.

[U-Boot] [PATCH v5 2/3] ARM: dts: OMAP5+: Add support for bandgap sensor in SPL

2017-11-14 Thread Faiz Abbas
Mark bandgap node as uboot,dm-spl so that it can be accessed in spl Signed-off-by: Faiz Abbas Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- v3: Added Reviewed-by comment. arch/arm/dts/omap5-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/omap5-u

[U-Boot] [PATCH v5 1/3] thermal: ti-bandgap: Add support for temperature sensor

2017-11-14 Thread Faiz Abbas
The dra7xx series of SOCs contain a temperature sensor and an associated analog-to-digital converter (ADC) which produces an output which is proportional to the SOC temperature. Add support for this temperature sensor. Signed-off-by: Faiz Abbas Reviewed-by: Simon Glass --- v5: Added terminator

[U-Boot] [PATCH v5 0/3] Support for TI bandgap temperature sensor

2017-11-14 Thread Faiz Abbas
Reviewed-by in v2. Faiz Abbas (3): thermal: ti-bandgap: Add support for temperature sensor ARM: dts: OMAP5+: Add support for bandgap sensor in SPL ARM: dra7: Kconfig: Add thermal configs for dra7xx and am57xx arch/arm/dts/omap5-u-boot.dtsi | 4 + arch/arm/mach-omap2/omap5

[U-Boot] [PATCH v5 3/3] ARM: dra7: Kconfig: Add thermal configs for dra7xx and am57xx

2017-11-14 Thread Faiz Abbas
Configure thermal configs to remain set by default for dra7xx and am57xx devices. Signed-off-by: Faiz Abbas --- arch/arm/mach-omap2/omap5/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-omap2/omap5/Kconfig b/arch/arm/mach-omap2/omap5/Kconfig index 8f58235

[U-Boot] [PATCH] dwc: ep0: Allocate and flush dwc->ep0_trb in a cache aligned manner

2017-09-19 Thread Faiz Abbas
. Also, when local variable trb is assigned to dwc->ep0_trb[1] and used to flush cache, it leads to cache misaligned messages as only the base address dwc->ep0_trb is cache aligned. Therefore, flush cache using ep0_trb_addr which is always cache aligned. Signed-off-by: Faiz Abbas --- drive

[U-Boot] [PATCH] dm: core: Round up size when allocating so that it is cache line aligned

2017-09-19 Thread Faiz Abbas
The size variable may not be always be a mulitple of ARCH_DMA_MINALIGN and using it to flush cache leads to cache misaligned warnings. Therefore, round up the size to a multiple of ARCH_DMA_MINLAIGN when allocating private data. Signed-off-by: Faiz Abbas --- drivers/core/device.c | 1 + 1 file

Re: [U-Boot] [PATCH] dm: core: Round up size when allocating so that it is cache line aligned

2017-09-19 Thread Faiz Abbas
Hi Bin, On Tuesday 19 September 2017 05:42 PM, Bin Meng wrote: > Hi Faiz, > > On Tue, Sep 19, 2017 at 7:23 PM, Faiz Abbas wrote: >> The size variable may not be always be a mulitple of >> ARCH_DMA_MINALIGN and using it to flush cache leads to cache >> misaligned warni

Re: [U-Boot] [PATCH] dwc: ep0: Allocate and flush dwc->ep0_trb in a cache aligned manner

2017-10-03 Thread Faiz Abbas
Hi, On Tuesday 19 September 2017 04:45 PM, Faiz Abbas wrote: > A flush of the cache is required before any DMA access can take place. > The minimum size that can be flushed from the cache is one cache line > size. Therefore, any buffer allocated for DMA should be in multiples > of cac

Re: [U-Boot] [PATCH] dwc: ep0: Allocate and flush dwc->ep0_trb in a cache aligned manner

2017-10-03 Thread Faiz Abbas
Hi, +Felipe Balbi On Tuesday 19 September 2017 04:45 PM, Faiz Abbas wrote: > A flush of the cache is required before any DMA access can take place. > The minimum size that can be flushed from the cache is one cache line > size. Therefore, any buffer allocated for DMA should be in multi

Re: [U-Boot] [PATCH] dwc: ep0: Allocate and flush dwc->ep0_trb in a cache aligned manner

2017-10-03 Thread Faiz Abbas
Hi, On Tuesday 03 October 2017 05:34 PM, Marek Vasut wrote: > On 09/19/2017 01:15 PM, Faiz Abbas wrote: >> A flush of the cache is required before any DMA access can take place. > > You mean invalidation for inbound DMA, flush for outbound DMA, right ? yes tha

Re: [U-Boot] [PATCH] dwc: ep0: Allocate and flush dwc->ep0_trb in a cache aligned manner

2017-10-04 Thread Faiz Abbas
Hi, On Tuesday 03 October 2017 06:48 PM, Marek Vasut wrote: > On 10/03/2017 03:17 PM, Faiz Abbas wrote: >> Hi, >> >> On Tuesday 03 October 2017 05:34 PM, Marek Vasut wrote: >>> On 09/19/2017 01:15 PM, Faiz Abbas wrote: >>>> A flush of the cache is req

Re: [U-Boot] [PATCH] dwc: ep0: Allocate and flush dwc->ep0_trb in a cache aligned manner

2017-10-04 Thread Faiz Abbas
Hi, On Wednesday 04 October 2017 06:01 PM, Marek Vasut wrote: > On 10/04/2017 12:51 PM, Faiz Abbas wrote: >> Hi, >> On Tuesday 03 October 2017 06:48 PM, Marek Vasut wrote: >>> On 10/03/2017 03:17 PM, Faiz Abbas wrote: >>>> Hi, >>>> On Tuesday 03 Oc

Re: [U-Boot] [PATCH] dwc: ep0: Allocate and flush dwc->ep0_trb in a cache aligned manner

2017-10-06 Thread Faiz Abbas
Hi, On Thursday 05 October 2017 04:57 PM, Marek Vasut wrote: > On 10/04/2017 03:11 PM, Faiz Abbas wrote: >> Hi, >> >> On Wednesday 04 October 2017 06:01 PM, Marek Vasut wrote: >>> On 10/04/2017 12:51 PM, Faiz Abbas wrote: >>>> Hi, >>>>

[U-Boot] [PATCH 1/2] thermal: ti-bandgap: Add support for temperature sensor

2017-10-06 Thread Faiz Abbas
The dra7xx series of SOCs contain a temperature sensor and an associated analog-to-digital converter (ADC) which produces an output which is proportional to the SOC temperature. Add support for this temperature sensor. Signed-off-by: Faiz Abbas --- common/spl/Kconfig

[U-Boot] [PATCH 2/2] ARM: dts: OMAP5+: Add support for bandgap sensor in SPL

2017-10-06 Thread Faiz Abbas
Mark bandgap node as uboot,dm-spl so that it can be accessed in spl Signed-off-by: Faiz Abbas --- arch/arm/dts/omap5-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/omap5-u-boot.dtsi b/arch/arm/dts/omap5-u-boot.dtsi index fdaa692..bf2684c 100644 --- a/arch/arm

[U-Boot] [PATCH 0/2] Support for TI bandgap temperature sensor

2017-10-06 Thread Faiz Abbas
Adding support for TI bandgap temperature sensor. Also add dt support for bandgap sensor in spl. Faiz Abbas (2): thermal: ti-bandgap: Add support for temperature sensor ARM: dts: OMAP5+: Add support for bandgap sensor in SPL arch/arm/dts/omap5-u-boot.dtsi | 4 + common

Re: [U-Boot] [PATCH 1/2] thermal: ti-bandgap: Add support for temperature sensor

2017-10-06 Thread Faiz Abbas
Hi, On Friday 06 October 2017 05:20 PM, Tom Rini wrote: > On Fri, Oct 06, 2017 at 05:05:01PM +0530, Faiz Abbas wrote: > >> The dra7xx series of SOCs contain a temperature sensor and an >> associated analog-to-digital converter (ADC) which produces >> an output which is

<    1   2   3   4   5   6   >