[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 <faiz_ab...@ti.com> --- driver

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 <faiz_ab...@ti.com> wrote: >> The size variable may not be always be a mulitple of >> ARCH_DMA_MINALIGN and using it to flush cache leads to c

[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 <faiz_ab.

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 Tue

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-10 Thread Faiz Abbas
Hi Marek, On Tuesday 10 October 2017 01:30 PM, Marek Vasut wrote: > On 10/10/2017 07:48 AM, Kishon Vijay Abraham I wrote: >> Hi, > > Hi, > > [...] > - dwc3_flush_cache((uintptr_t)trb, sizeof(*trb)); + dwc3_flush_cache((uintptr_t)dwc->ep0_trb_addr, sizeof(*trb) *

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

2017-10-13 Thread Faiz Abbas
Hi, On Monday 09 October 2017 05:47 PM, Faiz Abbas wrote: > 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

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

2017-10-15 Thread Faiz Abbas
line size. 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 &l

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

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 <faiz_ab...@ti.com> --- common/spl/K

[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

[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 <faiz_ab...@ti.com> --- 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..b

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

2017-10-16 Thread Faiz Abbas
Hi, On Monday 16 October 2017 07:50 PM, Felipe Balbi wrote: > > Hi, > > Faiz Abbas <faiz_ab...@ti.com> writes: >> Hi Felipe, >> >> On Monday 16 October 2017 07:25 PM, Felipe Balbi wrote: >>> >>> Hi, >>> >>> Marek Vas

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

2017-10-17 Thread Faiz Abbas
Hey, On Tuesday 17 October 2017 03:31 PM, Marek Vasut wrote: > On 10/17/2017 07:25 AM, Faiz Abbas wrote: >> >> >> On Monday 16 October 2017 08:52 PM, Marek Vasut wrote: >>> On 10/16/2017 04:51 PM, Felipe Balbi wrote: >>>> >>>> Hi, >>&

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

2017-10-16 Thread Faiz Abbas
Hi Felipe, On Monday 16 October 2017 07:25 PM, Felipe Balbi wrote: > > Hi, > > Marek Vasut <ma...@denx.de> writes: >> On 10/16/2017 07:21 AM, Faiz Abbas wrote: >>> A flush of the cache is required before any outbound DMA access can >>> take place.

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

2017-10-11 Thread Faiz Abbas
Hi, On Tuesday 10 October 2017 07:19 PM, Marek Vasut wrote: > On 10/10/2017 12:45 PM, Faiz Abbas wrote: >> Hi Marek, >> >> On Tuesday 10 October 2017 01:30 PM, Marek Vasut wrote: >>> On 10/10/2017 07:48 AM, Kishon Vijay Abraha

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

2017-10-11 Thread Faiz Abbas
On Wednesday 11 October 2017 02:28 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Wednesday 11 October 2017 01:53 PM, Faiz Abbas wrote: >> Hi, >> >> On Tuesday 10 October 2017 07:19 PM, Marek Vasut wrote: >>> On 10/10/2017 12:45 PM, Faiz Abbas wrote: &g

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

2017-10-16 Thread Faiz Abbas
On Monday 16 October 2017 08:52 PM, Marek Vasut wrote: > On 10/16/2017 04:51 PM, Felipe Balbi wrote: >> >> Hi, >> >> Faiz Abbas <faiz_ab...@ti.com> writes: >>>>>> Marek Vasut <ma...@denx.de> writes: >>>>>>> On 10

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, 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-09 Thread Faiz Abbas
+Kishon On Friday 06 October 2017 05:03 PM, Faiz Abbas wrote: > 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: >

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

2017-10-09 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 <faiz_ab...@ti.com> --- v2: 1. Removed

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

2017-10-09 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

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

2017-10-09 Thread Faiz Abbas
Mark bandgap node as uboot,dm-spl so that it can be accessed in spl Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- 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..b

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

2017-10-18 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 <faiz_ab...@ti.com> Reviewed-by: Simon Gl

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

2017-10-18 Thread Faiz Abbas
Mark bandgap node as uboot,dm-spl so that it can be accessed in spl Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> --- v3: Added Reviewed-by comment. arch/arm/dts/omap5-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/

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

2017-10-18 Thread Faiz Abbas
Adding support for TI bandgap temperature sensor. Also add dt support for bandgap sensor in spl. v3: Missed adding Reviewed-by in v2. 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

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

2017-10-23 Thread Faiz Abbas
Mark bandgap node as uboot,dm-spl so that it can be accessed in spl Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> --- v3: Added Reviewed-by comment. arch/arm/dts/omap5-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/

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

2017-10-23 Thread Faiz Abbas
On Monday 23 October 2017 04:54 PM, Tom Rini wrote: > On Mon, Oct 23, 2017 at 10:50:15AM +0530, Faiz Abbas wrote: >> Hi Tom, >> >> On Monday 23 October 2017 08:30 AM, Tom Rini wrote: >>> On Mon, Oct 23, 2017 at 08:07:09AM +0530, Lokesh Vutla wrote: >>>

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 <faiz_ab...@ti.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- v3: Added Reviewed-by comment. arch/arm/dts/omap5-u-boot.dtsi | 4 ++

[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 <faiz_ab...@ti.com> Reviewed-by: Simon Gl

[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 <faiz_ab...@ti.com> --- 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/K

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

[U-Boot] [PATCH v2] board: ti: dra7xx: Select MCAN instead of DCAN on DRA76 EVM

2017-12-12 Thread Faiz Abbas
ensure that MCAN is used by default via the DCAN1 pins. Signed-off-by: Vignesh R <vigne...@ti.com> [fcoo...@ti.com: Update commit message and use DCAN1 not DCAN2 for MCAN] Signed-off-by: Franklin S Cooper Jr <fcoo...@ti.com> Signed-off-by: Lokesh Vutla <lokeshvu...@ti.com> S

[U-Boot] [PATCH] board: ti: dra7xx: Select MCAN instead of DCAN on DRA76 EVM

2017-12-12 Thread Faiz Abbas
insure that MCAN is used by default via the DCAN1 pins. Signed-off-by: Vignesh R <vigne...@ti.com> [fcoo...@ti.com: Update commit message and use DCAN1 not DCAN2 for MCAN] Signed-off-by: Franklin S Cooper Jr <fcoo...@ti.com> Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- 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

Re: [U-Boot] Beaglebone Black U-boot won't buid - THUMB instruction issue

2018-05-11 Thread Faiz Abbas
Hi John, On Friday 11 May 2018 07:10 AM, John Babrick wrote: > Hello - I am trying to work through the book "Mastering Embedded Linux > Programming" by Chris Simmonds, and trying to work through building u-boot > after having built the cross toolchain. I am running into an error when I > try to

Re: [U-Boot] [BUG] SPI NOR for SST25V hangs for TI AM335x.

2018-05-22 Thread Faiz Abbas
Hi, Adding Vignesh. He should be able to help. On Monday 21 May 2018 11:53 PM, Gautam Bhat wrote: > Hi, > > There is a bug in the SST25V SPI NOR for the TI AM335x. On a write the > SPI NOR hangs. This is because of the spi_release_bus(..) in the > spi_flash_read_common call done by

Re: [U-Boot] [PATCH 0/5] Add KConfig option for cache maintenance availability

2018-05-22 Thread Faiz Abbas
Hi, On Monday 30 April 2018 02:03 PM, Emmanuel Vadot wrote: > Hi, > > In order to correctly exectute some binaries on some arch we need to flush > the data cache or instructions cache. Some arch offer helper functions for > this while others don't (or don't have the ability to do this in

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

2017-10-22 Thread Faiz Abbas
Hi Tom, On Monday 23 October 2017 08:30 AM, Tom Rini wrote: > On Mon, Oct 23, 2017 at 08:07:09AM +0530, Lokesh Vutla wrote: >> On Wednesday 18 October 2017 05:11 PM, Faiz Abbas wrote: >>> The dra7xx series of SOCs contain a temperature sensor and an >>> associated analo

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

2017-10-23 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 <faiz_ab...@ti.com> Reviewed-by: Simon Gl

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

2017-10-23 Thread Faiz Abbas
Configure thermal configs to remain set by default for dra7xx and am57xx targets. Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- 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/K

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

2017-10-23 Thread Faiz Abbas
Adding support for TI bandgap temperature sensor. Also add dt support for bandgap sensor in spl. v4: 1. Added configs enabled by default in dra7xx and am57xx SOCs 2. Split config enabling in a separate commit v3: Missed adding Reviewed-by in v2. Faiz Abbas (3): thermal: ti-bandgap: Add

[U-Boot] [PATCH] configs: keystone2: env: Fix burn_uboot_spi command

2018-01-16 Thread Faiz Abbas
Now the u-boot spi image is greater than 0x9, increase the same in env during spi erase. Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- include/configs/ti_armv7_keystone2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/ti_armv7_keystone2.h b/i

[U-Boot] [PATCH 1/2] configs: Replace CONFIG_ISW_ENTRY_ADDR with CONFIG_SYS_TEXT_BASE

2018-01-19 Thread Faiz Abbas
Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- configs/am43xx_evm_qspiboot_defconfig | 2 +- include/configs/am43xx_evm.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/configs/am43xx_evm_qspiboot_defconfig b/configs/am43xx_evm_qspiboot_defconfig index d6a5263

[U-Boot] [PATCH 2/2] ARM: AM43XX: Call hw_data_init() again after relocation to update *ctrl

2018-01-19 Thread Faiz Abbas
relocation to reinitialize *ctrl. Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- board/ti/am43xx/board.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c index 2c417e7..16fa818 100644 --- a/board/ti/am43xx/board.c +++ b/board/ti/

[U-Boot] [PATCH 0/2] Fix QSPI boot on am43xx_idk

2018-01-19 Thread Faiz Abbas
This series fixes bugs which were causing failures in am43xx_idk when booting from QSPI Faiz Abbas (2): configs: Replace CONFIG_ISW_ENTRY_ADDR with CONFIG_SYS_TEXT_BASE ARM: AM43XX: Call hw_data_init() again to update *ctrl board/ti/am43xx/board.c | 6 ++ configs

Re: [U-Boot] [PATCH] configs: keystone2: env: Fix burn_uboot_spi command

2018-01-16 Thread Faiz Abbas
Hi, +Vignesh On Tuesday 16 January 2018 08:55 PM, Tom Rini wrote: > On Tue, Jan 16, 2018 at 01:43:40PM +0530, Faiz Abbas wrote: >> Now the u-boot spi image is greater than 0x9, increase the same in >> env during spi erase. >> >> Signed-off-by: Fa

[U-Boot] [PATCH] configs: am335x_evm: Disable ISO and EFI partitions in SPL

2018-02-02 Thread Faiz Abbas
ISO and EFI partition configs in SPL are selected by default. However, they are not being used. Therefore, remove ISO and EFI partition support in SPL. Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- configs/am335x_evm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/c

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

2018-02-02 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 during .init() of environment. Signed-off-by: Faiz Abbas <faiz

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

2018-02-05 Thread Faiz Abbas
Hi, On Monday 05 February 2018 02:59 AM, Alex Kiernan wrote: > On Fri, Feb 2, 2018 at 9:47 AM, Faiz Abbas <faiz_ab...@ti.com> 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

[U-Boot] [PATCH v2] configs: am335x_evm: Disable ISO and EFI partitions in SPL

2018-02-05 Thread Faiz Abbas
ISO and EFI partition configs in SPL are selected by default. However, they are not being used. Therefore, remove ISO and EFI partition support in SPL. Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- changes in v2: did savedefconfig to appropriate the position of configs c

[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 <faiz_ab...@ti.com> --- 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

[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] [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 <faiz_ab...@ti.

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
Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- 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 +

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_

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

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() already

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 1/2] lib: Kconfig: Move DYNAMIC_CRC_TABLE to Kconfig

2018-02-06 Thread Faiz Abbas
Add CONFIG prefix to DYNAMIC_CRC_TABLE and implement it in Kconfig. Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- lib/Kconfig | 6 ++ lib/crc32.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/Kconfig b/lib/Kconfig index 710deb7..f76656b 100644 ---

[U-Boot] [PATCH 0/2] Add DYNAMIC_CRC_TABLE to am335x_evm

2018-02-06 Thread Faiz Abbas
The spl image when built for am335x_evm_defconfig exceeds the maximum sram size when new functionality is added. The following patches are part of an effort to reduce the size. Faiz Abbas (2): lib: Kconfig: Move DYNAMIC_CRC_TABLE to Kconfig configs: am335x_evm: Add DYNAMIC_CRC_TABLE configs

[U-Boot] [PATCH 2/2] configs: am335x_evm: Add DYNAMIC_CRC_TABLE

2018-02-06 Thread Faiz Abbas
Add CONFIG_DYNAMIC_CRC_TABLE to am335x_evm_defconfig to reduce the size of the image. Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- configs/am335x_evm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_evm_defconfig b/configs/am335x_evm_defconfig index 8

[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 <faiz_ab...@ti.com> --- 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

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

2018-02-15 Thread Faiz Abbas
-omap and implement them in the board files. Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> Reviewed-by: Marek Vasut <ma...@denx.de> Reviewed-by: Bin Meng <bmeng...@gmail.com> --- v2: Added init and cleanup implementations for boards which were relying on the weak implementation

[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 <faiz_ab...@ti.com> --- drivers/dfu/Makefile | 5 + include/dfu.h| 8 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/dfu/Makefile b/drive

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 <faiz_ab...@ti.com> > --- > drivers/mmc/mmc.c | 7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-) > > di

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

[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 <faiz_ab...@ti.com> --- arch/arm/mach-omap2/boot-common.c | 2 +- board/bi

Re: [U-Boot] [PATCH v2] board: ti: dra7xx: Select MCAN instead of DCAN on DRA76 EVM

2018-01-01 Thread Faiz Abbas
Hi, On Tuesday 12 December 2017 05:14 PM, Faiz Abbas wrote: > From: Vignesh R <vigne...@ti.com> > > MCAN can be accessed via DCAN1 or DCAN2. Determining which DCAN instance > to use if any at all is done through > CTRL_CORE_CONTROL_SPARE_RW.SEL_ALT_MCAN. Since general pinmux

[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

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

2018-08-06 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

[U-Boot] [PATCH] am33xx: board: Call spl_early_init() to support sdram_init()

2018-01-24 Thread Faiz Abbas
With driver model enabled in SPL, sdram_init() requires device tree and malloc to be initialized. Therefore call spl_early_init() in early_system_init(). Signed-off-by: Faiz Abbas <faiz_ab...@ti.com> --- arch/arm/mach-omap2/am33xx/board.c | 3 +++ 1 file changed, 3 insertions(+) diff

[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 <faiz_ab...@ti.com> --- configs/am335x_evm_defconfig| 1 + configs/am335x_hs_evm_defconfig | 1 + 2 files chan

[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 <faiz_ab...@ti.com> --- drivers/gpio/omap_gpio.c | 1 + 1 file changed, 1 insertion(+)

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 <faiz_ab...@ti.com> wrote: > >> Hi, >> >> On Sunday 25 February 2018 07:18 PM, Tom Rini wrote: >>> On Sun, Feb 25, 2018 at 09:53:10AM +

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

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

[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] 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 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| 2

[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

[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 00/13] Add Support for eMMC in AM65x-evm

2019-01-27 Thread Faiz Abbas
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 node from kernel

[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 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

[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

[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

  1   2   3   4   5   6   >