[U-Boot] [BUG] efi_loader: unaligned access in disk/part_efi.c, cmd/bootefi.c, efi_hii_sibt_string_ucs2_block_next()

2019-07-14 Thread Heinrich Schuchardt
Ramon reported the following bug: [14.07 08:29] Hey. running unit-tests fails on compilation for some reason on my setup [14.07 08:30] https://pastebin.com/E1YhU71Y [14.07 08:41] I have gcc (GCC) 9.1.0 (venv) stdcall@stdcall-pc:~/dev/u-boot (pci_ep) $ make mrproper (venv) stdcall@stdcall-p

Re: [U-Boot] [PATCH 1/1] efi_loader: allow adding mapped memory at 0x00000000

2019-07-14 Thread Heinrich Schuchardt
On 7/14/19 4:13 AM, Bin Meng wrote: On Sun, Jul 14, 2019 at 4:02 AM Heinrich Schuchardt wrote: As efi_add_memory_map() signals an error by returning NULL and correct function by returning the requested address we cannot discern an error from correct functioning for address 0x. This lea

Re: [U-Boot] [PATCH 1/1] efi_loader: allow adding mapped memory at 0x00000000

2019-07-14 Thread Bin Meng
On Sun, Jul 14, 2019 at 4:08 PM Heinrich Schuchardt wrote: > > On 7/14/19 4:13 AM, Bin Meng wrote: > > On Sun, Jul 14, 2019 at 4:02 AM Heinrich Schuchardt > > wrote: > >> > >> As efi_add_memory_map() signals an error by returning NULL and correct > >> function by returning the requested address

[U-Boot] [PATCH 1/1] doc: Cope with Sphinx logging deprecations

2019-07-14 Thread Heinrich Schuchardt
From: Jonathan Corbet Recent versions of sphinx will emit messages like: doc/sphinx/kerneldoc.py:103: RemovedInSphinx20Warning: app.warning() is now deprecated. Use sphinx.util.logging instead. Switch to sphinx.util.logging to make this unsightly message go away. Alas, that interfac

[U-Boot] [PATCH v2 0/2] rockchip: make_fit_atf.py Eliminate pyelftools dependency

