Re: [PATCH 09/20] clk: imx: pllv3: add support for PLLV3_AV type

2019-12-09 Thread Lukasz Majewski
On Mon, 9 Dec 2019 18:13:04 +0100 Giulio Benetti wrote: > Hi Lukasz, > > On 12/8/19 4:05 PM, Lukasz Majewski wrote: > > On Wed, 4 Dec 2019 18:44:28 +0100 > > Giulio Benetti wrote: > > > >> Add support for PLLV3 AV type. > >> > >> Sign

Re: [PATCH 14/20] serial_lpuart: add clock enable if CONFIG_CLK is defined

2019-12-09 Thread Lukasz Majewski
On Mon, 9 Dec 2019 16:20:10 +0100 Giulio Benetti wrote: > Hi Lukasz, > > On 12/8/19 3:52 PM, Lukasz Majewski wrote: > > On Wed, 4 Dec 2019 18:44:33 +0100 > > Giulio Benetti wrote: > > > >> This driver assumes that lpuart clock is already enabled before &

Re: [PATCH 12/20] pinctrl: add i.MXRT driver

2019-12-09 Thread Lukasz Majewski
On Mon, 9 Dec 2019 12:54:33 +0100 Giulio Benetti wrote: > Hi Lukasz, Stefano, Fabio, all, > > On 12/8/19 3:45 PM, Lukasz Majewski wrote: > > On Wed, 4 Dec 2019 18:44:31 +0100 > > Giulio Benetti wrote: > > > >> Add i.MXRT pinctrl driver. >

Re: [PATCH 11/20] clk: imx: add i.IMXRT1050 clk driver

2019-12-09 Thread Lukasz Majewski
On Mon, 9 Dec 2019 11:53:05 +0100 Giulio Benetti wrote: > Forgotten to ask you... > > On 12/9/19 11:49 AM, Giulio Benetti wrote: > > Hi Lukasz, > > > > On 12/8/19 3:40 PM, Lukasz Majewski wrote: > >> On Wed, 4 Dec 2019 18:44:30 +0100 > >> Giuli

[PATCH v6] imx: Add support for i.MX28 based XEA board

2019-12-08 Thread Lukasz Majewski
MAC address - ce:e1:9e:46:f3:a2 eth0: ethernet@800f Hit any key to stop autoboot: 0 Signed-off-by: Lukasz Majewski --- Changes in v6: - Use SUPPORT_EMMC_BOOT_OVERRIDE_PART_CONFIG in the imx28_xea_defconfig - Add missing #include to boards/liebherr/xea/xea.c to avoid gcc build warning (and

Re: [PATCH 09/20] clk: imx: pllv3: add support for PLLV3_AV type

2019-12-08 Thread Lukasz Majewski
binary (as it sets the DM_FLAG_PRE_RELOC). Do you have any data about increase of the final binary size? The buildman script has options to check the difference of the final binary (i.e. SPL) size (as provided by Tom Rini): ./tools/buildman/$ export SOURCE_DATE_EPOCH=`date +%s` $ ./tools/

Re: [PATCH 15/20] serial_lpuart: add support for i.MXRT

2019-12-08 Thread Lukasz Majewski
efined(CONFIG_ARCH_MX7ULP) || defined(CONFIG_ARCH_IMX8) > +#if defined(CONFIG_ARCH_MX7ULP) || defined(CONFIG_ARCH_IMX8) || \ > + defined(CONFIG_ARCH_IMXRT) > struct lpuart_fsl_reg32 { > u32 verid; > u32 param; Please also used buildman to check if this patch series is

Re: [PATCH 14/20] serial_lpuart: add clock enable if CONFIG_CLK is defined

2019-12-08 Thread Lukasz Majewski
y_ break all boards which do have CONFIG_CLK enabled (for some clocks/drivers), but did not yet provided CCF definition for lpuart clock. Was this series checked with travis-ci? For example: https://travis-ci.org/lmajewski/u-boot-dfu/jobs/66547 > if (is_lpuart32(dev)) >

Re: [PATCH 13/20] ARM: dts: imxrt1050: add dtsi file

2019-12-08 Thread Lukasz Majewski
On Wed, 4 Dec 2019 18:44:32 +0100 Giulio Benetti wrote: > Add dtsi file for i.MXRT1050. > > Signed-off-by: Giulio Benetti > --- > arch/arm/dts/imxrt1050.dtsi | 146 +++ > include/dt-bindings/pinctrl/pins-imxrt1050.h | 993 > +++ 2 files changed, 1139 insertions

Re: [PATCH 12/20] pinctrl: add i.MXRT driver

