[U-Boot] [PATCH 1/1] efi_loader: efi_connect_controller() use %pD

2018-12-09 Thread Heinrich Schuchardt
EFI_ENTRY in efi_connect_controller() should use %pD to print the remaining device path. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index

[U-Boot] [PATCH v4 23/25] cmd: nand/sf: isolate legacy code

2018-12-09 Thread Miquel Raynal
The 'sf' command is not supposed to rely on the MTD stack, but both 'sf' and 'nand' commands use helpers located in mtd_uboot.c. Despite their location, these functions do not depend at all on the MTD stack. This file (drivers/mtd/mtd_uboot.c) is only compiled if CONFIG_MTD is selected, which is

[U-Boot] [PATCH v4 25/25] mtd: Makefile: deep cleanup

2018-12-09 Thread Miquel Raynal
Move MTD-related lines out of the root Makefile. Put them in their respective directories. Enclose some of these new lines to skip them when building the SPL. MTD core files and some MTD device drivers are compiled in a mtd.o object and included in the final object only if MTD support is required

[U-Boot] [PATCH v4 18/25] mtd: nand: add includes in NAND core to avoid warnings

2018-12-09 Thread Miquel Raynal
Because of the include's game, when some files are compiled for a SPI NAND device, no warning appears. But when it is for a raw NAND device, GCC complains. Fix these warning by including . Signed-off-by: Miquel Raynal Reviewed-by: Boris Brezillon --- drivers/mtd/nand/bbt.c | 1 +

[U-Boot] [PATCH v5 9/9] tftp: prevent overwriting reserved memory

2018-12-09 Thread Simon Goldschmidt
This fixes CVE-2018-18439 ("insufficient boundary checks in network image boot") by using lmb to check for a valid range to store received blocks. Signed-off-by: Simon Goldschmidt --- Changes in v5: None Changes in v4: - this was patch 8, is now patch 7 - lines changed because v3 patch 7 got

[U-Boot] [PATCH v5 8/9] lmb: remove unused extern declaration

2018-12-09 Thread Simon Goldschmidt
lmb.h includes an extern declaration of "struct lmb lmb;" which is not used anywhere, so remove it. Signed-off-by: Simon Goldschmidt --- Changes in v5: None Changes in v4: None Changes in v2: - this patch is new in v2 include/lmb.h | 2 -- 1 file changed, 2 deletions(-) diff --git

[U-Boot] [PATCH v5 6/9] fs: prevent overwriting reserved memory

2018-12-09 Thread Simon Goldschmidt
This fixes CVE-2018-18440 ("insufficient boundary checks in filesystem image load") by using lmb to check the load size of a file against reserved memory addresses. Signed-off-by: Simon Goldschmidt --- Changes in v5: None Changes in v4: None Changes in v2: None fs/fs.c | 56

[U-Boot] [PATCH v5 7/9] bootm: use new common function lmb_init_and_reserve

2018-12-09 Thread Simon Goldschmidt
This reduces duplicate code only. Signed-off-by: Simon Goldschmidt --- Changes in v5: None Changes in v4: None Changes in v2: None common/bootm.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/common/bootm.c b/common/bootm.c index 8bf84ebcb7..31e4f0f794 100644 ---

[U-Boot] [PATCH v4 02/25] mtd: rename CONFIG_MTD -> CONFIG_DM_MTD

2018-12-09 Thread Miquel Raynal
CONFIG_MTD must be reserved for the MTD core. Like any other subsystem, prefix the symbol by DM when it comes to DM support. Signed-off-by: Miquel Raynal Reviewed-by: Boris Brezillon --- configs/10m50_defconfig| 2 +- configs/3c120_defconfig

[U-Boot] [PATCH v4 13/25] mtd: ensure CMD_NAND is compiled when its options are selected

2018-12-09 Thread Miquel Raynal
In some files, options of CMD_NAND are selected but not the command itself. Fix this inconsistency. Signed-off-by: Miquel Raynal Reviewed-by: Boris Brezillon --- configs/apf27_defconfig | 1 + configs/aristainetos2_defconfig | 1 +

[U-Boot] [PATCH v4 22/25] cmd: mtdparts: Kconfig: join mtdparts command entry with its options

2018-12-09 Thread Miquel Raynal
Move the Kconfig entry of the option right after the entry of the mtdparts command. Signed-off-by: Miquel Raynal --- cmd/Kconfig | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index bf9cc0c52d..22e9807aea 100644 ---

[U-Boot] [PATCH v4 24/25] cmd: make MTD commands depend on MTD

2018-12-09 Thread Miquel Raynal
Defconfigs have been fixed, now we can add proper dependencies in Kconfig. SPI FLASH is still not dependent on MTD (deeper rework needed). Signed-off-by: Miquel Raynal --- cmd/Kconfig | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index

[U-Boot] [PATCH v4 16/25] configs: remove raw NAND core from k2g defconfigs