2019-07-14 Thread Chris Webb
[Sorry for a respin so soon, but this fixes the overzealous documentation update and also ensures the script's behaviour is identical to the existing implementation in the case of a completely empty bl31 ELF file.] Building for Rockchip, make_fit_atf.py depends on pyelftools, a non-bundled python

[U-Boot] [PATCH v2 1/2] rockchip: make_fit_atf.py: Eliminate pyelftools dependency

2019-07-14 Thread Chris Webb
make_fit_aft.py depends on the non-standard library pyelftools to pull out PT_LOAD segments from ELF files. However, this is as easy to do manually, without imposing the extra dependency on users. Structures in the ELF file are unpacked into variables named to exactly match the ELF spec to ensure

[U-Boot] [PATCH v2 2/2] rockchip: Remove obsolete references to pyelftools

2019-07-14 Thread Chris Webb
make_fit_atf.py no longer requires pyelftools, and nothing else in the rockchip build requires it either, so remove references to installing it from the documentation. Signed-off-by: Chris Webb --- board/rockchip/evb_rk3399/README | 6 -- doc/README.rockchip | 4 2 files ch

Re: [U-Boot] [PATCH v3 1/8] x86: Add new slimbootloader CPU type

2019-07-14 Thread Bin Meng
On Wed, Jul 10, 2019 at 3:02 AM Park, Aiden wrote: > > This slimbootloader cpu type is to enable u-boot as a payload which > runs on top of Slim Bootloader(https://github.com/slimbootloader). > The Slim Bootloader is designed with multi-stage architecture for > the execution from reset vector to O

Re: [U-Boot] [PATCH v3 2/8] x86: Add a common hob library

2019-07-14 Thread Bin Meng
On Wed, Jul 10, 2019 at 3:02 AM Park, Aiden wrote: > > FSP(CONFIG_HAVE_FSP) and Slim Bootloader(CONFIG_SYS_SLIMBOOTLOADER) > consume HOB data from the each HOB list pointer. > Add a common hob library/header in lib/hob.c and include/asm/hob.h. > > Signed-off-by: Aiden Park > --- > > Changes in v3

Re: [U-Boot] [PATCH v3 4/8] x86: slimbootloader: Add serial driver

2019-07-14 Thread Bin Meng
On Wed, Jul 10, 2019 at 3:02 AM Park, Aiden wrote: > > Slim Bootloader provides serial port info thru its HOB list pointer. > All these HOBs are eligible for Slim Bootloader based board only. > - Get serial port information from the serial port info hob > - Leverage ns16550 driver with slimbootloa

Re: [U-Boot] [PATCH v3 3/8] x86: slimbootloader: Add memory configuration

2019-07-14 Thread Bin Meng
On Wed, Jul 10, 2019 at 3:02 AM Park, Aiden wrote: > > Slim Bootloader provides memory map info thru its HOB list pointer. > Configure memory size and relocation memory from the HOB data, and > provide e820 entries as well. > - Get memory size from the memory map info hob > - Set ram top for U-Boo

Re: [U-Boot] [PATCH v3 7/8] board: intel: Add new slimbootloader board

2019-07-14 Thread Bin Meng
On Wed, Jul 10, 2019 at 3:02 AM Park, Aiden wrote: > > Add slimbootloader board to run U-boot as a Slim Bootloader payload > - Add new board/intel/slimbootloader directory with minimum codes > - Add slimbootloader configuration files > - Add README in board/intel/slimbootloader > > Signed-off-by:

Re: [U-Boot] [PATCH v3 5/8] x86: slimbootloader: Set TSC information for timer driver

2019-07-14 Thread Bin Meng
On Wed, Jul 10, 2019 at 3:02 AM Park, Aiden wrote: > > Slim Bootloader provides TSC clock information in its performance > info hob. For now, TSC clock information is only used for timer driver > from the performance info hob. > - Get TSC frequency from performance info hob > - Set tsc_base and cl

Re: [U-Boot] [PATCH v3 6/8] x86: slimbootloader: Add a slimbootloader device tree

2019-07-14 Thread Bin Meng
On Wed, Jul 10, 2019 at 3:02 AM Park, Aiden wrote: > > Add a new device tree which has very minimum nodes > - x86 reset > - x86 tsc_timer > - x86 pci > - Slim Bootloader serial > > Signed-off-by: Aiden Park > --- > > Changes in v3: > * Move slimbootloader.dtb before baytrail_som-db5800-som-6867

[U-Boot] [PATCH 1/1] efi_loader: fix function comments in efi_boottime.c

2019-07-14 Thread Heinrich Schuchardt
scripts/kernel-doc pointed out some errors in the function comments in efi_boottime.c. Add missing and remove superfluous parameter descriptions. Escape * in a function description. Add empty lines for readability. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 7 ---

[U-Boot] [PATCH 1/1] efi_loader: fix comments for efi_update_exit_data()

2019-07-14 Thread Heinrich Schuchardt
Add missing colons after parameter descriptions. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index 2144e3580c..4f6e8d1679 100644 --- a/

[U-Boot] [PATCH 0/2] scripts/kernel-doc: update script from Linux 5.2

2019-07-14 Thread Heinrich Schuchardt
Avoid some warnings when running 'make htmldocs'. Correctly generate documentation for functions with function pointers as paramaters. Heinrich Schuchardt (2): scripts/kernel-doc: update script from Linux 5.2 scripts/kernel-doc: fix parsing of function pointers scripts/kernel-doc | 39 +

[U-Boot] [PATCH 1/2] scripts/kernel-doc: update script from Linux 5.2

2019-07-14 Thread Heinrich Schuchardt
Update the script from Linux 5.2 to avoid some warnings. Signed-off-by: Heinrich Schuchardt --- scripts/kernel-doc | 37 +++-- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 3cb6259182..3350e498b4 1007

[U-Boot] [PATCH 2/2] scripts/kernel-doc: fix parsing of function pointers

2019-07-14 Thread Heinrich Schuchardt
kernel-doc fails to parse function definitions like the one below efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl, void (EFIAPI *notify_function) ( struct efi_event *event,

[U-Boot] [PATCH 1/1] efi_driver: use Sphinx style comments

2019-07-14 Thread Heinrich Schuchardt
Use Sphinx style comments for describing function parameters. Signed-off-by: Heinrich Schuchardt --- lib/efi_driver/efi_block_device.c | 39 --- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/lib/efi_driver/efi_block_device.c b/lib/efi_driver/efi_blo

Re: [U-Boot] [PATCH 6/8] arm: ls1021atwr: Convert to use driver model TSEC driver

2019-07-14 Thread Vladimir Oltean
On Sun, 14 Jul 2019 at 04:55, Bin Meng wrote: > > Hi Vladimir, > > On Sat, Jul 13, 2019 at 5:39 PM Vladimir Oltean wrote: > > > > Hi Joe, > > > > On Fri, 12 Jul 2019 at 23:46, Joe Hershberger > > wrote: > > > > > > On Sun, Jun 23, 2019 at 12:53 PM Vladimir Oltean > > > wrote: > > > > > > > >

[U-Boot] [PATCH 1/1] efi_loader: fix comments for variable services

2019-07-14 Thread Heinrich Schuchardt
Add missing parameter descriptions. Remove an invalid link. Correct the formatting of a function comment. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_variable.c | 27 +++ 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/lib/efi_loader/efi_varia

[U-Boot] [PATCH 1/1] efi_loader: fix comment for struct efi_pool_allocation

2019-07-14 Thread Heinrich Schuchardt
Change comment for struct efi_pool_allocation to match Sphinx style. Describe all structure fields. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_memory.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/e

[U-Boot] [PATCH 1/1] efi_loader: fix function comments in cmd/bootefi.c

2019-07-14 Thread Heinrich Schuchardt
Describe efi_set_bootdev(). Change function descriptions to Sphinx style. Signed-off-by: Heinrich Schuchardt --- cmd/bootefi.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/cmd/bootefi.c b/cmd/bootefi.c index 04d3e3e4a7..a45bfd139f 100644 --- a/cmd/bootef

[U-Boot] [PATCH 1/1] efi_loader: function comments efi_bootmgr.c

2019-07-14 Thread Heinrich Schuchardt
Convert function descriptions to Sphinx style. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_bootmgr.c | 47 ++-- 1 file changed, 40 insertions(+), 7 deletions(-) diff --git a/lib/efi_loader/efi_bootmgr.c b/lib/efi_loader/efi_bootmgr.c index b2102c5b5

[U-Boot] [PATCH 1/1] efi_loader: function comments cmd/efi_debug.c

2019-07-14 Thread Heinrich Schuchardt
Adjust comments for Sphinx. Signed-off-by: Heinrich Schuchardt --- cmd/efidebug.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/cmd/efidebug.c b/cmd/efidebug.c index cb152b3339..02dc491a68 100644 --- a/cmd/efidebug.c +++ b/cmd/efidebug.c @@ -394,6 +394,7 @

[U-Boot] [BUG] efi: stalled execution state

2019-07-14 Thread Matwey V. Kornilov
Hello, I am running u-boot 2019.07 with rk3328-rock64 configuration in the two following setups: 1) TFTP loaded EFI GRUB In this setup, I deploy u-boot loader onto the empty microsd card (without any partitions), GRUB EFI binary is served by TFTP. Please, find full log attached in u-boot-tftp.tx

[U-Boot] [PATCH 1/1] rockchip: video: rk3288_hdmi: Add missing call to dw_hdmi_enable()

2019-07-14 Thread Niklas Schulze
The RK3288 HDMI driver's rk3288_hdmi_enable() currently lacks a call to dw_hdmi_enable(). Thus, the HDMI output never gets enabled. Signed-off-by: Niklas Schulze Cc: Philipp Tomsich --- drivers/video/rockchip/rk3288_hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driv

[U-Boot] [PATCH 1/1] efi_loader: add more sources to Sphinx documentation

2019-07-14 Thread Heinrich Schuchardt
Add more C files as sources to the Sphinx generated documentaton (make htmldocs). Signed-off-by: Heinrich Schuchardt --- doc/efi.rst | 87 +++-- 1 file changed, 85 insertions(+), 2 deletions(-) diff --git a/doc/efi.rst b/doc/efi.rst index 5337a55c

[U-Boot] [PATCH] test: Disable pci_ep test for now

2019-07-14 Thread Tom Rini
This test is currently broken so disable it for now. Cc: Ramon Fried Cc: Simon Glass Signed-off-by: Tom Rini --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 6662ca126ab5..c21ca463 100644 --- a/.travis.yml +++ b/.travis.yml @@ -365,11 +

Re: [U-Boot] [PATCH 1/2] board: pm9261: Convert to CONFIG_DM_USB and CONFIG_DM_VIDEO

2019-07-14 Thread Tom Rini
On Mon, Mar 11, 2019 at 01:06:24PM +0100, Ilko Iliev wrote: > Convert the board to support the USB and video driver model and remove > the unnecessary code. Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot

Re: [U-Boot] [PATCH V2 2/3] test: dm: usb: use the real device name

2019-07-14 Thread Tom Rini
On Wed, May 22, 2019 at 07:08:12AM +, Peng Fan wrote: > "keyb" is not the real device name, "keyb@3" is. > > Signed-off-by: Peng Fan > Reviewed-by: Bin Meng Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [PATCH 2/2] board: pm9263: Convert to CONFIG_DM_USB and CONFIG_DM_VIDEO

2019-07-14 Thread Tom Rini
On Mon, Mar 11, 2019 at 01:06:25PM +0100, Ilko Iliev wrote: > Convert the board to support the USB and video driver model and remove > the unnecessary code. Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot

Re: [U-Boot] [PATCH u-boot] pci: ensure enumeration of all devices in pci_init

2019-07-14 Thread Tom Rini
On Tue, May 21, 2019 at 12:04:31PM +0200, Marek Behún wrote: > Use the uclass_first_device_check and uclass_next_device_check functions > instead of uclass_first_device and uclass_next_device in pci_init. This > ensures that all PCI devices are tried to be probed. Currently if a > device fails to

Re: [U-Boot] [PATCH] rtc: ds1307: add support for m41t11

2019-07-14 Thread Tom Rini
On Mon, May 27, 2019 at 08:13:41AM +0200, Heiko Schocher wrote: > add m41t11 support in ds1307 driver. changes: > > - add compatible string for m41t11 > - check if RTC clock is running, if not > enable the clock > > Signed-off-by: Heiko Schocher Applied to u-boot/master, thanks! -- Tom s

Re: [U-Boot] [PATCH V2 1/3] test: dm: adc: use the real device name

2019-07-14 Thread Tom Rini
On Wed, May 22, 2019 at 07:08:09AM +, Peng Fan wrote: > "adc" is not the real device name, "adc@0" is. > > Signed-off-by: Peng Fan > Reviewed-by: Bin Meng Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U

Re: [U-Boot] [PATCH 1/2] spl: Move SPL_MMC_TINY option to appear under SPL menu

2019-07-14 Thread Tom Rini
On Sat, May 25, 2019 at 07:25:21PM -0300, Ezequiel Garcia wrote: > The SPL_MMC_TINY implements feature-reduced MMC support > on SPL, and as such, it's more consistent and convenient > to find it as part of the SPL configuration. > > Signed-off-by: Ezequiel Garcia Applied to u-boot/master, thank

Re: [U-Boot] [PATCH] cmd: nvedit: Add sub-command 'env info'

2019-07-14 Thread Tom Rini
On Fri, May 24, 2019 at 05:20:19PM +0200, Mark Jonas wrote: > From: Leo Ruan > > Add sub-command 'env info' to display environment information: > - env_valid : is environment valid > - env_ready : is environment imported into hash table > - env_use_default : is default environment using > > Thi

Re: [U-Boot] [PATCH 2/3] ARM: omap3: evm: Enable DM_USB in defconfig

2019-07-14 Thread Tom Rini
On Mon, May 27, 2019 at 09:20:50PM -0500, Derald D. Woods wrote: > This addresses the following warning message: > > = WARNING == > This board does not use CONFIG_DM_USB. Please update > the board to use CONFIG_DM_USB before the v2019.07 release. > Failure

Re: [U-Boot] [PATCH] ARM: dts: logicpd-som-lv: Resync with Kernel 5.1.9

2019-07-14 Thread Tom Rini
On Tue, Jun 11, 2019 at 08:40:42PM -0500, Adam Ford wrote: > The MMC card-detect pin was incorrectly defined which was fixed. > This patch resync's the dts and removes the u-boot specific fix. > > Signed-off-by: Adam Ford > > diff --git a/arch/arm/dts/logicpd-som-lv-35xx-devkit-u-boot.dtsi > b

Re: [U-Boot] [PATCH 2/2] mmc: Register only the first MMC device on MMC_TINY

2019-07-14 Thread Tom Rini
On Sat, May 25, 2019 at 07:25:22PM -0300, Ezequiel Garcia wrote: > When MMC_TINY is enabled, support for only one MMC device > is provided. Boards that register more than one device, > will just write over mmc_static keeping only the last one > registered. > > This commit prevents this, keeping o

Re: [U-Boot] [PATCH 1/3] ARM: dts: omap3-evm: Sync dts(i) files from Linux 5.1.5

2019-07-14 Thread Tom Rini
On Mon, May 27, 2019 at 09:19:38PM -0500, Derald D. Woods wrote: > Signed-off-by: Derald D. Woods Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/l

Re: [U-Boot] [PATCH] ARM: dts: logicpd som-lvs and torpedos: Shrink SPL DTB

2019-07-14 Thread Tom Rini
On Wed, Jun 12, 2019 at 03:26:26PM -0500, Adam Ford wrote: > Since we have limited resources in SPL, it is the best interest > to keep the SPL as small as possible and that includes the DTB. > There are a few items in the device tree that can be removed, > because these boards don't use them. > >

Re: [U-Boot] [PATCH V2 3/3] drivers: core: use strcmp when find device by name

2019-07-14 Thread Tom Rini
On Wed, May 22, 2019 at 07:08:14AM +, Peng Fan wrote: > `if (!strncmp(dev->name, name, strlen(name)))` might find out > the wrong device, it might find out `dram_pll_ref_sel`, when name is > `dram_pll`. So use strcmp to avoid such issue. > > Signed-off-by: Peng Fan > Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH v3 2/2] power: regulator: Kconfig: Add SPL_DM_REGULATOR configs for palmas/lp873x/lp87565

2019-07-14 Thread Tom Rini
On Thu, Jun 06, 2019 at 04:06:56PM +0530, Keerthy wrote: > Add SPL_DM_REGULATOR configs for palmas/lp873x/lp87565. These were missing > and the Makefile already assumes them to be defined. Add the corresponding > SPL config options. This enables the regulator support in SPL. > > Signed-off-by: Ke

Re: [U-Boot] [PATCH] ARM: legoev3: convert to driver model

2019-07-14 Thread Tom Rini
On Tue, May 28, 2019 at 08:56:42PM -0500, David Lechner wrote: > This converts LEGO MINDSTORMS EV3 to the driver model. MMC, SERIAL, SPI > and SPI_FLASH are converted. > > The device tree contains only the minimal nodes required by U-Boot > since the size of U-Boot is limited to 256K on this devi

Re: [U-Boot] [PATCH] pinctrl: pinctrl-single: Add 'pinctrl-single, bits' support

2019-07-14 Thread Tom Rini
On Mon, Jun 10, 2019 at 01:15:55PM -0500, Adam Ford wrote: > The TI Davinci (da850/l138/am1808) use pinctrl-single,bits for > pinmuxing peripherals. This patch allosw the pinctrl-single > driver to parse the pinctrl-single,bits options and correctly > setup devices. > > Signed-off-by: Adam Ford

Re: [U-Boot] [PATCH v2] regulator: Allow autosetting fixed regulators

2019-07-14 Thread Tom Rini
On Wed, Jun 12, 2019 at 08:32:38AM +0200, Sven Schwermer wrote: > Fixed regulators don't have a set_value method. Therefore, trying to > set their value will always return -ENOSYS. > > Signed-off-by: Sven Schwermer > Cc: Jaehoon Chung > Cc: Peng Fan > Reviewed-by: Simon Glass Applied to u-bo

Re: [U-Boot] [PATCH 3/3] usb: musb-new: omap2430: Fix compilation warning with USB_MUSB_GADGET

2019-07-14 Thread Tom Rini
On Mon, May 27, 2019 at 09:22:00PM -0500, Derald D. Woods wrote: > This commit addresses the following warning, when _NOT_ USB_MUSB_HOST: > > [...] > CC drivers/usb/gadget/f_mass_storage.o > CC drivers/usb/musb-new/omap2430.o > CC drivers/usb/gadget/f_fastboot.o > CC e

Re: [U-Boot] [PATCH] configs: Make USE_TINY_PRINTF depend on SPL||TPL and be default

2019-07-14 Thread Tom Rini
On Sat, Jun 08, 2019 at 12:46:18PM -0400, Tom Rini wrote: > The USE_TINY_PRINTF symbol only changes things within SPL and TPL > builds, so make it depend on that support. Next, make it default as > within these cases we should rarely have need of more advanced print > formats outside of the debug

Re: [U-Boot] [PATCH v3 1/2] power: pmic: Kconfig: Add SPL_PMIC configs for palmas/lp873x/lp87565

2019-07-14 Thread Tom Rini
On Thu, Jun 06, 2019 at 04:06:55PM +0530, Keerthy wrote: > Add SPL_PMIC configs for palmas/lp873x/lp87565. These were missing > and the Makefile already assumes them to be defined. Add the corresponding > SPL config options. This enables the pmics in SPL. > > Signed-off-by: Keerthy Applied to u

Re: [U-Boot] [PATCH v4] gpio: add gpio-hog support

2019-07-14 Thread Tom Rini
On Wed, Jun 12, 2019 at 06:11:46AM +0200, Heiko Schocher wrote: > add gpio-hog support. GPIO hogging is a mechanism > providing automatic GPIO request and configuration > as part of the gpio-controller's driver probe function. > > for more infos see: > doc/device-tree-bindings/gpio/gpio.txt > >

Re: [U-Boot] [PATCH] test: Disable pci_ep test for now

2019-07-14 Thread Tom Rini
On Sun, Jul 14, 2019 at 09:05:10AM -0400, Tom Rini wrote: > This test is currently broken so disable it for now. > > Cc: Ramon Fried > Cc: Simon Glass > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] [PATCH] ARM: dts: da850: Resync with Linux 5.1.9

