Re: [U-Boot] [PATCH 19/26] configs: mx6sabresd: Add SPL FIT and DM support

2019-01-28 Thread Abel Vesa
On 19-01-18 10:30:24, Tom Rini wrote: > On Fri, Jan 18, 2019 at 03:26:42PM +0000, Abel Vesa wrote: > > On 19-01-18 13:16:07, Fabio Estevam wrote: > > > Hi Abel, > > > > > > On Fri, Jan 18, 2019 at 12:59 PM Abel Vesa wrote: > > > > > > &

[U-Boot] [PATCH v2 00/22] mx6sabre: Add DM and SPL FIT support

2019-01-29 Thread Abel Vesa
* dropped support for EFI and DOS partition to decrease SPL size on sabresd Abel Vesa (22): usb: Rename SPL_USB_SUPPORT to SPL_USB_STORAGE usb: ehci-mx6: Make regulator DM_REGULATOR dependent configs: imx6sabreauto: Add DM_MMC support configs: imx6sabreauto: Add DM_USB support mmc

[U-Boot] [PATCH v2 01/22] usb: Rename SPL_USB_SUPPORT to SPL_USB_STORAGE

2019-01-29 Thread Abel Vesa
Since there is the SPL_USB_HOST_SUPPORT for enabling USB support in SPL, makes more sense to rename the SPL_USB_SUPPORT as SPL_USB_STORAGE. Everything that is not part of the usb storage support in SPL is now build under SPL_USB_HOST_SUPPORT. Signed-off-by: Abel Vesa Reviewed-by: Tom Rini

[U-Boot] [PATCH v2 02/22] usb: ehci-mx6: Make regulator DM_REGULATOR dependent

2019-01-29 Thread Abel Vesa
Do the regulator related work only if the build has the DM_REGULATOR. Signed-off-by: Abel Vesa --- drivers/usb/host/ehci-mx6.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 1acf08d..9483947 100644 --- a

[U-Boot] [PATCH v2 08/22] arm: dts: Add all the imx6[q|qp|dl] sabre[auto|sd] u-boot dts[i] files

2019-01-29 Thread Abel Vesa
This allows us to keep the basic dts[i] files up-to-date with the ones in kernel, but at the same time allowing the u-boot to add its own properties to the existing nodes. Signed-off-by: Abel Vesa --- arch/arm/dts/imx6dl-sabreauto-u-boot.dtsi | 6 ++ arch/arm/dts/imx6dl-sabresd-u

[U-Boot] [PATCH v2 07/22] board: mx6sabreauto: Add board_fit_config_name_match to support FIT in SPL

2019-01-29 Thread Abel Vesa
This matches one of the following three boards (or fails): - imx6q-sabreauto - imx6qp-sabreauto - imx6dl-sabreauto Signed-off-by: Abel Vesa --- board/freescale/mx6sabreauto/mx6sabreauto.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/board/freescale/mx6sabreauto

[U-Boot] [PATCH v2 03/22] configs: imx6sabreauto: Add DM_MMC support

2019-01-29 Thread Abel Vesa
Add DM_MMC config to imx6sabreauto defconfig. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index 40386c2..a3d63a2 100644 --- a/configs/mx6sabreauto_defconfig +++ b

[U-Boot] [PATCH v2 06/22] board: mx6sabresd: Add board_fit_config_name_match to support FIT in SPL

2019-01-29 Thread Abel Vesa
This matches one of the following three boards (or fails): - imx6q-sabresd - imx6qp-sabresd - imx6dl-sabresd Signed-off-by: Abel Vesa --- board/freescale/mx6sabresd/mx6sabresd.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b

[U-Boot] [PATCH v2 04/22] configs: imx6sabreauto: Add DM_USB support

2019-01-29 Thread Abel Vesa
Add the DM support for USB. For that, DM_REGULATOR is needed. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index a3d63a2..4bdcbb1 100644 --- a/configs

[U-Boot] [PATCH v2 09/22] arm: dts: Update all the dts[i] files for imx6[q|qp|dl] sabre[auto|sd]

2019-01-29 Thread Abel Vesa
Update all the dts[i] files for imx6[q|qp|dl] sabre[auto|sd] to the ones from kernel v4.20 (commit 8fe28cb58bcb2). Signed-off-by: Abel Vesa --- arch/arm/dts/Makefile | 8 +- arch/arm/dts/imx6dl-sabreauto.dts | 13 + arch/arm/dts/imx6dl-sabresd.dts | 18 + arch/arm/dts

[U-Boot] [PATCH v2 05/22] mmc: fsl_esdhc: Fix DM_REGULATOR ifdefs for SPL builds

2019-01-29 Thread Abel Vesa
Since the fsl_esdhc will also be used by SPL, make the preprocessor switches more generic to allow any kind of build. Signed-off-by: Abel Vesa --- drivers/mmc/fsl_esdhc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc

[U-Boot] [PATCH v2 10/22] arm: imx: Add FIT SPL its

2019-01-29 Thread Abel Vesa
Add simple its in order to allow SPL to boot u-boot proper via FIT table. Signed-off-by: Abel Vesa --- arch/arm/mach-imx/mx6/fit_spl.its | 41 +++ 1 file changed, 41 insertions(+) create mode 100644 arch/arm/mach-imx/mx6/fit_spl.its diff --git a/arch/arm