2018-12-09 Thread Miquel Raynal
Due to previous Makefile organization, the raw NAND subdirectory was not compiled in if CMD_NAND was not enabled. Because the Denali driver does not compile with these boards (undefined environment offset), remove the dependency within the defconfig over the controller driver (was ignored anyway

[U-Boot] [PATCH v4 12/25] mtd: ensure MTD and NOR drivers are compiled with ENV_IS_IN_FLASH

2018-12-09 Thread Miquel Raynal
MTD and NOR flash support must be enabled when the environment is in NOR. Signed-off-by: Miquel Raynal --- configs/armadillo-800eva_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/armadillo-800eva_defconfig b/configs/armadillo-800eva_defconfig index

Re: [U-Boot] ARM: rockchip: Add rv1108-elgin-r1 board support

2018-12-09 Thread Philipp Tomsich
> Add the initial support for Elgin R1 board, which is based on the > RV1108 SoC and has the following features currently supported in > U-Boot: > > - UART > - eMMC > - USB > > Signed-off-by: Otavio Salvador > --- > > arch/arm/dts/Makefile | 1 + >

[U-Boot] [PATCH v4 14/25] mtd: ensure MTD is compiled when CMD_MTDPARTS is selected

2018-12-09 Thread Miquel Raynal
MTD support must be enabled when using mtdparts. Indeed, functions like get_mtd_info(), get_mtd_device() and put_mtd_device() are in drivers/mtd/mtd_uboot.c and are built only with CONFIG_MTD. Signed-off-by: Miquel Raynal Reviewed-by: Boris Brezillon ---

[U-Boot] [PATCH v4 20/25] mtd: nor: NOR flashes depend on MTD

2018-12-09 Thread Miquel Raynal
A NOR flash needs the MTD core, ensure this dependency is met by adding a "depends on" in Kconfig. This is fine since defconfigs have been fixed. Signed-off-by: Miquel Raynal --- drivers/mtd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig

[U-Boot] [PATCH v4 17/25] configs: remove MTD support from bcm11130 and M54418TWR defconfigs

2018-12-09 Thread Miquel Raynal
While the right Kconfig entries were selected, because of the missing CMD_NAND symbol the raw NAND core was never compiled. Remove it from the defconfigs otherwise the build will fail. Signed-off-by: Miquel Raynal --- configs/M54418TWR_nand_mii_defconfig | 1 -

[U-Boot] [PATCH v4 21/25] mtd: spi: SPI_FLASH_MTD depends on MTD

2018-12-09 Thread Miquel Raynal
It is already the case that all defconfigs with SPI_FLASH_MTD also declare using MTD, but let's make this consistent and enforce it in Kconfig. Most of the time SPI_FLASH_MTD is used in conjunction with UBI, which already depends on MTD. Suggested-by: Vignesh R Signed-off-by: Miquel Raynal ---

Re: [U-Boot] [PATCH] test: hexdump: fix misplaced return

2018-12-09 Thread Simon Goldschmidt
Am 05.12.2018 um 13:55 schrieb Simon Glass: On Tue, 4 Dec 2018 at 13:30, Simon Goldschmidt wrote: One of the hexdump tests in test/lib/hexdump.c returns right at the start of the function without testing anything. Fix this by moving the 'return 0;' statement to the end of the function.

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

2018-12-09 Thread Lukasz Majewski
Dear Marek, The following changes since commit 532ededd5cbff3d55e8c8e5b6377cec9e90f2152: board: ti: am57xx: remove USB platform code (2018-12-07 16:31:46 +0100) are available in the git repository at: git://git.denx.de/u-boot-dfu.git for you to fetch changes up to

[U-Boot] [PATCH v4 06/25] mtd: ensure MTD is compiled when there is a SPI NOR flash using MTD

2018-12-09 Thread Miquel Raynal
MTD must be enabled when there is a SPI NOR flash using the SPI_FLASH_MTD config entry. Signed-off-by: Miquel Raynal Reviewed-by: Boris Brezillon --- configs/ap121_defconfig | 1 + configs/ap143_defconfig | 1 + configs/bk4r1_defconfig | 1 +

[U-Boot] [PATCH v4 07/25] mtd: ensure UBI is compiled when using fastmap

2018-12-09 Thread Miquel Raynal
UBI must be enabled when using fastmap, reflect this is defconfigs. Signed-off-by: Miquel Raynal Reviewed-by: Boris Brezillon --- configs/am335x_igep003x_defconfig | 1 + configs/aristainetos2_defconfig | 1 + configs/aristainetos2b_defconfig | 1 +

[U-Boot] ARP Retry count exceeded

2018-12-09 Thread den4ya
God Day, everyone! I have a problem with the Device on allwinner A20 processor and realtek rtl8201 network chip. I was able to run linux. The network works great under Linux. Now I'm trying to configure U-boot to load the kernel via tftp server. I created my own my_defconfig file and compiled

Re: [U-Boot] [PATCH] net: remove duplicate definition of ETHADDR_WILDCARD

2018-12-09 Thread Simon Goldschmidt
Am 22.11.2018 um 16:58 schrieb Simon Goldschmidt: ETHADDR_WILDCARD is defined as the same value in both env_flags.h and env_callback.h As env_callback.h includes env_flags.h, remove the duplicate definition from env_callback.h Signed-off-by: Simon Goldschmidt --- include/env_callback.h | 2

Re: [U-Boot] [PATCH 1/2] net: designware: fix tx packet length

2018-12-09 Thread Simon Goldschmidt
Am 17.11.2018 um 17:02 schrieb Joe Hershberger: On Sat, Nov 17, 2018 at 3:25 AM Simon Goldschmidt wrote: The designware driver has a bug in setting the tx length into the dma descriptor: it always or's the length into the descriptor without zeroing out the length mask before. This results in

Re: [U-Boot] [PATCH] net: fix env flags for eth10addr and above

2018-12-09 Thread Simon Goldschmidt
Am 22.11.2018 um 17:06 schrieb Simon Goldschmidt: With CONFIG_REGEX enabled, ETHADDR_WILDCARD is set up for up to 10 interfaces (0..9) as the number can only have one digit. On boards with more than 10 interfaces, this leads to the protection and format checks being absent for eth10addr and

[U-Boot] [PATCH v4 03/25] mtd: rename CONFIG_MTD_DEVICE -> CONFIG_MTD

2018-12-09 Thread Miquel Raynal
Like in Linux, just use CONFIG_MTD to compile the MTD stack. Signed-off-by: Miquel Raynal Reviewed-by: Boris Brezillon --- cmd/Kconfig | 2 +- configs/10m50_defconfig | 2 +- configs/TQM834x_defconfig| 2

[U-Boot] [PATCH v4 05/25] mtd: ensure MTD/the raw NAND core are compiled when there is a NAND flash

2018-12-09 Thread Miquel Raynal
Both symbols must be enabled when there is a raw NAND driver selected. Also enable them when CONFIG_CMD_NAND is selected to avoid breaking things when we'll further rework the MTD dependency description. Signed-off-by: Miquel Raynal Reviewed-by: Boris Brezillon ---

[U-Boot] [PATCH v4 11/25] mtd: ensure MTD_RAW_NAND is compiled when ENV_IS_IN_NAND is selected

2018-12-09 Thread Miquel Raynal
Raw NAND support must be enabled when the environment is in NAND. Signed-off-by: Miquel Raynal Reviewed-by: Boris Brezillon --- configs/bk4r1_defconfig | 1 + configs/harmony_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/bk4r1_defconfig b/configs/bk4r1_defconfig

[U-Boot] [PATCH v4 09/25] mtd: ensure UBI is compiled when CMD_UBI is selected

2018-12-09 Thread Miquel Raynal
UBI must be enabled when CMD_UBI is used, this is mandatory and will later be reflected thanks to a "depends on" in Kconfig. But first, defconfigs needs to be fixed. Signed-off-by: Miquel Raynal Reviewed-by: Boris Brezillon --- configs/am335x_baltos_defconfig| 1 +

[U-Boot] [PATCH v4 08/25] mtd: ensure MTD is compiled when UBI is used

2018-12-09 Thread Miquel Raynal
MTD must be enabled when UBI is used, this is mandatory and will later be reflected thanks to a "depends on" in Kconfig. But first, defconfigs need to be fixed. Signed-off-by: Miquel Raynal Reviewed-by: Boris Brezillon --- configs/gardena-smart-gateway-mt7688-ram_defconfig | 1 +

[U-Boot] [PATCH v4 10/25] mtd: ensure UBI is compiled when ENV_IS_IN_UBI is selected

2018-12-09 Thread Miquel Raynal
UBI must be enabled when the environment is in UBI. Signed-off-by: Miquel Raynal Reviewed-by: Boris Brezillon --- configs/CHIP_pro_defconfig | 2 ++ env/Kconfig| 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/CHIP_pro_defconfig b/configs/CHIP_pro_defconfig index

[U-Boot] [PATCH v4 00/25] MTD defconfigs/Kconfigs/Makefiles heavy cleanup

2018-12-09 Thread Miquel Raynal
Hello, During my last project about SPI-NAND support in U-Boot, I discovered when modifying Makefiles a confusing organization where: * Sub-directories/files are compiled from the root Makefile * Commands are at the root of everything I sent a fist series a few weeks ago to move Makefile entries

[U-Boot] [PATCH v5 0/9] Fix CVE-2018-18440 and CVE-2018-18439

2018-12-09 Thread Simon Goldschmidt
This series fixes CVE-2018-18440 ("insufficient boundary checks in filesystem image load") by adding restrictions to the 'load' command and fixes CVE-2018-18439 ("insufficient boundary checks in network image boot") by adding restrictions to the tftp code. The functions from lmb.c are used to

[U-Boot] [PATCH] ARM: mvebu: restore license information in mv_ddr_plat.{c, h}

2018-12-09 Thread Chris Packham
This was unintentionally removed when syncing with upstream. Signed-off-by: Chris Packham --- drivers/ddr/marvell/a38x/mv_ddr_plat.c | 4 drivers/ddr/marvell/a38x/mv_ddr_plat.h | 5 + 2 files changed, 9 insertions(+) diff --git a/drivers/ddr/marvell/a38x/mv_ddr_plat.c

Re: [U-Boot] [PATCH 08/30] dm: sound: wm8994: Pass private data to internal functions

2018-12-09 Thread sjg
At present the driver-private data is global. To allow this code to be used with driver model, change it to pass the data down to each function. Use the name 'priv' consistently throughout. Also rename wm8994_update_bits() to wm8994_bic_or() which is more descriptive and shorter, thus breaking

Re: [U-Boot] [PATCH 16/30] dm: sound: max98095: Drop g_codec_info and g_max98095_info

2018-12-09 Thread sjg
These are only used in two functions so can be made local. Also change the first argument of max98095_do_init() to suit. Signed-off-by: Simon Glass --- drivers/sound/max98095.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) Applied to u-boot-dm/master