2019-07-14 Thread Tom Rini
On Tue, Jun 11, 2019 at 08:28:44PM -0500, Adam Ford wrote: > The da850.dtsi file had some changes. This patch pulls in the > changes from Kernel 5.1.9 > > Signed-off-by: Adam Ford > > diff --git a/arch/arm/dts/da850.dtsi b/arch/arm/dts/da850.dtsi > index 47aa53ba6b..559659b399 100644 Applied

Re: [U-Boot] [PATCH] ARM: davinci: da850: Manual pinmux only when PINCTRL not available

2019-07-14 Thread Tom Rini
On Mon, Jun 10, 2019 at 01:25:08PM -0500, Adam Ford wrote: > With a recent update to the pinctrl-single driver and the fact > that the da850evm has both DM and OF_CONTROL working in both SPL > and U-Boot, some of the manual pinmuxing can be setup to only > be activated when either the driver doesn

Re: [U-Boot] [PATCH v7] ARM: am335x: Add phyCORE AM335x R2 support

2019-07-14 Thread Tom Rini
On Mon, Jun 03, 2019 at 03:31:17PM +0200, Parthiban Nallathambi wrote: > From: Niel Fourie > > Support for Phytech phyCORE AM335x R2 SOM (PCL060) on the Phytec > phyBOARD-Wega AM335x. > > CPU : AM335X-GP rev 2.1 > Model: Phytec AM335x phyBOARD-WEGA > DRAM: 256 MiB > NAND: 256 MiB > MMC: OM