[U-Boot] [PATCH v2 17/22] board: mx6sabreauto: Remove the non-DM code

2019-01-29 Thread Abel Vesa
Since the mx6sabreauto has DM support, remove the unused non-DM code from mx6sabreauto board file. Signed-off-by: Abel Vesa --- board/freescale/mx6sabreauto/mx6sabreauto.c | 70 - 1 file changed, 70 deletions(-) diff --git a/board/freescale/mx6sabreauto

[U-Boot] [PATCH v2 13/22] mx6sabreauto: Add DM_GPIO support

2019-01-29 Thread Abel Vesa
Add the DM_GPIO related config for mx6sabreauto. Also add the gpio request calls. Signed-off-by: Abel Vesa --- board/freescale/mx6sabreauto/mx6sabreauto.c | 3 +++ configs/mx6sabreauto_defconfig | 1 + 2 files changed, 4 insertions(+) diff --git a/board/freescale/mx6sabreauto

[U-Boot] [PATCH v2 19/22] board: mx6sabresd: Remove the enet reset gpio handling

2019-01-29 Thread Abel Vesa
Rely on the phy-reset-gpios which is set in imx6qdl-sabresd dtsi and get rid of the enet reset gpio handling from the board file. Signed-off-by: Abel Vesa --- board/freescale/mx6sabresd/mx6sabresd.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/board/freescale/mx6sabresd

[U-Boot] [PATCH v2 22/22] board: mx6sabresd: Update README with the SPL DM FIT info

2019-01-29 Thread Abel Vesa
There is a new step now. The need to build the u-boot.itb. And instead of flashing the .img file, now the .itb file needs to be flashed. Signed-off-by: Abel Vesa --- board/freescale/mx6sabresd/README | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/board/freescale

[U-Boot] [PATCH v2 12/22] configs: mx6sabresd: Add SPL FIT and DM support

2019-01-29 Thread Abel Vesa
Enable all the necessary configs for SPL DM and FIT support for mx6sabresd. Signed-off-by: Abel Vesa --- configs/mx6sabresd_defconfig | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index

[U-Boot] [PATCH v2 18/22] board: mx6sabresd: Remove non-DM code

2019-01-29 Thread Abel Vesa
Since the mx6sabreauto has DM support, remove the unused non-DM code from mx6sabresd board file. Signed-off-by: Abel Vesa --- board/freescale/mx6sabresd/mx6sabresd.c | 50 - 1 file changed, 50 deletions(-) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b

[U-Boot] [PATCH v2 11/22] configs: mx6sabreauto: Add SPL FIT and DM support

2019-01-29 Thread Abel Vesa
Enable all the necessary configs for SPL DM and FIT support for mx6sabreauto. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index

[U-Boot] [PATCH v2 15/22] configs: mx6sabreauto: Add DM_SPI_FLASH necessary configs

2019-01-29 Thread Abel Vesa
Enable all neceassary configs to support DM_SPI_FLASH on mx6sabreauto. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index 4a9739c..e1b4b2f 100644 --- a/configs

[U-Boot] [PATCH v2 14/22] mx6sabresd: Add DM_GPIO support

2019-01-29 Thread Abel Vesa
Add the DM_GPIO related config for mx6sabresd. Also add the gpio request calls. Signed-off-by: Abel Vesa --- board/freescale/mx6sabresd/mx6sabresd.c | 5 + configs/mx6sabresd_defconfig| 1 + 2 files changed, 6 insertions(+) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c

[U-Boot] [PATCH v2 21/22] board: mx6sabreauto: Update README with the SPL DM FIT info

2019-01-29 Thread Abel Vesa
There is a new step now. The need to build the u-boot.itb. And instead of flashing the .img file, now the .itb file needs to be flashed. Signed-off-by: Abel Vesa --- board/freescale/mx6sabreauto/README | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/board/freescale

[U-Boot] [PATCH v2 16/22] configs: mx6sabresd: Add DM_SPI_FLASH necessary configs

2019-01-29 Thread Abel Vesa
Enable all neceassary configs to support DM_SPI_FLASH on mx6sabresd. Signed-off-by: Abel Vesa --- configs/mx6sabresd_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index 4f3a619..14adf65 100644 --- a/configs

[U-Boot] [PATCH v2 20/22] configs: mx6sabresd: Reduce size for SPL by disabling SPL_DOS and SPL_EFI

2019-01-29 Thread Abel Vesa
With DM and FIT enabled in SPL, there is an sram overflow. By disabling CONFIG_SPL_DOS_PARTITION and CONFIG_SPL_EFI_PARTITION, we get to keep the 'one binary to fit all' for imx6[q|qp|dl] on sabresd since the final SPL image is now under 64KB. Signed-off-by: Abel Vesa --

Re: [U-Boot] [PATCH v2 17/22] board: mx6sabreauto: Remove the non-DM code

2019-01-30 Thread Abel Vesa
On 19-01-29 13:43:49, Peng Fan wrote: > > > > -Original Message- > > From: Abel Vesa > > Sent: 2019年1月29日 19:35 > > To: Tom Rini ; Fabio Estevam > > ; u-boot@lists.denx.de; dl-uboot-imx > > ; Peng Fan > > Cc: Nitin Garg ; Abel Vesa &

