Re: [U-Boot] [PATCH 04/34] spi: kirkwood: Full dm conversion

2018-11-20 Thread Chris Packham
Hi Jagan, On Wed, Nov 21, 2018 at 2:00 AM Jagan Teki wrote: > > kirkwood now support dt along with platform data, > respective boards need to switch into dm for the same. > > Signed-off-by: Jagan Teki > --- > Makefile| 2 +- > drivers/spi/Makefile

[U-Boot] [PATCH v3 RESEND 4/5] usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/

2018-11-20 Thread Sven Schwermer
This allows to disable the USB driver model in SPL because it checks the CONFIG_SPL_DM_USB variable for SPL builds. Nothing changes for regular non-SPL builds. Signed-off-by: Sven Schwermer --- common/usb.c | 14 +++--- common/usb_hub.c | 16

[U-Boot] [PATCH v3 RESEND 2/5] usb: am335x_evm: Disable CONFIG_SPL_DM_USB

2018-11-20 Thread Sven Schwermer
This configuration doesn't use USB in the SPL, so we need to disable driver model for USB in the SPL. Signed-off-by: Sven Schwermer --- configs/am335x_evm_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/am335x_evm_defconfig b/configs/am335x_evm_defconfig

[U-Boot] [PATCH v3 RESEND 3/5] usb: Remove CMD_USB dependency for common code

2018-11-20 Thread Sven Schwermer
Common USB code is built whenever USB is enabled (in non-SPL builds). The USB uclass is built whenever (SPL_)DM_USB is enabled. Both need to be independent from CMD_USB. Signed-off-by: Sven Schwermer --- common/Makefile | 2 +- drivers/usb/host/Makefile | 2 +- 2 files changed, 2

[U-Boot] [PATCH v3 RESEND 5/5] usb: storage: s/CONFIG_BLK/CONFIG_IS_ENABLED(BLK)/

2018-11-20 Thread Sven Schwermer
This fixes link issues when building the SPL without USB driver model but with USB storage support. CONFIG_BLK can be enabled and disabled independently for SPL and non-SPL builds. We leverage that existing functionality here. Signed-off-by: Sven Schwermer --- common/usb_storage.c | 28

[U-Boot] [PATCH v3 RESEND 1/5] usb: Introduce CONFIG_SPL_DM_USB

2018-11-20 Thread Sven Schwermer
This allows building the SPL without driver model for USB. Since CONFIG_SPL_DM_USB is enabled if and only if CONFIG_DM_USB was enabled before, this patch does not change the build behaviour. Signed-off-by: Sven Schwermer --- drivers/usb/Kconfig | 5 + drivers/usb/common/Makefile | 2

[U-Boot] [PATCH v3 RESEND 0/5] usb: Introduce CONFIG_SPL_DM_USB

2018-11-20 Thread Sven Schwermer
This solves the dependency problem I described in [1]. [1]: http://u-boot.10912.n7.nabble.com/-td347224.html Version 3: * Reordered patches. * Split out CMD_USB dependency patch. * Verified that no patch breaks the Travis CI build. * Added missing commit comments. * Verified that all AM33xx

Re: [U-Boot] [PATCH] configs: Remove CONFIG_MARVELL

2018-11-20 Thread Stefan Roese
On 21.11.18 08:24, Chris Packham wrote: This option is defined by a few boards but doesn't guard any code. Remove it from the boards and config_whitelist.txt. Signed-off-by: Chris Packham Reviewed-by: Stefan Roese Thanks, Stefan ___ U-Boot

[U-Boot] [PATCH] configs: Remove CONFIG_MARVELL

2018-11-20 Thread Chris Packham
This option is defined by a few boards but doesn't guard any code. Remove it from the boards and config_whitelist.txt. Signed-off-by: Chris Packham --- include/configs/edminiv2.h | 1 - include/configs/km/km_arm.h | 1 - include/configs/mv-common.h | 1 - scripts/config_whitelist.txt | 1 -

Re: [U-Boot] Uboot send pull request

2018-11-20 Thread Bin Meng
Hi Rick, On Wed, Nov 21, 2018 at 2:00 PM Rick Chen wrote: > > > > > > > Do any of your above patches get v2 posted? At least I did not see any > > > follow-up > > > response [1] regarding to "riscv: ax25-ae350: Pass dtb address to u-boot > > > with a1 > > > register" > > First of all you told

Re: [U-Boot] [PATCH v3 11/11] mtd: sf: Make sf_mtd.c more robust

2018-11-20 Thread Heiko Schocher
Hello Boris, Am 19.11.2018 um 21:59 schrieb Boris Brezillon: SPI flash based MTD devs can be registered/unregistered at any time through the sf probe command or the spi_flash_free() function. This commit does not try to fix the root cause as it would probably require rewriting most of the code

Re: [U-Boot] [PATCH v3 10/11] mtd: sf: Unregister the MTD device prior to removing the spi_flash obj

