Re: [PATCH] drivers: mmc: support secure erase.

2020-12-26 Thread dennis laplacian1
Hi Jaehoon Chung, for your comment: "ditto. if (IS_ENABLED()) instead of #if. And i don't know why doesn't check this in mmc_erase_t(). Then it doesn't need to pass arg as argument." I check the support of secure erase in the mmc_berase and not in mmc_erase_t because mmc_erase_t is called multiple

Pull request for UEFI sub-system for efi-2021-01-rc5

2020-12-26 Thread Heinrich Schuchardt
Dear Tom, thanks for another year managing U-Boot. Wish you a Happy New Year. The following changes since commit fbc326244ce6fb3bd42353f343a511b512b8e710: Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86 (2020-12-22 08:18:21 -0500) are available in the Git repository at: https://

[PATCH 1/1] imx: mx7: clock: use correct format strings

2020-12-26 Thread sbabic
> Use %u and not %d for unsigned values. > Print kHz and not khz. > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering

[PATCH 2/2] arm: dart6ul: read and print SoM info from eeprom on startup

2020-12-26 Thread sbabic
> From: Marc Ferland > The dart6ul has an i2c eeprom at 0x50 which contains, among other > things, the manufacturing/revision/options info of the SoM. This patch > replaces the current checkboard() implementation with a more > exhaustive one based on the content of the eeprom. > Since this code us

[PATCH 1/2] arm: dart6ul: change compatible string for eeprom

2020-12-26 Thread sbabic
> From: Marc Ferland > The eeprom at address 0x50 is a BR24G04NUX-3TTR. It has a > 4Kbit (512x8) capacity, change the compatible string to reflect this > fact. > Also, add an alias to easily refer to this eeprom with > fdt_path_offset() which will be in another commit. > Signed-off-by: Marc Ferlan

[PATCH] mx6sabresd: Remove unneeded checkboard()

2020-12-26 Thread sbabic
> After the conversion to device tree the board information becomes > redundant: > Model: Freescale i.MX6 Quad Plus SABRE Smart Device Board > Board: MX6-SabreSD > Remove the printing of the board information. > Signed-off-by: Fabio Estevam > Reviewed-by: Peng Fan Applied to u-boot-imx, master, t

[PATCH 2/3] arm: dts: imx8mm: sync dts from Linux Kernel 5.10-rc6

2020-12-26 Thread sbabic
> There have been some updates to the device tree since 5.6. > This also includes some clocks, and makes it easier to keep > board device tree files in sync with Linux > Signed-off-by: Adam Ford > Acked-by: Peng Fan > diff --git a/arch/arm/dts/imx8mm.dtsi b/arch/arm/dts/imx8mm.dtsi > index 1e5e11

[PATCH 1/3] imx: imx8mm: Update clock bindings header

2020-12-26 Thread sbabic
> Import clock bindings header file from Linux 5.10-rc6 > Signed-off-by: Adam Ford > Acked-by: Peng Fan > diff --git a/include/dt-bindings/clock/imx8mm-clock.h > b/include/dt-bindings/clock/imx8mm-clock.h > index 07e6c686f3..e63a5530ae 100644 > --- a/include/dt-bindings/clock/imx8mm-clock.h > ++

[PATCH v2] imx: ahab: allow to bypass confirmation for ahab_close cmd

2020-12-26 Thread sbabic
> Calling ahab_close cmd force the user to interact for confirmation. > This is not user-friendly when using this cmd during factory process. > Allow the user to pass '-y' option to bypass this confirmation. > Signed-off-by: Clément Péron > Reviewed-by: Peng Fan > Acked-by: Oliver Graute Applied

[PATCHv2 4/5] board: ge: bx50v3: remove confidx magic numbers

2020-12-26 Thread sbabic
> Instead of hardcoding index magic numbers in the board code, > also rely on board_fit_config_name_match choosing the right > config for the fitImage containing the kernel. > Signed-off-by: Sebastian Reichel Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===

[PATCHv2 1/5] compiler.h: add host_build()

2020-12-26 Thread sbabic
> Add a host_build() function, so that it's possible to > check for software being build with USE_HOSTCC without > relying on preprocessor conditions. In other words > #ifdef USE_HOSTCC > host_only_code(); > #endif > can be written like this instead: > if (host_build()) > host_only_c