Re: [U-Boot] [PATCH v2 08/22] arm: dts: Add all the imx6[q|qp|dl] sabre[auto|sd] u-boot dts[i] files

2019-01-30 Thread Abel Vesa
On 19-01-29 13:33:54, Peng Fan wrote: > Hi Abel, > > > -Original Message- > > From: Abel Vesa > > Sent: 2019年1月29日 19:31 > > To: Tom Rini ; Fabio Estevam > > ; u-boot@lists.denx.de; dl-uboot-imx > > ; Peng Fan > > Cc: Nitin Garg ; Abel V

Re: [U-Boot] [PATCH v2 08/22] arm: dts: Add all the imx6[q|qp|dl] sabre[auto|sd] u-boot dts[i] files

2019-01-30 Thread Abel Vesa
On 19-01-29 12:03:35, Tom Rini wrote: > On Tue, Jan 29, 2019 at 11:30:47AM +0000, Abel Vesa wrote: > > This allows us to keep the basic dts[i] files up-to-date with > > the ones in kernel, but at the same time allowing the u-boot > > to add its own properties to the existing n

Re: [U-Boot] [PATCH v2 05/22] mmc: fsl_esdhc: Fix DM_REGULATOR ifdefs for SPL builds

2019-01-30 Thread Abel Vesa
On 19-01-29 13:29:04, Peng Fan wrote: > Hi Abel, > > > -Original Message- > > From: Abel Vesa > > Sent: 2019年1月29日 19:31 > > To: Tom Rini ; Fabio Estevam > > ; u-boot@lists.denx.de; dl-uboot-imx > > ; Peng Fan > > Cc: Nitin Garg ; Abel Ve

[U-Boot] [PATCH v3 00/22] mx6sabre: Add DM and SPL FIT support

2019-01-30 Thread Abel Vesa
The second version is here: https://lists.denx.de/pipermail/u-boot/2019-January/356557.html Changes since v2: * Removed the unecessary SYS_MALLOC_F_LEN from both defocnfig * Fixed the copyright for all the *u-boot.dtsi files Abel Vesa (22): usb: Rename SPL_USB_SUPPORT to SPL_USB_STORAGE

[U-Boot] [PATCH v3 03/22] configs: imx6sabreauto: Add DM_MMC support

2019-01-30 Thread Abel Vesa
Add DM_MMC config to imx6sabreauto defconfig. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index 40386c2..a3d63a2 100644 --- a/configs/mx6sabreauto_defconfig +++ b

[U-Boot] [PATCH v3 01/22] usb: Rename SPL_USB_SUPPORT to SPL_USB_STORAGE

2019-01-30 Thread Abel Vesa
Since there is the SPL_USB_HOST_SUPPORT for enabling USB support in SPL, makes more sense to rename the SPL_USB_SUPPORT as SPL_USB_STORAGE. Everything that is not part of the usb storage support in SPL is now build under SPL_USB_HOST_SUPPORT. Signed-off-by: Abel Vesa Reviewed-by: Tom Rini

[U-Boot] [PATCH v3 02/22] usb: ehci-mx6: Make regulator DM_REGULATOR dependent

2019-01-30 Thread Abel Vesa
Do the regulator related work only if the build has the DM_REGULATOR. Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- drivers/usb/host/ehci-mx6.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 1acf08d

[U-Boot] [PATCH v3 06/22] board: mx6sabresd: Add board_fit_config_name_match to support FIT in SPL

2019-01-30 Thread Abel Vesa
This matches one of the following three boards (or fails): - imx6q-sabresd - imx6qp-sabresd - imx6dl-sabresd Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- board/freescale/mx6sabresd/mx6sabresd.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/board/freescale

[U-Boot] [PATCH v3 07/22] board: mx6sabreauto: Add board_fit_config_name_match to support FIT in SPL

2019-01-30 Thread Abel Vesa
This matches one of the following three boards (or fails): - imx6q-sabreauto - imx6qp-sabreauto - imx6dl-sabreauto Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- board/freescale/mx6sabreauto/mx6sabreauto.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/board

[U-Boot] [PATCH v3 05/22] mmc: fsl_esdhc: Fix DM_REGULATOR ifdefs for SPL builds

2019-01-30 Thread Abel Vesa
Since the fsl_esdhc will also be used by SPL, make the preprocessor switches more generic to allow any kind of build. Signed-off-by: Abel Vesa --- drivers/mmc/fsl_esdhc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc

[U-Boot] [PATCH v3 04/22] configs: imx6sabreauto: Add DM_USB support

2019-01-30 Thread Abel Vesa
Add the DM support for USB. For that, DM_REGULATOR is needed. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index a3d63a2..4bdcbb1 100644 --- a/configs

[U-Boot] [PATCH v3 16/22] configs: mx6sabresd: Add DM_SPI_FLASH necessary configs

2019-01-30 Thread Abel Vesa
Enable all neceassary configs to support DM_SPI_FLASH on mx6sabresd. Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- configs/mx6sabresd_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index 1f4c5c5..b26e764 100644