Re: [U-Boot] [PATCH 10/30] dm: sound: wm8994: Create a new common init function

2018-12-09 Thread sjg
With driver model we cannot pass in the global struct, but instead want to pass in the driver-private data. Split some of the code out of wm8994_init() to handle this. Signed-off-by: Simon Glass --- drivers/sound/wm8994.c | 56 +- 1 file changed, 33

Re: [U-Boot] [PATCH 12/30] dm: sound: max98095: Split out interface setup code

2018-12-09 Thread sjg
With driver model we want to do a minimal probe when the device is probed and then set up the codec interface later when a sound is actully played. Split this setup code out into its own function to help with this. Signed-off-by: Simon Glass --- drivers/sound/max98095.c | 36

Re: [U-Boot] [U-Boot, v5, 2/3] rockchip: rk3399-puma: defconfig: enable FAN53555 regulator driver

2018-12-09 Thread Philipp Tomsich
> With a driver for the FAN53555 regulator family available, let's > enable it for the RK3399-Q7 (which has two of these devices > on-module). > > We enable this for the full U-Boot stage only, as these regulators > provide a suitable default voltage and supply non-critical (i.e. > for booting

Re: [U-Boot] rockchip: rk322x: ram: enable DRAM init in SPL instead of TPL

2018-12-09 Thread Philipp Tomsich
> Patch for rk322x TPL is not merged, and only SPL is available now, > enable the sdram driver in SPL first. We should update back to TPL > after TPL is enabled for rk322x. > > Signed-off-by: Kever Yang > Reviewed-by: Philipp Tomsich > --- > > drivers/ram/rockchip/sdram_rk322x.c | 12