Re: [U-Boot] [PATCH v2] rtc: add Microcrystal RV-8803 driver

2019-07-14 Thread Tom Rini
On Wed, May 29, 2019 at 01:29:58AM +0200, Michael Walle wrote: > Signed-off-by: Michael Walle Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listi

[U-Boot] [PATCH v2] spl: sata: support U-Boot load from raw sata disk

2019-07-14 Thread Baruch Siach
Support load of the U-Boot image from raw SATA disk sector. This is equivalent to load from MMC raw sector. Signed-off-by: Baruch Siach --- v2: Fix build when CONFIG_SPL_SATA_RAW_U_BOOT_SECTOR is not defined (Stefan Roese) --- common/spl/Kconfig| 14 ++ common/spl/spl_sata.c

Re: [U-Boot] [PATCH] test: Disable pci_ep test for now

2019-07-14 Thread Ramon Fried
Hi Tom, Eventually, I managed to reproduce this on my setup. Hopefully I'll find the problem and get back to you on that one. Sorry, Ramon. On Sun, Jul 14, 2019 at 4:05 PM Tom Rini wrote: > > This test is currently broken so disable it for now. > > Cc: Ramon Fried > Cc: Simon Glass > Signed-off

Re: [U-Boot] [PATCH] net/macb: increase RX buffer size for GEM