[PATCH v3 3/3] configs: imx8m: enable eMMC HS400ES and SD UHS mode on EVK

2020-12-26 Thread sbabic
> i.MX8M series includes support for high speed modes in uSDHC controllers. > Turn on corresponding configuration options for EVK boards, which would > enable high speed modes to be included in U-Boot. > Signed-off-by: Andrey Zhizhikin Applied to u-boot-imx, master, thanks ! Best regards, Stefano

[PATCH v3 1/3] ARM: dts: imx8m: increase off-on delay on the SD Vcc regulator

2020-12-26 Thread sbabic
> Some SD Card controller and power circuitry has increased capacitance, > which keeps the internal logic remains powered after regulator is switch > off. This is generally the case when card is switched to SD104 mode, > where a power cycle should be performed. In case if the card internal > logic

[PATCH 3/3] arm64: dts: imx8mm-beacon: Re-sync dts file with Linux 5.10-rc6

2020-12-26 Thread sbabic
> There have been some updates to the device trees, so re-sync. > Signed-off-by: Adam Ford > Acked-by: Peng Fan > diff --git a/arch/arm/dts/imx8mm-beacon-baseboard.dtsi > b/arch/arm/dts/imx8mm-beacon-baseboard.dtsi > index baa5f997d0..d6b9dedd16 100644 > --- a/arch/arm/dts/imx8mm-beacon-baseboar

[PATCH v1] ARM: dts: imx: imx8qm-rom7720: Fix AR8031 phy-mode

2020-12-26 Thread sbabic
> Fixed wrong PHY Interface Mode > As per kernel commit 0672d22a1924 ("ARM: dts: imx: Fix the AR803X > phy-mode) > the correct phy-mode should be "rgmii-id", so fix it accordingly > to fix the Ethernet regression. > This problem has been exposed by commit: > commit 13114f38e2cc

[PATCH] imx8mp_evk: Increase CONFIG_SYS_MALLOC_F_LEN

2020-12-26 Thread sbabic
> When booting imx8mp-evk the following allocation error > message is seen: > U-Boot 2021.01-rc3-00200-ge668bec96a5f (Dec 21 2020 - 14:36:42 -0300) > alloc space exhausted > Fix it by increasing CONFIG_SYS_MALLOC_F_LEN to 0x1 like it > is done on other i.MX8MM/8MN boards. > Reported-by: Andrey

[PATCH v3 2/3] ARM: dts: imx8m: add UHS or HS400/HS400ES properties

2020-12-26 Thread sbabic
> i.MX8M series provide support for high speed grades in their > usdhc controllers, which has eMMC and SDHC connected to them. > Enable this support across the entire i.MX8M family by providing quirks > to usdhc controllers designated by storage media connected to them. > Signed-off-by: Andrey Zhiz

[PATCH] imx8mm_beacon: Enable HS400 on MMC controller

2020-12-26 Thread sbabic
> The i.MX8MM is capable of HS400. Enable it in both > U-Boot and SPL for faster throughput. > Signed-off-by: Adam Ford > diff --git a/configs/imx8mm_beacon_defconfig b/configs/imx8mm_beacon_defconfig > index c5d331f617..49d5453078 100644 > --- a/configs/imx8mm_beacon_defconfig > +++ b/configs/im

[PATCH v1] toradex: hand over maintainership

2020-12-26 Thread sbabic
> From: Igor Opaniuk > Hand over maintainership of Toradex SoMs (that I was responsible of) to > Oleksandr because of my resignation from Toradex, as such I will > have no immediate involvement with these modules and as a result not > able to continue maintaining these boards. > CC: Oleksandr Suvo

[PATCH v2] i2c: mxc_i2c: improve error message readability

2020-12-26 Thread sbabic
> From: Marc Ferland > Use 0x%2lx to print the i2c bus base address in hexadecimal format > instead of printing as an integer. > Signed-off-by: Marc Ferland > Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCHv2 5/5] board: ge: bx50v3: cleanup phy config

2020-12-26 Thread sbabic
> The current PHY rework does the following things: > 1. Configure 125MHz clock > 2. Setup the TX clock delay (RX is enabled by default), > 3. Setup reserved bits to avoid voltage peak > The clock delays are nowadays already configured by the > PHY driver (in ar803x_delay_config). The code for that

