[U-Boot] [PATCH] ti: boot: Register the MMC controllers in SPL in the same way as in u-boot

2017-02-01 Thread Jean-Jacques Hiblot
. Having the same device mapping in SPL and u-boot allows us to use the environment in SPL whatever the MMC boot device. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- This has been tested on DRA7 platforms, AM437x Starter Kit and Beaglebone Black. I also checked that building

[U-Boot] [PATCH] env_mmc: Allow SPL to use any MMC device to load/save the environment

2017-02-01 Thread Jean-Jacques Hiblot
of warning: this commit may break SPL_ENV_SUPPORT on platforms that do not register the same MMC controllers in SPL and in u-boot (mostly iMX6 based platforms). Fortunately none of those activate SPL_ENV_SUPPORT in their default configuration. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.

[U-Boot] [PATCH] arm: dts: dra7: add qspi register map for control module

2017-02-01 Thread Jean-Jacques Hiblot
d the data read from the SF is invalid. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- arch/arm/dts/dra7.dtsi | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/dra7.dtsi b/arch/arm/dts/dra7.dtsi index 5570e30..46febc5 100644 --- a/arch/arm/dts

[U-Boot] [PATCH] common: env_sf: Use CONFIG_SF_DEFAULT_xxx as the default value for CONFIG_ENV_SPI_xxx

2017-02-01 Thread Jean-Jacques Hiblot
The default values for the configuration defines CONFIG_ENV_SPI_xxx are arbitrary values. It makes more sense to set them to the values used by the sf command. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- On DRA7 evm, reading the environment doesn't work in the SPL b

Re: [U-Boot] [PATCH] arm: dts: dra7: add qspi register map for control module

2017-02-06 Thread Jean-Jacques Hiblot
On 06/02/2017 13:47, Tom Rini wrote: On Mon, Feb 06, 2017 at 12:09:12PM +0100, Jean-Jacques Hiblot wrote: On 03/02/2017 17:52, Tom Rini wrote: On Wed, Feb 01, 2017 at 11:53:42AM +0100, Jean-Jacques Hiblot wrote: Add qspi control module register maps to device tree. This register map had

Re: [U-Boot] [PATCH] ti: boot: Register the MMC controllers in SPL in the same way as in u-boot

2017-02-06 Thread Jean-Jacques Hiblot
On 03/02/2017 17:52, Tom Rini wrote: On Wed, Feb 01, 2017 at 11:39:14AM +0100, Jean-Jacques Hiblot wrote: To keep a consistent MMC device mapping in SPL and in u-boot, let's register the MMC controllers the same way in u-boot and in the SPL. In terms of boot time, it doesn't hurt to register

Re: [U-Boot] [PATCH] arm: dts: dra7: add qspi register map for control module