[U-Boot] [PATCH v3 17/22] board: mx6sabreauto: Remove the non-DM code

2019-01-30 Thread Abel Vesa
Since the mx6sabreauto has DM support, remove the unused non-DM code from mx6sabreauto board file. Signed-off-by: Abel Vesa --- board/freescale/mx6sabreauto/mx6sabreauto.c | 70 - 1 file changed, 70 deletions(-) diff --git a/board/freescale/mx6sabreauto

[U-Boot] [PATCH v3 15/22] configs: mx6sabreauto: Add DM_SPI_FLASH necessary configs

2019-01-30 Thread Abel Vesa
Enable all neceassary configs to support DM_SPI_FLASH on mx6sabreauto. Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- configs/mx6sabreauto_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index 31e8153..34fb9d04

[U-Boot] [PATCH v3 12/22] configs: mx6sabresd: Add SPL FIT and DM support

2019-01-30 Thread Abel Vesa
Enable all the necessary configs for SPL DM and FIT support for mx6sabresd. Signed-off-by: Abel Vesa --- configs/mx6sabresd_defconfig | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index

[U-Boot] [PATCH v3 09/22] arm: dts: Update all the dts[i] files for imx6[q|qp|dl] sabre[auto|sd]

2019-01-30 Thread Abel Vesa
Update all the dts[i] files for imx6[q|qp|dl] sabre[auto|sd] to the ones from kernel v4.20 (commit 8fe28cb58bcb2). Signed-off-by: Abel Vesa Acked-by: Peng Fan --- arch/arm/dts/Makefile | 8 +- arch/arm/dts/imx6dl-sabreauto.dts | 13 + arch/arm/dts/imx6dl-sabresd.dts

[U-Boot] [PATCH v3 11/22] configs: mx6sabreauto: Add SPL FIT and DM support

2019-01-30 Thread Abel Vesa
Enable all the necessary configs for SPL DM and FIT support for mx6sabreauto. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index

[U-Boot] [PATCH v3 08/22] arm: dts: Add all the imx6[q|qp|dl] sabre[auto|sd] u-boot dts[i] files

2019-01-30 Thread Abel Vesa
This allows us to keep the basic dts[i] files up-to-date with the ones in kernel, but at the same time allowing the u-boot to add its own properties to the existing nodes. Signed-off-by: Abel Vesa --- arch/arm/dts/imx6dl-sabreauto-u-boot.dtsi | 6 ++ arch/arm/dts/imx6dl-sabresd-u

[U-Boot] [PATCH v3 10/22] arm: imx: Add FIT SPL its

2019-01-30 Thread Abel Vesa
Add simple its in order to allow SPL to boot u-boot proper via FIT table. Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- arch/arm/mach-imx/mx6/fit_spl.its | 41 +++ 1 file changed, 41 insertions(+) create mode 100644 arch/arm/mach-imx/mx6/fit_spl.its

[U-Boot] [PATCH v3 22/22] board: mx6sabresd: Update README with the SPL DM FIT info

2019-01-30 Thread Abel Vesa
There is a new step now. The need to build the u-boot.itb. And instead of flashing the .img file, now the .itb file needs to be flashed. Signed-off-by: Abel Vesa --- board/freescale/mx6sabresd/README | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/board/freescale

[U-Boot] [PATCH v3 14/22] mx6sabresd: Add DM_GPIO support

2019-01-30 Thread Abel Vesa
Add the DM_GPIO related config for mx6sabresd. Also add the gpio request calls. Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- board/freescale/mx6sabresd/mx6sabresd.c | 5 + configs/mx6sabresd_defconfig| 1 + 2 files changed, 6 insertions(+) diff --git a/board/freescale

[U-Boot] [PATCH v3 18/22] board: mx6sabresd: Remove non-DM code

2019-01-30 Thread Abel Vesa
Since the mx6sabreauto has DM support, remove the unused non-DM code from mx6sabresd board file. Signed-off-by: Abel Vesa --- board/freescale/mx6sabresd/mx6sabresd.c | 50 - 1 file changed, 50 deletions(-) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b

[U-Boot] [PATCH v3 19/22] board: mx6sabresd: Remove the enet reset gpio handling

2019-01-30 Thread Abel Vesa
Rely on the phy-reset-gpios which is set in imx6qdl-sabresd dtsi and get rid of the enet reset gpio handling from the board file. Signed-off-by: Abel Vesa --- board/freescale/mx6sabresd/mx6sabresd.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/board/freescale/mx6sabresd

[U-Boot] [PATCH v3 20/22] configs: mx6sabresd: Reduce size for SPL by disabling SPL_DOS and SPL_EFI

2019-01-30 Thread Abel Vesa
With DM and FIT enabled in SPL, there is an sram overflow. By disabling CONFIG_SPL_DOS_PARTITION and CONFIG_SPL_EFI_PARTITION, we get to keep the 'one binary to fit all' for imx6[q|qp|dl] on sabresd since the final SPL image is now under 64KB. Signed-off-by: Abel Vesa --

[U-Boot] [PATCH v3 13/22] mx6sabreauto: Add DM_GPIO support

