[U-Boot] [PATCH v1 11/11] ARM: display5: Remove common.c file (after DM/DTS U-Boot proper conversion)

2019-06-09 Thread Lukasz Majewski
The common.c file content can be safely moved to spl.c file after performing the DM/DTS conversion for the U-Boot proper. It contains the non DM/DTS setup code, which now is only used by SPL. Signed-off-by: Lukasz Majewski --- board/liebherr/display5/Makefile | 4 +- board/liebherr/display5

[U-Boot] [PATCH v1 06/11] DTS: imx: Add display5 board (imx6q based) device tree description (v5.1)

2019-06-09 Thread Lukasz Majewski
This commit ports from Linux kernel - tag: v5.1 - the device tree description for display5 board. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx6q-display5.dts | 352 1 file changed, 352 insertions(+) diff --git a/arch/arm/dts/imx6q-display5.dts b

[U-Boot] [PATCH v1 05/11] ARM: display5: Increase the pre-relocation malloc pool size to 4KiB

2019-06-09 Thread Lukasz Majewski
Porting more DTS code from Linux kernel for display5 board required increase of pre-relocation malloc pool size in U-Boot proper. The early malloc memory is necessary for handling parsing and setup of e.g. serial port device (and all its ancestors in DT tree). Signed-off-by: Lukasz Majewski

[U-Boot] [PATCH v1 04/11] gpio: Add missing parenthesis to the GPIO_TO_PORT define

2019-06-09 Thread Lukasz Majewski
Add missing parenthesis to the GPIO_TO_PORT macro. Signed-off-by: Lukasz Majewski --- drivers/gpio/mxc_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index 8bd30c75b2..64ab7a303f 100644 --- a/drivers/gpio/mxc_gpio.c

[U-Boot] [PATCH v1 00/11] DM: display5: Convert display5 board to DM/DTS (including 'factory' setup)

2019-06-09 Thread Lukasz Majewski
lied on top of u-boot/master branch SHA1: 6d277fb0ed145f82dd50cc6e99d2fa553a588c3b Lukasz Majewski (11): cosmetic: display5: Remove not needed comments cosmetic: Update comment in cmd/eeprom.c ARM: display5: Fix CS check after moving some SPI related CONFIGs to Kconfig gpio: Add missing parenthesis to the GPIO_

[U-Boot] [PATCH v1 02/11] cosmetic: Update comment in cmd/eeprom.c

2019-06-09 Thread Lukasz Majewski
This commit just corrects spelling of 'accessed' word in the EEPROM comment. Signed-off-by: Lukasz Majewski --- cmd/eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/eeprom.c b/cmd/eeprom.c index 7b1f81477f..19953df082 100644 --- a/cmd/eeprom.c +++ b/cmd/eeprom.c

[U-Boot] [PATCH v1 01/11] cosmetic: display5: Remove not needed comments

2019-06-09 Thread Lukasz Majewski
Some comments are not needed anymore after Kconfig automated conversion. Signed-off-by: Lukasz Majewski --- include/configs/display5.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/configs/display5.h b/include/configs/display5.h index 5e982b8d27..5dbe5b8528 100644

Re: [U-Boot] [PATCH] spl: imx6: Provide a SPL_SIZE_LIMIT default

2019-06-08 Thread Lukasz Majewski
int "Maximum size of SPL image" > depends on SPL > + default 69632 if ARCH_MX6 > default 0 > help > Specifies the maximum length of the U-Boot SPL image. Reviewed-by: Lukasz Majewski Best regards, Lukasz Majewski -- DENX Software E

Re: [U-Boot] [PATCH 1/2] watchdog: Split WDT from SPL_WDT

2019-06-08 Thread Lukasz Majewski
Hi Marek, > On 6/6/19 10:16 AM, Lukasz Majewski wrote: > > On Thu, 6 Jun 2019 10:08:04 +0200 > > Marek Vasut wrote: > > > >> On 6/6/19 10:00 AM, Lukasz Majewski wrote: > >>> On Thu, 6 Jun 2019 09:26:04 +0200 > >>> Marek Vasut wrote

Re: [U-Boot] [PATCH 1/2] watchdog: Split WDT from SPL_WDT

2019-06-06 Thread Lukasz Majewski
On Thu, 6 Jun 2019 10:23:06 +0200 Marek Vasut wrote: > On 6/6/19 10:16 AM, Lukasz Majewski wrote: > > On Thu, 6 Jun 2019 10:08:04 +0200 > > Marek Vasut wrote: > > > >> On 6/6/19 10:00 AM, Lukasz Majewski wrote: > >>> On Thu, 6 Jun 20

Re: [U-Boot] [PATCH 1/2] watchdog: Split WDT from SPL_WDT

2019-06-06 Thread Lukasz Majewski
On Thu, 6 Jun 2019 10:08:04 +0200 Marek Vasut wrote: > On 6/6/19 10:00 AM, Lukasz Majewski wrote: > > On Thu, 6 Jun 2019 09:26:04 +0200 > > Marek Vasut wrote: > > > >> On 6/6/19 9:09 AM, Lukasz Majewski wrote: > >>> On Wed, 5 Jun 2019 1

Re: [U-Boot] [PATCH 1/2] watchdog: Split WDT from SPL_WDT

2019-06-06 Thread Lukasz Majewski
On Thu, 6 Jun 2019 09:26:04 +0200 Marek Vasut wrote: > On 6/6/19 9:09 AM, Lukasz Majewski wrote: > > On Wed, 5 Jun 2019 18:24:11 +0200 > > Lukasz Majewski wrote: > > > >> Hi Marek, > >> > >>> On Sun, 12 May 2019 23:34:52 +0