2019-07-14 Thread Ramon Fried
On Sat, Jul 13, 2019 at 3:47 AM Joe Hershberger wrote: > > On Mon, Jun 24, 2019 at 2:02 PM Ramon Fried wrote: > > > > Macb Ethernet controller requires a RX buffer of 128 bytes. It is > > highly sub-optimal for Gigabit-capable GEM that is able to use > > a bigger DMA buffer. Change this constant

[U-Boot] [PATCH v2] net/macb: increase RX buffer size for GEM

2019-07-14 Thread Ramon Fried
Macb Ethernet controller requires a RX buffer of 128 bytes. It is highly sub-optimal for Gigabit-capable GEM that is able to use a bigger DMA buffer. Change this constant and associated macros with data stored in the private structure. RX DMA buffer size has to be multiple of 64 bytes as indicated

[U-Boot] [PATCH v1 1/3] x86: acpi: Introduce a stub to generate CSRT

2019-07-14 Thread Andy Shevchenko
Here is a stub function that generates an empty CSRT. If the target platform provides acpi_fill_csrt() function, it will be used to populate the table. Signed-off-by: Andy Shevchenko --- arch/x86/include/asm/acpi_table.h | 1 + arch/x86/lib/acpi_table.c | 32

[U-Boot] [PATCH v1 2/3] x86: acpi: Enable ACPI companion for Intel iDMA 32-bit

2019-07-14 Thread Andy Shevchenko
ACPI has a capability to specify DMA parameters for DMA channel consumers. To enable this for Intel Edison, describe GP DMA device in ACPI table in order to get an ACPI handle to it in OS. This works in conjunction with CSRT, which must be in align with DSDT. Signed-off-by: Andy Shevchenko ---

[U-Boot] [PATCH v1 3/3] x86: tangier: Populate CSRT for shared DMA controller