Re: [U-Boot] [U-Boot, v5, 3/3] rockchip: rk3399-puma: enable fan53555 regulators in DTS

2018-12-09 Thread Philipp Tomsich
> Now that we have FAN53555 support, we can enable the regulators in our > DTS. To make these easier to identify on the U-Boot commandline, we > rename them to the names of the voltage rails they control. > > Signed-off-by: Philipp Tomsich > --- > > Changes in v5: None > Changes in v4: None >

Re: [U-Boot] [PATCH 1/2] drivers: serial: Add SiFive UART driver

2018-12-09 Thread Bin Meng
Hi Anup, On Wed, Dec 5, 2018 at 2:29 PM Anup Patel wrote: > > This patch adds SiFive UART driver. The driver is 100% DM driver > and it determines input clock using clk framework. > > Signed-off-by: Anup Patel > --- > drivers/serial/Kconfig | 13 +++ > drivers/serial/Makefile|

Re: [U-Boot] [PATCH 2/2] riscv: qemu: Enable SiFive UART driver in defconfigs

2018-12-09 Thread Bin Meng
Hi Anup, On Wed, Dec 5, 2018 at 2:29 PM Anup Patel wrote: > > This patch enables SiFive UART driver in all QEMU RISC-V defconfigs. > > Signed-off-by: Anup Patel > --- > configs/qemu-riscv32_defconfig | 1 + > configs/qemu-riscv32_smode_defconfig | 1 + > configs/qemu-riscv64_defconfig

Re: [U-Boot] [PATCH 1/2] coreboot: only init usb if necessary

2018-12-09 Thread Bin Meng
On Fri, Nov 30, 2018 at 3:43 PM Christian Gmeiner wrote: > > Am Fr., 30. Nov. 2018 um 05:02 Uhr schrieb Bin Meng : > > > > From: Thomas RIENOESSL > > > > Up until now the call to initialize the USB subsystem was hardcoded > > for U-Boot running as a coreboot payload. This was used to enable > >

Re: [U-Boot] [PATCH v2 1/2] x86: Wrap calls to 8259 with CONFIG_I8259_PIC

2018-12-09 Thread Bin Meng
On Wed, Dec 5, 2018 at 10:01 PM Simon Glass wrote: > > On Thu, 29 Nov 2018 at 20:52, Bin Meng wrote: > > > > mask_irq(), unmask_irq() and specific_eoi() are provided by the > > i8259 PIC driver and should be wrapped with CONFIG_I8259_PIC. > > > > Signed-off-by: Bin Meng > > Tested-by: Hannes

Re: [U-Boot] [PATCH 2/2] efi: payload: only init usb if necessary

2018-12-09 Thread Bin Meng
On Fri, Nov 30, 2018 at 3:43 PM Christian Gmeiner wrote: > > Am Fr., 30. Nov. 2018 um 05:02 Uhr schrieb Bin Meng : > > > > Up until now the call to initialize the USB subsystem was hardcoded > > for U-Boot running as an EFI payload. This was used to enable the > > use of a USB keyboard in the

Re: [U-Boot] [PATCH v2 2/2] x86: kconfig: Allow board defconfig file to disable 8259 and APIC