Re: [U-Boot] [PATCH 1/2] watchdog: Split WDT from SPL_WDT

2019-06-06 Thread Lukasz Majewski
On Wed, 5 Jun 2019 18:24:11 +0200 Lukasz Majewski wrote: > Hi Marek, > > > On Sun, 12 May 2019 23:34:52 +0200 > > Marek Vasut wrote: > > > > > Use CONFIG_IS_ENABLED(WDT) to permit use of WDT in SPL without DM, > > > while the full U-Boot can use

Re: [U-Boot] [EXT] Re: [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-06-06 Thread Lukasz Majewski
adictory > > with my opinions in the secure boot thread going on currently on > > the Linaro Boot Architecture list). Yes, it would and IMHO is > > better when we use free and open software to solve our problems > > (and an aside to the RISC-V folks as this is yet another

Re: [U-Boot] [PATCH 1/2] watchdog: Split WDT from SPL_WDT

2019-06-05 Thread Lukasz Majewski
e *watchdog_dev; > > #endif > > } gd_t; > > diff --git a/include/wdt.h b/include/wdt.h > > index aa77d3e9b4..5bcff24ab3 100644 > > --- a/include/wdt.h > > +++ b/include/wdt.h > > @@ -106,7 +106,7 @@ struct wdt_ops { > > int (*expire_now)(struct udev

Re: [U-Boot] [PATCH] imx: Select the pinctrl drivers when DM is used

2019-06-05 Thread Lukasz Majewski
t; > select SYS_FSL_SEC_COMPAT_4 > > select SYS_FSL_SEC_LE > > @@ -818,6 +824,8 @@ config ARCH_MX5 > > bool "Freescale MX5" > > select BOARD_EARLY_INIT_F > > select CPU_V7A > > + select PINCTRL if DM > > + select

Re: [U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-06-05 Thread Lukasz Majewski
Hi Sjoerd, > On Wed, 2019-06-05 at 11:40 +0200, Lukasz Majewski wrote: > > Hi Fabio, Sjoerd > > > > > On Tue, Jun 4, 2019 at 5:41 PM Sjoerd Simons > > > wrote: > > > > > > > Small steps right; Ooi what imx_usb_loader > > > &

Re: [U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-06-05 Thread Lukasz Majewski
o ./imx_usb SPL > > and then > > sudo ./imx_usb u-boot-dtb.img > > I suggest you to try U-Boot 2019.01 on a mx6sabreauto first. > Tested-by: Lukasz Majewski Test HW: i.MX6Q Display5 factory setup. However, one thing puzzles me - the VID / PID used.When I run uuu (mfgto

Re: [U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-06-04 Thread Lukasz Majewski
need to find a way to insert IVT in > the FIT image. > > Tested with UUU and it worked, so this is progress :-) > > Tested-by: Fabio Estevam > > Thanks > _______ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listi

Re: [U-Boot] [PATCH 1/2] watchdog: Split WDT from SPL_WDT

2019-06-04 Thread Lukasz Majewski
} gd_t; > diff --git a/include/wdt.h b/include/wdt.h > index aa77d3e9b4..5bcff24ab3 100644 > --- a/include/wdt.h > +++ b/include/wdt.h > @@ -106,7 +106,7 @@ struct wdt_ops { > int (*expire_now)(struct udevice *dev, ulong flags); > }; > > -#if defined(CONFIG

Re: [U-Boot] [PATCH 2/2] watchdog: imx: Add DM support

2019-06-04 Thread Lukasz Majewski
= imx_wdt_start, > + .reset = imx_wdt_reset, > + .expire_now = imx_wdt_expire_now, > +}; > + > +static const struct udevice_id imx_wdt_ids[] = { > + { .compatible = "fsl,imx21-wdt" }, > + {} > +}; > + > +U_BOOT_DR

[U-Boot] [PATCH] IMX: serial: dm: Set DM_FLAG_PRE_RELOC in the IMX uart driver

2019-06-04 Thread Lukasz Majewski
ice tree description (OF_CONTROL). In such case the aforementioned U_BOOT_DEVICE(mxc_serial) definition is used. Other boards/SoCs have this flag set unconditionally for serial driver. Signed-off-by: Lukasz Majewski --- drivers/serial/serial_mxc.c | 2 -- 1 file changed, 2 deletions(-) diff --

Re: [U-Boot] [PATCH v3 0/7] Add STM32 Cortex-M4 remoteproc driver

2019-06-04 Thread Lukasz Majewski
| 20 ++- > include/fdt_support.h | 24 > include/remoteproc.h | 146 +-- > test/dm/remoteproc.c | 122 > test/dm/test-fdt.c| 12 ++ 20 files changed, 743 > insertions(+), 42

Re: [U-Boot] [EXT] Re: [PATCH 1/2] dm: i2c: Add a flag that not call i2c_setup_offset

2019-06-04 Thread Lukasz Majewski
On Tue, 4 Jun 2019 07:59:44 + Chuanhua Han wrote: > > -Original Message- > > From: Lukasz Majewski > > Sent: 2019年6月4日 15:56 > > To: Chuanhua Han > > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li > > Subject: Re: [EXT] Re: [U-B

Re: [U-Boot] [EXT] Re: [PATCH 1/2] dm: i2c: Add a flag that not call i2c_setup_offset

2019-06-04 Thread Lukasz Majewski
On Tue, 4 Jun 2019 06:48:59 + Chuanhua Han wrote: > > -Original Message- > > From: Lukasz Majewski > > Sent: 2019年6月4日 14:46 > > To: Chuanhua Han > > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li > > Subject: Re: [EXT] Re: [U-B

Re: [U-Boot] [EXT] Re: [PATCH 1/2] dm: i2c: Add a flag that not call i2c_setup_offset

2019-06-04 Thread Lukasz Majewski
On Tue, 4 Jun 2019 02:20:49 + Chuanhua Han wrote: > > -Original Message- > > From: Lukasz Majewski > > Sent: 2019年6月4日 6:08 > > To: Chuanhua Han > > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li > > Subject: [EXT] Re: [U-Boot] [PATCH 1/2] d

Re: [U-Boot] [PATCH 1/2] dm: i2c: Add a flag that not call i2c_setup_offset

2019-06-03 Thread Lukasz Majewski
te */ Aren't those two above flags describe exactly what you need? They send address for each read/written byte. (or do you need to send more than a single byte)? > DM_I2C_CHIP_RD_NO_I2C_SETUP_OFFSET = 1 << 3, > /* No i2c_setup_offset*/ }; > > struct udevice; Bes

Re: [U-Boot] [PATCH 4/5] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-06-03 Thread Lukasz Majewski
Hi Sjoerd, > From: Frieder Schrempf > > Add support for loading u-boot FIT images over the USB SPD protocol in > the SPL > > [Small fixes to build] > Signed-off-by: Sjoerd Simons Reviewed-by: Lukasz Majewski > --- > > common/spl/spl_sdp.c | 11 ++

Re: [U-Boot] [PATCH 0/5] Enable usage of SDP for i.MX6 Sabre Auto Boards

2019-06-03 Thread Lukasz Majewski
o > > common/spl/spl_sdp.c | 11 +++-- > configs/mx6sabreauto_defconfig | 8 +-- > drivers/usb/gadget/f_sdp.c | 41 > +++++- include/sdp.h | > 4 +++- 4 files changed, 53 insertions(+), 11 deletions(-) > Best regards, Lukasz Majew

Re: [U-Boot] [PATCH v3 00/11] clk: Port Linux common clock framework [CCF] to U-boot (tag: 5.0-rc3)

2019-06-03 Thread Lukasz Majewski
/11] clk: Port Linux common clock > > framework [CCF] to U-boot (tag: 5.0-rc3) > > > > Hi Lukasz, > > > > On Tue, 21 May 2019 at 08:48, Lukasz Majewski > > wrote: > > > > > > Hi Simon, > > > > > > > Hi Lukasz

Re: [U-Boot] [v4, 0/5] Split fsl_esdhc driver for i.MX

2019-05-29 Thread Lukasz Majewski
defconfig | 2 +- > drivers/mmc/Kconfig | 10 +- > drivers/mmc/Makefile | 1 + > drivers/mmc/fsl_esdhc.c | 586 > +- drivers/mmc/{fsl_esdhc.c => fsl_esdhc_imx.c} | >

Re: [U-Boot] [v3, 5/5] mmc: fsl_esdhc_imx: drop useless code

2019-05-29 Thread Lukasz Majewski
@ -1654,7 +1567,6 @@ static const struct udevice_id fsl_esdhc_ids[] > = { { .compatible = "fsl,imx6q-usdhc", }, > { .compatible = "fsl,imx7d-usdhc", .data = > (ulong)_imx7d_data,}, { .compatible = "fsl,imx7ulp-usdhc", }, > - { .compatible = "

Re: [U-Boot] [v3, 4/5] mmc: fsl_esdhc: drop i.MX code

2019-05-29 Thread Lukasz Majewski
- { .compatible = "fsl,imx53-esdhc", }, > - { .compatible = "fsl,imx6ul-usdhc", }, > - { .compatible = "fsl,imx6sx-usdhc", }, > - { .compatible = "fsl,imx6sl-usdhc", }, > - { .compatible = "fsl,imx6q-usdhc", }, > -

Re: [U-Boot] [v3, 3/5] Convert to use fsl_esdhc_imx for i.MX platforms

2019-05-29 Thread Lukasz Majewski
On Tue, 21 May 2019 08:52:23 + "Y.b. Lu" wrote: > Converted to use fsl_esdhc_imx for i.MX platforms. > > Signed-off-by: Yangbo Lu > --- > Changes for v2: > - Rebased. > Changes for v3: > - Rebased. > --- > arch/arm/cpu/arm1136/mx35/generic.c | 10 +- >

Re: [U-Boot] [v3, 2/5] mmc: split fsl_esdhc driver for i.MX

2019-05-29 Thread Lukasz Majewski
ne int fsl_esdhc_mmc_init(bd_t *bis) { return -ENOSYS; } > static inline void fdt_fixup_esdhc(void *blob, bd_t *bd) {} > -#endif /* CONFIG_FSL_ESDHC */ > +#endif /* CONFIG_FSL_ESDHC_IMX */ > void __noreturn mmc_boot(void); > void mmc_spl_load_image(uint32_t offs, unsigned int siz

Re: [U-Boot] [v3, 1/5] Move CONFIG_FSL_ESDHC to defconfig

2019-05-29 Thread Lukasz Majewski
On Tue, 21 May 2019 08:51:42 + "Y.b. Lu" wrote: > Moved CONFIG_FSL_ESDHC from header files to defconfig files. > > Signed-off-by: Yangbo Lu > --- > Changes for v2: > - Rebased. > Changes for v3: > - Rebased. Reviewed-by:

Re: [U-Boot] [v3, 0/5] Split fsl_esdhc driver for i.MX

2019-05-29 Thread Lukasz Majewski
| 2 +- > drivers/mmc/Kconfig | 6 + > drivers/mmc/Makefile | 1 + > drivers/mmc/fsl_esdhc.c | 609 > +- drivers/mmc/{fsl_esdhc.c => fsl_esdhc_imx.c} | > 101 +-- include/confi

Re: [U-Boot] [PATCH] configs: Remove CONFIG_SPL_FS_EXT4 for all MX6 platforms

2019-05-26 Thread Lukasz Majewski
Hi Tom, > On Sun, May 26, 2019 at 01:46:53PM +0200, Lukasz Majewski wrote: > > Hi Tom, > > > > > On Sun, May 26, 2019 at 10:22:00AM +0200, Lukasz Majewski wrote: > > > > Dear Marek, Tom, > > > > > > > > > On 5/26/19 1:23 AM

Re: [U-Boot] [PATCH] configs: Remove CONFIG_SPL_FS_EXT4 for all MX6 platforms

2019-05-26 Thread Lukasz Majewski
Hi Tom, > On Sun, May 26, 2019 at 10:22:00AM +0200, Lukasz Majewski wrote: > > Dear Marek, Tom, > > > > > On 5/26/19 1:23 AM, Tom Rini wrote: > > > > On Sun, May 26, 2019 at 01:20:34AM +0200, Marek Vasut wrote: > > > >> On 5/26/19 1:

Re: [U-Boot] [PATCH] configs: Remove CONFIG_SPL_FS_EXT4 for all MX6 platforms

2019-05-26 Thread Lukasz Majewski
a couple of wandboards, those > are no as well. > > But I do not want to see useful functionality removed from SPL only to > make space for useless DM/DT bloat. Temporarily band-aiding this real > problem by removing functionality is a no-go, no matter how you slice > it. The real fix

Re: [U-Boot] [PATCH] imx: Select the pinctrl drivers when DM is used

2019-05-24 Thread Lukasz Majewski
t PINCTRL if DM > + select PINCTRL_IMX6 if DM > select SYS_FSL_HAS_SEC if SECURE_BOOT > select SYS_FSL_SEC_COMPAT_4 > select SYS_FSL_SEC_LE > @@ -818,6 +824,8 @@ config ARCH_MX5 > bool "Freescale MX5" > select BOARD_EARLY_INIT_F > select

Re: [U-Boot] [PATCH v2 2/3] i2c: mxc_i2c: The i2c controller generates a stop signal before reading the register data

2019-05-24 Thread Lukasz Majewski
action */ > + temp = readb(base + (I2CR << reg_shift)); > + temp |= I2CR_MSTA; > + writeb(temp, base + (I2CR << reg_shift)); > + > + ret = wait_for_sr_state(i2c_bus, > ST_BUS_BUSY); >

Re: [U-Boot] [v3, 0/5] Split fsl_esdhc driver for i.MX

2019-05-23 Thread Lukasz Majewski
scite_dart6ul_defconfig | 2 +- > > configs/vf610twr_defconfig| 2 +- > > configs/vf610twr_nand_defconfig | 2 +- > > configs/vining_2000_defconfig | 2 +- > > configs/wandboard_defconfig

Re: [U-Boot] [EXT] Re: [PATCH] i2c: pcf2127: fix bug that read wrong time

2019-05-22 Thread Lukasz Majewski
Hi Heiko, > Hello Chuanhua Han, > > Am 22.05.2019 um 14:45 schrieb Chuanhua Han: > > > > > >> -Original Message----- > >> From: Lukasz Majewski > >> Sent: 2019年5月22日 19:32 > >> To: Chuanhua Han > >> Cc: h...@denx.de

Re: [U-Boot] [EXT] Re: [PATCH] i2c: pcf2127: fix bug that read wrong time

2019-05-22 Thread Lukasz Majewski
On Wed, 22 May 2019 09:31:35 + Chuanhua Han wrote: > > -Original Message- > > From: Lukasz Majewski > > Sent: 2019年5月22日 16:41 > > To: Chuanhua Han > > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li ; > > s...@chromium.org; Stefano Babic &g

Re: [U-Boot] [EXT] Re: [PATCH] i2c: pcf2127: fix bug that read wrong time

2019-05-22 Thread Lukasz Majewski
Hi Chuanhua, > > -Original Message- > > From: Lukasz Majewski > > Sent: 2019年5月22日 15:16 > > To: Chuanhua Han > > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li ; > > s...@chromium.org > > Subject: [EXT] Re: [PATCH] i2c: pcf2127: fix bug tha

Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-05-22 Thread Lukasz Majewski
ly generating a container image is simpler, > because we already have SPL been wrapped into container format. > I just wanted to understand the issue and help to get the simplest possible solution. > Thanks, > Peng. > > > > > > > > > So in vendor tree, uboot/atf/opte

Re: [U-Boot] [PATCH] i2c: pcf2127: fix bug that read wrong time

2019-05-22 Thread Lukasz Majewski
127_rtc_ids[] > = { U_BOOT_DRIVER(rtc_pcf2127) = { > .name = "rtc-pcf2127", > .id = UCLASS_RTC, > + .probe = pcf2127_probe, > .of_match = pcf2127_rtc_ids, > .ops= _rtc_ops, > }; > diff --git a/include/i2c.h b/include/i2c.h &g

Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-05-22 Thread Lukasz Majewski
. I do not know how Linux kernel > itself authenticate others. > > Thanks, > Peng. > > > > > > > > > Thanks, > > > Peng. > > > > > > > > > > > > > > > > > > > > > > For authen

Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-05-22 Thread Lukasz Majewski
Hi Peng, > Hi Lukasz, > > > -Original Message- > > From: Lukasz Majewski [mailto:lu...@denx.de] > > Sent: 2019年5月21日 16:33 > > To: Peng Fan > > Cc: Marek Vasut ; Marek Vasut > > ; Simon Glass ; > > u-boot@lists.denx.de; Tien Fong Chee ;

Re: [U-Boot] Cannot boot mx6qsabred with 2019.07-rc2

2019-05-21 Thread Lukasz Majewski
0 > > > CONFIG_FASTBOOT_BUF_SIZE=0x1000 > > > > > > SPL: 68608 (67 kB) > > > Result: boots correctly > > > > > > I will send a v2 removing CONFIG_SPL_DM. > > > > So what is the real direction moving to use SPL driver, no

[U-Boot] [PATCH v1 4/5] ARM: imx: Convert mccmon6 to use fitImage instead of uImage+DTB

2019-05-21 Thread Lukasz Majewski
This commit enabled support for fitImage on mccmon6 when we switch to DT/DTS (including falcon mode). Signed-off-by: Lukasz Majewski --- board/liebherr/mccmon6/spl.c | 7 ++ configs/mccmon6_nor_defconfig | 8 +- configs/mccmon6_sd_defconfig | 6 - include/configs/mccmon6.h

[U-Boot] [PATCH v1 2/5] ARM: imx: Decouple mccmon6's SPL and u-boot proper code

2019-05-21 Thread Lukasz Majewski
The mccmon6 has been used a "mixed" approach between SPL and U-Boot proper sources. This commit decoupes SPL and u-boot proper, which allows clear distinction between those two code bases and facilitates conversion to DM/DTS on this particular board. Signed-off-by: Lukasz Majewski -

[U-Boot] [PATCH v1 5/5] mccmon6: defconfig: nor: Enable usage of *_TINY_* drivers in SPL

2019-05-21 Thread Lukasz Majewski
After this change the SPL size has been reduced from 38K to 34K. Signed-off-by: Lukasz Majewski --- configs/mccmon6_nor_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/mccmon6_nor_defconfig b/configs/mccmon6_nor_defconfig index 62e957c0cf..ffb1025a13 100644

[U-Boot] [PATCH v1 3/5] spl: nor: Provide falcon boot support for NOR memories

2019-05-21 Thread Lukasz Majewski
-by: Lukasz Majewski --- common/spl/spl_nor.c | 5 + 1 file changed, 5 insertions(+) diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c index 969e319de0..de58c43101 100644 --- a/common/spl/spl_nor.c +++ b/common/spl/spl_nor.c @@ -48,6 +48,11 @@ static int spl_nor_load_image(struct

[U-Boot] [PATCH v1 1/5] ARM: imx: Covnert mccmon6 to use DM/DTS in the u-boot proper

2019-05-21 Thread Lukasz Majewski
This commit converts mccmon6's u-boot proper (in a single commit to avoid build breaks) to use solely DM/DTS. The DTS description of the mccmon6 has been ported from Linux kernel (v4.20, SHA1: 8fe28cb58bcb235034b64cbbb7550a8a43fd88be) Signed-off-by: Lukasz Majewski --- arch/arm/dts/Makefile

[U-Boot] [PATCH v1 0/5] imx: dm: Update mccmon6 board to only use DM/DTS in U-Boot proper

2019-05-21 Thread Lukasz Majewski
0582/ http://patchwork.ozlabs.org/patch/1100584/ http://patchwork.ozlabs.org/patch/1100583/ On top of above patches this series shall be applied. Lukasz Majewski (5): ARM: imx: Covnert mccmon6 to use DM/DTS in the u-boot proper ARM: imx: Decouple mccmon6's SPL and u-boot proper code spl: no

Re: [U-Boot] [PATCH v3 00/11] clk: Port Linux common clock framework [CCF] to U-boot (tag: 5.0-rc3)

2019-05-21 Thread Lukasz Majewski
Hi Simon, > Hi Lukasz, > > On Sun, 19 May 2019 at 15:03, Lukasz Majewski wrote: > > > > Hi Simon, > > > > > Hi Lukasz, > > > > > > On Sat, 18 May 2019 at 15:28, Lukasz Majewski > > > wrote: > > > > > > > &g

Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-05-21 Thread Lukasz Majewski
Hi Marek, > On 5/21/19 10:32 AM, Lukasz Majewski wrote: > > Hi Peng, > > > >>> Subject: Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX > >>> container format file > >>> > >>> On 5/21/19 4:55 AM, Peng Fan wrote: > >

Re: [U-Boot] [PATCH v2 00/18] Improvement for the DWC3 USB generic driver and fixes for the K2 platforms

2019-05-21 Thread Lukasz Majewski
| 1 + > test/dm/nop.c | 73 + > 47 files changed, 421 insertions(+), 253 deletions(-) create mode > 100644 arch/arm/dts/keystone-k2l-evm-u-boot.dtsi delete mode 100644 > drivers/usb/host/xhci-zynqmp.c rename {drivers/usb/host =&g

Re: [U-Boot] [PATCH v2 2/2] cmd: Add 'bcb' command to read/modify/write BCB fields

2019-05-21 Thread Lukasz Majewski
On Tue, 21 May 2019 11:13:52 +0200 Eugeniu Rosca wrote: > Hi Lukasz, > > On Tue, May 21, 2019 at 10:02:34AM +0100, Alex Kiernan wrote: > > On Tue, May 21, 2019 at 9:37 AM Lukasz Majewski > > wrote: > > > > > > Hi Alex, > > > >

Re: [U-Boot] [PATCH v2 2/2] cmd: Add 'bcb' command to read/modify/write BCB fields

2019-05-21 Thread Lukasz Majewski
pport setting default values for u-boot (as there is now separate library used for it). Moreover there is OE/Yocto's recipe 'u-boot-fw-utils' which can be easily used and installed. > but this looks like something that might well give me a better > interface. > Best regards, Lukasz

Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-05-21 Thread Lukasz Majewski
bits if it cannot call the bootrom anymore ? > > sc_seco_authenticate on i.MX8 will always be available. It is > exported by a runtime firmware running on a Cortex-M core inside > i.MX8. The API will do authentication, its accepts container format > image as input an

Re: [U-Boot] [PATCH] Revert "mmc: fsl_esdhc: fix sd/mmc ddr mode clock setting issue"

2019-05-20 Thread Lukasz Majewski
: RE: [PATCH] Revert "mmc: fsl_esdhc: fix sd/mmc ddr > > > > > mode clock setting issue" > > > > > > > > > > > Subject: Re: [PATCH] Revert "mmc: fsl_esdhc: fix sd/mmc ddr > > > > > > mode clock setting i

Re: [U-Boot] [PATCH] Revert "mmc: fsl_esdhc: fix sd/mmc ddr mode clock setting issue"

2019-05-20 Thread Lukasz Majewski
uot; > > > > > > > Subject: Re: [PATCH] Revert "mmc: fsl_esdhc: fix sd/mmc ddr mode > > > > clock setting issue" > > > > > > > > On Wed, 8 May 2019 13:59:14 + > > > > Peng Fan wrote: > > > > > &g

Re: [U-Boot] [PATCH v3 00/11] clk: Port Linux common clock framework [CCF] to U-boot (tag: 5.0-rc3)

2019-05-19 Thread Lukasz Majewski
Hi Simon, > Hi Lukasz, > > On Sat, 18 May 2019 at 15:28, Lukasz Majewski wrote: > > > > Hi Simon, > > > > This is not the newest patch set version of CCF (v3 vs. v4), but the > > comments/issues apply. > > > > > Hi Lukasz, > > > &

Re: [U-Boot] [PATCH v4 00/13] clk: Port Linux common clock framework [CCF] to U-boot (tag: 5.0-rc3)

2019-05-19 Thread Lukasz Majewski
Hi Simon, > Hi Lukasz, > > On Sat, 18 May 2019 at 14:49, Lukasz Majewski wrote: > > > > Hi Simon, > > > > > kHi Lukasz, > > > > > > On Thu, 16 May 2019 at 16:11, Lukasz Majewski > > > wrote: > > > > > > &

Re: [U-Boot] [PATCH v3 00/11] clk: Port Linux common clock framework [CCF] to U-boot (tag: 5.0-rc3)

2019-05-18 Thread Lukasz Majewski
Hi Simon, This is not the newest patch set version of CCF (v3 vs. v4), but the comments/issues apply. > Hi Lukasz, > > On Thu, 25 Apr 2019 at 04:30, Lukasz Majewski wrote: > > > > This patch series brings the files from Linux kernel to provide > > clocks support

Re: [U-Boot] [PATCH v4 07/13] dm: clk: Define clk_get_parent() for clk operations

2019-05-18 Thread Lukasz Majewski
On Sat, 18 May 2019 10:08:36 -0600 Simon Glass wrote: > On Thu, 16 May 2019 at 16:11, Lukasz Majewski wrote: > > > > This commit adds the clk_get_parent() function, which is responsible > > for getting the parent's struct clock pointer. > > > > U-boo

Re: [U-Boot] [PATCH v4 00/13] clk: Port Linux common clock framework [CCF] to U-boot (tag: 5.0-rc3)

2019-05-18 Thread Lukasz Majewski
Hi Simon, > kHi Lukasz, > > On Thu, 16 May 2019 at 16:11, Lukasz Majewski wrote: > > > > This patch series brings the files from Linux kernel to provide > > clocks support as it is used on the Linux kernel with common clock > > framework [CCF] setup. >

Re: [U-Boot] [PATCH v4 08/13] dm: clk: Define clk_get_parent_rate() for clk operations

2019-05-18 Thread Lukasz Majewski
Hi Simon, > Hi Lukasz, > > On Thu, 16 May 2019 at 16:11, Lukasz Majewski wrote: > > > > This commit adds the clk_get_parent_rate() function, which is > > responsible for getting the rate of parent clock. > > Unfortunately, u-boot's DM support for getting pa

Re: [U-Boot] [PATCH v4 09/13] dm: clk: Define clk_get_by_id() for clk operations

2019-05-18 Thread Lukasz Majewski
Hi Simon, > Hi Lukasz, > > On Thu, 16 May 2019 at 16:11, Lukasz Majewski wrote: > > > > This commit adds the clk_get_by_id() function, which is responsible > > for getting the udevice with matching clk->id. Such approach allows > > re-usage of inherit DM

Re: [U-Boot] [PATCH v4 12/13] clk: Port Linux common clock framework [CCF] for imx6q to U-boot (tag: 5.0-rc3)

2019-05-17 Thread Lukasz Majewski
On Fri, 17 May 2019 07:31:38 -0500 Adam Ford wrote: > On Thu, May 16, 2019 at 9:48 PM Bin Meng wrote: > > > > Hi Lukasz, > > > > On Fri, May 17, 2019 at 6:16 AM Lukasz Majewski > > wrote: > > > > > > This commit brings the files from Linux k

Re: [U-Boot] Cannot boot mx6qsabred with 2019.07-rc2

2019-05-17 Thread Lukasz Majewski
. > > > I have no idea, then. My board is REV C4, chip 1.5 > > Mine is rev C2 with i.MX6Q rev1.2 Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support

2019-05-17 Thread Lukasz Majewski
; > +} > +#else > +static int spl_initr_dm(void) > +{ > + return 0; > +} > +#endif > + > void board_init_r(gd_t *dummy1, ulong dummy2) > { > u32 spl_boot_list[] = { > @@ -577,6 +630,8 @@ void board_init_r(gd_t *dummy1, ulong dummy2) > > debu

Re: [U-Boot] [PATCH v4 04/13] clk: Extend struct clk to provide information regarding clock rate

2019-05-17 Thread Lukasz Majewski
Hi Marek, > On 5/17/19 12:10 AM, Lukasz Majewski wrote: > > This commit extends the struct clk to provide information regarding > > the clock rate. > > As a result the clock tree traversal is performed at most once, and > > further reads are using the cached value. >

[U-Boot] [PATCH v4 09/13] dm: clk: Define clk_get_by_id() for clk operations

2019-05-16 Thread Lukasz Majewski
ook for UCLASS_CLK related udevices. Signed-off-by: Lukasz Majewski --- Changes in v4: None Changes in v3: - Replace -ENODEV with -ENOENT - Use **clkp instead of **c drivers/clk/clk-uclass.c | 22 ++ include/clk.h| 11 +++ 2 files changed, 33 insertions(+) d

[U-Boot] [PATCH v4 10/13] clk: test: Provide unit test for clk_get_by_id() method

2019-05-16 Thread Lukasz Majewski
clk. Signed-off-by: Lukasz Majewski --- Changes in v4: None Changes in v3: - New patch arch/sandbox/include/asm/clk.h | 8 drivers/clk/clk_sandbox_test.c | 23 +++ test/dm/clk.c | 3 ++- 3 files changed, 33 insertions(+), 1 deletion(-) diff --

[U-Boot] [PATCH v4 06/13] clk: Provide struct clk for fixed rate clock (clk_fixed_rate.c)

2019-05-16 Thread Lukasz Majewski
this change struct clk is accessible from udevice and udevice from struct clk. Signed-off-by: Lukasz Majewski --- Changes in v4: - None Changes in v3: None drivers/clk/clk_fixed_rate.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk

[U-Boot] [PATCH v4 12/13] clk: Port Linux common clock framework [CCF] for imx6q to U-boot (tag: 5.0-rc3)

2019-05-16 Thread Lukasz Majewski
t;set" part of the clock management. Signed-off-by: Lukasz Majewski --- Changes in v4: - Port some more Linux code to facilitate imx8 code porting (most notably flags) - Explicitly use container_of() based macro to provide struct clk in various places (e.g. gate2, mux, etc) Following p

[U-Boot] [PATCH v4 04/13] clk: Extend struct clk to provide information regarding clock rate

2019-05-16 Thread Lukasz Majewski
This commit extends the struct clk to provide information regarding the clock rate. As a result the clock tree traversal is performed at most once, and further reads are using the cached value. Signed-off-by: Lukasz Majewski --- Changes in v4: - None Changes in v3: None include/clk.h | 2

[U-Boot] [PATCH v4 11/13] clk: test: Provide unit test for clk_get_parent_rate() method

2019-05-16 Thread Lukasz Majewski
ing the pointer to proper struct clk. It uses internally clk_get_parent() method also tested by this test. Signed-off-by: Lukasz Majewski --- Changes in v4: None Changes in v3: - New patch arch/sandbox/include/asm/clk.h | 8 drivers/clk/clk_sandbox_test.c | 26 ++ test

[U-Boot] [PATCH v4 08/13] dm: clk: Define clk_get_parent_rate() for clk operations

2019-05-16 Thread Lukasz Majewski
this problem - the clk_get_parent_rate() function has been introduced to clk-uclass.c. Signed-off-by: Lukasz Majewski --- Changes in v4: None Changes in v3: - The rate information is now cached into struct clk field - The clk_get_parent() is used to get pointer to the parent struct clk drivers/clk/clk

[U-Boot] [PATCH v4 07/13] dm: clk: Define clk_get_parent() for clk operations

2019-05-16 Thread Lukasz Majewski
clk of parent the pdev->driver_data field is read. Signed-off-by: Lukasz Majewski --- Changes in v4: None Changes in v3: - New patch drivers/clk/clk-uclass.c | 15 +++ include/clk.h| 9 + 2 files changed, 24 insertions(+) diff --git a/drivers/clk/clk-uclass.

[U-Boot] [PATCH v4 13/13] dm: clk: Extend clk_get_parent_rate() to support CLK_GET_RATE_NOCACHE flag

2019-05-16 Thread Lukasz Majewski
-by: Lukasz Majewski --- Changes in v4: - New patch Changes in v3: None drivers/clk/clk-uclass.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c index 6f054396e3..3dcfae85c4 100644 --- a/drivers/clk/clk-uclass.c +++ b/drivers

[U-Boot] [PATCH v4 03/13] clk: Remove clock ID check in .get_rate() of clk_fixed_*

2019-05-16 Thread Lukasz Majewski
This check requires the struct clk passed to .get_rate() to be always cleared out as any clock with valid ID causes -EINVAL return value. The return code of fixed clocks shall always be returned. Signed-off-by: Lukasz Majewski --- Changes in v4: - None Changes in v3: None drivers/clk

[U-Boot] [PATCH v4 02/13] dm: Fix documentation entry as there is no UCLASS_CLOCK uclass

2019-05-16 Thread Lukasz Majewski
There is no UCLASS_CLOCK uclass defined. Instead we do use the UCLASS_CLK. Signed-off-by: Lukasz Majewski Reviewed-by: Simon Glass --- Changes in v4: - None Changes in v3: None include/clk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/clk.h b/include/clk.h

[U-Boot] [PATCH v4 05/13] clk: Extend struct clk to provide clock type agnostic flags

2019-05-16 Thread Lukasz Majewski
This commit extends the struct clk to provide information regarding the flags related to this devices. Those flags are clk device agnostic and indicate generic features (like e.g. CLK_GET_RATE_NOCACHE - the need to always recalculate the rate). Signed-off-by: Lukasz Majewski --- Changes in v4

[U-Boot] [PATCH v4 00/13] clk: Port Linux common clock framework [CCF] to U-boot (tag: 5.0-rc3)

2019-05-16 Thread Lukasz Majewski
- The clk_get_parent() is used to get pointer to the parent struct clk - Replace -ENODEV with -ENOENT - Use **clkp instead of **c - New patch - New patch Lukasz Majewski (13): clk: doc: Add documentation entry for Common Clock Framework [CCF] (i.MX) dm: Fix documentation entry

[U-Boot] [PATCH v4 01/13] clk: doc: Add documentation entry for Common Clock Framework [CCF] (i.MX)

2019-05-16 Thread Lukasz Majewski
This patch describes the design decisions considerations and taken approach for porting in a separate documentation entry. Signed-off-by: Lukasz Majewski --- Changes in v4: - New patch Changes in v3: None doc/imx/clk/ccf.txt | 83 + 1 file

Re: [U-Boot] Cannot boot mx6qsabred with 2019.07-rc2

2019-05-16 Thread Lukasz Majewski
x6q) has support for DM/DTS in both SPL and u-boot proper. The issue with this port is that it uses Common Clock Framework from Linux and would need SPL's OF_PLATDATA support in eMMC and uart drivers to reduce SPL size. Best regards, Lukasz Majewski -- DENX Software Engineering GmbH,

[U-Boot] [PATCH v2 4/4] doc: Update parallel NOR flash related information in README.falcon

2019-05-16 Thread Lukasz Majewski
This commit updates the doc/README.falcon regarding Falcon boot on NOR flash memories. This code is used by MCCMON6 board - so for more details please refer to configs/mccmon6_nor_defconfig. Signed-off-by: Lukasz Majewski --- Changes in v2: - Fix the description - Update the comit message

[U-Boot] [PATCH v2 3/4] Kconfig: Add CMD_SPL_NOR_OFS config for falcon boot argument offset

2019-05-16 Thread Lukasz Majewski
This option will provide the offset in the parallel NOR flash memory to, which the falcon boot data is stored. Signed-off-by: Lukasz Majewski --- Changes in v2: None cmd/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 4dec190a38..b4b10cce00

[U-Boot] [PATCH v2 2/4] Kconfig: cosmetic: Update description of CMD_SPL_NAND_OFS

2019-05-16 Thread Lukasz Majewski
The CMD_SPL_NAND_OFS description was a bit misleading, has been updated. Signed-off-by: Lukasz Majewski --- Changes in v2: None cmd/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 7bc275f135..4dec190a38 100644 --- a/cmd/Kconfig

[U-Boot] [PATCH v2 1/4] Kconfig: Make CMD_SPL_NAND_OFS only available when proper memory is used

2019-05-16 Thread Lukasz Majewski
This commit makes the CMD_SPL_NAND_OFS only visible when we use NAND memory. Before this change it was present when only CMD_SPL was enabled (and would stay when board with other falcon boot medium is used). Signed-off-by: Lukasz Majewski --- Changes in v2: None cmd/Kconfig | 1 + 1 file

[U-Boot] [PATCH v1 4/4] doc: Update parallel NOR flash related information in README.falcon

2019-05-16 Thread Lukasz Majewski
This commit updates the doc/README.falcon regarding Falcon boot on NOR flash memories. Signed-off-by: Lukasz Majewski --- doc/README.falcon | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/README.falcon b/doc/README.falcon index 9a7f0bc235..204f4b12b6 100644 --- a/doc/README.falcon

[U-Boot] [PATCH v1 3/4] Kconfig: Add CMD_SPL_NOR_OFS config for falcon boot argument offset

2019-05-16 Thread Lukasz Majewski
This option will provide the offset in the parallel NOR flash memory to, which the falcon boot data is stored. Signed-off-by: Lukasz Majewski --- cmd/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 4dec190a38..b4b10cce00 100644 --- a/cmd

[U-Boot] [PATCH v1 1/4] Kconfig: Make CMD_SPL_NAND_OFS only available when proper memory is used

2019-05-16 Thread Lukasz Majewski
This commit makes the CMD_SPL_NAND_OFS only visible when we use NAND memory. Before this change it was present when only CMD_SPL was enabled (and would stay when board with other falcon boot medium is used). Signed-off-by: Lukasz Majewski --- cmd/Kconfig | 1 + 1 file changed, 1 insertion

[U-Boot] [PATCH v1 2/4] Kconfig: cosmetic: Update description of CMD_SPL_NAND_OFS

2019-05-16 Thread Lukasz Majewski
The CMD_SPL_NAND_OFS description was a bit misleading, has been updated. Signed-off-by: Lukasz Majewski --- cmd/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 7bc275f135..4dec190a38 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig

Re: [U-Boot] [i.MX8MM+CCF 11/41] clk: fixed_rate: export clk_fixed_rate

2019-05-16 Thread Lukasz Majewski
] clk: fixed_rate: export > > > > clk_fixed_rate > > > > > > > > On Wed, 8 May 2019 07:45:39 + > > > > Peng Fan wrote: > > > > > > > > > > -Original Message- > > > > > > From: Lukasz Majewski [ma

<    4   5   6   7   8   9   10   11   12   13   >