2019-01-30 Thread Abel Vesa
Add the DM_GPIO related config for mx6sabreauto. Also add the gpio request calls. Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- board/freescale/mx6sabreauto/mx6sabreauto.c | 3 +++ configs/mx6sabreauto_defconfig | 1 + 2 files changed, 4 insertions(+) diff --git a/board

[U-Boot] [PATCH v3 21/22] board: mx6sabreauto: Update README with the SPL DM FIT info

2019-01-30 Thread Abel Vesa
There is a new step now. The need to build the u-boot.itb. And instead of flashing the .img file, now the .itb file needs to be flashed. Signed-off-by: Abel Vesa --- board/freescale/mx6sabreauto/README | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/board/freescale

Re: [U-Boot] [PATCH v3 00/22] mx6sabre: Add DM and SPL FIT support

2019-01-31 Thread Abel Vesa
On 19-01-30 13:58:19, Tom Rini wrote: > On Wed, Jan 30, 2019 at 01:39:50PM +0000, Abel Vesa wrote: > > > The second version is here: > > https://lists.denx.de/pipermail/u-boot/2019-January/356557.html > > > > Changes since v2: > > * Removed the unecessary

Re: [U-Boot] [PATCH v3 00/22] mx6sabre: Add DM and SPL FIT support

2019-01-31 Thread Abel Vesa
On 19-01-31 09:41:11, Tom Rini wrote: > On Thu, Jan 31, 2019 at 12:59:19PM +0000, Abel Vesa wrote: > > On 19-01-30 13:58:19, Tom Rini wrote: > > > On Wed, Jan 30, 2019 at 01:39:50PM +, Abel Vesa wrote: > > > > > > > The second version is here: > &g

[U-Boot] [PATCH v4 00/20] mx6sabre: Add DM and SPL FIT support

2019-02-01 Thread Abel Vesa
e short story here is that spl_image->os was remaining set to 0. (see first patch in the series for details) Abel Vesa (20): common: spl_fit: Fix the spl_fit_image_get_os for FIT_IMAGE_TINY usb: Rename SPL_USB_SUPPORT to SPL_USB_STORAGE usb: ehci-mx6: Make regulator DM_REGULATO

[U-Boot] [PATCH v4 12/20] configs: mx6sabresd: Add SPL FIT and DM support

2019-02-01 Thread Abel Vesa
Enable all the necessary configs for SPL DM and FIT support for mx6sabresd. Signed-off-by: Abel Vesa --- configs/mx6sabresd_defconfig | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index

[U-Boot] [PATCH v4 05/20] configs: imx6sabreauto: Add DM_USB support

2019-02-01 Thread Abel Vesa
Add the DM support for USB. For that, DM_REGULATOR is needed. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index a3d63a2..4bdcbb1 100644 --- a/configs

[U-Boot] [PATCH v4 06/20] mmc: fsl_esdhc: Fix DM_REGULATOR ifdefs for SPL builds

2019-02-01 Thread Abel Vesa
Since the fsl_esdhc will also be used by SPL, make the preprocessor switches more generic to allow any kind of build. Signed-off-by: Abel Vesa --- drivers/mmc/fsl_esdhc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc

[U-Boot] [PATCH v4 09/20] arm: dts: Add all the imx6[q|qp|dl] sabre[auto|sd] u-boot dts[i] files

2019-02-01 Thread Abel Vesa
This allows us to keep the basic dts[i] files up-to-date with the ones in kernel, but at the same time allowing the u-boot to add its own properties to the existing nodes. Signed-off-by: Abel Vesa --- arch/arm/dts/imx6dl-sabreauto-u-boot.dtsi | 6 ++ arch/arm/dts/imx6dl-sabresd-u

[U-Boot] [PATCH v4 14/20] mx6sabresd: Add DM_GPIO support

2019-02-01 Thread Abel Vesa
Add the DM_GPIO related config for mx6sabresd. Also add the gpio request calls. Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- board/freescale/mx6sabresd/mx6sabresd.c | 5 + configs/mx6sabresd_defconfig| 1 + 2 files changed, 6 insertions(+) diff --git a/board/freescale

[U-Boot] [PATCH v4 16/20] configs: mx6sabresd: Add DM_SPI_FLASH necessary configs

2019-02-01 Thread Abel Vesa
Enable all neceassary configs to support DM_SPI_FLASH on mx6sabresd. Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- configs/mx6sabresd_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index 4b40dfe..e8fd9b4 100644

[U-Boot] [PATCH v4 13/20] mx6sabreauto: Add DM_GPIO support

2019-02-01 Thread Abel Vesa
Add the DM_GPIO related config for mx6sabreauto. Also add the gpio request calls. Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- board/freescale/mx6sabreauto/mx6sabreauto.c | 3 +++ configs/mx6sabreauto_defconfig | 1 + 2 files changed, 4 insertions(+) diff --git a/board

[U-Boot] [PATCH v4 17/20] board: mx6sabreauto: Remove the non-DM code

2019-02-01 Thread Abel Vesa
Since the mx6sabreauto has DM support, remove the unused non-DM code from mx6sabreauto board file. Signed-off-by: Abel Vesa --- board/freescale/mx6sabreauto/mx6sabreauto.c | 70 - 1 file changed, 70 deletions(-) diff --git a/board/freescale/mx6sabreauto

[U-Boot] [PATCH v4 03/20] usb: ehci-mx6: Make regulator DM_REGULATOR dependent