Re: [PATCH v2] Nokia RX-51: Enable usbtty serial console by default

2020-12-26 Thread Pali Rohár
On Wednesday 23 December 2020 11:35:10 Lokesh Vutla wrote: > On 22/12/20 9:32 pm, Pali Rohár wrote: > > On Tuesday 22 December 2020 21:08:45 Lokesh Vutla wrote: > >> On 22/12/20 8:47 pm, Pali Rohár wrote: > >>> On Tuesday 22 December 2020 20:39:11 Lokesh Vutla wrote: > > > On 22/12/2

[PATCH] bootmenu: Allow to quit it via CTRL+C

2020-12-26 Thread Pali Rohár
When CTRL+C is pressed interrupt bootmenu and jump into U-Boot console. As the last entry in bootmenu is always U-Boot console just choose the last entry when CTRL+C is pressed. It is useful when bootmenu is part of boot process and you want to interrupt boot process by scripts which control U-Boo

[PATCH v2] usb: musb: Fix configuring FIFO for endpoints

2020-12-26 Thread Pali Rohár
This patch fixes configuring FIFO for one-directional endpoints which have either RX or TX queue and therefore only one FIFO. Size of FIFO buffer is 2^(idx+3) bytes and starting address is 2^(addr+3). Moreover first 64 bytes are reserved for EP0. Without this patch if FIFO size specified by calle

[PATCH v2] usb: gadget: Do not export usbd_device_* arrays

2020-12-26 Thread Pali Rohár
Each array is used only in one file (core.c or ep0.c). Move their content to correct file, mark them as static and do not export out of current file. This change allows to decrease size of u-boot.bin as more of those strings are not used. Signed-off-by: Pali Rohár --- Changes in v2: * Move usbd

[PATCH 1/4] serial: usbtty: Send urb data in correct order

2020-12-26 Thread Pali Rohár
Function next_urb() selects the last urb data buffer from linked list to which next data from usbtty puts should be appended. But to check if TX data still exists it is needed to look at the first urb data buffer from linked list. So check for endpoint->tx_urb (first from the linked list) instead

[PATCH 0/4] usbtty/musb: Fix file transfers

2020-12-26 Thread Pali Rohár
This is second usbtty patch series which is fixing stability of musb code and allows usage of file transfers via Kermit protocol on Nokia N900. Kermit file transfer via U-Boot loadb command is stable on Nokia N900 and gives about 52kB/s transfer rate. This patch series depends on previous patch s

[PATCH 2/4] usb: musb: Fix receiving of bigger buffers

2020-12-26 Thread Pali Rohár
If musb_peri_rx_ep() was called to processed received HW buffer but U-Boot cannot read it yet (e.g. because U-Boot SW buffer is full) then interrupt was marked as processed but HW buffer stayed unprocessed. U-Boot tried to process this buffer again when it receive interrupt again, but it can recei

[PATCH 3/4] usb: musb: Fix handling interrupts for EP0 and SET ADDRESS commmand

2020-12-26 Thread Pali Rohár
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 and not set. So remove calling musb_peri_ep0() function at every iteration of udc_irq() and musb_peri_rx() and call it only from musb_peri_tx() when correct inter

[PATCH 4/4] usb: musb: Ensure that we set musb dynamic FIFO buffer for every endpoint

2020-12-26 Thread Pali Rohár
If we do not set FIFO buffer address and size for some endpoint which is in use then default address 0x0 would be used which is in conflict with FIFO buffer for endpoint 0 which is at fixed address 0x0. Sharing address space between more endpoint cause data loss and unexpected errors. This patch i

Re: [PATCH] bootmenu: Allow to quit it via CTRL+C

2020-12-26 Thread Heinrich Schuchardt
Am 26. Dezember 2020 19:02:25 MEZ schrieb "Pali Rohár" : >When CTRL+C is pressed interrupt bootmenu and jump into U-Boot console. >As the last entry in bootmenu is always U-Boot console just choose the >last >entry when CTRL+C is pressed. > >It is useful when bootmenu is part of boot process and yo

Re: [PATCH] bootmenu: Allow to quit it via CTRL+C