2019-07-14 Thread Andy Shevchenko
Intel Tangier has a shared DMA controller that, according to Microsoft spec, has to be presented in CSRT table. Signed-off-by: Andy Shevchenko --- arch/x86/cpu/tangier/acpi.c | 38 + 1 file changed, 38 insertions(+) diff --git a/arch/x86/cpu/tangier/acpi.c b/

[U-Boot] [PATCH v2 2/4] x86: acpi: Introduce a stub to generate CSRT

2019-07-14 Thread Andy Shevchenko
Here is a stub function that generates an empty CSRT. If the target platform provides acpi_fill_csrt() function, it will be used to populate the table. Signed-off-by: Andy Shevchenko --- arch/x86/include/asm/acpi_table.h | 1 + arch/x86/lib/acpi_table.c | 32

[U-Boot] [PATCH v2 3/4] x86: acpi: Enable ACPI companion for Intel iDMA 32-bit

2019-07-14 Thread Andy Shevchenko
ACPI has a capability to specify DMA parameters for DMA channel consumers. To enable this for Intel Edison, describe GP DMA device in ACPI table in order to get an ACPI handle to it in OS. This works in conjunction with CSRT, which must be in align with DSDT. Signed-off-by: Andy Shevchenko ---

[U-Boot] [PATCH v2 1/4] x86: acpi: Add CSRT description

2019-07-14 Thread Andy Shevchenko
Add CSRT [1] description as it provided in Linux kernel. [1]: http://www.uefi.org/sites/default/files/resources/CSRT%20v2.pdf Signed-off-by: Andy Shevchenko --- arch/x86/include/asm/acpi_table.h | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/x86/includ

[U-Boot] [PATCH v2 4/4] x86: tangier: Populate CSRT for shared DMA controller

2019-07-14 Thread Andy Shevchenko
Intel Tangier has a shared DMA controller that, according to Microsoft spec, has to be presented in CSRT table. Signed-off-by: Andy Shevchenko --- arch/x86/cpu/tangier/acpi.c | 38 + 1 file changed, 38 insertions(+) diff --git a/arch/x86/cpu/tangier/acpi.c b/

Re: [U-Boot] [PATCH v1 1/3] x86: acpi: Introduce a stub to generate CSRT

2019-07-14 Thread Andy Shevchenko
On Sun, Jul 14, 2019 at 07:20:45PM +0300, Andy Shevchenko wrote: > Here is a stub function that generates an empty CSRT. If the target platform > provides acpi_fill_csrt() function, it will be used to populate the table. Please, discard this version (just had sent v2) due to missed first patch. J

Re: [U-Boot] [PATCH 1/2] dm: core: device: switch off power domain after device removal