2019-12-08 Thread Lukasz Majewski
t struct udevice_id imxrt_pinctrl_match[] = { > + { .compatible = "fsl,imxrt-iomuxc", > + .data = (ulong)&imxrt_pinctrl_soc_info }, > + { /* sentinel */ } > +}; > + > +U_BOOT_DRIVER(imxrt_pinctrl) = { > + .name = "imxrt-pinctrl", > + .id =

Re: [PATCH 11/20] clk: imx: add i.IMXRT1050 clk driver

2019-12-08 Thread Lukasz Majewski
fine IMXRT1050_CLK_PLL1_BYPASS15 > +#define IMXRT1050_CLK_PLL2_BYPASS16 > +#define IMXRT1050_CLK_PLL3_BYPASS17 > +#define IMXRT1050_CLK_PLL5_BYPASS19 > +#define IMXRT1050_CLK_PLL1_REF_SEL 30 > +#define IMXRT1050_CLK_PLL2_REF_SEL

Re: [PATCH 02/20] spl: fix entry_point equal to load_addr

2019-12-08 Thread Lukasz Majewski
_data_size(header) + header_size; This may not be the case - but I do recall that there was a similar issue between u-boot.bin and u-boot.imx being loaded. What is the format of i.MXRT? I'm also concerned about breaking already supported in-tree boards. Why i.MXRT needs to make this change? A

Re: [PATCH 10/20] clk: imx: pfd: add set_rate()

2019-12-08 Thread Lukasz Majewski
return 0; > +} > + > static const struct clk_ops clk_pfd_ops = { > .get_rate = clk_pfd_recalc_rate, > + .set_rate = clk_pfd_set_rate, > }; > > struct clk *imx_clk_pfd(const char *name, const char *parent_name, Reviewed-by: Lukasz Majewski

Re: [PATCH 03/20] clk: imx: pllv3: register PLLV3 GENERIC and USB as 2 different clocks

2019-12-08 Thread Lukasz Majewski
> + .name = UBOOT_DM_CLK_IMX_PLLV3_GENERIC, > + .id = UCLASS_CLK, > + .ops= &clk_pllv3_generic_ops, > + .flags = DM_FLAG_PRE_RELOC, > +}; > + > +U_BOOT_DRIVER(clk_pllv3_usb) = { > + .name = UBOOT_DM_CLK_IMX_PLLV3_USB, > .id = UCLASS_CLK, >

Re: [PATCH 04/20] clk: imx: pllv3: set div_mask differently if PLLV3 is GENERIC or USB

2019-12-08 Thread Lukasz Majewski
ak; > default: > kfree(pll); Reviewed-by: Lukasz Majewski Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-

Re: [PATCH 08/20] clk: imx: pllv3: add PLLV3_SYS support

2019-12-08 Thread Lukasz Majewski
flags = DM_FLAG_PRE_RELOC, > }; > > +U_BOOT_DRIVER(clk_pllv3_sys) = { > + .name = UBOOT_DM_CLK_IMX_PLLV3_SYS, > + .id = UCLASS_CLK, > + .ops= &clk_pllv3_sys_ops, > + .flags = DM_FLAG_PRE_RELOC, > +}; > + > U_BOOT_DRIVER(clk_pllv3_usb) = {

Re: [PATCH 07/20] clk: imx: pllv3: add set_rate() support

2019-12-08 Thread Lukasz Majewski
*pll = to_clk_pllv3(clk); > @@ -73,6 +99,7 @@ static const struct clk_ops clk_pllv3_generic_ops = > { .get_rate = clk_pllv3_generic_get_rate, > .enable = clk_pllv3_generic_enable, > .disable = clk_pllv3_generic_disable, > + .set_rate = clk_pllv3_generic_set_rat

Re: [PATCH 06/20] clk: imx: pllv3: add disable() support

2019-12-08 Thread Lukasz Majewski
t; + writel(val, pll->base); > + > + return 0; > +} > + > static const struct clk_ops clk_pllv3_generic_ops = { > .get_rate = clk_pllv3_generic_get_rate, > .enable = clk_pllv3_generic_enable, > + .disable= clk_pllv3_generic_disable, > }; &g

Re: [PATCH v1 2/2] treewide: Remove CONFIG_SYS_UBOOT_START from configs board files

2019-12-08 Thread Lukasz Majewski
ze of kernel image for uncompression */ > #define CONFIG_SYS_BOOTM_LEN (60 * 1024 * 1024) > > -#define CONFIG_SYS_UBOOT_START CONFIG_SYS_TEXT_BASE > - > #define CONFIG_SKIP_LOWLEVEL_INIT > > /* 0x0 - 0x40 is used for placing exception vectors */ > diff --git a/

Re: [RESEND PATCH v1] colibri_imx6: fix broken fsl_esdhc_imx conversion

2019-12-06 Thread Lukasz Majewski
in patchwork (I thought that he has fixed just Apalis > iMX6), but seems the patch was > lost somewhere, as I can not find it nor in u-boot-imx/next neither > in u-boot-imx/master branches. Thanks for providing the fix (at least for the Toradex boards) And I do guess that more i.

Re: Sourcing a signed boot script

2019-12-05 Thread Lukasz Majewski
itlab.denx.de/u-boot/u-boot/blob/v2019.10/doc/uImage.FIT/signature.txt#L580 > > Thank you, > Diego Rondini Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone

Re: [PATCH v4 1/6] fat: write: fix broken write to fragmented files

2019-12-05 Thread Lukasz Majewski
) > break; > if (CHECK_CLUST(newclust, mydata->fatsize)) { > @@ -824,8 +826,6 @@ set_contents(fsdata *mydata, dir_entry *dentptr, > loff_t pos, __u8 *buffer, if (filesize <= cur_pos) > break; > > -

Re: [PATCH v1 3/5] colibri_imx6: add update_uboot wrapper

2019-12-04 Thread Lukasz Majewski
74,7 @@ > "fdt_fixup=;\0" \ > MEM_LAYOUT_ENV_SETTINGS \ > NFS_BOOTCMD \ > + UBOOT_UPDATE \ > "setethupdate=if env exists ethaddr; then; else setenv > ethaddr " \ "00:14:2d:00:00:00; fi; tftpboot ${loadaddr} " \ > "flash_eth.img && source ${loadaddr}\0" \ Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lu...@denx.de pgp6Ntr22svhV.pgp Description: OpenPGP digital signature

[U-Boot] [RESEND PATCH v2] spl: Introduce SPL_DM_GPIO Kconfig define

2019-12-02 Thread Lukasz Majewski
This define indicates if DM_GPIO shall be supported in SPL. This allows proper operation of DM converted GPIO drivers in SPL, which use boards. Signed-off-by: Lukasz Majewski --- Changes in v2: - Add dependency on DM_GPIO Note: - Board which is using DM_GPIO in SPL with OF_PLATDATA (XEA

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (29.11.2019)

2019-12-01 Thread Lukasz Majewski
Hi Marek, > On 11/30/19 12:25 AM, Lukasz Majewski wrote: > > Dear Marek, > > Hi, > > > The following changes since commit > > dbcbdad92caf4b42a6279da6e65180532bc45620: > > > > sandbox: enable USB_KEYBOARD_FN_KEYS (2019-11-25 13:28:53 +0100) >

[U-Boot] [GIT] Pull request: u-boot-dfu (29.11.2019)

2019-11-29 Thread Lukasz Majewski
| 1 + doc/README.dfu | 8 ++-- drivers/dfu/Kconfig | 6 ++ drivers/dfu/dfu.c| 15 +++ include/dfu.h| 6 +- 7 files changed, 71 insertions(+), 10 deletions(-) Best regards, Lukasz Majewski -- DENX Software Engineering GmbH

Re: [U-Boot] GPT overlap on i.MX6

2019-11-28 Thread Lukasz Majewski
Hi Jagan, > Hi Lukasz, > > On Wed, Nov 27, 2019 at 9:47 PM Lukasz Majewski wrote: > > > > Hi Jagan, > > > > > Hi Lukasz, > > > > > > On Wed, Nov 27, 2019 at 4:15 PM Lukasz Majewski > > > wrote: > > > > > > &

Re: [U-Boot] [PATCH v1 4/4] x86: edison: Enable DFU timeout

2019-11-27 Thread Lukasz Majewski
On Wed, 27 Nov 2019 18:45:43 +0200 Andy Shevchenko wrote: > On Wed, Nov 27, 2019 at 05:10:22PM +0100, Lukasz Majewski wrote: > > > On Wed, Nov 27, 2019 at 11:57:53AM +0100, Lukasz Majewski wrote: > > > > I base my patches on official releases / release candidates. It

Re: [U-Boot] GPT overlap on i.MX6

2019-11-27 Thread Lukasz Majewski
Hi Jagan, > Hi Lukasz, > > On Wed, Nov 27, 2019 at 4:15 PM Lukasz Majewski wrote: > > > > Hi Jagan, > > > > > Hi, > > > > > > I have created GPT table start from 8MB for kernel, roots etc. > > > something like > > > >

Re: [U-Boot] [PATCH v1 4/4] x86: edison: Enable DFU timeout

2019-11-27 Thread Lukasz Majewski
Hi Andy, > On Wed, Nov 27, 2019 at 11:57:53AM +0100, Lukasz Majewski wrote: > > Hi Andy, > > > > > The stock U-Boot on Intel Edison has timeout parameter for DFU > > > command. Enable it here to be compatible with the original U-Boot > > > confi

Re: [U-Boot] [PATCH v1 3/4] dfu: Add optional timeout parameter

2019-11-27 Thread Lukasz Majewski
Hi Andy, > On Wed, Nov 27, 2019 at 11:56:15AM +0100, Lukasz Majewski wrote: > > > Thank you for your work on enhancing DFU. The patch series is > > generally Ok. > > > > Please find some minor comments/requests below. > > Thank you for review

Re: [U-Boot] [PATCH v1 4/4] x86: edison: Enable DFU timeout

2019-11-27 Thread Lukasz Majewski
IG_ENV_IS_IN_MMC=y > CONFIG_CPU=y > +CONFIG_DFU_TIMEOUT=y > CONFIG_DFU_MMC=y > CONFIG_DFU_RAM=y > CONFIG_SUPPORT_EMMC_BOOT=y This patch doesn't apply now. Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich,

Re: [U-Boot] [PATCH v1 3/4] dfu: Add optional timeout parameter

2019-11-27 Thread Lukasz Majewski
d_alt_num(const char *s) > { > int i = 0; > diff --git a/include/dfu.h b/include/dfu.h > index 2e3e91c8d2..fb5260d903 100644 > --- a/include/dfu.h > +++ b/include/dfu.h > @@ -178,6 +178,11 @@ unsigned char *dfu_free_buf(void); > unsigned long dfu_get_buf_size(void); >

Re: [U-Boot] [PATCH v1 1/4] dfu: Drop unused prototype of dfu_trigger_reset()

2019-11-27 Thread Lukasz Majewski
difference between > dfu-util -e and -R") Cc: Lukasz Majewski > Cc: Stephen Warren > Signed-off-by: Andy Shevchenko > --- > include/dfu.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/include/dfu.h b/include/dfu.h > index 564966333f..2e3e91c8d2 100644

Re: [U-Boot] [PATCH v1 2/4] dfu: Refactor do_dfu() to handle optional argument

2019-11-27 Thread Lukasz Majewski
if (!strcmp(argv[1], "tftp")) > + return update_tftp(value, interface, devstring); > #endif > #ifdef CONFIG_DFU_OVER_USB > ret = dfu_init_env_entities(interface, devstring); Acked-by: Lukasz Majewski Best regards, Lukasz Majewski -- DENX Software Engineering GmbH,

Re: [U-Boot] GPT overlap on i.MX6

2019-11-27 Thread Lukasz Majewski
) = 0x4400 From the above it seems like you starts from 0x4000 your boota partition, which then overwrites the "Entries 5-128" which shall be 0 and are protected by CRC written in the Primary GPT Header. Please try to adjust your partition scheme to start from 0x4400. > > Jagan.

Re: [U-Boot] [U-Boot-Board-Maintainers] [U-Boot-Custodians] [RFC] Eliminate boards not using CONFIG_DM=y

2019-11-26 Thread Lukasz Majewski
suggesting? > I can speak of some i.MX28 board(s). If there is a will one can try to use OF_PLATDATA without the full blown support of FDT (patches recently added to not include some not necessary stuff). (The board which uses this approach still waits for SPL_DM_GPIO definition in Kconfig to

Re: [U-Boot] [PATCH v2 2/2] usb: dwc2: fix possible alignment issues

2019-11-21 Thread Lukasz Majewski
ctrl, 8); > > debug_cond(DEBUG_SETUP != 0, > "%s: bRequestType = 0x%x(%s), bRequest = 0x%x" Acked-by: Lukasz Majewski Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: K

Re: [U-Boot] [PATCH v2 1/2] usb: composite: fix possible alignment issues

2019-11-21 Thread Lukasz Majewski
le16_add_cpu(&bos->wTotalLength, > USB_DT_USB_SS_CAP_SIZE); > + le16_add_cpu_packed((__le16_packed > *)&bos->wTotalLength, > + USB_DT_USB_SS_CAP_SIZE); > ss_cap->bLength = USB_DT_USB_SS_CAP_SIZE; >

Re: [U-Boot] [PATCH v2] spl: Introduce SPL_DM_GPIO Kconfig define

2019-11-17 Thread Lukasz Majewski
Hi Simon, > Hi Simon, > > > Hi Lukasz, > > > > On Mon, 14 Oct 2019 at 06:41, Lukasz Majewski > > wrote: > > > > > > Hi Simon, > > > > > > > Hi Lukasz, > > > > > > > >

Re: [U-Boot] [PATCH v2] spl: Introduce SPL_DM_GPIO Kconfig define

2019-11-17 Thread Lukasz Majewski
Hi Simon, > Hi Lukasz, > > On Mon, 14 Oct 2019 at 06:41, Lukasz Majewski wrote: > > > > Hi Simon, > > > > > Hi Lukasz, > > > > > > On Wed, 9 Oct 2019 at 03:02, Lukasz Majewski > > > wrote: > > > > > > > &g

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (06.11.2019)

2019-11-06 Thread Lukasz Majewski
Hi Marek, > On 11/6/19 12:27 PM, Lukasz Majewski wrote: > > Hi Marek, > > > >> On 11/6/19 10:21 AM, Lukasz Majewski wrote: > >>> Dear Marek, > >>> > >>> The following changes since commit > >>> 14d39c9e1dc9397

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (06.11.2019)

2019-11-06 Thread Lukasz Majewski
Hi Marek, > On 11/6/19 10:21 AM, Lukasz Majewski wrote: > > Dear Marek, > > > > The following changes since commit > > 14d39c9e1dc9397febd58399a70f32e7481bbc27: > > > > travis: Rework how we write the ~/.buildman file (2019-11-05 > > 10:4

[U-Boot] [GIT] Pull request: u-boot-dfu (06.11.2019)

2019-11-06 Thread Lukasz Majewski
nce USB3 host and gadget driver usb: cdns3: gadget: Implement udc_set_speed() callback usb: cdns3: Add TI wrapper driver for CDNS USB3 controller usb: gadget: Add gadget_is_cdns3() macro Travis-CI: https://travis-ci.org/lmajewski/u-boot-dfu/builds/607937090 Best regards, Luk

Re: [U-Boot] [PATCH 21/30] liebherr: Drop duplicate dm.h inclusion

2019-11-01 Thread Lukasz Majewski
ude > Thanks Simon for spotting it. Acked-by: Lukasz Majewski Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 E

[U-Boot] [GIT] Pull request: u-boot-dfu (30.10.2019)

2019-10-30 Thread Lukasz Majewski
ckend dfu: add callback for flush and initiated operation Ralph Siemsen (1): dfu: dfu_nand: reduce verbosity Travis-CI: https://travis-ci.org/lmajewski/u-boot-dfu/builds/604863805 Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (15.10.2019)

2019-10-28 Thread Lukasz Majewski
Hi Marek, > On 10/28/19 5:51 PM, Lukasz Majewski wrote: > > Hi Marek, > > Hi, > > >> Hi Marek, > >> > >>> On 10/15/19 9:45 AM, Lukasz Majewski wrote: > >>>> Dear Marek, > >>&g

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (15.10.2019)

2019-10-28 Thread Lukasz Majewski
Hi Marek, > Hi Marek, > > > On 10/15/19 9:45 AM, Lukasz Majewski wrote: > > > Dear Marek, > > > > Hello Lukasz, > > > > > The following changes since commit > > > 7a779ed1755c2d5011bd9598da90291f759ae760: > > >

Re: [U-Boot] [PATCH v2] spl: fix SPI config dependencies

2019-10-25 Thread Lukasz Majewski
to SPI flash for loading U-Boot. See SPL_SPI_FLASH_SUPPORT > for > - more details on that. The SPI driver provides the > transport for > - data between the SPI flash and the CPU. This option can be > used to > - enable SPI drivers that are needed for other purposes &g

Re: [U-Boot] [PATCH v2 36/41] serial: mxc: add imx53 and imx21 compatible string

2019-10-25 Thread Lukasz Majewski
Hi Robert, > On Thu, 2019-10-24 at 09:38 +0200, Lukasz Majewski wrote: > > Hi Robert, > > > > > Add compatible string for imx53 and imx21. > > > > > > Signed-off-by: Robert Beckett > > > --- > > > drivers/serial/serial_mxc.c | 2

Re: [U-Boot] [PATCH v2 36/41] serial: mxc: add imx53 and imx21 compatible string

2019-10-24 Thread Lukasz Majewski
C'ed). To send patches to correct people (despite the assignment for reviewers in the patchwork) - please use patman python script. It generates list of relevant people to receive patch for review. Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfg

Re: [U-Boot] [PATCH 3/3] mtd: spi: Clean up usage of CONFIG_SPI_FLASH_MTD

2019-10-23 Thread Lukasz Majewski
gs/socfpga_vining_fpga_defconfig @@ -72,6 +72,7 @@ > > >> CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SPANSION=y > > >> CONFIG_SPI_FLASH_STMICRO=y > > >> # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set > > >> +CONFIG_SPI_FLASH_MTD=y > > >> CONF

Re: [U-Boot] [PATCH] spl: spl_mmc: fix getting raw_sect when boot from emmc boot partition

2019-10-23 Thread Lukasz Majewski
_load(struct spl_image_info *spl_image, > if (!err) > return err; > } > + > + raw_sect = spl_mmc_get_uboot_raw_sector(mmc); > + > #ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION > err = mmc_load_imag

[U-Boot] [GIT] Pull request: u-boot-clk (23.10.2019)

2019-10-22 Thread Lukasz Majewski
up test: clk: test clock self assignment Lukasz Majewski (1): clk: Add support for I2C clocks on NXP's imx6q SoC which use CCF Branch: https://gitlab.denx.de/u-boot/custodians/u-boot-clk/commits/master Merge-tag: https://gitlab.denx.de/u-boot/custodians/u-boot-clk/-/tags/u-boo

Re: [U-Boot] [PATCH v5 1/5] spl: dm: disable SPI DM flash for non-DM SPL

2019-10-22 Thread Lukasz Majewski
hanks > Xiaowei > > > -Original Message- > > From: Xiaowei Bao > > Sent: 2019年10月21日 11:51 > > To: Lukasz Majewski > > Cc: w...@denx.de; Ruchika Gupta ; Shengzhou Liu > > ; ja...@amarulasolutions.com; Prabhakar X > > ; u-boot@lists.denx.de; Jiaf

Re: [U-Boot] [PATCH v1 0/5] clk: Add a managed API and fix clock self-assignment

2019-10-20 Thread Lukasz Majewski
+++--- drivers/clk/clk_sandbox.c | > 56 + drivers/clk/clk_sandbox_test.c | 66 +--- > drivers/core/device.c | 2 +- > include/clk.h | 53 - > test/dm/clk.c | 36 - > 8 files cha

Re: [U-Boot] [PATCH] spl: mmc: make eMMC HW boot partition configuration optional

2019-10-18 Thread Lukasz Majewski
le support for this feature. Thanks Anatolij for preparing the fix. Reviewed-by: Lukasz Majewski > > Thanks, > Anatolij > > common/spl/Kconfig | 28 ++-- > 1 file changed, 22 insertions(+), 6 deletions(-) > > diff --git a/common/spl/Kconfig

Re: [U-Boot] [PATCH] dm: pinctrl: fix for introduce PINCONF_RECURSIVE option

2019-10-18 Thread Lukasz Majewski
G_IS_ENABLED(PINCONFIG_RECURSIVE) > +#if CONFIG_IS_ENABLED(PINCONF_RECURSIVE) > .post_bind = pinconfig_post_bind, > #endif > .name = "pinconfig", Reviewed-by: Lukasz Majewski Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wol

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (15.10.2019)

2019-10-15 Thread Lukasz Majewski
Hi Marek, > On 10/15/19 9:45 AM, Lukasz Majewski wrote: > > Dear Marek, > > Hello Lukasz, > > > The following changes since commit > > 7a779ed1755c2d5011bd9598da90291f759ae760: > > > > travis: Exclude MIPS from the bcm job (2019-10-13 11:21:5

[U-Boot] [PATCH] clk: Add support for I2C clocks on NXP's imx6q SoC which use CCF

2019-10-15 Thread Lukasz Majewski
frequency in U-Boot. Signed-off-by: Lukasz Majewski --- drivers/clk/imx/clk-imx6q.c | 21 + drivers/clk/imx/clk.h | 18 ++ 2 files changed, 39 insertions(+) diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c index 92e9337d44..

[U-Boot] [PATCH] imx: Enable RTC (ds1307) support in the U-Boot proper on TPC70 board

2019-10-15 Thread Lukasz Majewski
The TPC70 is equipped with DS1307 RTC device. Add code to enable support for it. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx6q-kp.dts | 5 + configs/kp_imx6q_tpc_defconfig | 2 ++ 2 files changed, 7 insertions(+) diff --git a/arch/arm/dts/imx6q-kp.dts b/arch/arm/dts/imx6q

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

2019-10-15 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/Mak

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

2019-10-15 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 0752ec949de6..e2d3b84616c6 100644 --- a

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

2019-10-15 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 v2 3/5] spl: nor: Provide falcon boot support for NOR memories

2019-10-15 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 7df708de9b0f..b1e79b9ded62 100644 --- a/common/spl/spl_nor.c +++ b/common/spl/spl_nor.c @@ -51,6 +51,11 @@ static int spl_nor_load_image(struct

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

2019-10-15 Thread Lukasz Majewski
PL DM/DTS conversion - Conversion to DM_MMC, DM_SPI, and BLK (U-Boot proper) Travis-CI: https://travis-ci.org/lmajewski/u-boot-dfu/builds/597730941 Applied on top of i.MX -next tree: SHA1: 6891152a4596d38ac25d2fe1238e3b6a938554b8 Lukasz Majewski (5): ARM: imx: Covnert mccmon6 to use DM/DTS in

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

2019-10-15 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] [GIT] Pull request: u-boot-dfu (15.10.2019)

2019-10-15 Thread Lukasz Majewski
about the changes / new features): https://gitlab.denx.de/u-boot/custodians/u-boot-dfu/-/tags/u-boot-dfu-15Oct2019 Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone:

[U-Boot] [PATCH v1] imx: defconfig: Enable CONFIG_SPL_FORCE_MMC_BOOT on display5

2019-10-14 Thread Lukasz Majewski
first boot medium. Display5 board needs this flag set to allow falcon boot from eMMC device. Signed-off-by: Lukasz Majewski --- configs/display5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/display5_defconfig b/configs/display5_defconfig index 3227249413e4..91b369532d94 10

Re: [U-Boot] [PATCH v2] spl: Introduce SPL_DM_GPIO Kconfig define

2019-10-14 Thread Lukasz Majewski
Hi Simon, > Hi Lukasz, > > On Wed, 9 Oct 2019 at 03:02, Lukasz Majewski wrote: > > > > Dear Tom, > > > > > This define indicates if DM_GPIO shall be supported in SPL. This > > > allows proper operation of DM converted GPIO drivers in SPL, >

[U-Boot] [PATCH v3 9/9] imx: config: Update KP's TPC70 config to support SWUpdate

2019-10-10 Thread Lukasz Majewski
This patch updates envs responsible for using USB pendrive as a SWUpdate based tool for recovery and update. Signed-off-by: Lukasz Majewski --- Changes in v3: None include/configs/kp_imx6q_tpc.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/configs

[U-Boot] [PATCH v3 8/9] imx: tpc70: Convert TPC70 (imx6q) board to use DM/DTS in SPL and u-boot

2019-10-10 Thread Lukasz Majewski
ESET) Signed-off-by: Lukasz Majewski --- Changes in v3: - Adjust the code to being applicable on top of v2019.10 - Move CONFIG_SUPPORT_EMMC_BOOT to Kconfig arch/arm/mach-imx/mx6/Kconfig | 10 ++ board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c | 165 +- bo

[U-Boot] [PATCH v3 7/9] imx: dts: Add u-boot specific set of device tree properties for tpc70

2019-10-10 Thread Lukasz Majewski
This commit adds new file - imx6q-kp-u-boot.dtsi with a set of u-boot specific properties for imx6q KP device. Signed-off-by: Lukasz Majewski --- Changes in v3: None arch/arm/dts/imx6q-kp-u-boot.dtsi | 59 +++ 1 file changed, 59 insertions(+) create mode 100644

[U-Boot] [PATCH v3 2/9] imx: tpc70: config: Update TPC70 config to support eMMC's boot0 SPL update

2019-10-10 Thread Lukasz Majewski
The TPC70 can boot from eMMC's boot0. This patch allows it to update this HW partition's SPL. Signed-off-by: Lukasz Majewski --- Changes in v3: None include/configs/kp_imx6q_tpc.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/kp_imx6q_tpc.h b/inclu

[U-Boot] [PATCH v3 5/9] imx: tpc70: led: Enable LED default state

2019-10-10 Thread Lukasz Majewski
This change sets the default state of LEDs on TPC70. Signed-off-by: Lukasz Majewski --- Changes in v3: None board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c | 4 1 file changed, 4 insertions(+) diff --git a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c index

[U-Boot] [PATCH v3 4/9] imx: tpc70: cosmetic: Replace magic numbers when setting ENET clock

2019-10-10 Thread Lukasz Majewski
This is a cosmetic change, just to use proper define instead of magic numbers. Signed-off-by: Lukasz Majewski --- Changes in v3: None board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.c b/board/k+p

[U-Boot] [PATCH v3 3/9] imx: tpc70: Add board_boot_order() to distinguish between eMMC and SD boot

2019-10-10 Thread Lukasz Majewski
working properly. Signed-off-by: Lukasz Majewski --- Changes in v3: None board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c | 20 1 file changed, 20 insertions(+) diff --git a/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c b/board/k+p/kp_imx6q_tpc/kp_imx6q_tpc_spl.c index e284d5ec57

[U-Boot] [PATCH v3 6/9] imx: tpc70: dts: Add TPC70 board (imx6q based) device tree description

2019-10-10 Thread Lukasz Majewski
This commit defines the TPC70 imx6q board with device tree description. Signed-off-by: Lukasz Majewski --- Changes in v3: - Squash 'imx: tpc70: dts: Add TPC70 board (imx6q based) device tree description' with 'imx: tpc70: DTS: Explicitly add imx6q-kp.dtb to Makefile for DTB comp

[U-Boot] [PATCH v3 0/9] dm: Convert TPC70 to use DM and DTS in SPL and u-boot proper

2019-10-10 Thread Lukasz Majewski
imx6q-kp.dtb to Makefile for DTB compilation' - Adjust the code to being applicable on top of v2019.10 - Move CONFIG_SUPPORT_EMMC_BOOT to Kconfig Lukasz Majewski (9): imx: tpc70: config: Add script commands to update u-boot and OE's wic imx: tpc70: config: Update TPC70 config to

[U-Boot] [PATCH v3 1/9] imx: tpc70: config: Add script commands to update u-boot and OE's wic

2019-10-10 Thread Lukasz Majewski
Signed-off-by: Lukasz Majewski --- Changes in v3: None include/configs/kp_imx6q_tpc.h | 21 + 1 file changed, 21 insertions(+) diff --git a/include/configs/kp_imx6q_tpc.h b/include/configs/kp_imx6q_tpc.h index 2435ebbc7f..fae45cbf3e 100644 --- a/include/configs

Re: [U-Boot] [PATCH v2 03/16] dfu: sf: add partition support for nor backend

2019-10-10 Thread Lukasz Majewski
u-boot part 0 2;u-boot-env part 0 3;UBI partubi 0 4" > U-Boot> dfu 0 sf 0:0:1000:0 > > Acked-by: Lukasz Majewski > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: > - Update dfu documentation for callback

Re: [U-Boot] [PATCH v2 02/16] doc: dfu: Add dfu documentation

2019-10-10 Thread Lukasz Majewski
Hi Patrick, > Add documentation for dfu stack and "dfu" command. > Reviewed-by: Lukasz Majewski > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: > - Add dfu documentation > > doc/README.dfu | 144 > +

Re: [U-Boot] [PATCH] spl: mmc: Add option to set eMMC HW boot partition

2019-10-09 Thread Lukasz Majewski
ed-off-by: Mans Rullgard > [lukma: Edit the commit message] > Signed-off-by: Lukasz Majewski > Acked-by: Andreas Dannenberg > Tom, are there any issues preventing this patch from being applied to -master? > --- > > common/spl/Kconfig | 6 ++ > common/spl/spl_

Re: [U-Boot] [PATCH] spl: mmc: Fix indentation in spl_mmc.c file

2019-10-09 Thread Lukasz Majewski
Dear Tom, > From: Mans Rullgard > > This fixes a wrongly indented block of code. > > Signed-off-by: Mans Rullgard > [lukma: Make the commit message more verbose] > Signed-off-by: Lukasz Majewski > Tom, are there any issues preventing this patch from

Re: [U-Boot] [PATCH v2] spl: Introduce SPL_DM_GPIO Kconfig define

2019-10-09 Thread Lukasz Majewski
Dear Tom, > This define indicates if DM_GPIO shall be supported in SPL. This > allows proper operation of DM converted GPIO drivers in SPL, which use > boards. > > Signed-off-by: Lukasz Majewski > --- > > Changes in v2: > - Add dependency on DM_GPIO > Tom, a

Re: [U-Boot] [PATCH] spl: Introduce SPL_DM_SPI Kconfig define

2019-10-09 Thread Lukasz Majewski
Dear Tom, > This define indicates if DM_SPI shall be supported in SPL. This allows > proper operation of DM converted SPI drivers in SPL, which use > #if !CONFIG_IS_ENABLED(DM_SPI) to also support not yet DM/DTS > converted boards. > > Signed-off-by: Lukasz Majewski Tom, ar

[U-Boot] [PATCH v2] spl: Introduce SPL_DM_GPIO Kconfig define

2019-09-29 Thread Lukasz Majewski
This define indicates if DM_GPIO shall be supported in SPL. This allows proper operation of DM converted GPIO drivers in SPL, which use boards. Signed-off-by: Lukasz Majewski --- Changes in v2: - Add dependency on DM_GPIO common/spl/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff

Re: [U-Boot] [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define

2019-09-26 Thread Lukasz Majewski
Hi Tom, Simon, > On Wed, Sep 25, 2019 at 02:42:03PM -0600, Simon Glass wrote: > > Hi Lukasz, > > > > On Tue, 17 Sep 2019 at 15:06, Lukasz Majewski > > wrote: > > > > > > On Tue, 17 Sep 2019 14:19:33 -0500 > > > Adam Ford wrote: >

Re: [U-Boot] [PATCH v2 4/6] dfu: mmc: remove file size limit for io operations

2019-09-24 Thread Lukasz Majewski
call. > Acked-by: Lukasz Majewski > Signed-off-by: Marek Szyprowski > --- > drivers/dfu/dfu_mmc.c | 46 > --- 1 file changed, 30 > insertions(+), 16 deletions(-) > > diff --git a/drivers/dfu/dfu_mmc.c b/drivers/dfu/dfu_mmc.

Re: [U-Boot] [PATCH v2 3/6] dfu: mmc: rearrange the code

2019-09-24 Thread Lukasz Majewski
> operations. Acked-by: Lukasz Majewski > > Signed-off-by: Marek Szyprowski > --- > drivers/dfu/dfu_mmc.c | 61 > --- 1 file changed, 34 > insertions(+), 27 deletions(-) > > diff --git a/drivers/dfu/dfu_mmc.c b/drivers/dfu/d

Re: [U-Boot] [PATCH v2 2/6] fat: write: fix broken write at non-zero file offset

2019-09-24 Thread Lukasz Majewski
end of file and adjusting in-cluster offset for partial overwrite. > > This patch fixes all those issues. Reviewed-by: Lukasz Majewski > > Signed-off-by: Marek Szyprowski > --- > fs/fat/fat_write.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) >

Re: [U-Boot] [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define

2019-09-17 Thread Lukasz Majewski
On Tue, 17 Sep 2019 14:19:33 -0500 Adam Ford wrote: > On Tue, Sep 17, 2019 at 1:34 PM Simon Glass wrote: > > > > Hi Lukasz, > > > > On Tue, 17 Sep 2019 at 00:22, Lukasz Majewski > > wrote: > > > > > > Hi Simon, > > > &

Re: [U-Boot] [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define

2019-09-17 Thread Lukasz Majewski
Hi Simon, > Hi Lukasz, > > On Tue, 17 Sep 2019 at 00:22, Lukasz Majewski wrote: > > > > Hi Simon, > > > > > On Sun, 18 Aug 2019 at 19:30, Peng Fan wrote: > > > > > > > > > Subject: [PATCH v2 8/9] spl: Introduce SPL_D

Re: [U-Boot] [PATCH 09/14] dfu: add callback for flush and initiated operation

2019-09-17 Thread Lukasz Majewski
_reset(void); > int dfu_read(struct dfu_entity *de, void *buf, int size, int > blk_seq_num); int dfu_write(struct dfu_entity *de, void *buf, int > size, int blk_seq_num); int dfu_flush(struct dfu_entity *de, void > *buf, int size, int blk_seq_num); +void dfu_flush_callback(struct >

Re: [U-Boot] [PATCH 08/14] dfu: add DFU virtual backend

2019-09-17 Thread Lukasz Majewski
gt; } data; > > int (*get_medium_size)(struct dfu_entity *dfu, u64 *size); > @@ -272,6 +278,22 @@ static inline int dfu_fill_entity_mtd(struct > dfu_entity *dfu, char *devstr, } > #endif > > +#ifdef CONFIG_DFU_VIRT > +int dfu_fill_entity_virt(struct dfu_entity *dfu, char *dev

Re: [U-Boot] [PATCH 07/14] dfu: add partition support for MTD backend

2019-09-17 Thread Lukasz Majewski
t; For example: dfu_alt_info = "spl part 1;u-boot part 2; UBI partubi 3" > > U-Boot> dfu 0 mtd nand0 The above information shall also be placed to dedicated ./doc/README.dfu file. > > Signed-off-by: Patrick Delaunay A

Re: [U-Boot] [PATCH 06/14] dfu: add backend for MTD device

2019-09-17 Thread Lukasz Majewski
_size_mtd; > + dfu->read_medium = dfu_read_medium_mtd; > + dfu->write_medium = dfu_write_medium_mtd; > + dfu->flush_medium = dfu_flush_medium_mtd; > + dfu->poll_timeout = dfu_polltimeout_mtd; > + > + /* initial state */ > + dfu->inited = 0; > + > +

Re: [U-Boot] [PATCH 05/14] dfu: allow read with 0 data for EOF indication

2019-09-17 Thread Lukasz Majewski
break; I guess that this is the use case for sending commands? Could you provide a more descriptive use case for this change (the description in the above commit message is not enough for me to get it). > dfu->offset += dfu->b_left; >

Re: [U-Boot] [PATCH 04/14] dfu: allow to manage DFU on several devices

2019-09-17 Thread Lukasz Majewski
4383330" > My two remarks: 1. As you mentioned above - the current behavior must be preserved (this is my main concern). 2. You added the example of usage to the commit message. Could you also add it to the ./doc/README.dfu (not yet present) file ? Anyway, thanks for your work :-) > Sig

Re: [U-Boot] [PATCH v2 3/7] clk: imx8: Update imx8 clock driver

2019-09-17 Thread Lukasz Majewski
Hi Peng, > Hi All, > > > Subject: [PATCH v2 3/7] clk: imx8: Update imx8 clock driver > > Sorry to bring back this topic. > > This patch is not converting to CCF following Linux, but it could > satisfy u-boot usage and make more feature work. > > I checked Linux i.MX8 CCF recently, although L

<    1   2   3   4   5   6   7   8   9   10   >