2018-12-09 Thread Bin Meng
On Wed, Dec 5, 2018 at 10:01 PM Simon Glass wrote: > > On Thu, 29 Nov 2018 at 20:52, Bin Meng wrote: > > > > At present the Kconfig options (CONFIG_I8259_PIC and CONFIG_APIC) > > do not include a prompt message, which makes it impossible to > > be disabled from a board defconfig file. > > > >

Re: [U-Boot] [PATCH 01/30] sandbox: Increase the pre-relocation memory

2018-12-09 Thread sjg
This is close to full now, so increase it to avoid problems with adding more devices. Signed-off-by: Simon Glass --- Kconfig| 2 ++ configs/sandbox64_defconfig| 1 - configs/sandbox_defconfig | 1 - configs/sandbox_flattree_defconfig | 1 -

Re: [U-Boot] [PATCH 0/2] SiFive UART support

2018-12-09 Thread Bin Meng
Hi Anup, On Wed, Dec 5, 2018 at 2:29 PM Anup Patel wrote: > > This patchset adds SiFive UART driver for SiFive UART > found on SiFive boards. > > The driver is tested on QEMU sifive_u machine. In fact, > with this patchset same U-Boot binary boots on QEMU virt > machine and QEMU sifive_u machine

Re: [U-Boot] [PATCH] ARM: mvebu: restore license information in mv_ddr_plat.{c, h}

2018-12-09 Thread Tom Rini
On Mon, Dec 10, 2018 at 10:41:15AM +1300, Chris Packham wrote: > This was unintentionally removed when syncing with upstream. > > Signed-off-by: Chris Packham Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

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

2018-12-09 Thread Tom Rini
On Sun, Dec 09, 2018 at 11:15:46AM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the 2nd batch of Marvell / MVEBU patches: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list

Re: [U-Boot] [PATCH 17/30] dm: sound: wm8994: Drop wm8994_i2c_init()

2018-12-09 Thread sjg
This function has only one line in it. Drop it. Signed-off-by: Simon Glass --- drivers/sound/wm8994.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) Applied to u-boot-dm/master ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] ARM: rockchip: rv1108: Fix booting with initramfs

2018-12-09 Thread Philipp Tomsich
> We move the ramdisk_addr_r to 0x6800 and disable the initrd and > fdt relocation, so the initramfs works out of box. > > Signed-off-by: Otavio Salvador > Reviewed-by: Philipp Tomsich > --- > > include/configs/rv1108_common.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >

Re: [U-Boot] [U-Boot,v2,1/2] bootcount: add uclass for bootcount

2018-12-09 Thread Philipp Tomsich
> The original bootcount methods do not provide an interface to DM and > rely on a static configuration for I2C devices (e.g. bus, chip-addr, > etc. are configured through defines statically). On a modern system > that exposes multiple devices in a DTS-configurable way, this is less > than

Re: [U-Boot] [U-Boot,v5,1/3] power: add FAN53555 family support

2018-12-09 Thread Philipp Tomsich
> This adds a driver for the FAN53555 family of regulators and wraps it > in a PMIC implementation. > > While these devices support a 'normal' and 'suspend' mode (controlled > via an external pin) to switch between two programmable voltages, this > incarnation of the driver assumes that the

Re: [U-Boot] [U-Boot, v2, 2/2] bootcount: add a DM RTC backing store for bootcount

2018-12-09 Thread Philipp Tomsich
> This implements a driver using a RTC-based backing store for the DM > bootcount implementation. The node configuring this feature will be > compatible with 'u-boot,bootcount-rtc' and the underlying RTC device > shall be reference through the property 'rtc'. An offset into the RTC > device's

[U-Boot] [PATCH 2/4] Convert CONFIG_BOARD_TYPES to Kconfig

2018-12-09 Thread Simon Glass
This converts the following to Kconfig: CONFIG_BOARD_TYPES Signed-off-by: Simon Glass --- arch/arm/mach-exynos/Kconfig | 8 configs/odroid-xu3_defconfig | 2 +- configs/odroid_defconfig | 2 +- include/configs/axs10x.h | 1 - include/configs/hsdk.h | 1 -

[U-Boot] [PATCH 4/4] exynos: Convert to use CONFIG_BLK

2018-12-09 Thread Simon Glass
Move all exynos boards over to use CONFIG_BLK. Signed-off-by: Simon Glass --- arch/arm/mach-exynos/Kconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index 33323d17f4b..f3e43434bc3 100644 ---

[U-Boot] [PATCH 3/4] exynos: Drop duplicate 'model' line

2018-12-09 Thread Simon Glass
At present the model is shown twice, once in the generic code and once in the exynos code. Drop the latter. Signed-off-by: Simon Glass --- board/samsung/common/board.c | 14 ++ include/samsung/misc.h | 2 -- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git

[U-Boot] [PATCH 1/4] snow: Expand U-Boot size

2018-12-09 Thread Simon Glass
Now that we have EFI, etc. enabled, U-Boot is larger than it was. Expand the region allocated for it. Signed-off-by: Simon Glass --- arch/arm/dts/exynos5250-snow.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/exynos5250-snow.dts