2019-02-01 Thread Abel Vesa
Do the regulator related work only if the build has the DM_REGULATOR. Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- drivers/usb/host/ehci-mx6.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 1acf08d

[U-Boot] [PATCH v4 18/20] board: mx6sabresd: Remove non-DM code

2019-02-01 Thread Abel Vesa
Since the mx6sabreauto has DM support, remove the unused non-DM code from mx6sabresd board file. Signed-off-by: Abel Vesa --- board/freescale/mx6sabresd/mx6sabresd.c | 50 - 1 file changed, 50 deletions(-) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b

[U-Boot] [PATCH v4 10/20] arm: dts: Update all the dts[i] files for imx6[q|qp|dl] sabre[auto|sd]

2019-02-01 Thread Abel Vesa
Update all the dts[i] files for imx6[q|qp|dl] sabre[auto|sd] to the ones from kernel v4.20 (commit 8fe28cb58bcb2). Signed-off-by: Abel Vesa Acked-by: Peng Fan --- arch/arm/dts/Makefile | 8 +- arch/arm/dts/imx6dl-sabreauto.dts | 13 + arch/arm/dts/imx6dl-sabresd.dts

[U-Boot] [PATCH v4 15/20] configs: mx6sabreauto: Add DM_SPI_FLASH necessary configs

2019-02-01 Thread Abel Vesa
Enable all neceassary configs to support DM_SPI_FLASH on mx6sabreauto. Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- configs/mx6sabreauto_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index 3b37766..bb466fe

[U-Boot] [PATCH v4 07/20] board: mx6sabresd: Add board_fit_config_name_match to support FIT in SPL

2019-02-01 Thread Abel Vesa
This matches one of the following three boards (or fails): - imx6q-sabresd - imx6qp-sabresd - imx6dl-sabresd Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- board/freescale/mx6sabresd/mx6sabresd.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/board/freescale

[U-Boot] [PATCH v4 08/20] board: mx6sabreauto: Add board_fit_config_name_match to support FIT in SPL

2019-02-01 Thread Abel Vesa
This matches one of the following three boards (or fails): - imx6q-sabreauto - imx6qp-sabreauto - imx6dl-sabreauto Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- board/freescale/mx6sabreauto/mx6sabreauto.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/board

[U-Boot] [PATCH v4 11/20] configs: mx6sabreauto: Add SPL FIT and DM support

2019-02-01 Thread Abel Vesa
Enable all the necessary configs for SPL DM and FIT support for mx6sabreauto. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index

[U-Boot] [PATCH v4 04/20] configs: imx6sabreauto: Add DM_MMC support

2019-02-01 Thread Abel Vesa
Add DM_MMC config to imx6sabreauto defconfig. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index 40386c2..a3d63a2 100644 --- a/configs/mx6sabreauto_defconfig +++ b

[U-Boot] [PATCH v4 02/20] usb: Rename SPL_USB_SUPPORT to SPL_USB_STORAGE

2019-02-01 Thread Abel Vesa
Since there is the SPL_USB_HOST_SUPPORT for enabling USB support in SPL, makes more sense to rename the SPL_USB_SUPPORT as SPL_USB_STORAGE. Everything that is not part of the usb storage support in SPL is now build under SPL_USB_HOST_SUPPORT. Signed-off-by: Abel Vesa Reviewed-by: Tom Rini

[U-Boot] [PATCH v4 20/20] configs: mx6sabresd: Reduce SPL size by disabling DOS, EXT and EFI support

2019-02-01 Thread Abel Vesa
With DM and FIT enabled in SPL, there is an sram overflow. By disabling CONFIG_SPL_DOS_PARTITION, CONFIG_SPL_EXT_SUPPORT and CONFIG_SPL_EFI_PARTITION, we get to keep the 'one binary to fit all' for imx6[q|qp|dl] on sabresd since the final SPL image is now under 64KB. Signed-off-by:

[U-Boot] [PATCH v4 19/20] board: mx6sabresd: Remove the enet reset gpio handling

2019-02-01 Thread Abel Vesa
Rely on the phy-reset-gpios which is set in imx6qdl-sabresd dtsi and get rid of the enet reset gpio handling from the board file. Signed-off-by: Abel Vesa --- board/freescale/mx6sabresd/mx6sabresd.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/board/freescale/mx6sabresd

[U-Boot] [PATCH v4 01/20] common: spl_fit: Fix the spl_fit_image_get_os for FIT_IMAGE_TINY

2019-02-01 Thread Abel Vesa
then if CONFIG_SPL_OS_BOOT was also defined, the spl_image->os was left set to 0 which in turn was skipping the fdt appending resulting in boot-up failure. Fixes: 337bbb6297775e spl: fit: add SPL_FIT_IMAGE_TINY config to reduce code-size Signed-off-by: Abel Vesa --- common/spl/spl_fit.c

Re: [U-Boot] [PATCH v4 00/20] mx6sabre: Add DM and SPL FIT support

2019-02-01 Thread Abel Vesa
On 19-02-01 15:13:32, Fabio Estevam wrote: > Hi Abel, > > On Fri, Feb 1, 2019 at 2:43 PM Abel Vesa wrote: > > > > The third version is here: > > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.denx.de%2Fpipermail%2Fu-boot%2F2019-January