2020-12-26 Thread Pali Rohár
On Saturday 26 December 2020 19:44:23 Heinrich Schuchardt wrote: > Am 26. Dezember 2020 19:02:25 MEZ schrieb "Pali Rohár" : > >When CTRL+C is pressed interrupt bootmenu and jump into U-Boot console. > >As the last entry in bootmenu is always U-Boot console just choose the > >last > >entry when CTRL

Re: [PATCH] bootmenu: Allow to quit it via CTRL+C

2020-12-26 Thread Heinrich Schuchardt
Am 26. Dezember 2020 20:03:56 MEZ schrieb "Pali Rohár" : >On Saturday 26 December 2020 19:44:23 Heinrich Schuchardt wrote: >> Am 26. Dezember 2020 19:02:25 MEZ schrieb "Pali Rohár" >: >> >When CTRL+C is pressed interrupt bootmenu and jump into U-Boot >console. >> >As the last entry in bootmenu is a

Re: [PATCH] bootmenu: Allow to quit it via CTRL+C

2020-12-26 Thread Pali Rohár
On Saturday 26 December 2020 20:10:10 Heinrich Schuchardt wrote: > Am 26. Dezember 2020 20:03:56 MEZ schrieb "Pali Rohár" : > >On Saturday 26 December 2020 19:44:23 Heinrich Schuchardt wrote: > >> Am 26. Dezember 2020 19:02:25 MEZ schrieb "Pali Rohár" > >: > >> >When CTRL+C is pressed interrupt boo

Re: [PATCH] bootmenu: Allow to quit it via CTRL+C

2020-12-26 Thread Heinrich Schuchardt
Am 26. Dezember 2020 20:15:40 MEZ schrieb "Pali Rohár" : >On Saturday 26 December 2020 20:10:10 Heinrich Schuchardt wrote: >> Am 26. Dezember 2020 20:03:56 MEZ schrieb "Pali Rohár" >: >> >On Saturday 26 December 2020 19:44:23 Heinrich Schuchardt wrote: >> >> Am 26. Dezember 2020 19:02:25 MEZ schrie

Re: [PATCH] bootmenu: Allow to quit it via CTRL+C

2020-12-26 Thread Pali Rohár
On Saturday 26 December 2020 20:44:45 Heinrich Schuchardt wrote: > Am 26. Dezember 2020 20:15:40 MEZ schrieb "Pali Rohár" : > >On Saturday 26 December 2020 20:10:10 Heinrich Schuchardt wrote: > >> Am 26. Dezember 2020 20:03:56 MEZ schrieb "Pali Rohár" > >: > >> >On Saturday 26 December 2020 19:44:2

[PATCH] bootmenu: Select CFB_CONSOLE_ANSI if CFB_CONSOLE

2020-12-26 Thread Pali Rohár
CMD_BOOTMENU uses ANSI terminal. Therefore if U-Boot has enabled CFB_CONSOLE then bootmenu needs also CFB_CONSOLE_ANSI to work. Define this dependency in Kconfig and remove information about this requirement from documentation file. Signed-off-by: Pali Rohár --- cmd/Kconfig| 1 + do

Re: [PATCH] bootmenu: Allow to quit it via CTRL+C

2020-12-26 Thread Heinrich Schuchardt
On 12/26/20 8:50 PM, Pali Rohár wrote: On Saturday 26 December 2020 20:44:45 Heinrich Schuchardt wrote: Am 26. Dezember 2020 20:15:40 MEZ schrieb "Pali Rohár" : On Saturday 26 December 2020 20:10:10 Heinrich Schuchardt wrote: Am 26. Dezember 2020 20:03:56 MEZ schrieb "Pali Rohár" : On Saturd

Re: [maemo-leste] [PATCH] bootmenu: Allow to quit it via CTRL+C

2020-12-26 Thread Pavel Machek
On Sat 2020-12-26 20:15:40, Pali Rohár wrote: > On Saturday 26 December 2020 20:10:10 Heinrich Schuchardt wrote: > > Am 26. Dezember 2020 20:03:56 MEZ schrieb "Pali Rohár" : > > >On Saturday 26 December 2020 19:44:23 Heinrich Schuchardt wrote: > > >> Am 26. Dezember 2020 19:02:25 MEZ schrieb "Pali

Re: [PATCH] bootmenu: Allow to quit it via CTRL+C