2018-11-20 Thread Heiko Schocher
Hello Boris, Am 19.11.2018 um 21:59 schrieb Boris Brezillon: The DM implementation of spi_flash_free() does not unregister the MTD device before removing the spi dev object. This leads to a use-after-free bug when the MTD device is later accessed by a MTD user (observed when attaching the

Re: [U-Boot] [PATCH v3 08/11] mtd: Make sure we don't parse MTD partitions belonging to another dev

2018-11-20 Thread Heiko Schocher
Hello Boris, Am 19.11.2018 um 21:59 schrieb Boris Brezillon: The mtdparts variable might contain partition definitions for several MTD devices. Each partition layout is separated by a ';', so let's make sure we don't pick a wrong name when mtdparts is malformed. Fixes: 5db66b3aee6f ("cmd: mtd:

Re: [U-Boot] [PATCH v3 05/11] mtd: Use get_mtdids() instead of env_get("mtdids") in mtd_search_alternate_name()

2018-11-20 Thread Heiko Schocher
Hello Boris, Am 19.11.2018 um 21:59 schrieb Boris Brezillon: The environment is not guaranteed to contain a valid mtdids variable when called from mtd_search_alternate_name(). Call get_mtdids() instead of env_get("mtdids"). Fixes: ff4afa8a981e ("mtd: uboot: search for an equivalent MTD name

Re: [U-Boot] [PATCH v3 09/11] mtd: Don't stop MTD partition creation when it fails on one device

2018-11-20 Thread Heiko Schocher
Hello Boris, Am 19.11.2018 um 21:59 schrieb Boris Brezillon: MTD partition creation code is a bit tricky. It tries to figure out when things have changed (either MTD dev list or mtdparts/mtdids vars) and when that happens it first deletes all the partitions that had been previously created and

Re: [U-Boot] [PATCH v3 07/11] mtd: Make sure the name passed in mtdparts fits in mtd_name[]

2018-11-20 Thread Heiko Schocher
Hello Boris, Am 19.11.2018 um 21:59 schrieb Boris Brezillon: The local mtd_name[] variable is limited in size. Return an error if the name passed in mtdparts does not fit in this local var. Fixes: 5db66b3aee6f ("cmd: mtd: add 'mtd' command") Signed-off-by: Boris Brezillon --- Changes in v3: -

Re: [U-Boot] [PATCH v3 06/11] mtd: Be more strict on the "mtdparts=" prefix check

2018-11-20 Thread Heiko Schocher
Hello Boris, Am 19.11.2018 um 21:59 schrieb Boris Brezillon: strstr() does not guarantee that the string we're searching for is placed at the beginning. Use strncmp() instead. Fixes: 5db66b3aee6f ("cmd: mtd: add 'mtd' command") Signed-off-by: Boris Brezillon --- Changes in v3: - None Changes

Re: [U-Boot] [PATCH v3] cmd, fdt: add subcommand "get" to fdt header

2018-11-20 Thread Jonas Mark (BT-FIR/ENG1)
Hi Heiko, > store fdt header member with name in U-Boot > Environment variable with name . > > for example to get the total length of the fdt and store > it in filesize, call: > > fdt header get filesize totalsize > > For membernames look into fdt header definition at >

Re: [U-Boot] [PATCH v3 04/11] mtd: sf: Make sure we don't register the same device twice

2018-11-20 Thread Heiko Schocher
Hello Boris, Am 19.11.2018 um 21:59 schrieb Boris Brezillon: spi_flash_mtd_register() can be called several times and each time it will register the same mtd_info instance like if it was a new one. The MTD ID allocation gets crazy when that happens, so let's track the status of the sf_mtd_info

Re: [U-Boot] [PATCH v3 02/11] mtd: Parse mtdparts/mtdids again when the MTD list has been updated

2018-11-20 Thread Heiko Schocher
Hello Boris, Am 19.11.2018 um 21:59 schrieb Boris Brezillon: Updates to the MTD device list should trigger a new parsing of the mtdids/mtdparts vars even if those vars haven't changed. Fixes: 5db66b3aee6f ("cmd: mtd: add 'mtd' command") Signed-off-by: Boris Brezillon --- Changes in v3: - None

Re: [U-Boot] [PATCH v3 03/11] mtd: Delete partitions attached to the device when a device is deleted

2018-11-20 Thread Heiko Schocher
Hello Boris, Am 19.11.2018 um 21:59 schrieb Boris Brezillon: If we don't do that, partitions might still be exposed while the underlying device is gone. Fixes: 2a74930da57f ("mtd: mtdpart: implement proper partition handling") Signed-off-by: Boris Brezillon --- Changes in v3: - None Changes

Re: [U-Boot] [PATCH v3 00/11] mtd/sf: Various fixes

2018-11-20 Thread Heiko Schocher
Hello Boris, Am 19.11.2018 um 21:59 schrieb Boris Brezillon: Hello, This is the 3rd version of the mtd / sf fixes patchset. This v3 contains 2 new patches fixing bugs in the spi-flash layer. With this version I hope to have addressed all the weird interactions between the spi-flash and MTD

Re: [U-Boot] [PATCH v3 01/11] mtd: Add a function to report when the MTD dev list has been updated

2018-11-20 Thread Heiko Schocher
Hello Boris, Am 19.11.2018 um 21:59 schrieb Boris Brezillon: We need to parse mtdparts/mtids again everytime a device has been added/removed from the MTD list, but there's currently no way to know when such an update has been done. Add an ->updated field to the idr struct that we set to true

Re: [U-Boot] Uboot send pull request

2018-11-20 Thread Rick Chen
> > > > Do any of your above patches get v2 posted? At least I did not see any > > follow-up > > response [1] regarding to "riscv: ax25-ae350: Pass dtb address to u-boot > > with a1 > > register" First of all you told me about that board_fdt_blob_setup() should be completely removed. Instead

Re: [U-Boot] [PATCH] arm: socfpga: crc-protect SPL on warm boot

2018-11-20 Thread Simon Goldschmidt
Am Mi., 21. Nov. 2018, 00:12 hat Marek Vasut geschrieben: > On 11/20/2018 10:55 PM, Dalon L Westergreen wrote: > > On Tue, 2018-11-20 at 21:54 +0100, Simon Goldschmidt wrote: > >> On 20.11.2018 20:33, Marek Vasut wrote: > >>> On 11/20/2018 08:22 PM, Simon Goldschmidt wrote: > From: Simon

Re: [U-Boot] [PATCH] arm: socfpga: crc-protect SPL on warm boot

2018-11-20 Thread Simon Goldschmidt
Am Mi., 21. Nov. 2018, 00:11 hat Marek Vasut geschrieben: > On 11/20/2018 09:54 PM, Simon Goldschmidt wrote: > > On 20.11.2018 20:33, Marek Vasut wrote: > >> On 11/20/2018 08:22 PM, Simon Goldschmidt wrote: > >>> From: Simon Goldschmidt > >>> > >>> On socfpga gen5, a warm reboot from Linux

[U-Boot] [PATCH v3 2/3] riscv: qemu: Use different SYS_TEXT_BASE for S-mode

2018-11-20 Thread Anup Patel
When u-boot runs in S-mode, the M-mode runtime firmware (BBL or equivalent) uses memory range in 0x8000 to 0x8020. Due to this, we cannot use 0x8000 as SYS_TEXT_BASE when running in S-mode. Instead for S-mode, we use 0x8020 as SYS_TEXT_BASE. Even Linux RISC-V kernel

[U-Boot] [PATCH v3 3/3] riscv: Add S-mode defconfigs for QEMU virt machine

2018-11-20 Thread Anup Patel
This patch adds S-mode defconfigs for QEMU virt machine so that we can run u-boot in S-mode on QEMU using M-mode runtime firmware (BBL or equivalent). Signed-off-by: Anup Patel Reviewed-by: Bin Meng Tested-by: Bin Meng --- board/emulation/qemu-riscv/MAINTAINERS | 2 ++

[U-Boot] [PATCH v3 1/3] riscv: Add kconfig option to run u-boot in S-mode

2018-11-20 Thread Anup Patel
This patch adds kconfig option RISCV_SMODE to run u-boot in S-mode. When this opition is enabled we use s CSRs instead of m CSRs. It is important to note that there is no equivalent S-mode CSR for misa and mhartid CSRs so we expect M-mode runtime firmware (BBL or equivalent) to emulate misa and

[U-Boot] [PATCH v3 0/3] RISC-V S-mode support

2018-11-20 Thread Anup Patel
This patchset allows us runing u-boot in S-mode which is useful on platforms where M-mode runtime firmware is an independent firmware and u-boot is used as last stage OS bootloader. The patchset based upon git://git.denx.de/u-boot-riscv.git and is tested on QEMU in both M-mode and S-mode. For

Re: [U-Boot] [PATCH v2 3/3] riscv: Add S-mode defconfigs for QEMU virt machine

2018-11-20 Thread Anup Patel
On Tue, Nov 20, 2018 at 7:09 PM Bin Meng wrote: > > On Tue, Nov 20, 2018 at 7:29 PM Anup Patel wrote: > > > > This patch adds S-mode defconfigs for QEMU virt machine so > > that we can run u-boot in S-mode on QEMU using M-mode runtime > > firmware (BBL or equivalent). > > > > Signed-off-by: Anup

Re: [U-Boot] [PATCH v2 1/3] riscv: Add kconfig option to run u-boot in S-mode

2018-11-20 Thread Anup Patel
On Tue, Nov 20, 2018 at 7:08 PM Bin Meng wrote: > > Hi Anup, > > On Tue, Nov 20, 2018 at 7:29 PM Anup Patel wrote: > > > > This patch adds kconfig option RISCV_SMODE to run u-boot in > > S-mode. When this opition is enabled we use s CSRs instead > > of m CSRs. > > > > It is important to note

Re: [U-Boot] [PATCH V2 14/15] drivers: ddr: introduce DDR driver for i.MX8M

2018-11-20 Thread Peng Fan
> -Original Message- > From: Troy Kisky [mailto:troy.ki...@boundarydevices.com] > Sent: 2018年11月21日 1:47 > To: Peng Fan ; sba...@denx.de; Fabio Estevam > > Cc: u-boot@lists.denx.de; dl-linux-imx > Subject: Re: [U-Boot] [PATCH V2 14/15] drivers: ddr: introduce DDR driver for > i.MX8M >

Re: [U-Boot] [U-Boot, 1/1] fs: fat: validate sector and cluster size

2018-11-20 Thread Tom Rini
On Tue, Nov 20, 2018 at 11:08:54PM +0100, Heinrich Schuchardt wrote: > On 11/20/18 9:33 PM, Tom Rini wrote: > > On Tue, Nov 20, 2018 at 09:29:34PM +0100, Heinrich Schuchardt wrote: > > > >> On 11/20/18 3:56 PM, Tom Rini wrote: > >>> On Wed, Oct 31, 2018 at 09:46:36PM +0100, Heinrich Schuchardt

[U-Boot] fsxxx commands and driver model

2018-11-20 Thread C Michael Sundius
do I have to use the driver model to use the fsxxx commands like fsls or fsinfo? or fatls and fatinfo? as I said in my last email, I want to read my kernel out of a filesystem rather than an mtd partition, will I have to use the driver model? next I'm using spi-flash (nor) I seem to see that

Re: [U-Boot] [PATCH 67/93] arm: Remove socfpga_stratix10 board

2018-11-20 Thread Ley Foon Tan
On Tue, Nov 20, 2018 at 1:27 AM Simon Glass wrote: > > This board has not been converted to CONFIG_DM_BLK by the deadline. > Remove it. > > Signed-off-by: Simon Glass > --- > > board/altera/stratix10-socdk/MAINTAINERS | 7 - > board/altera/stratix10-socdk/Makefile | 7 - >

[U-Boot] uboot to read kernel and rootfs from a bootfs.

2018-11-20 Thread C Michael Sundius
we are supporting several platforms and have a well established format and set of tools for upgrading our images and rolling back to prior images upon upgrade failure. that said we'd like to use the same layout for our boot file system and not mtd partitions for kernel, rootfs etc. to boot we

Re: [U-Boot] [PATCH 9/9] ARM: Exynos: Add Exynos5433 based TM2 board support

2018-11-20 Thread Lukasz Majewski
On Wed, 07 Nov 2018 16:05:14 +0100 Marek Szyprowski wrote: General remark - could you run your patches (the whole series) through the buildman? ./tools/buildman/buildman.py --branch=HEAD samsung --detail --verbose --show_errors --force-build --count=9 --output-dir=../BUILD/ > This patch adds

Re: [U-Boot] [PATCH 8/9] ARM: Exynos: Add minimal support for ARM 64bit based Exynos5433 SoC

2018-11-20 Thread Lukasz Majewski
On Wed, 07 Nov 2018 16:04:59 +0100 Marek Szyprowski wrote: > This patch adds minimal support for Exynos5433 SoC (ARM64 based). > > The following devices are supported: > - mmc0 (for eMMC) > - serial1 (for debug/console) > - gpa0..3 and gpb0..2 GPIO banks > > Based on earlier work done by

Re: [U-Boot] [PATCH 7/9] arm: armv8: add support for boards with broken/unset counter frequency

2018-11-20 Thread Lukasz Majewski
On Wed, 07 Nov 2018 16:04:41 +0100 Marek Szyprowski wrote: > Some boards use legacy firmware which doesn't properly configure ARM > architected timer registers. This patch adds a workaround to use the > defined COUNTER_FREQUENCY instead of reading its value from the timer > registers. > >

Re: [U-Boot] [PATCH 6/9] mmc: exynos_dw_mmc: fix compilation on ARM64-based Exynos

2018-11-20 Thread Lukasz Majewski
On Wed, 07 Nov 2018 16:03:22 +0100 Marek Szyprowski wrote: > From: Lukasz Majewski > > Disable some legacy code to let it work on ARM64 based Exynos SoCs. > > Signed-off-by: Lukasz Majewski > [extracted from old sources and adapted to mainline u-boot, minor > fixes] Signed-off-by: Marek

Re: [U-Boot] [PATCH 4/9] dfu: mmc: add support for in-partition offset

2018-11-20 Thread Lukasz Majewski
On Wed, 07 Nov 2018 16:01:00 +0100 Marek Szyprowski wrote: > Add possibility to define a part of partition as a separate DFU > entity. This allows to have more than one items on the given partiton. > > The real use case for this option is TM2 board. It can use u-boot > stored as Linux kernel on

Re: [U-Boot] [PATCH 3/9] cmd: thor: select DFU subsystem also for 'thor' download tool

2018-11-20 Thread Lukasz Majewski
On Wed, 07 Nov 2018 16:00:59 +0100 Marek Szyprowski wrote: > 'THOR' download command requires DFU infrastructure to properly flash > board images. It can be used without enabling DFU command, so add such > dependency to Kconfig. > > Signed-off-by: Marek Szyprowski > --- > cmd/Kconfig | 1 + >

Re: [U-Boot] [PATCH 2/9] gadget: f_thor: properly enable 3rd endpoint defined by the protocol

2018-11-20 Thread Lukasz Majewski
On Wed, 07 Nov 2018 16:00:58 +0100 Marek Szyprowski wrote: > This is needed to make Windows THOR flash tool happy, because it > starts sending data only when interrupt packet is received on the 3rd > endpoint. > > Signed-off-by: Marek Szyprowski > --- > drivers/usb/gadget/f_thor.c | 7 +++

Re: [U-Boot] [PATCH 1/9] cmd: itest: add support for .q size specifier

2018-11-20 Thread Lukasz Majewski
On Wed, 07 Nov 2018 16:00:57 +0100 Marek Szyprowski wrote: > Add support for quad (64bits) memory access. > > Signed-off-by: Marek Szyprowski > --- > cmd/itest.c | 12 > 1 file changed, 12 insertions(+) > > diff --git a/cmd/itest.c b/cmd/itest.c > index fd6f4166f1..1813a131d1

Re: [U-Boot] [PATCH u-boot] spi: Add Amlogic Meson SPI Flash Controller driver

2018-11-20 Thread Loic Devulder
Neil, I just saw that you found a bug and you will send a v2 patch, so I will retest it with the new version. On 11/21/18 12:45 AM, Loic Devulder wrote: > Hi Neil, > > I was able to detect the W25Q16FW SPI flash of my Khadas VIM2 with your > patch: > => sspi > SF: Detected w25q16dw with page

[U-Boot] [PATCH v2 3/3] ARM: dts: meson: Update dts files from Linux v4.19

2018-11-20 Thread Loic Devulder
This patch modifies Device Tree of meson boards. The dts files are synchronized from Linux 4.19. Signed-off-by: Loic Devulder --- arch/arm/dts/meson-gx.dtsi| 31 + arch/arm/dts/meson-gxbb-nanopi-k2.dts | 48 +++

[U-Boot] [PATCH v2 1/3] ARM: meson: Add regmap support for clock driver

2018-11-20 Thread Loic Devulder
This patch modifies the meson clock driver to use syscon/regmap like the Linux kernel does, as it is needed if we want to share the same DTS files. Signed-off-by: Loic Devulder --- drivers/clk/clk_meson.c | 59 + 1 file changed, 30 insertions(+),

[U-Boot] [PATCH v2 2/3] ARM: meson: Enable syscon on all supported boards

2018-11-20 Thread Loic Devulder
This patch enable CONFIG_SYSCON option on all supported meson boards, as this is need for the new clock driver to work. Signed-off-by: Loic Devulder --- configs/khadas-vim2_defconfig | 1 + configs/khadas-vim_defconfig | 1 + configs/libretech-cc_defconfig | 1 + configs/nanopi-k2_defconfig

[U-Boot] [PATCH v2 0/3] ARM: meson: Use syscon/regmap for clock driver

2018-11-20 Thread Loic Devulder
This patch series modifies the meson clock driver to use syscon/regmap like the Linux kernel does. It is needed if we want to share the same DTS files with the Linux kernel, as last changes in clock-controller break U-Boot. These patches also update all meson DTS files to last versions from Linux

Re: [U-Boot] [PATCH u-boot] spi: Add Amlogic Meson SPI Flash Controller driver

2018-11-20 Thread Loic Devulder
Hi Neil, I was able to detect the W25Q16FW SPI flash of my Khadas VIM2 with your patch: => sspi SF: Detected w25q16dw with page size 256 Bytes, erase size 4 KiB, total 2 MiB => sf probe SF: Detected w25q16dw with page size 256 Bytes, erase size 4 KiB, total 2 MiB So, you can add a "Tested-by:

Re: [U-Boot] [PATCH] ARM: armv7: Add early stack for erratum workarounds

2018-11-20 Thread Nishanth Menon
On 17:02-20181120, Nishanth Menon wrote: > On 14:47-20181119, Andrew F. Davis wrote: > > Some erratum workarounds call into C code before the stack > > is setup, this can lead to values pushed onto the stack > > being lost, firewall exceptions, and other undefined beh

Re: [U-Boot] [PATCH] arm: socfpga: crc-protect SPL on warm boot

2018-11-20 Thread Marek Vasut
On 11/20/2018 10:55 PM, Dalon L Westergreen wrote: > On Tue, 2018-11-20 at 21:54 +0100, Simon Goldschmidt wrote: >> On 20.11.2018 20:33, Marek Vasut wrote: >>> On 11/20/2018 08:22 PM, Simon Goldschmidt wrote: From: Simon Goldschmidt On socfpga gen5, a warm reboot from Linux

Re: [U-Boot] [PATCH] arm: socfpga: crc-protect SPL on warm boot

2018-11-20 Thread Marek Vasut
On 11/20/2018 09:54 PM, Simon Goldschmidt wrote: > On 20.11.2018 20:33, Marek Vasut wrote: >> On 11/20/2018 08:22 PM, Simon Goldschmidt wrote: >>> From: Simon Goldschmidt >>> >>> On socfpga gen5, a warm reboot from Linux currently triggers a warm >>> reset via reset manager ctrl register. >>> >>>

Re: [U-Boot] SWUpdate - U-Boot environment library dependency

2018-11-20 Thread Marek Vasut
On 11/20/2018 10:11 PM, Simon Goldschmidt wrote: > On 04.09.2018 12:30, Andreas Reichel wrote: >> Hi all, >> >> as Stefano Babic was so friendly and pointed out a few things already, >> we come the following problematic points: >> >> For SWupdate to access U-Boot's environment, it uses code from

Re: [U-Boot] [PATCH] ARM: armv7: Add early stack for erratum workarounds

2018-11-20 Thread Nishanth Menon
On 14:47-20181119, Andrew F. Davis wrote: > Some erratum workarounds call into C code before the stack > is setup, this can lead to values pushed onto the stack > being lost, firewall exceptions, and other undefined behavior. > > Setup a temporary stack to allow these functions to work >

Re: [U-Boot] [PATCH v2 1/5] serial: Introduce ->getinfo() callback

2018-11-20 Thread Andy Shevchenko
On Wed, Nov 21, 2018 at 12:04 AM Alexander Graf wrote: > On 20.11.18 19:32, Andy Shevchenko wrote: > > On Thu, Nov 15, 2018 at 11:45:32AM -0800, Simon Glass wrote: > >> On 15 November 2018 at 09:58, Andy Shevchenko > >> wrote: > >>> + u64 addr; > >> > >> ulong > > > > This,

Re: [U-Boot] [U-Boot, 1/1] fs: fat: validate sector and cluster size

2018-11-20 Thread Heinrich Schuchardt
On 11/20/18 9:33 PM, Tom Rini wrote: > On Tue, Nov 20, 2018 at 09:29:34PM +0100, Heinrich Schuchardt wrote: > >> On 11/20/18 3:56 PM, Tom Rini wrote: >>> On Wed, Oct 31, 2018 at 09:46:36PM +0100, Heinrich Schuchardt wrote: >>> In the rest of the FAT driver we want to be able to rely on the

Re: [U-Boot] [PATCH v2 1/5] serial: Introduce ->getinfo() callback

2018-11-20 Thread Alexander Graf
On 20.11.18 19:32, Andy Shevchenko wrote: > On Thu, Nov 15, 2018 at 11:45:32AM -0800, Simon Glass wrote: >> On 15 November 2018 at 09:58, Andy Shevchenko >> wrote: > >>> +/* REVISIT: ACPI GAS specification implied */ >>> +struct serial_device_info { >>> + unsigned int baudrate; >>> +

[U-Boot] [PATCH v3 5/7] serial: ns16550: Provide ->getinfo() implementation

2018-11-20 Thread Andy Shevchenko
New callback will supply necessary information, for example, to ACPI SPCR table. Signed-off-by: Andy Shevchenko --- drivers/serial/ns16550.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index b51b56de9f..226c5daf50

Re: [U-Boot] [PATCH] arm: socfpga: crc-protect SPL on warm boot

2018-11-20 Thread Dalon L Westergreen
On Tue, 2018-11-20 at 21:54 +0100, Simon Goldschmidt wrote: > On 20.11.2018 20:33, Marek Vasut wrote: > > On 11/20/2018 08:22 PM, Simon Goldschmidt wrote: > > > From: Simon Goldschmidt > > > > > > On socfpga gen5, a warm reboot from Linux currently triggers a warm > > > reset via reset manager

[U-Boot] [PATCH v3 4/7] serial: ns16550: Read reg-io-width from device tree

2018-11-20 Thread Andy Shevchenko
Cache the value of the reg-io-width property for the future use. Signed-off-by: Andy Shevchenko --- drivers/serial/ns16550.c | 1 + include/ns16550.h| 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index f9041aa626..b51b56de9f

[U-Boot] [PATCH v3 2/7] dm: serial: Introduce ->getinfo() callback

2018-11-20 Thread Andy Shevchenko
New callback will give a necessary information to fill up ACPI SPCR table, for example. Maybe used later for other purposes. Signed-off-by: Andy Shevchenko --- drivers/serial/sandbox.c | 21 ++ drivers/serial/serial-uclass.c | 21 ++ include/common.h

[U-Boot] [PATCH v3 6/7] x86: acpi: Add SPCR table description

2018-11-20 Thread Andy Shevchenko
Add SPCR table description as it provided in Linux kernel. Port subtype for ACPI_DBG2_SERIAL_PORT is used as an interface type in SPCR. Thus, provide a set of definitions to be utilized later. Signed-off-by: Andy Shevchenko Reviewed-by: Bin Meng --- arch/x86/include/asm/acpi_table.h | 49

[U-Boot] [PATCH v3 0/7] ACPI: Generate SPCR table

2018-11-20 Thread Andy Shevchenko
This is a series to enable SPCR table generation in U-Boot. This table is useful to get early console in Linux for debugging purposes. The benefit of using it is not only for x86, but also for arm64 community (actually they introduced support in Linux kernel). This implementation has been tested

[U-Boot] [PATCH v3 7/7] x86: acpi: Generate SPCR table

2018-11-20 Thread Andy Shevchenko
Microsoft specifies a SPCR (Serial Port Console Redirection Table) [1]. Let's provide it in U-Boot. [1]: https://docs.microsoft.com/en-us/windows-hardware/drivers/serports/serial-port-console-redirection-table Signed-off-by: Andy Shevchenko --- arch/x86/include/asm/acpi_table.h | 2 +

[U-Boot] [PATCH v3 3/7] serial: ns16550: Group reg_* members of ns16550_platdata

2018-11-20 Thread Andy Shevchenko
Group reg_* members of struct ns16550_platdata together for better maintenance. No functional change intended. Signed-off-by: Andy Shevchenko --- include/ns16550.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ns16550.h b/include/ns16550.h index

[U-Boot] [PATCH v3 1/7] dm: serial: Add ->getconfig() callback

2018-11-20 Thread Andy Shevchenko
In some cases it would be good to know the settings, such as parity, of current serial console. One example might be an ACPI SPCR table to generate using these parameters. Signed-off-by: Andy Shevchenko --- drivers/serial/sandbox.c | 13 + drivers/serial/serial-uclass.c | 16

Re: [U-Boot] [U-Boot, v2] fs: fat: assign rootdir sector when accessing root directory

2018-11-20 Thread Tom Rini
On Tue, Nov 13, 2018 at 02:00:59PM +0100, Thomas RIENOESSL wrote: > This fixes problems accessing drives formated under > Windows as FAT16. > > Changes v2: > - unbreak fat32 > > Change-Id: Ideeca97525d3009b99de35b017707af11fda27c1 > Signed-off-by: Thomas RIENOESSL Applied to u-boot/master,

Re: [U-Boot] Please pull u-boot-marvell/master

2018-11-20 Thread Tom Rini
On Tue, Nov 20, 2018 at 01:15:37PM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the first batch of Marvell patches with: > > - Clearfog GT-8K support added by Baruch / Raheeb > - const and sizes cleanup (also in MIPS) from Baruch > - Minor cleanup to db-88f6820 from Chris > > Thanks, >

Re: [U-Boot] [U-Boot, u-boot] clk: meson: fix clk81 divider calculation

2018-11-20 Thread Tom Rini
On Tue, Nov 13, 2018 at 11:38:38AM +0100, Neil Armstrong wrote: > From: Jerome Brunet > > clk81 divider is 0 based (meaning that 0 value in the register means > divide by 1). Fix clk81 rate calculation for this. > > Signed-off-by: Jerome Brunet > Signed-off-by: Neil Armstrong Applied to

Re: [U-Boot] [U-Boot, v2, 4/4] cmd: adc: add an option to scan some or all available channels

2018-11-20 Thread Tom Rini
On Mon, Nov 12, 2018 at 02:04:01PM +0100, Fabrice Gasnier wrote: > Add new option to 'adc' command to do a single scan of: > - some channel(s), using mask argument > - all channels available on an ADC device (when optional mask is omitted). > > Signed-off-by: Fabrice Gasnier > Reviewed-by:

Re: [U-Boot] [U-Boot, v2, 3/4] cmd: adc: print single conversion also in uV

2018-11-20 Thread Tom Rini
On Mon, Nov 12, 2018 at 02:04:00PM +0100, Fabrice Gasnier wrote: > Use newly introduced adc_raw_to_uV() API to print conversion result > both as raw value and micro-volts by default. > > Signed-off-by: Fabrice Gasnier > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot,v2,2/4] cmd: adc: add info on channel mask

2018-11-20 Thread Tom Rini
On Mon, Nov 12, 2018 at 02:03:59PM +0100, Fabrice Gasnier wrote: > Enhance adc info command to report also the channel mask. > > Signed-off-by: Fabrice Gasnier > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v2, 1/4] dm: adc: add uclass's mask and conversion helpers

2018-11-20 Thread Tom Rini
On Mon, Nov 12, 2018 at 02:03:58PM +0100, Fabrice Gasnier wrote: > Add two functions to ADC uclass's: > - adc_raw_to_uV() to ease ADC raw value conversion to microvolts > - adc_channel_mask() to get channels on consumer side > > Signed-off-by: Fabrice Gasnier > Reviewed-by: Simon Glass

Re: [U-Boot] SWUpdate - U-Boot environment library dependency

2018-11-20 Thread Simon Goldschmidt
On 04.09.2018 12:30, Andreas Reichel wrote: Hi all, as Stefano Babic was so friendly and pointed out a few things already, we come the following problematic points: For SWupdate to access U-Boot's environment, it uses code from U-Boot. Before 2015, fw_env.c was copied - hence out of version

Re: [U-Boot] [PATCH u-boot 13/19] ARM: meson: rework soc arch file to prepare for new SoC

2018-11-20 Thread Loic Devulder
Hi Neil, On 11/9/18 4:26 PM, Neil Armstrong wrote: > From: Jerome Brunet > > We are about to add support for the Amlogic AXG SoC. While very close to > the Gx SoC family, we will need to handle a few thing which are different > in this SoC. Rework the meson arch directory to prepare for this. >

Re: [U-Boot] [PATCH u-boot 17/19] board: amlogic: add support for S400 board

2018-11-20 Thread Loic Devulder
Hi Neil, On 11/9/18 4:26 PM, Neil Armstrong wrote: > The S400 board is the Amlogic AXG SoC reference board including : > - Amlogic A113DX ARM Cortex-A53 quad-core SoC @ 1.2GHz > - 1GB DDR4 SDRAM > - 10/100 Ethernet > - 2 x USB 2.0 Host > - eMMC > - Infrared receiver > - SDIO WiFi Module >

Re: [U-Boot] [PATCH v2 5/5] x86: acpi: Generate SPCR table

2018-11-20 Thread Andy Shevchenko
On Thu, Nov 15, 2018 at 09:19:38PM +0100, Alexander Graf wrote: > On 15.11.18 20:43, Andy Shevchenko wrote: > > On Thu, Nov 15, 2018 at 8:27 PM Alexander Graf wrote: > >> On 15.11.18 18:58, Andy Shevchenko wrote: > >>> Microsoft specifies a SPCR (Serial Port Console Redirection Table) [1]. > >>>

Re: [U-Boot] [RFC] fit: include uncompression into fit_image_load

2018-11-20 Thread Simon Goldschmidt
On Fri, Nov 16, 2018 at 3:05 AM Simon Glass wrote: > > Hi, > > On 22 October 2018 at 11:55, Simon Goldschmidt > wrote: > > On 22.10.2018 19:49, Simon Glass wrote: > >> > >> Hi Simon, > >> > >> On 19 October 2018 at 00:33, Simon Goldschmidt > >> wrote: > >>> > >>> On 19.10.2018 05:25, Simon

Re: [U-Boot] [PATCH] arm: socfpga: crc-protect SPL on warm boot

2018-11-20 Thread Simon Goldschmidt
On 20.11.2018 20:33, Marek Vasut wrote: On 11/20/2018 08:22 PM, Simon Goldschmidt wrote: From: Simon Goldschmidt On socfpga gen5, a warm reboot from Linux currently triggers a warm reset via reset manager ctrl register. This currently leads to the boot rom just jumping to onchip ram

Re: [U-Boot] [PATCH v2 5/5] x86: acpi: Generate SPCR table

2018-11-20 Thread Andy Shevchenko
On Sun, Nov 18, 2018 at 08:37:20PM +0800, Bin Meng wrote: > Hi Andy, > > On Fri, Nov 16, 2018 at 1:59 AM Andy Shevchenko > wrote: > > > > Microsoft specifies a SPCR (Serial Port Console Redirection Table) [1]. > > Let's provide it in U-Boot. > > > > [1] > >

Re: [U-Boot] [U-Boot, 1/1] fs: fat: validate sector and cluster size

2018-11-20 Thread Tom Rini
On Tue, Nov 20, 2018 at 09:29:34PM +0100, Heinrich Schuchardt wrote: > On 11/20/18 3:56 PM, Tom Rini wrote: > > On Wed, Oct 31, 2018 at 09:46:36PM +0100, Heinrich Schuchardt wrote: > > > >> In the rest of the FAT driver we want to be able to rely on the fact that > >> the cluster size is a power

Re: [U-Boot] [U-Boot, 1/1] fs: fat: validate sector and cluster size

2018-11-20 Thread Heinrich Schuchardt
On 11/20/18 3:56 PM, Tom Rini wrote: > On Wed, Oct 31, 2018 at 09:46:36PM +0100, Heinrich Schuchardt wrote: > >> In the rest of the FAT driver we want to be able to rely on the fact that >> the cluster size is a power of two. So let's check that both the sector >> size and the number of sectors

Re: [U-Boot] [PATCH] arm: socfpga: crc-protect SPL on warm boot

2018-11-20 Thread Marek Vasut
On 11/20/2018 08:22 PM, Simon Goldschmidt wrote: > From: Simon Goldschmidt > > On socfpga gen5, a warm reboot from Linux currently triggers a warm > reset via reset manager ctrl register. > > This currently leads to the boot rom just jumping to onchip ram > executing the SPL that is supposed to

Re: [U-Boot] [PATCH v3 1/5] usb: Introduce CONFIG_SPL_DM_USB

2018-11-20 Thread Marek Vasut
On 11/20/2018 08:28 PM, Sven Schwermer wrote: > Hi, > >> OK, can you resend the series one more time ? The patches somehow >> disintegrated and I'm not having 3/5. Did you use git send-email ? > > See https://patchwork.ozlabs.org/patch/176 for part 3. > > I used imap-send, I think my mailer

Re: [U-Boot] [PATCH v3 2/5] usb: am335x_evm: Disable CONFIG_SPL_DM_USB

2018-11-20 Thread Marek Vasut
On 11/20/2018 09:01 PM, Sven Schwermer wrote: >> Well, the easiest test might be to run this through buildman, since it >> reports if there was any size increase for any board. > > Isn’t that run during the Travis CI builds? If so, I’ve done it: >

Re: [U-Boot] [PATCH v3 2/5] usb: am335x_evm: Disable CONFIG_SPL_DM_USB

2018-11-20 Thread Sven Schwermer
> Well, the easiest test might be to run this through buildman, since it > reports if there was any size increase for any board. Isn’t that run during the Travis CI builds? If so, I’ve done it: https://travis-ci.org/svenschwermer/u-boot/builds/456862718 Sven

Re: [U-Boot] [PATCH v3 1/5] usb: Introduce CONFIG_SPL_DM_USB

2018-11-20 Thread Sven Schwermer
Hi, > OK, can you resend the series one more time ? The patches somehow > disintegrated and I'm not having 3/5. Did you use git send-email ? See https://patchwork.ozlabs.org/patch/176 for part 3. I used imap-send, I think my mailer might have slaughtered the threading. Let me know if I

[U-Boot] [PATCH] arm: socfpga: crc-protect SPL on warm boot

2018-11-20 Thread Simon Goldschmidt
From: Simon Goldschmidt On socfpga gen5, a warm reboot from Linux currently triggers a warm reset via reset manager ctrl register. This currently leads to the boot rom just jumping to onchip ram executing the SPL that is supposed to still be there. This is because we tell the boot rom to do so

[U-Boot] [PATCH v2 5/5] rv1108: Add support for default distro_bootcmd

2018-11-20 Thread Otavio Salvador
This allow easier integration of RV1108 based boards on generic distributions and build systems. Signed-off-by: Otavio Salvador --- Changes in v2: None include/configs/rv1108_common.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/include/configs/rv1108_common.h

[U-Boot] [PATCH v2 4/5] rv1108: Make USB OTG functional

2018-11-20 Thread Otavio Salvador
Like it is done for other Rockchip SoCs, introduce a board_usb_init() function so that USB OTG can be functional on rv1108 too. Signed-off-by: Otavio Salvador --- Changes in v2: None arch/arm/dts/rv1108.dtsi | 45 ++- arch/arm/mach-rockchip/Makefile | 1 +

[U-Boot] [PATCH v2 3/5] rv1108: Enable eMMC support

2018-11-20 Thread Otavio Salvador
This adds the pinctrl handles to enable the use of eMMC on custom boards (as minievk) and makes it easier for later addition. Signed-off-by: Otavio Salvador --- Changes in v2: - split bounce buffer change on a new patch arch/arm/dts/rv1108.dtsi | 29 + 1 file

Re: [U-Boot] [PATCH 2/4] rv1108: Enable eMMC support

2018-11-20 Thread Otavio Salvador
On Mon, Nov 19, 2018 at 1:25 AM Andy Yan wrote: > It's better to spilt the dtsi and config header file as two patches. And > when you send different versions , you should mark your series with v1, > v2... v2 has been sent. Please take a look. -- Otavio Salvador O.S.

[U-Boot] [PATCH v2 2/5] rv1108: Enable BOUNCE_BUFFER

2018-11-20 Thread Otavio Salvador
In order to be able to build the Rockchip eMMC driver on rv1108, the BOUNCE_BUFFER option needs to be selected. Select it like it is done on the other Rockchip SoC common files. Signed-off-by: Otavio Salvador --- Changes in v2: - new patch include/configs/rv1108_common.h | 3 +++ 1 file

[U-Boot] [PATCH v2 1/5] clk_rv1108: Sync with vendor tree

2018-11-20 Thread Otavio Salvador
Make adjustments to the rv1108 clock driver in order to align it with the internal Rockchip version. Signed-off-by: Otavio Salvador --- Changes in v2: None .../include/asm/arch-rockchip/cru_rv1108.h| 143 +- drivers/clk/rockchip/clk_rv1108.c | 457 +-

[U-Boot] [PATCH v2 0/5] Submit upstream changes made while porting a customer board to mainline

2018-11-20 Thread Otavio Salvador
Those changes are intended to easy the process of using U-Boot mainline with rv1108 based boards. Please give them a good review and if possible, merge them as they are in use for some time on our custom tree and working fine. Changes in v2: - new patch - split bounce buffer change on a new

[U-Boot] [PATCH v2] ARM: vexpress_*_defconfig: Enable CMD_UBI support

2018-11-20 Thread Otavio Salvador
This allow for convenient use of QEMU machine to test loading of UBI filesystem. There are a couple of changes made together of this which are required: 1) The malloc must be at least 512 KiB to allow the use of UBI filesystem. We are going to enable it in a next patch. 2) MTD_DEVICE must

Re: [U-Boot] [PATCH] ARM: vexpress_*: Enable CMD_UBI support

2018-11-20 Thread Otavio Salvador
On Mon, Nov 19, 2018 at 8:10 AM Liviu Dudau wrote: > On Sun, Nov 18, 2018 at 06:48:07PM -0200, Otavio Salvador wrote: > > This allow for convenient use of QEMU machine to test loading of UBI > > filesystem. There are a couple of changes made together of this which > > are required: > > > > 1)

Re: [U-Boot] [PATCH v2 1/5] serial: Introduce ->getinfo() callback

2018-11-20 Thread Andy Shevchenko
On Thu, Nov 15, 2018 at 11:45:32AM -0800, Simon Glass wrote: > On 15 November 2018 at 09:58, Andy Shevchenko > wrote: > > +/* REVISIT: ACPI GAS specification implied */ > > +struct serial_device_info { > > + unsigned int baudrate; > > + u8 addr_space; /* 0 - MMIO, 1 - IO */

  1   2   3   >