Re: [U-Boot] [PATCH v4 00/20] mx6sabre: Add DM and SPL FIT support

2019-02-04 Thread Abel Vesa
On 19-02-02 07:50:28, Fabio Estevam wrote: > Hi Abel, > > On Fri, Feb 1, 2019 at 2:43 PM Abel Vesa wrote: > > > > The third version is here: > > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.denx.de%2Fpipermail%2Fu-boot%2F2019-January

Re: [U-Boot] [PATCH v4 00/20] mx6sabre: Add DM and SPL FIT support

2019-02-04 Thread Abel Vesa
On 19-02-04 08:19:23, Tom Rini wrote: > On Mon, Feb 04, 2019 at 09:03:43AM -0200, Fabio Estevam wrote: > > On Mon, Feb 4, 2019 at 7:55 AM Abel Vesa wrote: > > > > > If the SPL size (without the dtb appended) is larger then yes, the build > > > fails. > > &

Re: [U-Boot] [PATCH v4 00/20] mx6sabre: Add DM and SPL FIT support

2019-02-09 Thread Abel Vesa
On 19-02-04 08:19:23, Tom Rini wrote: > On Mon, Feb 04, 2019 at 09:03:43AM -0200, Fabio Estevam wrote: > > On Mon, Feb 4, 2019 at 7:55 AM Abel Vesa wrote: > > > > > If the SPL size (without the dtb appended) is larger then yes, the build > > > fails. > > &

[U-Boot] [PATCH] common: Break USB_STORAGE dependency between SPL and u-boot proper

2019-01-15 Thread Abel Vesa
Some boards might need USB_STORAGE enabled in u-boot proper but not in SPL. Make a separate config for SPL and keep the same depends on conditions but for SPL. Signed-off-by: Abel Vesa --- common/Makefile| 2 +- configs/apalis_imx6_defconfig | 1 + configs

Re: [U-Boot] [PATCH] common: Break USB_STORAGE dependency between SPL and u-boot proper

2019-01-15 Thread Abel Vesa
On 19-01-15 12:27:11, Marek Vasut wrote: > On 1/15/19 12:07 PM, Abel Vesa wrote: > > Some boards might need USB_STORAGE enabled in u-boot proper but not in SPL. > > Make a separate config for SPL and keep the same depends on conditions but > > for SPL. > > Is this new

Re: [U-Boot] [PATCH] common: Break USB_STORAGE dependency between SPL and u-boot proper

2019-01-15 Thread Abel Vesa
On 19-01-15 18:38:00, Vignesh R wrote: > > > On 15/01/19 4:37 PM, Abel Vesa wrote: > > Some boards might need USB_STORAGE enabled in u-boot proper but not in SPL. > > Make a separate config for SPL and keep the same depends on conditions but > > for SPL. > &

Re: [U-Boot] [PATCH] common: Break USB_STORAGE dependency between SPL and u-boot proper

2019-01-15 Thread Abel Vesa
On 19-01-15 11:02:09, Tom Rini wrote: > On Tue, Jan 15, 2019 at 11:07:23AM +0000, Abel Vesa wrote: > > > Some boards might need USB_STORAGE enabled in u-boot proper but not in SPL. > > Make a separate config for SPL and keep the same depends on conditions but > > for SPL

Re: [U-Boot] [PATCH] common: Break USB_STORAGE dependency between SPL and u-boot proper

2019-01-15 Thread Abel Vesa
On 19-01-15 11:10:51, Tom Rini wrote: > On Tue, Jan 15, 2019 at 04:05:43PM +0000, Abel Vesa wrote: > > On 19-01-15 11:02:09, Tom Rini wrote: > > > On Tue, Jan 15, 2019 at 11:07:23AM +, Abel Vesa wrote: > > > > > > > Some boards might need USB_STOR

[U-Boot] [RFC 00/17] mx6sabre: Add DM and SPL FIT support

2019-01-16 Thread Abel Vesa
This comes as an answer to the following: https://lists.denx.de/pipermail/u-boot/2018-November/348078.html https://lists.denx.de/pipermail/u-boot/2018-November/348062.html Abel Vesa (17): common: Break USB_STORAGE dependency between SPL and u-boot proper usb: ehci-mx6: Make regulator

[U-Boot] [RFC 01/17] common: Break USB_STORAGE dependency between SPL and u-boot proper

2019-01-16 Thread Abel Vesa
Some boards might need USB_STORAGE enabled in u-boot proper but not in SPL. Make a separate config for SPL and keep the same depends on conditions but for SPL. Also, all the boards that have DISTRO_DEFAULTS use by default SPL_USB_STORAGE. Signed-off-by: Abel Vesa --- arch/x86/cpu/coreboot

[U-Boot] [RFC 03/17] configs: imx6sabreauto: Add DM_MMC support

2019-01-16 Thread Abel Vesa
Add DM_MMC config to imx6sabreauto defconfig. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index 8856567..23cb47e 100644 --- a/configs/mx6sabreauto_defconfig +++ b

[U-Boot] [RFC 02/17] usb: ehci-mx6: Make regulator DM_REGULATOR dependent