2019-07-14 Thread Anatolij Gustschin
Hi Simon, On Fri, 12 Jul 2019 15:05:06 -0600 Simon Glass s...@chromium.org wrote: ... > > > > + if (dev->parent && device_get_uclass_id(dev) != UCLASS_POWER_DOMAIN > > && > > Putting my code-size hat on, what do you think about adding an > IF_ENABLED(POWER_DOMAIN) as the first arg? Good

[U-Boot] [PATCH] disk: efi: avoid unaligned pointer error

2019-07-14 Thread Heinrich Schuchardt
When building with GCC 9.1 an error occurs: disk/part_efi.c: In function ‘gpt_verify_partitions’: disk/part_efi.c:737:49: error: taking address of packed member of ‘struct _gpt_entry’ may result in an unaligned pointer value [-Werror=address-of-packed-member] 737 | gpt_convert_efi_name_to_char

Re: [U-Boot] [PATCH 1/5] doc: Move README.android-fastboot-protocol to doc/android/

2019-07-14 Thread Tom Rini
On Sat, Jul 13, 2019 at 10:39:19AM +0200, Eugeniu Rosca wrote: > Superseded by https://patchwork.ozlabs.org/patch/1131355/ > ("[v2,1/5] doc: Move README.android-fastboot-protocol to doc/android/") Thanks! This does help me avoid cases where I put up the old versions of series (and thanks also fo

Re: [U-Boot] [PATCH] disk: efi: avoid unaligned pointer error

2019-07-14 Thread Ramon Fried
On Sun, Jul 14, 2019 at 7:44 PM Heinrich Schuchardt wrote: > > When building with GCC 9.1 an error occurs: > > disk/part_efi.c: In function ‘gpt_verify_partitions’: > disk/part_efi.c:737:49: error: taking address of packed member of > ‘struct _gpt_entry’ may result in an unaligned pointer value >

Re: [U-Boot] [PATCH] disk: efi: avoid unaligned pointer error

2019-07-14 Thread Heinrich Schuchardt
On 14.07.19 20:48, Ramon Fried wrote: On Sun, Jul 14, 2019 at 7:44 PM Heinrich Schuchardt wrote: When building with GCC 9.1 an error occurs: disk/part_efi.c: In function ‘gpt_verify_partitions’: disk/part_efi.c:737:49: error: taking address of packed member of ‘struct _gpt_entry’ may result

[U-Boot] [PATCH] dm: device: make power domain calls optional

2019-07-14 Thread Anatolij Gustschin
Reduce power domain calls when CONFIG_POWER_DOMAIN is disabled. With gcc v8.2, this change saves 104 bytes. Signed-off-by: Anatolij Gustschin --- drivers/core/device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/core/device.c b/drivers/core/device.c index 0d15e5

[U-Boot] [PATCH 1/1] net: assign maintainer for include/net.h

2019-07-14 Thread Heinrich Schuchardt
include/net.h currently has no maintainer. Assign include/net.h to the maintainer of the NET subsystem. Signed-off-by: Heinrich Schuchardt --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index e91684191f..ee93078451 100644 --- a/MAINTAINERS +++ b/MA

[U-Boot] [PATCH v2 2/2] serial: lpuart: request dm device removal when booting OS

2019-07-14 Thread Anatolij Gustschin
Extend the driver to allow dm device removal, but always let the console serial device power domain enabled, so that U-Boot doesn't crash when i. e. the serial output is enabled for debugging. Signed-off-by: Anatolij Gustschin --- Changes in v2: - None drivers/serial/serial_lpuart.c | 9 ++

[U-Boot] [PATCH v2 1/2] dm: core: device: switch off power domain after device removal

2019-07-14 Thread Anatolij Gustschin
The power domain associated with a device is enabled when probing, but currently the domain remains enabled when the device is removed. Some boards started to disable power domains for selected devices via custom board_quiesce_devices(), but it doesn't work in many cases, i. e. because devices stil

[U-Boot] [PATCH 1/1] net: unaligned copying of unsigned long

2019-07-14 Thread Heinrich Schuchardt
The inline functions net_read_u32() and net_copy_u32() have been created to copy unaligned u32. But this is not obvious to the compiler. GCC 9.1 introduces a check -Werror=address-of-packed-member which leads to a build error on Travis CI: net/bootp.c: In function ‘dhcp_send_request_packet’: net/b

Re: [U-Boot] [PATCH 8/8] Add support for the NXP LS1021A-TSN board

2019-07-14 Thread Vladimir Oltean
Hi Bin, On Sat, 13 Jul 2019 at 08:05, Bin Meng wrote: > > Hi Vladimir, > > On Mon, Jun 24, 2019 at 1:50 AM Vladimir Oltean wrote: > > > > From: Jianchao Wang > > > > The LS1021A-TSN is a development board built by VVDN/Argonboards in > > partnership with NXP. > > > > It features the LS1021A SoC

Re: [U-Boot] [PATCH v3 1/8] x86: Add new slimbootloader CPU type

2019-07-14 Thread Park, Aiden
Hi Bin, > -Original Message- > From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Sunday, July 14, 2019 1:49 AM > To: Park, Aiden > Cc: U-Boot Mailing List ; Simon Glass > > Subject: Re: [PATCH v3 1/8] x86: Add new slimbootloader CPU type > > On Wed, Jul 10, 2019 at 3:02 AM Park, Aiden

Re: [U-Boot] [PATCH v3 4/8] x86: slimbootloader: Add serial driver

2019-07-14 Thread Park, Aiden
Hi Bin, > -Original Message- > From: Bin Meng [mailto:bmeng...@gmail.com] > Sent: Sunday, July 14, 2019 1:49 AM > To: Park, Aiden > Cc: U-Boot Mailing List ; Simon Glass > > Subject: Re: [PATCH v3 4/8] x86: slimbootloader: Add serial driver > > On Wed, Jul 10, 2019 at 3:02 AM Park, Aide

[U-Boot] [PATCH 1/1] lib: uuid: alignment error in gen_rand_uuid()

2019-07-14 Thread Heinrich Schuchardt
Packed structures like struct uuid are not aligned. GCC 9.1 therefore throws an error when trying to compile gen_rand_uuid(). lib/uuid.c: In function ‘gen_rand_uuid’: lib/uuid.c:244:2: error: converting a packed ‘struct uuid’ pointer (alignment 1) to a ‘unsigned int’ pointer (alignment 4) may resu

[U-Boot] [PATCH v4 0/8] x86: Add basic Slim Bootloader payload support

2019-07-14 Thread Park, Aiden
This patch is to enable U-Boot as a payload which runs on top of Slim Bootloader(https://github.com/slimbootloader/slimbootloader) boot firmware for x86 platforms. The Slim Bootloader is designed with multi-stage architecture for the execution from reset vector to OS hand-off, and supports qemu

[U-Boot] [PATCH v4 1/8] x86: Add new slimbootloader CPU type

2019-07-14 Thread Park, Aiden
This slimbootloader cpu type is to enable U-Boot as a payload which runs on top of Slim Bootloader(https://github.com/slimbootloader). The Slim Bootloader is designed with multi-stage architecture for the execution from reset vector to OS booting, and supports qemu, Apollolake, Whiskeylake and Coff

[U-Boot] [PATCH v4 2/8] x86: Add a common hob library

2019-07-14 Thread Park, Aiden
FSP(CONFIG_HAVE_FSP) and Slim Bootloader(CONFIG_SYS_SLIMBOOTLOADER) consume HOB data from the each HOB list pointer. Add a common hob library/header in lib/hob.c and include/asm/hob.h. Signed-off-by: Aiden Park Reviewed-by: Bin Meng --- Changes in v3: * Create a common HOB libary from fsp_hob

[U-Boot] [PATCH v4 3/8] x86: slimbootloader: Add memory configuration

2019-07-14 Thread Park, Aiden
Slim Bootloader provides memory map info thru its HOB list pointer. Configure memory size and relocation memory from the HOB data, and provide e820 entries as well. - Get memory size from the memory map info hob - Set ram top for U-Boot relocation lower than 4GB - Provide e820 entries from the memo

[U-Boot] [PATCH v4 5/8] x86: slimbootloader: Set TSC information for timer driver

2019-07-14 Thread Park, Aiden
Slim Bootloader provides TSC clock information in its performance info hob. For now, TSC clock information is only used for timer driver from the performance info hob. - Get TSC frequency from performance info hob - Set tsc_base and clock_rate for timer driver Signed-off-by: Aiden Park Reviewed-b

[U-Boot] [PATCH v4 6/8] x86: slimbootloader: Add a slimbootloader device tree

2019-07-14 Thread Park, Aiden
Add a new device tree which has very minimum nodes - x86 reset - x86 tsc_timer - x86 pci - Slim Bootloader serial Signed-off-by: Aiden Park Reviewed-by: Bin Meng --- Changes in v3: * Move slimbootloader.dtb before baytrail_som-db5800-som-6867.dtb arch/x86/dts/Makefile | 1 + arch

[U-Boot] [PATCH v4 8/8] x86: Skip setting up MTRRs in slimbootloader

2019-07-14 Thread Park, Aiden
The setting up MTRRs have already been done in previous Slim Bootloader stages. Signed-off-by: Aiden Park Reviewed-by: Bin Meng --- arch/x86/lib/init_helpers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/lib/init_helpers.c b/arch/x86/lib/init_helpers.c index 0

[U-Boot] [PATCH v4 4/8] x86: slimbootloader: Add serial driver

2019-07-14 Thread Park, Aiden
Slim Bootloader provides serial port info thru its HOB list pointer. All these HOBs are eligible for Slim Bootloader based board only. - Get serial port information from the serial port info hob - Leverage ns16550 driver with slimbootloader specific platform data Signed-off-by: Aiden Park Reviewe

[U-Boot] [PATCH v4 7/8] board: intel: Add new slimbootloader board

2019-07-14 Thread Park, Aiden
Add slimbootloader board to run U-boot as a Slim Bootloader payload - Add new board/intel/slimbootloader directory with minimum codes - Add slimbootloader configuration files - Add README in board/intel/slimbootloader Signed-off-by: Aiden Park Reviewed-by: Bin Meng --- Chan

Re: [U-Boot] [PATCH v3 1/8] x86: Add new slimbootloader CPU type

2019-07-14 Thread Park, Aiden
Hi Bin, > -Original Message- > From: Park, Aiden > Sent: Sunday, July 14, 2019 2:16 PM > To: Bin Meng > Cc: U-Boot Mailing List ; Simon Glass > > Subject: RE: [PATCH v3 1/8] x86: Add new slimbootloader CPU type > > Hi Bin, > > > -Original Message- > > From: Bin Meng [mailto:bme

[U-Boot] [PATCH v2 0/7] efi_loader: Fix inconsistencies in efi_add_memory_map usage

2019-07-14 Thread Bryan O'Donoghue
V2: Following on from a discussion with Heinrich Schuchardt, please find a reworked set of patches updating efi_add_memory_map() to - Return efi_status_t - Return EFI_SUCCESS where appropriate - Return EFI_NO_MAPPING in two cases where zero was returned to indicate an error - Updating of users

[U-Boot] [PATCH v2 1/7] efi_loader: Change return type of efi_add_memory_map()

2019-07-14 Thread Bryan O'Donoghue
We currently have some inconsistent use of efi_add_memory_map() throughout the code. In particular the return value of efi_add_memory_map() is not interpreted the same way by various users in the codebase. This patch changes efi_add_memory_map() to return efi_status_t. A subsequent set of patches

[U-Boot] [PATCH v2 3/7] efi_loader: Return non-zero for error in efi_add_memory_map()

2019-07-14 Thread Bryan O'Donoghue
The previous implementation of efi_add_memory_map() returned the passed address on success, instead of an efi_status_t. With the new function signature instead of returning zero, return EFI_NO_MAPPING on carve-out errors. Fixes: 5d00995c361c ("efi_loader: Implement memory allocation and map") Fix

[U-Boot] [PATCH v2 2/7] efi_loader: Change efi_add_memory_map() to return EFI_SUCCESS

2019-07-14 Thread Bryan O'Donoghue
efi_add_memory_map() wants to return 0 to indicate success in two places. Instead of returning zero we should return the defined efi_status_t return value EFI_SUCCESS. Signed-off-by: Bryan O'Donoghue --- lib/efi_loader/efi_memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[U-Boot] [PATCH v2 7/7] efi_loader: Capture efi_add_memory_map() result efi_add_runtime_mmio()

2019-07-14 Thread Bryan O'Donoghue
efi_add_runtime_mmio() does an efi_add_memory_map() call. We have recently changed the return value of efi_add_memory_map() to return an efi_status_t code. This patch captures the result code of efi_add_memory_map() and if that result code is not EFI_SUCCESS returns EFI_OUT_OF_RESOURCES; Signed-o

[U-Boot] [PATCH v2 4/7] efi_loader: Update efi_allocate_pages() to new efi_add_memory_map()

2019-07-14 Thread Bryan O'Donoghue
efi_add_memory_map() now returns efi_status_t not the passed uint64_t address on success. We need to capture that change in efi_allocate_pages(). Signed-off-by: Bryan O'Donoghue --- lib/efi_loader/efi_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_loader/efi

[U-Boot] [PATCH v2 5/7] efi_loader: Update efi_free_pages() to new efi_add_memory_map()

2019-07-14 Thread Bryan O'Donoghue
efi_add_memory_map() now returns efi_status_t not the passed uint64_t address on success. We need to capture that change in efi_free_pages(). Signed-off-by: Bryan O'Donoghue --- lib/efi_loader/efi_memory.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/efi_loa

  1   2   >