Re: [U-Boot] [PATCH 1/2] net: designware: fix tx packet length

2018-12-09 Thread Philipp Tomsich
> On 17.11.2018, at 10:24, Simon Goldschmidt > wrote: > > The designware driver has a bug in setting the tx length into the dma > descriptor: it always or's the length into the descriptor without > zeroing out the length mask before. > > This results in occasional packets being transmitted

Re: [U-Boot] [PATCH 04/30] dm: sound: Rename en_sound_codec to sound_codec

2018-12-09 Thread sjg
The en_ prefix is confusing and not needed. Drop it. Signed-off-by: Simon Glass --- include/sound.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Applied to u-boot-dm/master ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH 03/30] dm: sound: samsung: Make local function static

2018-12-09 Thread sjg
Several functions are not exported from this file. Make them static so this is clear. Signed-off-by: Simon Glass --- drivers/sound/samsung-i2s.c | 8 drivers/sound/wm8994.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) Applied to u-boot-dm/master

Re: [U-Boot] [PATCH 13/30] dm: sound: wm8994: Drop global i2c-address variable

2018-12-09 Thread sjg
We can put this in the private structure and avoid a global. Signed-off-by: Simon Glass --- drivers/sound/wm8994.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) Applied to u-boot-dm/master ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH 06/30] dm: sound: samsung: Rename i2stx_info to samsung_i2s_priv

2018-12-09 Thread sjg
This struct is only used by the Samsung I2C driver and should move into that driver. For now, rename it so it is clear that is driver-private info. Signed-off-by: Simon Glass --- drivers/sound/samsung-i2s.c | 6 +++--- drivers/sound/sound-i2s.c | 10 +- include/i2s.h |

Re: [U-Boot] [PATCH 02/30] snow: Expand U-Boot size

2018-12-09 Thread sjg
Now that we have EFI, etc. enabled, U-Boot is larger than it was. Expand the region allocated for it. Signed-off-by: Simon Glass --- arch/arm/dts/exynos5250-snow.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-dm/master

Re: [U-Boot] [PATCH 09/30] dm: sound: max98095: Pass private data to internal functions

2018-12-09 Thread sjg
At present the driver-private data is global. To allow this code to be used with driver model, change it to pass the data down to each function. Use the name 'priv' consistently throughout. Also rename max98095_update_bits() to max98095_bic_or() which is more descriptive and shorter, thus

Re: [U-Boot] [PATCH 05/30] dm: sound: Drop unused pre-device-tree code

2018-12-09 Thread sjg
CONFIG_OF_CONTROL is enabled for all boards that use sound, so remove the dead code. Signed-off-by: Simon Glass --- drivers/sound/max98095.c | 6 -- drivers/sound/wm8994.c | 6 -- 2 files changed, 12 deletions(-) Applied to u-boot-dm/master

[U-Boot] [PATCH] test: dm: regmap: Fix the long test delay

2018-12-09 Thread Simon Glass
At present one of the regmap tests takes 5 seconds to run since it waits for a timeout. This should be handled using sandbox_timer_add_offset() which advances time for test purposes. This requires a little change to make the regmap_read_poll_timeout() testable. Update the macro and the test.

Re: [U-Boot] ARM: rockchip: rv1108: Fix booting with initramfs

2018-12-09 Thread Tom Rini
On Mon, Dec 10, 2018 at 01:01:52AM +0100, Philipp Tomsich wrote: > > We move the ramdisk_addr_r to 0x6800 and disable the initrd and > > fdt relocation, so the initramfs works out of box. > > > > Signed-off-by: Otavio Salvador > > Reviewed-by: Philipp Tomsich > > --- > > > >

Re: [U-Boot] ARM: rockchip: rv1108: Fix booting with initramfs

2018-12-09 Thread Philipp Tomsich
Tom, On 10.12.2018, at 01:28, Tom Rini wrote: > > On Mon, Dec 10, 2018 at 01:01:52AM +0100, Philipp Tomsich wrote: >>> We move the ramdisk_addr_r to 0x6800 and disable the initrd and >>> fdt relocation, so the initramfs works out of box. >>> >>> Signed-off-by: Otavio Salvador >>>

[U-Boot] Please pull u-boot-x86

2018-12-09 Thread Bin Meng
Hi Tom, This includes the following changes for x86: - Enable RTC for Intel Tangier - Wrap the call to 8259 PIC with Kconfig options for old targets without 8259 - Warp the call to USB init with Kconfg options for coreboot & EFI payload The following changes since commit

Re: [U-Boot] [PATCH 11/30] dm: sound: wm899c: Split out interface setup code

2018-12-09 Thread sjg
With driver model we want to do a minimal probe when the device is probed and then set up the codec interface later when a sound is actully played. Split this setup code out into its own function to help with this. Signed-off-by: Simon Glass --- drivers/sound/wm8994.c | 34

Re: [U-Boot] [PATCH 07/30] dm: sound: Drop codec_type

2018-12-09 Thread sjg
This field is not really used. It is always set to a known value. Drop it to simplify the code. Signed-off-by: Simon Glass --- drivers/sound/max98095.c | 14 -- drivers/sound/wm8994.c | 10 -- include/sound.h | 9 - 3 files changed, 33 deletions(-)