2019-01-16 Thread Abel Vesa
Do the regulator related work only if the build has the DM_REGULATOR. Signed-off-by: Abel Vesa --- drivers/usb/host/ehci-mx6.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 1acf08d..9483947 100644 --- a

[U-Boot] [RFC 04/17] configs: imx6sabreauto: Add DM_USB support

2019-01-16 Thread Abel Vesa
Add the DM support for USB. For that, DM_REGULATOR is needed. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index 23cb47e..e55c2d9 100644 --- a/configs

[U-Boot] [RFC 07/17] dts: imx: Add imx6q-sabreauto dts and imx6qdl-sabreauto dtsi files

2019-01-16 Thread Abel Vesa
Add necessary dts and dtsi files in order to enable DM in both SPL and u-boot proper for mx6sabreauto. Signed-off-by: Abel Vesa --- arch/arm/dts/Makefile |3 +- arch/arm/dts/imx6q-sabreauto.dts| 78 +++ arch/arm/dts/imx6qdl-sabreauto.dtsi | 1118

[U-Boot] [RFC 09/17] arm: imx: Add FIT SPL its

2019-01-16 Thread Abel Vesa
Add simple its in order to allow SPL to boot u-boot proper via FIT table. Signed-off-by: Abel Vesa --- arch/arm/mach-imx/mx6/fit_spl.its | 41 +++ 1 file changed, 41 insertions(+) create mode 100644 arch/arm/mach-imx/mx6/fit_spl.its diff --git a/arch/arm

[U-Boot] [RFC 05/17] mmc: fsl_esdhc: Fix DM_REGULATOR ifdefs for SPL builds

2019-01-16 Thread Abel Vesa
Since the fsl_esdhc will also be used by SPL, make the preprocessor switches more generic to allow any kind of build. Signed-off-by: Abel Vesa --- drivers/mmc/fsl_esdhc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc

[U-Boot] [RFC 06/17] arm: imx: Add board_fit_config_name_match to support FIT in SPL

2019-01-16 Thread Abel Vesa
This function is necessary to enable FIT support in SPL. Doesn't really do anything. Signed-off-by: Abel Vesa --- arch/arm/mach-imx/spl.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index 397d6d4..2e770c0 100644 --- a

[U-Boot] [RFC 10/17] configs: mx6sabreauto: Add SPL FIT and DM support

2019-01-16 Thread Abel Vesa
Enable all the necessary configs for SPL DM and FIT support for mx6sabreauto. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index

[U-Boot] [RFC 14/17] configs: mx6sabreauto: Add DM_SPI_FLASH necessary configs

2019-01-16 Thread Abel Vesa
Enable all neceassary configs to support DM_SPI_FLASH on mx6sabreauto. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index bcd6ff0..a4d051a 100644 --- a/configs

[U-Boot] [RFC 08/17] dts: imx: Add imx6q-sabresd dts and imx6qdl-sabresd dtsi files

2019-01-16 Thread Abel Vesa
Add necessary dts and dtsi files in order to enable DM in both SPL and u-boot proper for mx6sabresd. Signed-off-by: Abel Vesa --- arch/arm/dts/Makefile |3 +- arch/arm/dts/imx6q-sabresd.dts| 92 arch/arm/dts/imx6qdl-sabresd.dtsi | 1065

[U-Boot] [RFC 11/17] configs: mx6sabresd: Add SPL FIT and DM support

2019-01-16 Thread Abel Vesa
Enable all the necessary configs for SPL DM and FIT support for mx6sabresd. Signed-off-by: Abel Vesa --- configs/mx6sabresd_defconfig | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index

[U-Boot] [RFC 13/17] mx6sabresd: Add DM_GPIO support

2019-01-16 Thread Abel Vesa
Add the DM_GPIO related config for mx6sabresd. Also add the gpio request calls. Signed-off-by: Abel Vesa --- board/freescale/mx6sabresd/mx6sabresd.c | 5 + configs/mx6sabresd_defconfig| 1 + 2 files changed, 6 insertions(+) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c

[U-Boot] [RFC 15/17] configs: mx6sabresd: Add DM_SPI_FLASH necessary configs

2019-01-16 Thread Abel Vesa
Enable all neceassary configs to support DM_SPI_FLASH on mx6sabresd. Signed-off-by: Abel Vesa --- configs/mx6sabresd_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index 9451bbd..7fbfddb 100644 --- a/configs

[U-Boot] [RFC 16/17] board: mx6sabreauto: Remove the non-DM code

2019-01-16 Thread Abel Vesa
Since the mx6sabreauto has DM support, remove the unused non-DM code from mx6sabreauto board file. Signed-off-by: Abel Vesa --- board/freescale/mx6sabreauto/mx6sabreauto.c | 70 - 1 file changed, 70 deletions(-) diff --git a/board/freescale/mx6sabreauto

[U-Boot] [RFC 17/17] board: mx6sabresd: Remove non-DM code

2019-01-16 Thread Abel Vesa
Since the mx6sabreauto has DM support, remove the unused non-DM code from mx6sabresd board file. Signed-off-by: Abel Vesa --- board/freescale/mx6sabresd/mx6sabresd.c | 50 - 1 file changed, 50 deletions(-) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b

  1   2   >