2017-02-06 Thread Jean-Jacques Hiblot
On 03/02/2017 17:52, Tom Rini wrote: On Wed, Feb 01, 2017 at 11:53:42AM +0100, Jean-Jacques Hiblot wrote: Add qspi control module register maps to device tree. This register map had been removed by error when syncing the DTS with the latest linux at the time (commit 7aa1a4087 "ARM

Re: [U-Boot] [PATCH] arm: dts: dra7: add qspi register map for control module

2017-02-07 Thread Jean-Jacques Hiblot
On 06/02/2017 14:37, Tom Rini wrote: On Mon, Feb 06, 2017 at 02:27:42PM +0100, Jean-Jacques Hiblot wrote: On 06/02/2017 13:47, Tom Rini wrote: On Mon, Feb 06, 2017 at 12:09:12PM +0100, Jean-Jacques Hiblot wrote: On 03/02/2017 17:52, Tom Rini wrote: On Wed, Feb 01, 2017 at 11:53:42AM +0100

[U-Boot] [PATCH 0/3] driver: ti_qspi: Use a SYSCON device to map the ctrl_mod_mmap register

2017-02-07 Thread Jean-Jacques Hiblot
ialization to take in account the required address translation. The second patch adds the mechanism in the ti_qspi driver to get the address of ctrl_mod_mmap from the syscon The last patch simply enable the SYSCON feature in the default config for the dra7xx and am57xx evms. Jean-Jacques

[U-Boot] [PATCH 3/3] configs: dra7x/am57x: Enable the SYSCON and REGMAP features

2017-02-07 Thread Jean-Jacques Hiblot
This is required by the ti_qspi driver to get from the DTS the address of the ctrl_mod_mmap register. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- configs/am57xx_evm_defconfig| 2 ++ configs/am57xx_hs_evm_defconfig | 2 ++ configs/dra7xx_evm_defconfig| 2 ++ c

[U-Boot] [PATCH 2/3] drivers: ti_qspi: use syscon to get the address ctrl_mod_mmap register

2017-02-07 Thread Jean-Jacques Hiblot
is no set, the driver reverts to the old way of getting the address from the 3rd memory range Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- drivers/spi/ti_qspi.c | 47 ++- 1 file changed, 42 insertions(+), 5 deletions(-) diff --git a/drivers

[U-Boot] [PATCH 1/3] regmap: use fdt address translation

2017-02-07 Thread Jean-Jacques Hiblot
In the DTS, the addresses are defined relative to the parent bus. We need to translate them to get the address as seen by the CPU core. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- to: s...@chromium.org drivers/core/regmap.c | 14 -- 1 file changed, 8 insertions

Re: [U-Boot] [PATCH] ti: boot: Register the MMC controllers in SPL in the same way as in u-boot

2017-02-06 Thread Jean-Jacques Hiblot
On 06/02/2017 13:49, Tom Rini wrote: On Mon, Feb 06, 2017 at 12:25:19PM +0100, Jean-Jacques Hiblot wrote: On 03/02/2017 17:52, Tom Rini wrote: On Wed, Feb 01, 2017 at 11:39:14AM +0100, Jean-Jacques Hiblot wrote: To keep a consistent MMC device mapping in SPL and in u-boot, let's register

Re: [U-Boot] Falcon boot breaks on DRA7 because of commit b9c8ccab "env_mmc.c: Allow environment to be used within SPL"

2017-01-24 Thread Jean-Jacques Hiblot
On 24/01/2017 16:46, Tom Rini wrote: I had noticed that it's quite old indeed. I didn't mean that it's a regression. I'm just puzzled by the commit. what is its purpose ? why is SPL not using CONFIG_SYS_MMC_ENV_DEV ? Because in SPL we do not have both MMC devices initialized. That is not

[U-Boot] Falcon boot breaks on DRA7 because of commit b9c8ccab "env_mmc.c: Allow environment to be used within SPL"

2017-01-24 Thread Jean-Jacques Hiblot
Hi Tom, I'm using a TI DRA7 platform and the falcon boot from MMC is broken with v2017. The reason is that the standard "boot_os" is used to tell whether the falcon mode should be used or not, but we can't access it. The root cause is that the environment is stored in a eMMC which is dev 1

Re: [U-Boot] Falcon boot breaks on DRA7 because of commit b9c8ccab "env_mmc.c: Allow environment to be used within SPL"

2017-01-30 Thread Jean-Jacques Hiblot
On 27/01/2017 00:36, Tom Rini wrote: On Wed, Jan 25, 2017 at 11:21:32AM +0100, Jean-Jacques Hiblot wrote: On 24/01/2017 20:11, Tom Rini wrote: On Tue, Jan 24, 2017 at 06:04:47PM +0100, Jean-Jacques Hiblot wrote: On 24/01/2017 16:46, Tom Rini wrote: I had noticed that it's quite old indeed

Re: [U-Boot] Falcon boot breaks on DRA7 because of commit b9c8ccab "env_mmc.c: Allow environment to be used within SPL"

2017-01-25 Thread Jean-Jacques Hiblot
On 24/01/2017 20:11, Tom Rini wrote: On Tue, Jan 24, 2017 at 06:04:47PM +0100, Jean-Jacques Hiblot wrote: On 24/01/2017 16:46, Tom Rini wrote: I had noticed that it's quite old indeed. I didn't mean that it's a regression. I'm just puzzled by the commit. what is its purpose ? why is SPL

Re: [U-Boot] [PATCH] arm: dra7xx: Update bootloader partition size

2017-02-22 Thread Jean-Jacques Hiblot
On 22/02/2017 06:01, Lokesh Vutla wrote: + jj On Wednesday 22 February 2017 01:21 AM, Sam Protsenko wrote: The current size of U-Boot is already ~840 KiB. This patch is to increase bootloader partition size up to 1 MiB and thereby fix flashing error. Also fix U-Boot environment address on

[U-Boot] [PATCH] ARM: ti: Update layout for MMC and eMMC (env and dfu)

2017-02-22 Thread Jean-Jacques Hiblot
ears in the dfu so that it's apparent that the region is not free space that can be used to grow "u-boot.img.raw". The total space allocated for those raw binaries is 16MB, of which 13+MB are reserved for the kernel image. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> ---

Re: [U-Boot] [PATCH] ARM: ti: Update layout for MMC and eMMC (env and dfu)

2017-02-23 Thread Jean-Jacques Hiblot
On 23/02/2017 14:46, Sam Protsenko wrote: On Wed, Feb 22, 2017 at 10:27 AM, Jean-Jacques Hiblot <jjhib...@ti.com> wrote: The problems with the current DFU layout are: MMC: The space allocated for u-boot is too small for the latest u-boot (>750KB). We need to increase it.

Re: [U-Boot] [PATCH] ARM: ti: Update layout for MMC and eMMC (env and dfu)

2017-02-24 Thread Jean-Jacques Hiblot
On 23/02/2017 20:28, Sam Protsenko wrote: On Thu, Feb 23, 2017 at 5:14 PM, Jean-Jacques Hiblot <jjhib...@ti.com> wrote: On 23/02/2017 14:46, Sam Protsenko wrote: On Wed, Feb 22, 2017 at 10:27 AM, Jean-Jacques Hiblot <jjhib...@ti.com> wrote: The problems with the current DFU lay

Re: [U-Boot] [PATCH] ARM: ti: Update layout for MMC and eMMC (env and dfu)

2017-02-24 Thread Jean-Jacques Hiblot
On 24/02/2017 13:59, Sam Protsenko wrote: On Fri, Feb 24, 2017 at 10:53 AM, Jean-Jacques Hiblot <jjhib...@ti.com> wrote: On 23/02/2017 20:28, Sam Protsenko wrote: On Thu, Feb 23, 2017 at 5:14 PM, Jean-Jacques Hiblot <jjhib...@ti.com> wrote: On 23/02/2017 14:46, Sam Pro

Re: [U-Boot] [PATCH v2 2/4] regmap: use fdt address translation

2017-02-14 Thread Jean-Jacques Hiblot
On 14/02/2017 06:23, Simon Glass wrote: Hi, On 13 February 2017 at 08:17, Jean-Jacques Hiblot <jjhib...@ti.com> wrote: In the DTS, the addresses are defined relative to the parent bus. We need to translate them to get the address as seen by the CPU core. Signed-off-by: Jean-Jacques

Re: [U-Boot] [PATCH] env_mmc: Allow SPL to use any MMC device to load/save the environment

2017-02-14 Thread Jean-Jacques Hiblot
Hi Tom, Have you had a chance to look at the patch below? Jean-Jacques On 01/02/2017 11:26, Jean-Jacques Hiblot wrote: SPL has been restricted to use only dev 0 based on the assumption that only one MMC device is registered. This is not always the case and many platforms now register several

Re: [U-Boot] [PATCH] ti: boot: Register the MMC controllers in SPL in the same way as in u-boot

2017-02-10 Thread Jean-Jacques Hiblot
On 06/02/2017 22:13, Jean-Jacques Hiblot wrote: On 06/02/2017 13:49, Tom Rini wrote: On Mon, Feb 06, 2017 at 12:25:19PM +0100, Jean-Jacques Hiblot wrote: On 03/02/2017 17:52, Tom Rini wrote: On Wed, Feb 01, 2017 at 11:39:14AM +0100, Jean-Jacques Hiblot wrote: To keep a consistent MMC

Re: [U-Boot] [PATCH] env_mmc: Allow SPL to use any MMC device to load/save the environment

2017-02-15 Thread Jean-Jacques Hiblot
On 14/02/2017 19:52, Tom Rini wrote: On Tue, Feb 14, 2017 at 02:16:13PM +0100, Jean-Jacques Hiblot wrote: Hi Tom, Have you had a chance to look at the patch below? It looks fine but was too close to the release window (given the potential impact) to merge. Thanks! Ok Thank you

[U-Boot] [PATCH v2 3/4] drivers: ti_qspi: use syscon to get the address ctrl_mod_mmap register

2017-02-13 Thread Jean-Jacques Hiblot
supported, the driver reverts to the old way of getting the address from the 3rd memory range Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- drivers/spi/ti_qspi.c | 47 ++- 1 file changed, 42 insertions(+), 5 deletions(-) diff --git a/drivers

[U-Boot] [PATCH v2 1/4] libfdt: Allow the SPL to perform fdt address translation

2017-02-13 Thread Jean-Jacques Hiblot
Use OF_TRANSLATE for both u-boot and SPL to tell whether fdt address translation should be used. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- to: s...@chromium.org lib/fdtdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c

[U-Boot] [PATCH v2 0/4] driver: ti_qspi: Use a SYSCON device to map the ctrl_mod_mmap register

2017-02-13 Thread Jean-Jacques Hiblot
NABLED(XXX) instead of CONFIG_XXX and CONFIG_SPL_XXX to simplify the conditional code. [1] https://www.mail-archive.com/u-boot@lists.denx.de/msg238751.html [2] https://www.mail-archive.com/u-boot@lists.denx.de/msg238964.html Jean-Jacques Hiblot (4): libfdt: Allow the SPL to perform f

[U-Boot] [PATCH v2 4/4] configs: dra7x/am57x: Enable the SYSCON and REGMAP features

2017-02-13 Thread Jean-Jacques Hiblot
This is required by the ti_qspi driver to get from the DTS the address of the ctrl_mod_mmap register in SPL and in u-boot. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- configs/am57xx_evm_defconfig| 6 ++ configs/am57xx_hs_evm_defconfig | 6 ++ configs/dra7xx_evm_def

[U-Boot] [PATCH v2 2/4] regmap: use fdt address translation

2017-02-13 Thread Jean-Jacques Hiblot
In the DTS, the addresses are defined relative to the parent bus. We need to translate them to get the address as seen by the CPU core. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- to: s...@chromium.org drivers/core/regmap.c | 14 -- 1 file changed, 8 insertions

Re: [U-Boot] [PATCH v2 1/4] libfdt: Allow the SPL to perform fdt address translation

2017-02-13 Thread Jean-Jacques Hiblot
On 13/02/2017 16:41, Lokesh Vutla wrote: On 2/13/2017 8:47 PM, Jean-Jacques Hiblot wrote: Use OF_TRANSLATE for both u-boot and SPL to tell whether fdt address translation should be used. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> Vignesh has posted a similar patch[1]. So

Re: [U-Boot] Falcon boot breaks on DRA7 because of commit b9c8ccab "env_mmc.c: Allow environment to be used within SPL"

2017-01-24 Thread Jean-Jacques Hiblot
On 24/01/2017 16:17, Tom Rini wrote: On Tue, Jan 24, 2017 at 10:26:38AM +0100, Jean-Jacques Hiblot wrote: Hi Tom, I'm using a TI DRA7 platform and the falcon boot from MMC is broken with v2017. The reason is that the standard "boot_os" is used to tell whether the falcon mode shou

Re: [U-Boot] DMA bounce buffer in FAT code

2017-01-16 Thread Jean-Jacques Hiblot
On 11/01/2017 01:33, Benoît Thébaudeau wrote: Dear Jean-Jacques, On Tue, Jan 10, 2017 at 12:35 PM, Jean-Jacques Hiblot <jjhib...@ti.com> wrote: commits 8133f43d and cc63b25e introduced buffer bouncing at the level of the FAT fs driver. I came across those because of printf()

[U-Boot] ARM - cache and alignment

2017-01-16 Thread Jean-Jacques Hiblot
Tom, Marek At the moment, whenever an unaligned address is used in cache operations (invalidate_dcache_range, or flush_dcache_range), the whole request is discarded for am926ejs. for armV7 or armV8 only the aligned part is maintained. This is probably what is causing the bug addressed in

Re: [U-Boot] ARM - cache and alignment

2017-01-17 Thread Jean-Jacques Hiblot
On 17/01/2017 10:38, Marek Vasut wrote: On 01/17/2017 10:35 AM, Jean-Jacques Hiblot wrote: On 17/01/2017 10:15, Marek Vasut wrote: On 01/17/2017 10:08 AM, Jean-Jacques Hiblot wrote: On 16/01/2017 20:33, Marek Vasut wrote: On 01/16/2017 08:16 PM, Jean-Jacques Hiblot wrote: On 16/01/2017

Re: [U-Boot] ARM - cache and alignment

2017-01-17 Thread Jean-Jacques Hiblot
On 16/01/2017 20:33, Marek Vasut wrote: On 01/16/2017 08:16 PM, Jean-Jacques Hiblot wrote: On 16/01/2017 17:00, Marek Vasut wrote: On 01/16/2017 02:29 PM, Jean-Jacques Hiblot wrote: Tom, Marek Hi, At the moment, whenever an unaligned address is used in cache operations

Re: [U-Boot] ARM - cache and alignment

2017-01-17 Thread Jean-Jacques Hiblot
On 17/01/2017 10:15, Marek Vasut wrote: On 01/17/2017 10:08 AM, Jean-Jacques Hiblot wrote: On 16/01/2017 20:33, Marek Vasut wrote: On 01/16/2017 08:16 PM, Jean-Jacques Hiblot wrote: On 16/01/2017 17:00, Marek Vasut wrote: On 01/16/2017 02:29 PM, Jean-Jacques Hiblot wrote: Tom, Marek Hi

Re: [U-Boot] ARM - cache and alignment

2017-01-16 Thread Jean-Jacques Hiblot
On 16/01/2017 17:00, Marek Vasut wrote: On 01/16/2017 02:29 PM, Jean-Jacques Hiblot wrote: Tom, Marek Hi, At the moment, whenever an unaligned address is used in cache operations (invalidate_dcache_range, or flush_dcache_range), the whole request is discarded for am926ejs. for armV7

[U-Boot] [PATCH] ARM: DRA7: AMxx: Make sure that the SPL always reads the configuration EEPROM

2016-12-01 Thread Jean-Jacques Hiblot
The bootrom may corrupt the area of SRAM used to store the ti_common_eeprom structure. This patch makes sure that it's always read after a reset, even if a valid MAGIC number is found in the SRAM. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- board/ti/common/board_detect.

[U-Boot] DMA bounce buffer in FAT code

2017-01-10 Thread Jean-Jacques Hiblot
Hi all, commits 8133f43d and cc63b25e introduced buffer bouncing at the level of the FAT fs driver. I came across those because of printf() saying that the buffer is not aligned when I save my env in file on a FAT partition. Those messages are annoying because they lead to think that there's

[U-Boot] [PATCH] disk: Fixed capacity message

2016-12-24 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> Reported-by: Yan Liu <yan-...@ti.com> --- disk/part.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disk/part.c b/disk/part.c index 543cab8..d93a643 100644 --- a/disk/part.c +++ b/disk/part.c @@ -241,13 +24

[U-Boot] [PATCH 0/4] mmc: omap_hsmmc: add support for CONFIG_BLK

2017-03-22 Thread Jean-Jacques Hiblot
first 3 patches are essentially preparation work. The last patch adds the actual support for CONFIG_BLK. This has been tested on a DRA72 evm and buildman has been run other TI platforms (am33x am43x dra7 omap5 am57) Jean-Jacques Hiblot (4): drivers: omap_hsmmc: use an accessor to get the private data dri

[U-Boot] [PATCH 4/4] drivers: omap_hsmmc: add support for CONFIG_BLK

2017-03-22 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- drivers/mmc/omap_hsmmc.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 104129f..83dda09 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_h

[U-Boot] [PATCH 3/4] drivers: omap_hsmmc: move the mmc_config to platdata when DM_MMC is used

2017-03-22 Thread Jean-Jacques Hiblot
This is a preparation work for the support of CONFIG_BLK. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- drivers/mmc/omap_hsmmc.c | 27 ++- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c

[U-Boot] [PATCH 2/4] drivers: omap_hsmmc: use mmc_get_blk_desc() to get the block device desc

2017-03-22 Thread Jean-Jacques Hiblot
Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- drivers/mmc/omap_hsmmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index fe92908..d985ac7 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_h

[U-Boot] [PATCH 1/4] drivers: omap_hsmmc: use an accessor to get the private data

2017-03-22 Thread Jean-Jacques Hiblot
For consistency, use an accessor to access the private data. Also for the same reason, rename all priv_data to priv. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- drivers/mmc/omap_hsmmc.c | 54 +--- 1 file changed, 33 insertions(

[U-Boot] [PATCH 0/7] OMAP: Move SATA to use block driver model

2017-03-24 Thread Jean-Jacques Hiblot
been run on am33, dra7, am43, omap5 and am57 Jean-Jacques Hiblot (3): dm: scsi: ahci: fill max_lun and max_id members of scsi_platdata dm: scsi: fix scan defconfig: dra7xx_evm: enable CONFIG_BLK and disk driver model for SCSI Mugunthan V N (4): arm: omap: sata: move en

[U-Boot] [PATCH 6/7] dm: scsi: fix scan

2017-03-24 Thread Jean-Jacques Hiblot
is started for each possible device only to get the blksz and lba of the device (no call to part_init() yet). If a device is found, we can call blk_create_devicef() with the right parameters and continue the process. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- common/scsi.

[U-Boot] [PATCH 4/7] drivers: block: dwc_ahci: Implement a driver for Synopsys DWC sata device

2017-03-24 Thread Jean-Jacques Hiblot
From: Mugunthan V N <mugunthan...@ti.com> Implement a sata driver for Synopsys DWC sata device based on U-boot driver model. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- drivers/block/Kconfig| 9 ++ driv

[U-Boot] [PATCH 7/7] defconfig: dra7xx_evm: enable CONFIG_BLK and disk driver model for SCSI

2017-03-24 Thread Jean-Jacques Hiblot
Enable disk driver model for dra7xx_evm as dwc_ahci supports driver model. As a consequence we must also enable CONFIG_BLK and CONFIG_DM_USB. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- configs/dra7xx_evm_defc

[U-Boot] [PATCH 2/7] arm: omap: sata: compile out sata init apis when CONFIG_DM_SCSI is defined

2017-03-24 Thread Jean-Jacques Hiblot
From: Mugunthan V N <mugunthan...@ti.com> Compile out sata init/reset apis as this will be implemented in scsi-uclass driver to initialize sata devices. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- arch/arm/mac

[U-Boot] [PATCH 3/7] arm: omap-common: sata: prepare driver for DM conversion

2017-03-24 Thread Jean-Jacques Hiblot
From: Mugunthan V N <mugunthan...@ti.com> Prepare sata driver for DM conversion by abstracting sata phy init to seperate function. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- arch/arm/mach-omap2/sata.c | 13

[U-Boot] [PATCH 5/7] dm: scsi: ahci: fill max_lun and max_id members of scsi_platdata

2017-03-24 Thread Jean-Jacques Hiblot
Those 2 values are required for proper operation of the DM_SCSI version of scsi_scan(). Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- drivers/block/ahci.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c

[U-Boot] [PATCH 1/7] arm: omap: sata: move enable sata clocks to enable_basic_clocks()

2017-03-24 Thread Jean-Jacques Hiblot
From: Mugunthan V N <mugunthan...@ti.com> All the clocks which has to be enabled has to be done in enable_basic_clocks(), so moving enable sata clock to common clocks enable function. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Signed-off-by: Jean-Jacques Hiblot <

[U-Boot] [PATCH 0/7] OMAP: Move SATA to use block driver model

2017-03-24 Thread Jean-Jacques Hiblot
been run on am33, dra7, am43, omap5 and am57 Jean-Jacques Hiblot (3): dm: scsi: ahci: fill max_lun and max_id members of scsi_platdata dm: scsi: fix scan defconfig: dra7xx_evm: enable CONFIG_BLK and disk driver model for SCSI Mugunthan V N (4): arm: omap: sata: move en

Re: [U-Boot] env_init() for mmc

2017-03-30 Thread Jean-Jacques Hiblot
On 30/03/2017 06:57, york sun wrote: Sorry for top posting. I am using OWA which doesn't do inline reply. Jaehoon, The trouble is the env_init() returns the default environment for SPL part. It means whatever variables I saved doesn't get loaded during the SPL part. It is only available

[U-Boot] [PATCH v2] ARM: ti: Update layout for MMC and eMMC (env and dfu)

2017-03-16 Thread Jean-Jacques Hiblot
ears in the dfu so that it's apparent that the region is not free space that can be used to grow "u-boot.img.raw". The total space allocated for those raw binaries is 16MB, of which 13+MB are reserved for the kernel image. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com

Re: [U-Boot] [PATCH] ARM: ti: Update layout for MMC and eMMC (env and dfu)

2017-03-16 Thread Jean-Jacques Hiblot
On 24/02/2017 20:35, Sam Protsenko wrote: On Fri, Feb 24, 2017 at 3:06 PM, Jean-Jacques Hiblot <jjhib...@ti.com> wrote: On 24/02/2017 13:59, Sam Protsenko wrote: On Fri, Feb 24, 2017 at 10:53 AM, Jean-Jacques Hiblot <jjhib...@ti.com> wrote: On 23/02/2017 20:28, Sam Pro

Re: [U-Boot] [PATCH v2 2/4] regmap: use fdt address translation

2017-03-20 Thread Jean-Jacques Hiblot
On 17/03/2017 17:20, Simon Glass wrote: On 16 February 2017 at 13:43, Simon Glass <s...@chromium.org> wrote: On 14 February 2017 at 03:20, Jean-Jacques Hiblot <jjhib...@ti.com> wrote: On 14/02/2017 06:23, Simon Glass wrote: Hi, On 13 February 2017 at 08:17, Jean-Jacques H

Re: [U-Boot] [PATCH 3/7] arm: omap-common: sata: prepare driver for DM conversion

2017-04-04 Thread Jean-Jacques Hiblot
On 01/04/2017 06:21, Simon Glass wrote: Hi, On 24 March 2017 at 06:24, Jean-Jacques Hiblot <jjhib...@ti.com> wrote: From: Mugunthan V N <mugunthan...@ti.com> Prepare sata driver for DM conversion by abstracting sata phy init to seperate function. Signed-off-by: Mugunthan V

Re: [U-Boot] [PATCH 6/7] dm: scsi: fix scan

2017-04-04 Thread Jean-Jacques Hiblot
On 01/04/2017 06:22, Simon Glass wrote: Hi Jean-Jacques, On 24 March 2017 at 06:24, Jean-Jacques Hiblot <jjhib...@ti.com> wrote: With DM_SCSI enabled, scsi scan suffers 2 problems: * blk_create_devicef is called with blkz = 0, leading to a divide-by-0 exception * new blk d

[U-Boot] [PATCH v2 00/10] OMAP: Move SATA to use block driver model

2017-04-07 Thread Jean-Jacques Hiblot
nd its dependencies. Jean-Jacques Hiblot (8): arm: omap: sata: compile out board-level sata code when CONFIG_DM_SCSI is defined drivers: phy: add generic PHY framework drivers: phy: add PIPE3 phy driver dra7: dtsi: mark ocp2scp bus compatible with "simple-bus" scsi: make the

[U-Boot] [PATCH v2 03/10] drivers: phy: add generic PHY framework

2017-04-07 Thread Jean-Jacques Hiblot
-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- Makefile | 1 + drivers/Kconfig | 2 ++ drivers/Makefile | 1 + drivers/phy/Kconfig | 22 ++ drivers/phy/Makefile | 5 drivers/phy/phy-uclass.

[U-Boot] [PATCH v2 05/10] dra7: dtsi: mark ocp2scp bus compatible with "simple-bus"

2017-04-07 Thread Jean-Jacques Hiblot
This is needed to probe devices under that bus such as the SATA PHY. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- arch/arm/dts/dra7.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/dra7.dtsi b/arch/arm/dts/dra7.dtsi index 5570e30..6978359

[U-Boot] [PATCH v2 04/10] drivers: phy: add PIPE3 phy driver

2017-04-07 Thread Jean-Jacques Hiblot
This phy is found on omap platforms with sata capabilities. Except for the part related to the DM and the PHY framework, the code is basically a copy paste from arch/arm/mach-omap2/pipe3-phy.c Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- drivers/phy/Kconfig| 12 ++ d

[U-Boot] [PATCH v2 06/10] drivers: block: dwc_ahci: Implement a driver for Synopsys DWC sata device

2017-04-07 Thread Jean-Jacques Hiblot
From: Mugunthan V N <mugunthan...@ti.com> Implement a sata driver for Synopsys DWC sata device based on U-boot driver model. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- drivers/block/Kconfig| 10 + driv

[U-Boot] [PATCH v2 02/10] arm: omap: sata: compile out board-level sata code when CONFIG_DM_SCSI is defined

2017-04-07 Thread Jean-Jacques Hiblot
When CONFIG_DM_SCSI is defined, the SATA initialization will be implemented in the scsi-uclass driver. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- Instead of compiling out the code inside the C file, let's just not compile the files at all. arch/arm/mach-omap2/Makefile | 2

[U-Boot] [PATCH v2 09/10] dm: scsi: fix divide-by-0 error in scsi_scan()

2017-04-07 Thread Jean-Jacques Hiblot
With DM_SCSI enabled, blk_create_devicef() is called with blkz = 0, leading to a divide-by-0 exception. scsi_detect_dev() can be used to get the required parameters (block size and number of blocks) from the drive before calling blk_create_devicef(). Signed-off-by: Jean-Jacques Hiblot <jj

[U-Boot] [PATCH v2 01/10] arm: omap: sata: move enable sata clocks to enable_basic_clocks()

2017-04-07 Thread Jean-Jacques Hiblot
From: Mugunthan V N <mugunthan...@ti.com> All the clocks which has to be enabled has to be done in enable_basic_clocks(), so moving enable sata clock to common clocks enable function. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhib...@t

[U-Boot] [PATCH v2 10/10] defconfig: dra7xx_evm: enable CONFIG_BLK and disk driver model for SCSI

2017-04-07 Thread Jean-Jacques Hiblot
Enable disk driver model for dra7xx_evm as dwc_ahci supports driver model. As a consequence we must also enable CONFIG_BLK and CONFIG_DM_USB. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- configs/dra7xx_evm_defco

[U-Boot] [PATCH v2 07/10] scsi: make the LUN a parameter of scsi_detect_dev()

2017-04-07 Thread Jean-Jacques Hiblot
This is a cosmetic change. target and LUN have kind of the same role in this function. One of them was passed as a parameter and the other was embedded in a structure. For consistency, pass both of them as parameters. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- common/scsi.

[U-Boot] [PATCH v2 08/10] scsi: move the partition initialization out of the scsi detection

2017-04-07 Thread Jean-Jacques Hiblot
We might want to get information about the scsi device without initializing the partition. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- common/scsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/scsi.c b/common/scsi.c index d55ba89..972ef338

Re: [U-Boot] [PATCH] env_mmc: Allow SPL to use any MMC device to load/save the environment

2017-04-07 Thread Jean-Jacques Hiblot
On 14/02/2017 19:52, Tom Rini wrote: On Tue, Feb 14, 2017 at 02:16:13PM +0100, Jean-Jacques Hiblot wrote: Hi Tom, Have you had a chance to look at the patch below? It looks fine but was too close to the release window (given the potential impact) to merge. Thanks! Hi Tom, Don't want

[U-Boot] [PATCH v4 3/7] dm: test: Add tests for the generic PHY uclass

2017-04-21 Thread Jean-Jacques Hiblot
are not implemented Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- changes since v3: updated the tests to reflect the changes in the PHY framework : * use several phy devices (provider) * use several phy ports per phy device arch/sandbox/dts/test.dts | 17 ++ configs/sandbox_def

[U-Boot] [PATCH v4 6/7] drivers: block: dwc_ahci: Implement a driver for Synopsys DWC sata device

2017-04-21 Thread Jean-Jacques Hiblot
Implement a sata driver for Synopsys DWC sata device based on U-boot driver model. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> Reviewed-by: Simon Glass <s...@chromium.or

[U-Boot] [PATCH v4 4/7] drivers: phy: add PIPE3 phy driver

2017-04-21 Thread Jean-Jacques Hiblot
This phy is found on omap platforms with sata capabilities. Except for the part related to the DM and the PHY framework, the code is basically a copy paste from arch/arm/mach-omap2/pipe3-phy.c Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com&

[U-Boot] [PATCH v4 7/7] defconfig: dra7xx_evm: enable CONFIG_BLK and disk driver model for SCSI

2017-04-21 Thread Jean-Jacques Hiblot
Enable disk driver model for dra7xx_evm as dwc_ahci supports driver model. As a consequence we must also enable CONFIG_BLK and CONFIG_DM_USB. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> Reviewed-by: Tom Rini <tr.

[U-Boot] [PATCH v4 2/7] drivers: phy: add generic PHY framework

2017-04-21 Thread Jean-Jacques Hiblot
-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- changes since v3: * make it possible for a phy device to handle multiple ports. The consequence is the intruction of struct phy which is is used as a parameter to all the functions of the API. * Add generic_phy_get_by

[U-Boot] [PATCH v4 1/7] scsi: dm: split scsi_scan()

2017-04-21 Thread Jean-Jacques Hiblot
-Jacques Hiblot <jjhib...@ti.com> --- common/scsi.c | 102 -- 1 file changed, 49 insertions(+), 53 deletions(-) diff --git a/common/scsi.c b/common/scsi.c index d37222c..c456f5a 100644 --- a/common/scsi.c +++ b/common/scsi.c @@ -549,6 +

[U-Boot] [PATCH v4 5/7] dra7: dtsi: mark ocp2scp bus compatible with "simple-bus"

2017-04-21 Thread Jean-Jacques Hiblot
This is needed to probe devices under that bus such as the SATA PHY. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- arch/arm/dts/omap5-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/omap5-u-boot

[U-Boot] [PATCH v4 0/7] OMAP: Move SATA to use block driver model and introduce a new framework for PHY management

2017-04-21 Thread Jean-Jacques Hiblot
river and its dependencies. Jean-Jacques Hiblot (7): scsi: dm: split scsi_scan() drivers: phy: add generic PHY framework dm: test: Add tests for the generic PHY uclass drivers: phy: add PIPE3 phy driver dra7: dtsi: mark ocp2scp bus compatible with "simple-bus" drivers:

[U-Boot] [PATCH 07/11] drivers: block: dwc_ahci: Implement a driver for Synopsys DWC sata device

2017-04-14 Thread Jean-Jacques Hiblot
Implement a sata driver for Synopsys DWC sata device based on U-boot driver model. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> Reviewed-by: Simon Glass <s...@chromium.or

[U-Boot] [PATCH 05/11] drivers: phy: add PIPE3 phy driver

2017-04-14 Thread Jean-Jacques Hiblot
This phy is found on omap platforms with sata capabilities. Except for the part related to the DM and the PHY framework, the code is basically a copy paste from arch/arm/mach-omap2/pipe3-phy.c Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com&

[U-Boot] [PATCH 06/11] dra7: dtsi: mark ocp2scp bus compatible with "simple-bus"

2017-04-14 Thread Jean-Jacques Hiblot
This is needed to probe devices under that bus such as the SATA PHY. Signed-off-by: Jean-Jacques Hiblot <jjhib...@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 6

Re: [U-Boot] [PATCH v2 03/10] drivers: phy: add generic PHY framework

2017-04-14 Thread Jean-Jacques Hiblot
On 14/04/2017 12:36, Simon Glass wrote: Hi Jean-Jacques, On 13 April 2017 at 08:17, Jean-Jacques Hiblot <jjhib...@ti.com> wrote: On 09/04/2017 21:27, Simon Glass wrote: Hi, On 7 April 2017 at 05:42, Jean-Jacques Hiblot <jjhib...@ti.com> wrote: The PHY framework provides a

[U-Boot] [PATCH 04/11] dm: test: Add tests for the generic PHY uclass

2017-04-14 Thread Jean-Jacques Hiblot
Those tests check: - the ability for a phy-user to get a phy device a reference in the device-tree - the ability to perform operations on the phy (init,deinit,on,off) - the behavior of the uclass when optional operations are not implemented Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.

[U-Boot] [PATCH 03/11] drivers: phy: add generic PHY framework

2017-04-14 Thread Jean-Jacques Hiblot
-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- drivers/Kconfig | 2 ++ drivers/Makefile | 1 + drivers/phy/Kconfig | 32 drivers/phy/Makefile | 2 ++ drivers/phy/phy-uclass.c | 64 incl

[U-Boot] [PATCH 08/11] scsi: make the LUN a parameter of scsi_detect_dev()

2017-04-14 Thread Jean-Jacques Hiblot
This is a cosmetic change. target and LUN have kind of the same role in this function. One of them was passed as a parameter and the other was embedded in a structure. For consistency, pass both of them as parameters. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> Reviewed-by: Tom Ri

[U-Boot] [PATCH 10/11] dm: scsi: fix divide-by-0 error in scsi_scan()

2017-04-14 Thread Jean-Jacques Hiblot
With DM_SCSI enabled, blk_create_devicef() is called with blkz = 0, leading to a divide-by-0 exception. scsi_detect_dev() can be used to get the required parameters (block size and number of blocks) from the drive before calling blk_create_devicef(). Signed-off-by: Jean-Jacques Hiblot <jj

Re: [U-Boot] [PATCH 00/11] OMAP: Move SATA to use block driver model

2017-04-14 Thread Jean-Jacques Hiblot
Hi all, This is the VERSION 3 of the series. Sorry for the confusion, I messed up while preparing the patches. Jean-Jacques On 14/04/2017 13:07, Jean-Jacques Hiblot wrote: This series adds support for SATA using the driver model on omap platforms. It is based on the work of Mugunthan V N

[U-Boot] [PATCH 00/11] OMAP: Move SATA to use block driver model

2017-04-14 Thread Jean-Jacques Hiblot
modified the fix to scsi_scan() in order to call scsi_detect_dev() only once. * the max_lun and max_id parameters are now taken from the device-tree. * Updated the defconfig changes to include the PHY driver and its dependencies. Jean-Jacques Hiblot (11): arm: omap: sata: move enable sata clocks to ena

[U-Boot] [PATCH 01/11] arm: omap: sata: move enable sata clocks to enable_basic_clocks()

2017-04-14 Thread Jean-Jacques Hiblot
All the clocks which has to be enabled has to be done in enable_basic_clocks(), so moving enable sata clock to common clocks enable function. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> Reviewed-by: Tom Rini <tr.

[U-Boot] [PATCH 02/11] arm: omap: sata: compile out board-level sata code when CONFIG_DM_SCSI is defined

2017-04-14 Thread Jean-Jacques Hiblot
When CONFIG_DM_SCSI is defined, the SATA initialization will be implemented in the scsi-uclass driver. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- arch/arm/mach-omap2/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --gi

[U-Boot] [PATCH 09/11] scsi: move the partition initialization out of the scsi detection

2017-04-14 Thread Jean-Jacques Hiblot
We might want to get information about the scsi device without initializing the partition. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> Reviewed-by: Tom Rini <tr...@konsulko.com> Reviewed-by: Simon Glass <s...@chromium.org> --- common/scsi.c | 3 ++- 1 file changed,

[U-Boot] [PATCH 11/11] defconfig: dra7xx_evm: enable CONFIG_BLK and disk driver model for SCSI

2017-04-14 Thread Jean-Jacques Hiblot
Enable disk driver model for dra7xx_evm as dwc_ahci supports driver model. As a consequence we must also enable CONFIG_BLK and CONFIG_DM_USB. Signed-off-by: Mugunthan V N <mugunthan...@ti.com> Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> Reviewed-by: Tom Rini <tr.

Re: [U-Boot] [PATCH v2 03/10] drivers: phy: add generic PHY framework

2017-04-13 Thread Jean-Jacques Hiblot
On 09/04/2017 21:27, Simon Glass wrote: Hi, On 7 April 2017 at 05:42, Jean-Jacques Hiblot <jjhib...@ti.com> wrote: The PHY framework provides a set of APIs to control a PHY. This API is derived from the linux version of the generic PHY framework. Currently the API supports init(),

Re: [U-Boot] [PATCH v2 05/10] dra7: dtsi: mark ocp2scp bus compatible with "simple-bus"

2017-04-13 Thread Jean-Jacques Hiblot
On 09/04/2017 03:13, Tom Rini wrote: On Fri, Apr 07, 2017 at 01:42:04PM +0200, Jean-Jacques Hiblot wrote: This is needed to probe devices under that bus such as the SATA PHY. Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> --- arch/arm/dts/dra7.dtsi | 2 +- 1 file chan

Re: [U-Boot] [PATCH 03/11] drivers: phy: add generic PHY framework

2017-04-18 Thread Jean-Jacques Hiblot
On 15/04/2017 19:10, Simon Glass wrote: Hi Jean-Jacques, On 14 April 2017 at 05:08, Jean-Jacques Hiblot <jjhib...@ti.com> wrote: The PHY framework provides a set of APIs to control a PHY. This API is derived from the linux version of the generic PHY framework. Currently the API support

[U-Boot] [PATCH 0/2] drivers: omap_hsmmc: move to DM_MMC_OPS

2017-04-14 Thread Jean-Jacques Hiblot
done yet. The second patch implements the real DM_MMC_OPS support. This has been tested on DRA7 boards. buildman has been run for dra7 am43 am33 am57. Jean-Jacques Hiblot (2): include: config: am335x: disable DM_MMC_OPS if DM_MMC is disabled drivers: omap_hsmmc: move to DM_MMC_OPS drivers

  1   2   3   4   5   6   7   8   9   >