Re: [U-Boot] [PATCH 14/30] dm: sound: max98095: Drop global i2c-address variable

2018-12-09 Thread sjg
We can put this in the private structure and avoid a global. Signed-off-by: Simon Glass --- drivers/sound/max98095.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) Applied to u-boot-dm/master ___ U-Boot mailing list

[U-Boot] Port old board to Kconfig

2018-12-09 Thread Tim Godfrey
Hello! I am working with a VAR-SOM-AM43 dev board from a company called Variscite. The company doesn't support u-boot builds for this board after the migration to Kconfig (maintenance happens on a 2014.07 branch), and I would like to port the board to more recent u-boot sources. The SoC on the

Re: [U-Boot] ARM: rockchip: rv1108: Fix booting with initramfs

2018-12-09 Thread Tom Rini
On Mon, Dec 10, 2018 at 01:38:36AM +0100, Philipp Tomsich wrote: > Tom, > > On 10.12.2018, at 01:28, Tom Rini wrote: > > > > On Mon, Dec 10, 2018 at 01:01:52AM +0100, Philipp Tomsich wrote: > >>> We move the ramdisk_addr_r to 0x6800 and disable the initrd and > >>> fdt relocation, so the

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

2018-12-09 Thread Chris Packham
Hi Tom, Stefan, On Sun, Dec 9, 2018 at 11:16 PM Stefan Roese wrote: > > Hi Tom, > > please pull the 2nd batch of Marvell / MVEBU patches: > > > - Sync DDR training with Marvell code for Armada 38x by Chris > - Misc updates to

[U-Boot] [PATCH] efi_loader: Make RTS relocation more robust

2018-12-09 Thread Alexander Graf
While changing the RTS alignment to 64KB in commit 7a82c3051c8f ("efi_loader: Align runtime section to 64kb") the relocation code started to break. The reason for that is that we didn't actually look at the real relocation data. We merely took the RUNTIME_CODE section as a hint and started to

Re: [U-Boot] [PATCH 18/30] dm: sound: Fix up header ordering

2018-12-09 Thread sjg
Tidy up the ordering of header files in the sounds files. Signed-off-by: Simon Glass --- drivers/sound/max98095.c| 11 +-- drivers/sound/samsung-i2s.c | 36 ++-- drivers/sound/wm8994.c | 8 3 files changed, 27 insertions(+), 28

Re: [U-Boot] [PATCH 15/30] dm: sound: wm8994: Drop g_codec_info and g_wm8994_info

2018-12-09 Thread sjg
These are only used in two functions so can be made local. Signed-off-by: Simon Glass --- drivers/sound/wm8994.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) Applied to u-boot-dm/master ___ U-Boot mailing list

[U-Boot] [PATCH] board: ge: Use correct vpd_reader callback signature

2018-12-09 Thread Sebastian Reichel
Fix compiler warning due to incorrect vpd_callback function signature. Signed-off-by: Sebastian Reichel --- board/ge/mx53ppd/mx53ppd.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/board/ge/mx53ppd/mx53ppd.c b/board/ge/mx53ppd/mx53ppd.c index

Re: [U-Boot] [PATCH 1/2] net: designware: fix tx packet length

2018-12-09 Thread Marek Vasut
On 12/09/2018 09:50 PM, Simon Goldschmidt wrote: > Am 17.11.2018 um 17:02 schrieb Joe Hershberger: >> On Sat, Nov 17, 2018 at 3:25 AM Simon Goldschmidt >> wrote: >>> >>> The designware driver has a bug in setting the tx length into the dma >>> descriptor: it always or's the length into the

Re: [U-Boot] [PATCH] drivers: block: Allow to cache 4K blocks by default

2018-12-09 Thread Marek Vasut
On 12/09/2018 09:55 AM, Jan Kiszka wrote: > The default settings of the block cache so far only allow to hold single > 1K blocks. However, larger filesystems tend to use 4K. Failing to cache > those massively degrades access performance unless you manually tune the > cache first. This is not

[U-Boot] [PULL] u-boot-usb/master

2018-12-09 Thread Marek Vasut
DWC3 and UDC cleanup The following changes since commit 57dbc151437b36cc1105857d222df28b095236d7: rockchip: rk3399: Add MAINTAINERS entry (2018-12-06 10:24:12 -0500) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to

[U-Boot] [PULL] u-boot-socfpga/master

2018-12-09 Thread Marek Vasut
The following changes since commit 57dbc151437b36cc1105857d222df28b095236d7: rockchip: rk3399: Add MAINTAINERS entry (2018-12-06 10:24:12 -0500) are available in the Git repository at: git://git.denx.de/u-boot-socfpga.git master for you to fetch changes up to

[U-Boot] [PULL] u-boot-sh/master

2018-12-09 Thread Marek Vasut
The following changes since commit 57dbc151437b36cc1105857d222df28b095236d7: rockchip: rk3399: Add MAINTAINERS entry (2018-12-06 10:24:12 -0500) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch changes up to

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