2020-12-26 Thread Pali Rohár
On Saturday 26 December 2020 23:15:29 Heinrich Schuchardt wrote: > On 12/26/20 8:50 PM, Pali Rohár wrote: > > On Saturday 26 December 2020 20:44:45 Heinrich Schuchardt wrote: > > > Am 26. Dezember 2020 20:15:40 MEZ schrieb "Pali Rohár" : > > > > On Saturday 26 December 2020 20:10:10 Heinrich Schuch

Re: [maemo-leste] [PATCH] bootmenu: Allow to quit it via CTRL+C

2020-12-26 Thread Pali Rohár
On Saturday 26 December 2020 23:32:27 Pavel Machek wrote: > On Sat 2020-12-26 20:15:40, Pali Rohár wrote: > > On Saturday 26 December 2020 20:10:10 Heinrich Schuchardt wrote: > > > Am 26. Dezember 2020 20:03:56 MEZ schrieb "Pali Rohár" : > > > >On Saturday 26 December 2020 19:44:23 Heinrich Schucha

Re: [maemo-leste] [PATCH] bootmenu: Allow to quit it via CTRL+C

2020-12-26 Thread Pavel Machek
Hi! > > > > >> >entry when CTRL+C is pressed. > > > > >> > > > > > >> >It is useful when bootmenu is part of boot process and you want to > > > > >> >interrupt boot process by scripts which control U-Boot (serial) > > > > >> >console. > > > > >> > > > > >> Wouldn't the escape key be a better choi

Re: [maemo-leste] [PATCH] bootmenu: Allow to quit it via CTRL+C

2020-12-26 Thread Heinrich Schuchardt
On 12/26/20 11:42 PM, Pali Rohár wrote: On Saturday 26 December 2020 23:32:27 Pavel Machek wrote: On Sat 2020-12-26 20:15:40, Pali Rohár wrote: On Saturday 26 December 2020 20:10:10 Heinrich Schuchardt wrote: Am 26. Dezember 2020 20:03:56 MEZ schrieb "Pali Rohár" : On Saturday 26 December 202

[PATCH 1/1] cmd: conitrace: increase wait for next key

2020-12-26 Thread Heinrich Schuchardt
At 9600 baud or less a 1 ms wait it too short to detect the end of an escape sequence. Increase the wait duration to 10 ms which will work down to 1200 baud. Signed-off-by: Heinrich Schuchardt --- cmd/conitrace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/conitr

Re: [maemo-leste] [PATCH] bootmenu: Allow to quit it via CTRL+C

2020-12-26 Thread Pali Rohár
On Sunday 27 December 2020 00:04:53 Heinrich Schuchardt wrote: > On 12/26/20 11:42 PM, Pali Rohár wrote: > > On Saturday 26 December 2020 23:32:27 Pavel Machek wrote: > > > On Sat 2020-12-26 20:15:40, Pali Rohár wrote: > > > > On Saturday 26 December 2020 20:10:10 Heinrich Schuchardt wrote: > > > >

[PATCH v2] bootmenu: Allow to quit it via ESC/CTRL+C

2020-12-26 Thread Pali Rohár
When ESC/CTRL+C is pressed interrupt bootmenu and jump into U-Boot console. As the last entry in bootmenu is always U-Boot console just choose the last entry when ESC or CTRL+C is pressed. ESC key is detected when either no other character appears after '\e' within 10ms or when non-'[' appears aft

Re: [PATCH v1] doc: README.distro: Special case with Windows formatted disk

2020-12-26 Thread Pali Rohár
On Friday 17 January 2020 12:44:51 Andy Shevchenko wrote: > If someone wants to use shared (by installed OS) eMMC partition to > the Windows to boot from, it's not possible due to U-Boot limitations. > > Describe this case and possible workaround. > > Signed-off-by: Andy Shevchenko > --- > doc/

Re: [PATCH 1/1] ubifs: do not decide upon uninitialized variable

2020-12-26 Thread Chris Packham
On Sat, 26 Dec 2020, 8:34 PM Heinrich Schuchardt, wrote: > Am 26. Dezember 2020 08:08:52 MEZ schrieb Chris Packham < > judge.pack...@gmail.com>: > >(note replying on mobile device only code access is via git.denx.de) > > > >On Sat, 26 Dec 2020, 3:19 AM Heinrich Schuchardt, > >wrote: > > > >> Bef