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
p(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, Managi

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

2019-11-27 Thread Lukasz Majewski
x4400 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. Links

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

2019-11-26 Thread Lukasz Majewski
; 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 be re-posted t

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
t;wTotalLength, > USB_DT_USB_SS_CAP_SIZE); > + le16_add_cpu_packed((__le16_packed > *)>wTotalLength, > + USB_DT_USB_SS_CAP_SIZE); > ss_cap->bLength = USB_DT_USB_SS_CAP_SIZE; > ss_cap->bDescriptorType

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

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 > >>> 14d39c9e1dc

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
: 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 Denk HRB 165235

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: Wolfgang D

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
(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_image_raw

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

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

2019-10-22 Thread Lukasz Majewski
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; Jiafei Pan >

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 changed, 364

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

2019-10-18 Thread Lukasz Majewski
nable 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/Makefile

[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

[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
/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 the u

[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
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: (+49)-8142

[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..91b369532

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
-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 +- board/k+p/kp_imx6q_tpc

[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/include/configs

[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
or 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 compilation' arch

[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
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 support eMMC's boot0 SPL

[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
the 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
t(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 > dfu_

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
um = 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; > + > + return 0; > +} > diff --git a/include/dfu.h

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
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 :-) > Signed-off-by: Patrick Delaunay Acked-by:

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

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

2019-09-17 Thread Lukasz Majewski
onverted GPIO drivers in SPL, > > > which use #if !CONFIG_IS_ENABLED(DM_GPIO) to also support not yet > > > DM/DTS converted boards. > > > > > > Signed-off-by: Lukasz Majewski > > > --- > > > > > > Changes in v2: > > > - New pa

Re: [U-Boot] [PATCH 02/14] dfu: sf: add partition support for nor backend

2019-09-16 Thread Lukasz Majewski
tubi")) > + dfu->data.sf.ubi = 1; > } else { > printf("%s: Memory layout (%s) not supported!\n", > __func__, st); spi_flash_free(dfu->data.sf.dev); > diff --git a/include/dfu.h b/include/dfu.h > index 145a1576a3..bf51ab74a

Re: [U-Boot] [PATCH 01/14] dfu: cosmetic: cleanup sf to avoid checkpatch error

2019-09-16 Thread Lukasz Majewski
u, u64 offset, > void *buf, > - long *len) > + long *len) > { > return spi_flash_read(dfu->data.sf.dev, dfu->data.sf.start + > offset, *len, buf); > @@ -32,7 +32,7 @@ static u64 find_sector(struct dfu_entity *dfu, u64 > s

Re: [U-Boot] [PATCH 3/3] config: enable DFU over USB on Raspberry Pi4 boards

2019-09-16 Thread Lukasz Majewski
> + > /* Environment */ > #define CONFIG_ENV_SIZE SZ_16K > #define CONFIG_SYS_LOAD_ADDR 0x100 > @@ -185,6 +194,7 @@ > #define CONFIG_EXTRA_ENV_SETTINGS \ > "dhcpuboot=usb start; dhcp u-boot.uimg; bootm\0" \ > ENV_DEV

Re: [U-Boot] [PATCH 2/3] usb: dwc2_udc_otg: add bcm2835 SoC (Raspberry Pi4) support

2019-09-16 Thread Lukasz Majewski
KT_CNT(pktcnt) | > DIEPT_SIZ_XFER_SIZE(length), >in_endp[ep_num].dieptsiz); > > @@ -921,7 +921,7 @@ static int dwc2_udc_get_status(struct dwc2_udc > *dev, (unsigned long) usb_ctrl + > ROUND(sizeof(g_status), > CONFIG_SYS_CACHELINE_SIZE)); > - write

Re: [U-Boot] [PATCH 1/3] fat: write: fix broken write to fragmented files

2019-09-16 Thread Lukasz Majewski
(filesize <= cur_pos) > break; > > - /* CHECK: newclust = get_fatent(mydata, endclust); */ > - > if (IS_LAST_CLUST(newclust, mydata->fatsize)) > /* no more clusters */ > break; Reviewed-by: Lukasz Majewski

Re: [U-Boot] [PATCH 2/3] stm32mp1: configs: Add CONFIG_SPL_SPI_FLASH_MTD

2019-09-16 Thread Lukasz Majewski
_4K_SECTORS is not set > CONFIG_SPI_FLASH_MTD=y > +CONFIG_SPL_SPI_FLASH_MTD=y > CONFIG_DM_ETH=y > CONFIG_DWC_ETH_QOS=y > CONFIG_PHY=y Reviewed-by: Lukasz Majewski Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich,

Re: [U-Boot] [PATCH 1/3] mtd: spi: Add a new option SPL_SPI_FLASH_MTD to Kconfig

2019-09-16 Thread Lukasz Majewski
> > If unsure, say N > > +config SPL_SPI_FLASH_MTD > + bool "SPI flash MTD support for SPL" > + depends on SPI_FLASH > + help > + Enable the MTD support for the SPI flash layer in SPL. > + > + If unsure, say N > + > end

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

2019-09-16 Thread Lukasz Majewski
g the resulting binary sizes. > > Signed-off-by: Frieder Schrempf Acked-by: Lukasz Majewski > --- > configs/aristainetos2_defconfig| 1 + > configs/aristainetos2b_defconfig | 1 + > configs/aristainetos_defconfig | 1 + > configs/cm_fx6_defconfig

Re: [U-Boot] [PATCH v3 0/3] spi: Split CONFIG_DM_SPI* to CONFIG_{SPL_TPL}DM_SPI*

2019-09-12 Thread Lukasz Majewski
Hi Frieder, > Hi Lukasz, > > On 10.09.19 12:22, Lukasz Majewski wrote: > > Hi Frieder, > > > >> On Mon, 9 Sep 2019 11:11:50 + > >> Schrempf Frieder wrote: > >> > >>> Hi Lukasz, > >>> > >>> On 05.09

[U-Boot] [PATCH v4] imx: Add support for i.MX28 based XEA board

2019-09-10 Thread Lukasz Majewski
MAC address - ce:e1:9e:46:f3:a2 eth0: ethernet@800f Hit any key to stop autoboot: 0 Signed-off-by: Mans Rullgard Signed-off-by: Lukasz Majewski --- Changes in v4: - Remove non needed imx28_xea_defconfig defines after introducing SPL_DM_SPI - Update dependencies list after introducing

Re: [U-Boot] [PATCH v3 0/3] spi: Split CONFIG_DM_SPI* to CONFIG_{SPL_TPL}DM_SPI*

2019-09-10 Thread Lukasz Majewski
Hi Frieder, > On Mon, 9 Sep 2019 11:11:50 + > Schrempf Frieder wrote: > > > Hi Lukasz, > > > > On 05.09.19 20:09, Tom Rini wrote: > > > On Thu, Sep 05, 2019 at 12:16:36AM +0200, Lukasz Majewski wrote: > > > > > >> This

[U-Boot] [PATCH v2] imx: Introduce CONFIG_SPL_FORCE_MMC_BOOT to force MMC boot on falcon mode

2019-09-09 Thread Lukasz Majewski
code flow. Signed-off-by: Lukasz Majewski --- Changes in v2: - Update/enhance the Kconfig description of the SPL_FORCE_MMC_BOOT. This patch is a follow up of previous discussion/fix: https://patchwork.ozlabs.org/patch/796237/ Travis-CI: https://travis-ci.org/lmajewski/u-boot-dfu/builds/580272414

Re: [U-Boot] Using CONFIG_ENV_FLAGS_LIST

2019-09-09 Thread Lukasz Majewski
Hi Claudius, > Hi Lukasz, > > On 07/09/2019 00.23, Lukasz Majewski wrote: > > Hi Claudius, > > > >> Hi, > >> > >> I am currently looking into variable flags in order to make some > >> variables read-only for secure boot. >

Re: [U-Boot] [PATCH v3 0/3] spi: Split CONFIG_DM_SPI* to CONFIG_{SPL_TPL}DM_SPI*

2019-09-09 Thread Lukasz Majewski
On Mon, 9 Sep 2019 11:11:50 + Schrempf Frieder wrote: > Hi Lukasz, > > On 05.09.19 20:09, Tom Rini wrote: > > On Thu, Sep 05, 2019 at 12:16:36AM +0200, Lukasz Majewski wrote: > >> This patch series introduces new SPL and TPL specific Kconfig > >> entries

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

2019-09-09 Thread Lukasz Majewski
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 --- Applied on top of -master branch: SHA1

Re: [U-Boot] [PATCH] imx: Introduce CONFIG_SPL_FORCE_MMC_BOOT to force MMC boot on falcon mode

2019-09-09 Thread Lukasz Majewski
Hi Heiko, Stefano > Hello Lukasz, > > Am 05.09.2019 um 11:42 schrieb Lukasz Majewski: > > Hi Stefano, > > > >> On 04/09/19 12:35, Lukasz Majewski wrote: > >>> On Wed, 4 Sep 2019 11:54:40 +0200 > >>> Lukasz Majewski wrote: > >>

Re: [U-Boot] [PATCH] Revert "spi: Kconfig: Mark MXS_SPI has DEPRECATED"

2019-09-07 Thread Lukasz Majewski
Hi Tom, Jagan, > On Sat, Sep 07, 2019 at 09:06:39AM +0530, Jagan Teki wrote: > > On Sat, Sep 7, 2019 at 4:32 AM Tom Rini wrote: > > > > > > > > On Fri, Sep 06, 2019 at 11:32:46PM +0200, Lukasz Majewski wrote: > > > > Hi Jagan, > > &g

Re: [U-Boot] Using CONFIG_ENV_FLAGS_LIST

2019-09-06 Thread Lukasz Majewski
' should work as expected, > but I think 'read-only' should work that way already and we are > missing something here. I think that Wolfgang had a long discussion with Takahiro AKASHI (both CC'ed) about similar problem with u-boot envs. For example: https://patchwork.ozlabs.org/patch/1158770/ &g

Re: [U-Boot] [PATCH] Revert "spi: Kconfig: Mark MXS_SPI has DEPRECATED"

2019-09-06 Thread Lukasz Majewski
Hi Jagan, > On Thu, Aug 1, 2019 at 9:27 PM Lukasz Majewski wrote: > > > > This reverts commit d5ded320a14b0a2f97cbed072286748895ad18ac. > > This wouldn't be a revert. > > The deprecated patch been merged in May, 29 and > > > > > The mxs_spi.c drive

Re: [U-Boot] [PATCH v4 0/1] imx: support i.MX8QM ROM 7720 a1 board

2019-09-06 Thread Lukasz Majewski
/advantech/imx8qm_rom7720_a1/README > create mode 100644 > board/advantech/imx8qm_rom7720_a1/imx8qm_rom7720_a1.c create mode > 100644 board/advantech/imx8qm_rom7720_a1/imximage.cfg create mode > 100644 board/advantech/imx8qm_rom7720_a1/spl.c create mode 100644 > configs/imx8qm_rom772

[U-Boot] [PATCH v3] imx: Add support for i.MX28 based XEA board

2019-09-05 Thread Lukasz Majewski
MAC address - ce:e1:9e:46:f3:a2 eth0: ethernet@800f Hit any key to stop autoboot: 0 Signed-off-by: Mans Rullgard Signed-off-by: Lukasz Majewski --- Changes in v3: - Use Kconfig defined option (CONFIG_FS_EXT4) instead of the one defined in xea.h - Use Kconfig defined option

Re: [U-Boot] [PATCH] imx: Introduce CONFIG_SPL_FORCE_MMC_BOOT to force MMC boot on falcon mode

2019-09-05 Thread Lukasz Majewski
Hi Stefano, > On 04/09/19 12:35, Lukasz Majewski wrote: > > On Wed, 4 Sep 2019 11:54:40 +0200 > > Lukasz Majewski wrote: > > > >> Hi Stefano, Heiko, > >> > >>> On 04/09/19 10:46, Lukasz Majewski wrote: > >>>> Hi Heiko,

[U-Boot] [PATCH v3 7/7] spi: Add support for SPL_OF_PLATDATA to mxs_gpio.c driver

2019-09-05 Thread Lukasz Majewski
After this patch the mxs_gpio.c DM/DTS driver can be used at early SPL to read states of gpio pins (and for example alter the boot flow). It was necessary to adjust its name to 'fsl_imx_2{38}_gpio' to match requirements for SPL_OF_PLATDATA usage. Signed-off-by: Lukasz Majewski --- Changes

[U-Boot] [PATCH v3 5/7] mmc: Convert mxsmmc eMMC driver for i.MX2{38} to DM/DTS

2019-09-05 Thread Lukasz Majewski
This patch converts the mxsmmc driver to support DM/DTS. Moreover, it is also possible to use it in early SPL with SPL_OF_PLATDATA enabled. Signed-off-by: Lukasz Majewski --- Changes in v3: - Drop following patches from this series (as they are generic, non i.MX specific code): [U-Boot

[U-Boot] [PATCH v3 3/7] spi: fix: Call mxs_reset_block() during DM/DTS probe

2019-09-05 Thread Lukasz Majewski
() is not called at all and DM/DTS aware SPI driver in U-Boot proper is malfunctioning. Signed-off-by: Lukasz Majewski --- Changes in v3: None Changes in v2: None drivers/spi/mxs_spi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/spi/mxs_spi.c b/drivers/spi/mxs_spi.c index

[U-Boot] [PATCH v3 1/7] dts: imx28: Remove #include "imx28.dtsi" from imx28-u-boot.dtsi file

2019-09-05 Thread Lukasz Majewski
abled" in the final DTB. Signed-off-by: Lukasz Majewski --- Changes in v3: None Changes in v2: None arch/arm/dts/imx28-u-boot.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/imx28-u-boot.dtsi b/arch/arm/dts/imx28-u-boot.dtsi index d545b402a7..9db72a6be3 100644 --- a/ar

[U-Boot] [PATCH v3 6/7] mmc: Replace printf with debug call for timeouts in the i.MX28 mxs driver

2019-09-05 Thread Lukasz Majewski
bserial -b 115200 -d /dev/ttyUSB1 -e 30 -t -m "^U-Boot SPL*" Signed-off-by: Lukasz Majewski --- Changes in v3: None Changes in v2: - New patch drivers/mmc/mxsmmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/mxsmmc.c b/drivers/mmc/mxsmmc.c index 7e

[U-Boot] [PATCH v3 2/7] spl: Init proper struct driver member (platdata_auto_alloc_size) for mxs_spi

2019-09-05 Thread Lukasz Majewski
This change initializes proper member of struct driver - platdata_auto_alloc_size instead of priv_auto_alloc_size, which is setup twice. Signed-off-by: Lukasz Majewski --- Changes in v3: None Changes in v2: - New patch drivers/spi/mxs_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[U-Boot] [PATCH v3 4/7] spi: Add support for SPL_OF_PLATDATA to mxs_spi.c driver

2019-09-05 Thread Lukasz Majewski
After this patch the mxs_spi.c DM/DTS driver can be used at early SPL to read payload from SPI-NOR memories. It was necessary to adjust its name to 'fsl_imx_2{38}_spi' to match requirements for SPL_OF_PLATDATA usage. Signed-off-by: Lukasz Majewski --- Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v3 0/7] imx: mxs: Fixes and DM/DTS conversion code for several i.MX28 drivers

2019-09-05 Thread Lukasz Majewski
SPL_OF_PLATDATA with OF_PLATDATA in examples Changes in v2: - New patch - Correct position of struct mmc_ops mxsmmc_ops to avoid build breaks on board using legacy i.MX28 mmc driver. - New patch - New patch Lukasz Majewski (7): dts: imx28: Remove #include "imx28.dtsi" from imx28-u-boot

[U-Boot] [PATCH v3 0/3] spi: Split CONFIG_DM_SPI* to CONFIG_{SPL_TPL}DM_SPI*

2019-09-04 Thread Lukasz Majewski
patch from the series [U-Boot,v2,1/4] kconfig: doc: Update comment regarding CONFIG_IS_ENABLED(FOO) for TPL as not being related to this particular change Changes in v2: - Resend patches with some not yet in mainline code removed as suggested by Adam Ford Lukasz Majewski (3): spi: Move

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