2018-12-09 Thread Marek Vasut
On 12/09/2018 03:50 PM, Lukasz Majewski wrote: > Dear Marek, > > The following changes since commit > 532ededd5cbff3d55e8c8e5b6377cec9e90f2152: > > board: ti: am57xx: remove USB platform code (2018-12-07 16:31:46 > +0100) > > are available in the git repository at: > >

Re: [U-Boot] [RESEND PATCH v3 01/19] cmd: Kconfig: Do not include EEPROM if DM_I2C is used without DM_I2C_COMPAT

2018-12-09 Thread Heiko Schocher
Hello Jean-Jacques, Am 07.12.2018 um 14:50 schrieb Jean-Jacques Hiblot: The implementation of the EEPROM commands does not support the DM I2C API. Prevent compilation breakage by not enabling it if the non-DM API is not available (if DM_I2C is used without DM_I2C_COMPAT) Signed-off-by:

Re: [U-Boot] [RESEND PATCH v3 02/19] dm: i2c: Make i2c_get_chip_for_busnum() fail if the chip is not detected

2018-12-09 Thread Heiko Schocher
Hello Jean-Jacques, Am 07.12.2018 um 14:50 schrieb Jean-Jacques Hiblot: i2c_get_chip_for_busnum() really should check the presence of the chip on the bus. Most of the users of this function assume that this is done. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: - removed commit

Re: [U-Boot] [RESEND PATCH v3 03/19] dm: device: Allow using uclass_find_device_by_seq() without OF_CONTROL

2018-12-09 Thread Heiko Schocher
Hello Jean-Jacques, Am 07.12.2018 um 14:50 schrieb Jean-Jacques Hiblot: If OF_CONTROL is not enabled and DM_SEQ_ALIAS is enabled, we must assign an alias (requested sequence number) to devices that belongs to a class with the DM_UC_FLAG_SEQ_ALIAS flag. Otherwise uclass_find_device_by_seq()

Re: [U-Boot] [RESEND PATCH v3 04/19] configs: am335x: am57x: dra7x: Enable CONFIG_SPL_DM_SEQ_ALIAS

2018-12-09 Thread Heiko Schocher
Hello Jean-Jacques, Am 07.12.2018 um 14:50 schrieb Jean-Jacques Hiblot: Those platforms need CONFIG_SPL_DM_SEQ_ALIAS because they enable both DM_I2C and SPL_DM. Without CONFIG_SPL_DM_SEQ_ALIAS, it is not possible to get the I2C bus with i2c_get_chip_for_busnum(). Signed-off-by: Jean-Jacques

Re: [U-Boot] [RESEND PATCH v3 05/19] i2c: omap24xx_i2c: Move away from SoC specific headers for reg offset

2018-12-09 Thread Heiko Schocher
Hello Jean-Jacques, Am 07.12.2018 um 14:50 schrieb Jean-Jacques Hiblot: From: Vignesh R Move away from SoC specific headers to handle different register layout. Instead use driver data to get appropriate register layouts like in the kernel. While at it, perform some mostly cosmetic

Re: [U-Boot] [RESEND PATCH v3 06/19] i2c: omap24xx_i2c: Use platdata to probe the device

2018-12-09 Thread Heiko Schocher
Hello Jean-Jacques, Am 07.12.2018 um 14:50 schrieb Jean-Jacques Hiblot: This allows the driver to be used without OF_CONTROL. AM335x support DM_SPL but does not use SPL_OF_CONTROL. Enabling DM_I2C in SPL thus requires that the omap I2C can be passed platdata. Signed-off-by: Jean-Jacques Hiblot

Re: [U-Boot] [RESEND PATCH v3 07/19] am335x: Register the I2C controllers if DM_I2C is used.

2018-12-09 Thread Heiko Schocher
Hello Jean-Jacques, Am 07.12.2018 um 14:50 schrieb Jean-Jacques Hiblot: If DM_I2C is used , the I2C controllers must be registered as U_BOOT_DEVICE because OF_CONTROL is not used in the SPL. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None

Re: [U-Boot] [RESEND PATCH v3 08/19] dts: am43x: omap5: Add node for I2C in SPL

2018-12-09 Thread Heiko Schocher
Hello Jean-Jacques, Am 07.12.2018 um 14:50 schrieb Jean-Jacques Hiblot: Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/dts/am437x-gp-evm-u-boot.dtsi | 4 arch/arm/dts/omap5-u-boot.dtsi | 4 2 files

Re: [U-Boot] [RESEND PATCH v3 09/19] omap: detect the board after DM is available

2018-12-09 Thread Heiko Schocher
Hello Jean-Jacques, Am 07.12.2018 um 14:50 schrieb Jean-Jacques Hiblot: In order to use DM_I2C, we need to move the board detection after the early SPL initialization. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: None Changes in v2: None arch/arm/mach-omap2/am33xx/board.c | 9

Re: [U-Boot] [RESEND PATCH v3 10/19] power: make most tps drivers and the twl4030 driver compatible with DM_I2C

2018-12-09 Thread Heiko Schocher
Hello Jean-Jacques, Am 07.12.2018 um 14:50 schrieb Jean-Jacques Hiblot: Those driver are not DM drivers per se (not using the PMIC/regulator framework) and are using the legacy I2C API. Make them compatible with the DM_I2C API. This impacts the following drivers: - palmas (used by

  1   2   >