-by: Lukasz Majewski
---
(no changes since v1)
drivers/power/pmic/pmic_tps65217.c | 82 ++
1 file changed, 82 insertions(+)
diff --git a/drivers/power/pmic/pmic_tps65217.c
b/drivers/power/pmic/pmic_tps65217.c
index c7f532df4d..ccbf223593 100644
--- a/drivers/power/pmic
support DM_PMIC and DM_I2C.
Signed-off-by: Lukasz Majewski
---
(no changes since v1)
drivers/power/pmic/Kconfig | 8
drivers/power/pmic/Makefile | 2 +-
include/configs/am335x_evm.h| 2 +-
include/configs/am335x_guardian.h | 2 +-
include/configs/am335x_shc.h
Hi Tom,
> On Fri, Mar 11, 2022 at 01:09:08PM +0100, Lukasz Majewski wrote:
> > Hi Tom,
> >
> > > On Tue, Feb 22, 2022 at 09:03:58AM +0100, Lukasz Majewski wrote:
> > > > Up till now the CONFIG_POWER_TPS65217 has been defined in
> &g
Hi Tom,
> On Tue, Feb 22, 2022 at 09:03:58AM +0100, Lukasz Majewski wrote:
> > Up till now the CONFIG_POWER_TPS65217 has been defined in several
> > header files for am335x SoC.
> >
> > This patch renames it to CONFIG_PMIC_TPS65217, which better
> > ref
Hi Tom,
> On Thu, Mar 03, 2022 at 03:07:47PM +0100, Lukasz Majewski wrote:
> > Hi Tom,
> >
> > > On Thu, Mar 03, 2022 at 10:27:10AM +0100, Lukasz Majewski wrote:
> > > > Hi Tom,
> > > >
> > > > > This commit adds CBC
Hi Tom,
> On Thu, Mar 03, 2022 at 10:27:10AM +0100, Lukasz Majewski wrote:
> > Hi Tom,
> >
> > > This commit adds CBC board to U-Boot.
> > >
> > > U-Boot 2022.04-rc1-00271-g930634a4c9 (Feb 21 2022 - 15:08:13
> > > +0100)
> > >
Hi Tom,
> Up till now the CONFIG_POWER_TPS65217 has been defined in several
> header files for am335x SoC.
>
> This patch renames it to CONFIG_PMIC_TPS65217, which better reflects
> the role of this IC circuit.
>
Gentle ping on this patch series.
> Signed-of
patible for SDHCI can be added.
>
> After this change the am335x DTS description can be easier ported
> from Linux kernel.
>
Gentle ping on this patch series.
> Signed-off-by: Lukasz Majewski
> ---
>
> drivers/mmc/omap_hsmmc.c | 1 +
> 1 file changed, 1 insertion(+)
>
MC: 2, OMAP SD/MMC: 0, OMAP SD/MMC: 1
> Loading Environment from MMC... OK
> Boot Device is eMMC
> CBC Variant found: BCT531
> Net: eth2: ethernet@4a10
> Hit any key to stop autoboot: 0
>
> Signed-off-by: Lukasz Majewski
>
> ---
>
> arch/arm
Environment from MMC... OK
Boot Device is eMMC
CBC Variant found: BCT531
Net: eth2: ethernet@4a10
Hit any key to stop autoboot: 0
Signed-off-by: Lukasz Majewski
---
arch/arm/Kconfig| 1 +
arch/arm/dts/Makefile | 1 +
arch/arm/dts/am335x-cbc-u-boot.dtsi | 18
As this board now supports DM_I2C, it is safe for it to also use the
DM converted PMIC tps65217 driver.
Signed-off-by: Lukasz Majewski
---
configs/am335x_boneblack_vboot_defconfig | 3 +++
configs/am335x_evm_defconfig | 3 +++
configs/am335x_evm_spiboot_defconfig | 3
CONFIG_PMIC_TPS65217 has been introduced in Kconfig
to be used with boards, which both support DM_PMIC and DM_I2C.
Signed-off-by: Lukasz Majewski
---
drivers/power/pmic/Kconfig | 8 +++
drivers/power/pmic/pmic_tps65217.c | 82 ++
2 files changed, 90
Up till now the CONFIG_POWER_TPS65217 has been defined in several header
files for am335x SoC.
This patch renames it to CONFIG_PMIC_TPS65217, which better reflects the
role of this IC circuit.
Signed-off-by: Lukasz Majewski
---
drivers/power/pmic/Makefile | 2 +-
include/configs
providing clock) is handled
in ti-sysc.c driver.
Signed-off-by: Lukasz Majewski
---
arch/arm/dts/am33xx.dtsi | 39 ++-
1 file changed, 30 insertions(+), 9 deletions(-)
diff --git a/arch/arm/dts/am33xx.dtsi b/arch/arm/dts/am33xx.dtsi
index 5f9b306ddb..5871344edb
This change provides similar aliases definitions as now present in
Linux kernel v5.16.9 for am33xx.dtsi file.
Signed-off-by: Lukasz Majewski
---
arch/arm/dts/am33xx.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/dts/am33xx.dtsi b/arch/arm/dts/am33xx.dtsi
index b5093020ee
the am335x DTS description can be easier ported
from Linux kernel.
Signed-off-by: Lukasz Majewski
---
drivers/mmc/omap_hsmmc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c
index 820065800f..b2f4a4e721 100644
--- a/drivers/mmc/omap_hsmmc.c
Hi Tom,
> On Mon, Dec 27, 2021 at 02:20:04PM +0100, Lukasz Majewski wrote:
> > Hi Tom,
> >
> > > On Mon, Dec 27, 2021 at 11:46:38AM +0100, Lukasz Majewski wrote:
> > >
> > > > Now the dts information corresponds to the one available in the
>
Hi Tom,
> On Mon, Dec 27, 2021 at 11:46:38AM +0100, Lukasz Majewski wrote:
>
> > Now the dts information corresponds to the one available in the
> > kernel. With this patch applied the 'mtd list' shows proper names
> > and offsets for MTD partitions.
> >
>
This change enables the support for USB with DM on the XEA (imx28)
board.
Signed-off-by: Lukasz Majewski
---
(no changes since v1)
arch/arm/dts/imx28-xea.dts | 18 ++
1 file changed, 18 insertions(+)
diff --git a/arch/arm/dts/imx28-xea.dts b/arch/arm/dts/imx28-xea.dts
index
is enabled and supported.
Signed-off-by: Lukasz Majewski
---
Changes in v2:
- Add support for using 'mtd' command with SPI-NOR partitions
configs/imx28_xea_sb_defconfig | 112 +
1 file changed, 112 insertions(+)
create mode 100644 configs/imx28_xea_sb_defconfig
diff --git
0x0 4
=> md.l ${loadaddr} 1
Signed-off-by: Lukasz Majewski
---
(no changes since v1)
configs/imx28_xea_defconfig | 4 ++--
include/configs/xea.h | 4
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/configs/imx28_xea_defconfig b/configs/imx28_xea_defconfig
index 6
Now the dts information corresponds to the one available in the kernel.
With this patch applied the 'mtd list' shows proper names and
offsets for MTD partitions.
Signed-off-by: Lukasz Majewski
---
(no changes since v1)
arch/arm/dts/imx28-xea.dts | 55 +++---
1
.
However, when it is enabled - the arch/arm/cpu/arm926ejs/start.S is used,
which requires the lowlevel_init() function.
Signed-off-by: Lukasz Majewski
---
Changes in v3:
- Use just #ifdef for CONFIG_SPL_BUILD and CONFIG_SPL_FRAMEWORK as those
two are some kind of a special defines for low level
Hi Tom,
> On Wed, Dec 22, 2021 at 01:49:02PM +0100, Lukasz Majewski wrote:
>
> > This change provides the possibility to build XEA (imx287 based)
> > board U-Boot as a single binary (without support for
> > CONFIG_SPL_FRAMEWORK).
> >
> > The generated
This change enables the support for USB with DM on the XEA (imx28)
board.
Signed-off-by: Lukasz Majewski
---
arch/arm/dts/imx28-xea.dts | 18 ++
1 file changed, 18 insertions(+)
diff --git a/arch/arm/dts/imx28-xea.dts b/arch/arm/dts/imx28-xea.dts
index de049042f83
is enabled and supported.
Signed-off-by: Lukasz Majewski
---
configs/imx28_xea_sb_defconfig | 112 +
1 file changed, 112 insertions(+)
create mode 100644 configs/imx28_xea_sb_defconfig
diff --git a/configs/imx28_xea_sb_defconfig b/configs/imx28_xea_sb_defconfig
new file m
: boot -f /srv/tftp/xea/u-boot.sb)
The board_init_ll() is used in arch/arm/cpu/arm926ejs/mxs/start.S, which
is utilized when CONFIG_SPL_FRAMEWORK is disabled.
However, when it is enabled the arch/arm/cpu/arm926ejs/start.S is used,
which requires the lowlevel_init() function.
Signed-off-by: Lukasz
This commit converts i.MX28's EHCI USB host driver to driver model
(DM_USB). It is a straightforward conversion (to reuse as much code
as possible), based on ehci-mx5.c code.
Signed-off-by: Lukasz Majewski
---
drivers/usb/host/ehci-mxs.c | 184
1 file
Those functions will be re-used when the ehci MXS driver (for imx28)
will be converted to also support CONFIG_DM_USB.
No functional changes introduced - only cosmetic changes (u32 type)
and alignment to pass checkpatch.
Signed-off-by: Lukasz Majewski
---
drivers/usb/host/ehci-mxs.c | 112
This function is going to be reused with the CONFIG_DM_USB enabled in
the imx28 mxs USB ehci driver.
No functional changes introduced.
Signed-off-by: Lukasz Majewski
---
drivers/usb/host/ehci-mxs.c | 42 ++---
1 file changed, 21 insertions(+), 21 deletions
The ehci-mxs driver can be also used with imx28 SoC, not only
imx23.
Signed-off-by: Lukasz Majewski
---
drivers/usb/host/Kconfig | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
index ccecb5a3b08..7743c962cfa 100644
This patch series focuses on converting ehci-mxs driver to support
DM and work with i.MX28 (SoC).
The XEA board has been used to test the proposed code with USB
pen drive.
Lukasz Majewski (4):
usb: Modify Kconfig of the USB_EHCI_MXS to use this driver with imx28
usb: ehci: Refactor
an grow up to ~57KiB (the maximal size of OCRAM memory
available is 0xE3FC).
Signed-off-by: Lukasz Majewski
---
arch/arm/cpu/arm926ejs/mxs/mxsimage-spl.mx28.cfg | 4 ++--
arch/arm/cpu/arm926ejs/mxs/mxsimage.mx28.cfg | 8
2 files changed, 6 insertions(+), 6 deletions(-)
diff
;
> MAINTAINERS | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 6db5354322..d30daff724 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -667,6 +667,7 @@ F:drivers/mtd/jedec_flash.c
>
> CLOCK
> M: Lukasz Ma
Hi Simon,
> Hi Lukasz,
>
> On Sat, 23 Oct 2021 at 09:04, Lukasz Majewski wrote:
> >
> > This change provides the possibility to build XEA (imx287 based)
> > board U-Boot as a single binary (without support for
> > CONFIG_SPL_FRAMEWORK).
> >
> > The g
.
However, when it is enabled - the arch/arm/cpu/arm926ejs/start.S is used,
which requires the lowlevel_init() function.
Signed-off-by: Lukasz Majewski
---
Changes in v2:
- Use CONFIG_IS_ENABLED(FRAMEWORK) instead of #ifdef CONFIG_SPL_FRAMEWORK
(previous version used CONFIG_IS_ENABLED
Hi Marek,
> On 9/14/21 11:31 AM, Lukasz Majewski wrote:
> > On Tue, 14 Sep 2021 05:26:51 +0200
> > Marek Vasut wrote:
> >
> >> Not all SPI flashes and controllers can do continuous transfer
> >> longer than 16 MiB, so perform the DFU read in 16 MiB chunk
is used,
which requires the lowlevel_init() function.
Signed-off-by: Lukasz Majewski
---
board/liebherr/xea/spl_xea.c | 7 +++
board/liebherr/xea/xea.c | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/board/liebherr/xea/spl_xea.c b/board/liebherr/xea/spl_xea.c
index
The imx28 uses following voltage supplies hierarchy:
VDD_5V (VDD_BAT) -> VDDIO -> VDDA -> VDDMEM
\-> VDDD
One shall first enable DCDC on the parent source (VDDIO) and then
follow with its children.
Signed-off-by: Lukasz Majewski
---
arch/arm/cpu/a
Signed-off-by: Marek Vasut
> Cc: Lukasz Majewski
> ---
> drivers/dfu/dfu_sf.c | 21 +++--
> 1 file changed, 15 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/dfu/dfu_sf.c b/drivers/dfu/dfu_sf.c
> index b72493ced86..d246e1b21ff 100644
> ---
On Tue, 14 Sep 2021 05:26:51 +0200
Marek Vasut wrote:
> Not all SPI flashes and controllers can do continuous transfer longer
> than 16 MiB, so perform the DFU read in 16 MiB chunks.
>
> Signed-off-by: Marek Vasut
> Cc: Lukasz Majewski
> ---
> drivers/dfu/dfu_sf.c | 1
rovide any patches for review.
However, considering the above, it may be hard for any _exact_
guidelines.
Note:
[*] - Personally, I didn't saw any usage of ZFS on embedded systems.
> Thanks,
> Chris
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing
Hi Tom,
> This platform does not use any of the standard EEPROM functionality
> and instead provides its own. Use a local namespace for the I2C
> related defines to access the EEPROM.
>
> Cc: Lukasz Majewski
> Signed-off-by: Tom Rini
> ---
> board/k+p/
mode 100644 drivers/clk/kendryte/Makefile
> delete mode 100644 drivers/clk/kendryte/bypass.c
> delete mode 100644 drivers/clk/kendryte/clk.c
> delete mode 100644 drivers/clk/kendryte/pll.c
> delete mode 100644 include/kendryte/bypass.h
> delete mode 100644 include/kendryte/clk.h
>
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
pgpmpgvmM8CuY.pgp
Description: OpenPGP digital signature
posite("ecspi3", imx8mm_ecspi3_sels,
> base + 0xc180)); +
> + clk_dm(IMX8MM_CLK_ECSPI1_ROOT,
> +imx_clk_gate4("ecspi1_root_clk", "ecspi1", base +
> 0x4070, 0));
> + clk_dm(IMX8MM_CLK_ECSPI2_ROOT,
> +imx_clk_gate4
removed as now we also sent 8 bit data.
Signed-off-by: Lukasz Majewski
---
drivers/gpio/pcf8575_gpio.c | 40 ++---
1 file changed, 19 insertions(+), 21 deletions(-)
diff --git a/drivers/gpio/pcf8575_gpio.c b/drivers/gpio/pcf8575_gpio.c
index bae9695f28b1
Those members are not used anymore as ones from gpio_dev_priv
structure (when DM_GPIO support is enabled) are used instead.
Signed-off-by: Lukasz Majewski
---
drivers/gpio/pcf8575_gpio.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/gpio/pcf8575_gpio.c b/drivers/gpio
gt; - dfu->max_buf_size = has_pages ? mtd->erasesize : 0;
> >> + dfu->max_buf_size = mtd->erasesize;
> >>
> >>st = strsep(, " ");
> >> if (!strcmp(st, "raw")) {
> >>
> > Reviewed-by: Patrice Chotard
users to set these
> configs in defconfig files than in config header files as they are a
> part of the source code.
>
> Add Kconfig symbols, and update the defconfigs by using
> tools/moveconfig.py script.
Acked-by: Lukasz Majewski
>
> Suggested-by: Pratyush Yadav
> Signe
Hi Joe, Tom,
> On Wed, Mar 17, 2021 at 4:14 PM Lukasz Majewski wrote:
> >
> > Some Marvell switch devices are dual chip ones, like mv88e6020,
> > which use direct MDIO addressing to access its ports' registers.
> > Such approach allows connecting two such devic
total_blocks += chunk_data_sz /
> >> sparse_header->blk_sz; free(fill_buf);
> >> break;
> >> @@ -253,7 +253,7 @@ int write_sparse_image(struct sparse_storage
> >> *info, debug("Wrote %d blocks, expected to write %d bloc
t; > + list_for_each_entry(dfu, _list, list) {
> > + if (dfu->data.sf.dev == dev)
> > + dfu->data.sf.dev = NULL;
> > + }
> > + spi_flash_free(dev);
> > + }
> > }
> >
> > static struct spi_fl
Data1 (0x71) of Scratch and Misc register is read
to check if 'no_cpu' and 'addr4' bits were set.
Signed-off-by: Lukasz Majewski
---
drivers/net/phy/mv88e61xx.c | 63 +++--
1 file changed, 61 insertions(+), 2 deletions(-)
diff --git a/drivers/net/phy
The mv88e61xx driver need to be adjusted to handle situation when
switch MDIO addresses are switched by offset (0x10 in this case).
Signed-off-by: Lukasz Majewski
---
drivers/net/phy/mv88e61xx.c | 25 ++---
1 file changed, 18 insertions(+), 7 deletions(-)
diff --git
The mv88e6020 is accessed in a direct way (i.e. with direct read and
write to mdio bus). The only necessary indirection is required when
accessing its PHY registers.
Signed-off-by: Lukasz Majewski
---
drivers/net/phy/mv88e61xx.c | 15 ++-
1 file changed, 10 insertions(+), 5
Those automatically created structures can have random value.
However, mv88e61xx driver assumes that those are zeroed.
Signed-off-by: Lukasz Majewski
---
drivers/net/phy/mv88e61xx.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/net/phy/mv88e61xx.c b/drivers/net/phy
After this change PHY ports are able to pass packets between them (and
also to CPU port).
The Kconfig variable - CONFIG_MV88E61XX_PHY_PORTS - is used to get the
PHY ports of the switch and generate proper mask.
Signed-off-by: Lukasz Majewski
---
drivers/net/phy/mv88e61xx.c | 9 +++--
1
Some Marvell switch devices are dual chip ones, like mv88e6020, which
use direct MDIO addressing to access its ports' registers. Such approach
allows connecting two such devices in a single MDIO bus with simple
addressing scheme.
Signed-off-by: Lukasz Majewski
---
drivers/net/phy/mv88e61xx.c
This patch set provides support for mv88e6020 switch. It is a dual chip
device, with direct access to port register on SMI bus. However, PHYs
are accessed indirectly.
Lukasz Majewski (6):
net: mv88e61xx: Add support for checking addressing mode
net: mv88e61xx: Configure PHY ports to also
sibling_node) {
>
> We must ensure that dfu_free_entities() removes each device only once.
>
> Another bug in dfu_free_entities() is that only the first list member
> is freed. free() should be called for all list members.
Yes. Correct.
>
> Best regards
>
> Hei
> https://dev.azure.com/u-boot/a1096300-2999-4ec4-a21a-4c22075e3771/_build/results?buildId=1816=logs=9a06d2a9-1498-5de0-2a01-be581d48ba67
> > >>
> > >
> > > Lokesh, could you please look at this patch?
> >
> > I do not see the dependency patch [1]
On Fri, 19 Feb 2021 01:38:14 +0100
Pali Rohár wrote:
> On Tuesday 16 February 2021 09:28:06 Lukasz Majewski wrote:
> > Hi Pali,
> >
> > > On Monday 08 February 2021 23:34:06 Pali Rohár wrote:
> > > > On Monday 08 February 2021 23:21:38 Pali Rohár wrote:
Hi Pali,
> On Monday 08 February 2021 23:34:06 Pali Rohár wrote:
> > On Monday 08 February 2021 23:21:38 Pali Rohár wrote:
> > > On Monday 08 February 2021 23:15:33 Lukasz Majewski wrote:
> > > > Hi Pali,
> > > >
> > > > >
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
pgptD4kxEEexr.pgp
Description: OpenPGP
- "nand read ${fdt_addr} fdt 0x0008; " \
> - "bootz ${loadaddr} - ${fdt_addr}; " \
> - "else " \
> - "if test ${boot_fdt} = no; then " \
> - "bootz; " \
>
16 +-
> drivers/usb/gadget/ep0.c | 16 +-
> drivers/usb/musb/musb_core.c | 12 +-
> drivers/usb/musb/musb_udc.c | 61 ++--
> include/configs/nokia_rx51.h | 21 +-
> 12 files changed, 82 insertions(+), 481 deletions(-)
>
Hi Sean,
> On 2/5/21 9:46 AM, Lukasz Majewski wrote:
> > Hi Sean,
> >
> >> This adds support for partitions of the form "dev.hwpart:part" and
> >> "dev#partname". This allows one to flash to eMMC boot partitions
> >> wi
\0" \
> + "stderr=usbtty,serial,vga\0" \
> "slide=gpio input " __stringify(GPIO_SLIDE) "\0" \
> "switchmmc=mmc dev ${mmcnum}\0" \
> "kernaddr=0x82008000\0" \
> @@ -198,9 +194,6 @@ int rx51_kp_getc(stru
10xfb001202
> -#define ONENAND_GPMC_CONFIG2_RX510x0000
> -#define ONENAND_GPMC_CONFIG3_RX51 0x00020200
> -#define ONENAND_GPMC_CONFIG4_RX510x11001102
> -#define ONENAND_GPMC_CONFIG5_RX510x03101616
> -#define ONENAND_GPMC_CONFIG6_RX510x9006
> -
> -#endif
Revie
/*d2d_dmare3*/\
> - MUX_VAL(CP(D2D_N3GTRST),(IEN | PTD | DIS | M0))
> /*d2d_n3gtrs*/\
> - MUX_VAL(CP(D2D_N3GTDI), (IEN | PTD | DIS |
> M0)) /*d2d_n3gtdi*/\
> - MUX_VAL(CP(D2D_N3GTDO), (IEN | PTD | DIS |
> M0)) /*d2d_n3gtdo*/\
> - MUX_VAL(CP(D
On Fri, 5 Feb 2021 20:12:09 +0100
Pali Rohár wrote:
> Function s_init() is called only from lowlevel_init(). So compile it
> only when function lowlevel_init() is compiled.
>
Reviewed-by: Lukasz Majewski
> Signed-off-by: Pali Rohár
> ---
> arch/arm/mach-omap2/omap3/bo
nit)
> ldr sp, SRAM_STACK
> str ip, [sp]/* stash ip register */
> @@ -187,6 +190,7 @@ ENTRY(lowlevel_init)
> b s_init
>
> ENDPROC(lowlevel_init)
> +#endif
>
> /* the literal pools origin */
> .ltorg
Reviewed-by: Lu
On Fri, 5 Feb 2021 20:12:07 +0100
Pali Rohár wrote:
> All debug messages from ep0.c except a few are printed by dbg_ep0()
> macro. So for remaining few exception use also dbg_ep0() instead of
> serial_printf().
Reviewed-by: Lukasz Majewski
>
> Signed-off-by: Pali Rohár
>
pace between more endpoint cause data loss and
> unexpected errors.
>
> This patch is fixing transmission of characters over usbtty serial
> console and allow using of usbtty for debugging purposes on Nokia
> N900.
Reviewed-by: Lukasz Majewski
>
> Signed-off-by: Pali
t; usb 1-1: Device not responding to setup address.
> usb 1-1: Device not responding to setup address.
> usb 1-1: device not accepting address 86, error -71
>
> U-Boot was writing address to faddr register too early and did not
> wait for correct interrupt after which sh
in pending_intrrx that HW buffer was not fully
> processed yet and next iteration is required after U-Boot allocate
> space for reading HW buffer.
>
> This patch fixes receiving large usb buffers, e.g. file transfer via
> Kermit protocol implemented by 'loadb' U-Boot command over usbtty
&g
kets are put into waiting queue.
>
> Implement function musb_peri_tx() which transmit checks when
> endpoints are ready and continue transmitting of waiting queue.
>
> This patch fixes sending e.g. output of printenv command over usbtty
> serial console.
Reviewed-by: Lukasz Majew
> {
> u16 peri_rxcount;
> - u8 peri_rxcsr = readw(>ep[ep].epN.rxcsr);
> + u16 peri_rxcsr = readw(>ep[ep].epN.rxcsr);
>
> if (!(peri_rxcsr & MUSB_RXCSR_RXPKTRDY)) {
> if (debug_level > 0)
Reviewed-by: Lukasz Majewski
Best regards,
not possible.
>
> This patch is fixing calculation of start address and buffer size to
> minimal value and ensure that it would not overlap with reserved EP0
> buffer.
>
> This issue caused loose of packets on USB bus in both directions and
> basically usbtty was unusable.
>
On Fri, 5 Feb 2021 20:12:00 +0100
Pali Rohár wrote:
> Without this patch it was done only when U-Boot was compiled with
> MUSB Host Controller. But it is needed also for MUSB Device
> Controller, otherwise Device Controller does not work.
>
Reviewed-by: Lukasz Majewski
> Sign
ence to
> `usbd_device_event_irq' arm-linux-gnueabi-ld.bfd:
> u-boot/drivers/usb/musb/musb_udc.c: undefined reference to
> `usbd_device_event_irq' arm-linux-gnueabi-ld.bfd:
> u-boot/drivers/usb/musb/musb_udc.c: undefined reference to
> `usbd_device_event_irq' make: *** [Makefile:1762: u
78,6 +870,8 @@ static int write_buffer (circbuf_t * buf)
>*/
> while (buf->size > 0) {
>
> + current_urb = next_urb (device_instance,
> endpoint); +
> dest = (char*)current_urb->buffer +
>
s("\r", 1);
> - __usbtty_puts(str, n + 1);
> + __usbtty_puts(str, n);
> + __usbtty_puts("\r\n", 2);
> str += (n + 1);
> len -= (n + 1);
> } else {
t_asserteq(1, fastboot_mmc_get_part_info("0#test1",
> _dev_desc,
> + _info,
> response));
> + ut_asserteq(1, fastboot_mmc_get_part_info("0.0#test1",
> _dev_desc,
> + _info,
> response));
> + ut_asserteq(1, fa
+#if CONFIG_IS_ENABLED(FASTBOOT_UUU_SUPPORT)
> + case FASTBOOT_COMMAND_ACMD:
> + fastboot_func->in_req->complete =
> do_acmd_complete;
> + break;
> +#endif
> }
> }
>
> diff --git a/include/fastboot.h b/include/f
mp));
> - ut_asserteq(2, blk_dread(dev_desc, 0, 2, cmp));
> - ut_assertok(strcmp(cmp, "this is a test"));
> + for (i = 0; i < sizeof(write); i++)
> + write[i] = i;
> + ut_asserteq(2, blk_dwrite(dev_desc, 0, 2, write));
> + ut_asserteq(2,
stboot.c
> >> +++ b/drivers/usb/gadget/f_fastboot.c
> >> @@ -419,6 +419,18 @@ static void do_bootm_on_complete(struct
> >> usb_ep *ep, struct usb_request *req) do_exit_on_complete(ep, req);
> >> }
> >>
> >> +#if CONFIG_IS_ENABLED(FASTBOOT_UUU_SUPPORT)
>
* reboot_bootloader() - Sets reboot bootloader flag.
> >>> *
> >>> diff --git a/drivers/usb/gadget/f_fastboot.c
> >>> b/drivers/usb/gadget/f_fastboot.c index d1d087e12b2..bf52d2505f4
> >>> 100644 --- a/drivers/usb/gadget/f_fastboot.c
> >
: ci: update speed handling
usb: gadget: fastboot: use correct max packet size
usb: gaget: ci: set ep's desc when enable ep
Peng Fan (1):
usb: gadget: add Kconfig for OS descriptors
Ye Li (1):
usb: gadget: Add ep_config call back to usb_gadget_ops
Best regards,
Lukasz
Hi Pali,
> On Saturday 23 January 2021 16:16:11 Lukasz Majewski wrote:
> > Hi Pali,
> >
> > > Interrupt for EP0 is indicated in intrtx register via first bit.
> > > It is set for both RX and TX. First bit in intrrx register is
> > > reserved a
`dfu_alt_info` reinitialization from flashed script
- u-boot: Reduce size of u-boot as usbd_device_* arrays are not exported
The repository on Gitlab (master branch):
https://gitlab.denx.de/u-boot/custodians/u-boot-dfu/-/commits/master
Best regards,
Lukasz Majewski
--
DENX Software
oid udc_irq(void)
> if (intrtx)
> musb_peri_tx(intrtx);
> } else {
> - if (MUSB_INTR_SOF & intrusb) {
> + if (readw(>intrtx) & 0x1) {
> u8 faddr;
>
;= FASTBOOT_REBOOT_REASONS_COUNT)
> + return -EINVAL;
> +
> + return
> bcb_write_reboot_reason(CONFIG_FASTBOOT_FLASH_MMC_DEV, "misc",
> boot_cmds[reason]); }
> /**
This patch causes build breaks when I run the CI on azzure. If it is
still needed, plea
de/fastboot.h
> +++ b/include/fastboot.h
> @@ -52,15 +52,6 @@ enum fastboot_reboot_reason {
> FASTBOOT_REBOOT_REASONS_COUNT
> };
>
> -/**
> - * BCB boot commands
> - */
> -static const char * const fastboot_boot_cmds[] = {
> - [FASTBOOT_REBOOT_REASON_BOOTLOADER] = "bootonce-
+---
> > 3 files changed, 24 insertions(+), 8 deletions(-)
> >
>
> Gentle reminder,
>
> Any comments on this serie [1]
>
> [1] http://patchwork.ozlabs.org/project/uboot/list/?series=200509
>
> Patrick
Could you rebase this on top of current -master
gt; > +---
> > > drivers/usb/gadget/epautoconf.c | 6 +
> > > drivers/usb/gadget/f_fastboot.c | 83 ++-
> > > drivers/usb/gadget/g_dnl.c | 1 +
> > > drivers/usb/gadget/u_os_desc.h | 123 ++
> > > d
; >> - https://u-boot.readthedocs.io/
> >> - Accept a merge request only with docs included?
> >>
> >> Next meeting Tuesday 2 Feb.
> >>
> >> [1]
> >> https://docs.google.com/document/d/1YBOMsbM19uSFyoJWnt7-PsOLBaevzQUgV-hiR88a5-o/edit#
> &
in early SPL stage.
This commit fixes XEA regression introduced with e41651fffda7da55f6.
Signed-off-by: Lukasz Majewski
---
configs/imx28_xea_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/imx28_xea_defconfig b/configs/imx28_xea_defconfig
index e418d8c9e9..2e1d060024 100644
in
imx28_xea_defconfig the define of CONFIG_PREBOOT shall be removed from
xea.h as it is redundant.
Signed-off-by: Lukasz Majewski
---
configs/imx28_xea_defconfig | 2 ++
include/configs/xea.h | 1 -
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/configs/imx28_xea_defconfig b/configs
On the imx287 pin GPMI_WRN (GPIO0_25) no PullUP is available that can be
enabled.
To get the same behavior for both boot select pins (i.e. GPIO0_2{35})
disable pull UPs on both.
Signed-off-by: Lukasz Majewski
---
board/liebherr/xea/spl_xea.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion
101 - 200 of 4008 matches
Mail list logo