Re: [U-Boot] [PATCH] [U-boot]: Change FDT memory typpe from runtime data to acpi reclaim

2019-04-12 Thread Leif Lindholm
On Thu, Apr 11, 2019 at 10:08:10PM +0200, Heinrich Schuchardt wrote: > > > How about systab.tables assigned in efi_initialize_system_table()? Which > > > of the addresses in systab.tables should be updated upon relocation. > > > > > > The EFI Spec is really hazy: "A pointer to the table associated

Re: [U-Boot] [PATCH] [U-boot]: Change FDT memory type from runtime data to boot services data

2019-04-12 Thread Heinrich Schuchardt
On 4/12/19 8:26 PM, Ilias Apalodimas wrote: Following Ard's suggestion: Runtime data sections are intended for data that is used by the runtime services implementation. Let's change the type to EFI_BOOT_SERVICES_DATA This also fixes booting of armv7 using efi and fdtcontroladdr Suggested-by: Ar

[U-Boot] [PATCH] watchdog: fix typo "CONFIG_MPC8XX_WATCHDOG" -> "MPC8XX_WATCHDOG"

2019-04-12 Thread Robert P. J. Day
Kbuild "select" directive should not use "CONFIG_" prefix. Signed-off-by: Robert P. J. Day --- diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 34e78beb2a..a89cc6edec 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -149,7 +149,7 @@ config WDT_MT7621

Re: [U-Boot] doing anything about "bad" Kbuild configuration options?

2019-04-12 Thread Chris Packham
On Sat, 13 Apr 2019, 4:56 AM Robert P. J. Day, wrote: > one of the worst culprits appears to be CONFIG_SPL_BUILD, which > appears all over the tree, but one can see a recent commit that takes > that into account: > That's not quite right. CONFIG_SPL_BUILD is defined for the Makefile just not i

Re: [U-Boot] [PATCH] [U-boot]: Change FDT memory type from runtime data to boot services data

2019-04-12 Thread Heinrich Schuchardt
On 4/12/19 9:30 PM, Heinrich Schuchardt wrote: On 4/12/19 8:26 PM, Ilias Apalodimas wrote: Following Ard's suggestion: Runtime data sections are intended for data that is used by the runtime services implementation. Let's change the type to EFI_BOOT_SERVICES_DATA This also fixes booting of armv

Re: [U-Boot] [PATCH] [U-boot]: Change FDT memory type from runtime data to boot services data

2019-04-12 Thread Ard Biesheuvel
On Fri, 12 Apr 2019 at 12:55, Heinrich Schuchardt wrote: > > On 4/12/19 9:30 PM, Heinrich Schuchardt wrote: > > On 4/12/19 8:26 PM, Ilias Apalodimas wrote: > >> Following Ard's suggestion: > >> Runtime data sections are intended for data that is used by the runtime > >> services implementation. >

Re: [U-Boot] doing anything about "bad" Kbuild configuration options?

2019-04-12 Thread Robert P. J. Day
On Sat, 13 Apr 2019, Chris Packham wrote: > > On Sat, 13 Apr 2019, 4:56 AM Robert P. J. Day, wrote: >   one of the worst culprits appears to be CONFIG_SPL_BUILD, which > appears all over the tree, but one can see a recent commit that takes > that into account: > > > That's not q

[U-Boot] [PATCH 1/1] efi_selftest: expect boot services data for fdt

2019-04-12 Thread Heinrich Schuchardt
In a previous patch the memory type used for the FDT has been changed to boot services data. We have to adjust the test. Correct an incorrect comment. The tested services are boot services. Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/efi_selftest_memory.c | 6 +++--- 1 file changed,

Re: [U-Boot] [PATCH 1/1] efi_selftest: expect boot services data for fdt

2019-04-12 Thread Ilias Apalodimas
Hi Heinrich, > In a previous patch the memory type used for the FDT has been changed to > boot services data. We have to adjust the test. > > Correct an incorrect comment. The tested services are boot services. > > Signed-off-by: Heinrich Schuchardt > --- > lib/efi_selftest/efi_selftest_memory.

Re: [U-Boot] [RFC v2 08/11] cmd: bootefi: carve out bootmgr code from do_bootefi()

2019-04-12 Thread Heinrich Schuchardt
On 4/12/19 4:19 PM, AKASHI Takahiro wrote: On Fri, Apr 12, 2019 at 10:58:25AM +0200, Heinrich Schuchardt wrote: On 4/12/19 9:06 AM, AKASHI Takahiro wrote: On Fri, Apr 12, 2019 at 07:55:16AM +0200, Heinrich Schuchardt wrote: On 3/27/19 5:40 AM, AKASHI Takahiro wrote: This is a preparatory pa

[U-Boot] Missing: CONFIG_EXTRA_ENV_SETTINGS

2019-04-12 Thread U.Mutlu
The "make menuconfig" help page for "Environment --> Create default environment from file" mentions CONFIG_EXTRA_ENV_SETTINGS, but searching for this says "No matches found", and also in the saved .config it's missing. Version info (boot msgs): U-Boot SPL 2019.04-00077-g48ff1bc4f0-dirty (Apr

[U-Boot] [PULL] u-boot-mips

2019-04-12 Thread Daniel Schwierzeck
Hi Tom, please pull MIPS updates for 2019.07 https://travis-ci.org/danielschwierzeck/u-boot/builds/519324026 The following changes since commit 02f173ca156cee8526dff87603d5e446b443cde3: Merge branch 'master' of git://git.denx.de/u-boot-usb (2019-04-11 14:29:37 -0400) are available in the G

[U-Boot] [PATCH] warp7: Fix dfu_alt_info setting after DM conversion

2019-04-12 Thread Pierre-Jean Texier
After DM conversion, U-Boot is larger than 512 KiB, so we need to increase the "size" of the dfu_alt_info setting. Signed-off-by: Pierre-Jean Texier --- include/configs/warp7.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/warp7.h b/include/configs/warp7.h i

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

2019-04-12 Thread Chris Packham
On Fri, 12 Apr 2019, 11:27 PM Stefan Roese, wrote: > Hi Tom, > > please pull the following Marvell related patches. I've > removed the board support, causing the out-of-tree building > error for now. I'll push this one after its resolved. I'll take a look at the db-88f6281 out of tree build fai

Re: [U-Boot] [PATCH] warp7: Fix dfu_alt_info setting after DM conversion

2019-04-12 Thread Joris Offouga
Acked-by: Joris Offouga Le 12/04/2019 à 22:36, Pierre-Jean Texier a écrit : After DM conversion, U-Boot is larger than 512 KiB, so we need to increase the "size" of the dfu_alt_info setting. Signed-off-by: Pierre-Jean Texier --- include/configs/warp7.h | 2 +- 1 file changed, 1 insertion(+

[U-Boot] very short list of "badref selects" in u-boot source

2019-04-12 Thread Robert P. J. Day
rather than go to the trouble of whipping up a wiki page, i can present this in a short post to the list. here's the list of what my script identified as "badref selects" -- those identifiers for which there is a Kconfig line of the form: select X where there is no corresponding: config X

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

2019-04-12 Thread Tom Rini
On Sat, Apr 13, 2019 at 08:37:46AM +1200, Chris Packham wrote: > On Fri, 12 Apr 2019, 11:27 PM Stefan Roese, wrote: > > > Hi Tom, > > > > please pull the following Marvell related patches. I've > > removed the board support, causing the out-of-tree building > > error for now. I'll push this one a

Re: [U-Boot] [linux-sunxi] [PATCH] ARM: HYP/non-sec: Don't enable ARMV7_LPAE for old sunxi kernels

2019-04-12 Thread U.Mutlu
Mark Kettenis wrote on 04/12/2019 03:03 PM: From: Jagan Teki Date: Fri, 12 Apr 2019 12:02:06 +0530 On Fri, Mar 22, 2019 at 2:31 AM Jonathan Liu wrote: Hi Jagan, On Fri., 22 Mar. 2019 at 4:05 am, Jagan Teki wrote: On Tue, Mar 19, 2019 at 11:09 AM Jonathan Liu wrote: Old sunxi kernels f

Re: [U-Boot] [PATCH] warp7: Fix dfu_alt_info setting after DM conversion

2019-04-12 Thread Fabio Estevam
Hi Pierre-Jean, On Fri, Apr 12, 2019 at 5:37 PM Pierre-Jean Texier wrote: > > After DM conversion, U-Boot is larger than 512 KiB, so we need to increase > the "size" of the dfu_alt_info setting. > > Signed-off-by: Pierre-Jean Texier Thanks for the fix. Reviewed-by: Fabio Estevam _

Re: [U-Boot] [PATCH v3 03/13] fdtdec: Add fdt_{addr, size}_unpack() helpers

2019-04-12 Thread Simon Glass
Hi Thierry, On Fri, 22 Mar 2019 at 02:31, Thierry Reding wrote: > > On Fri, Mar 22, 2019 at 03:53:00PM +0800, Simon Glass wrote: > > Hi Thierry, > > > > On Fri, 22 Mar 2019 at 02:10, Thierry Reding > > wrote: > > > > > > From: Thierry Reding > > > > > > These helpers can be used to unpack vari

Re: [U-Boot] [PATCH v3 02/13] fdtdec: Add cpu_to_fdt_{addr, size}() macros

2019-04-12 Thread Simon Glass
On Thu, 21 Mar 2019 at 12:10, Thierry Reding wrote: > > From: Thierry Reding > > These macros are useful for converting the endianness of variables of > type fdt_addr_t and fdt_size_t. > > Reviewed-by: Simon Glass > Signed-off-by: Thierry Reding > --- > Changes in v2: > - add Reviewed-by from S

Re: [U-Boot] [PATCH 2/3] sandbox: Use correct phys_{addr, size}_t for PHYS_64BIT=y

2019-04-12 Thread Simon Glass
On Tue, 12 Mar 2019 at 04:38, Thierry Reding wrote: > > From: Thierry Reding > > If 64-bit physical addresses support is enabled, make sure the sandox > defines the correct types for phys_addr_t and phys_size_t. > > Signed-off-by: Thierry Reding > --- > arch/sandbox/include/asm/types.h | 12 +++

Re: [U-Boot] [PATCH] dm: sound: make all functions static inline

2019-04-12 Thread sjg
Fixes following compile problem: ➜ u-boot-mainline git:(master) ✗ make sandbox_defconfig all NO_SDL=1 scripts/kconfig/conf --syncconfig Kconfig CHK include/config.h CFG u-boot.cfg GEN include/autoconf.mk GEN include/autoconf.mk.dep CHK include/config/uboot.release

Re: [U-Boot] [PATCH v3 11/13] sandbox: Enable fdtdec tests

2019-04-12 Thread sjg
On Fri, 22 Mar 2019 at 02:10, Thierry Reding wrote: > > From: Thierry Reding > > Enable fdtdec tests on sandbox configurations so that they can be run to > validate the fdtdec implementation. > > Signed-off-by: Thierry Reding > --- > Changes in v2: > - new patch > > configs/sandbox64_defconfig

Re: [U-Boot] [PATCH v2] fdt: Fix mkimage list to try every header type

2019-04-12 Thread sjg
Image type is not supplied to `mkimage -l`. For this reason, we cannot use imagetool_verify_print_header_by_type. Instead, this patch uses imagetool_verify_print_header to look through all header types to find one where image validation succeeds. This patch fixes failures in test/image/test-imaget

Re: [U-Boot] [PATCH v3 01/13] libfdt: Add phandle generation helper

2019-04-12 Thread sjg
Hi Thierry, On Mon, 25 Mar 2019 at 01:27, Thierry Reding wrote: > > On Fri, Mar 22, 2019 at 03:52:59PM +0800, Simon Glass wrote: > > On Fri, 22 Mar 2019 at 02:10, Thierry Reding > > wrote: > > > > > > From: Thierry Reding > > > > > > The new fdt_generate_phandle() function can be used to gener

Re: [U-Boot] [PATCH 3/3] dm: remove unused function dm_fdt_pre_reloc

2019-04-12 Thread sjg
On Thu, 21 Mar 2019 at 01:21, Patrick Delaunay wrote: > > The function dm_ofnode_pre_reloc should be used instead > of the function dm_fdt_pre_reloc and avoid duplicated code. > > Signed-off-by: Patrick Delaunay > --- > > drivers/core/util.c | 24 > include/dm/util.h |

Re: [U-Boot] [PATCH v3 06/13] fdtdec: Implement carveout support functions

2019-04-12 Thread sjg
From: Thierry Reding The fdtdec_get_carveout() and fdtdec_set_carveout() function can be used to read a carveout from a given node or add a carveout to a given node using the standard device tree bindings (involving reserved-memory nodes and the memory-region property). Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH v3 04/13] fdtdec: Implement fdtdec_set_phandle()

2019-04-12 Thread sjg
Hi Thierry, On Fri, 22 Mar 2019 at 16:34, Thierry Reding wrote: > > On Fri, Mar 22, 2019 at 03:53:01PM +0800, Simon Glass wrote: > > Hi Thierry, > > > > On Fri, 22 Mar 2019 at 02:10, Thierry Reding > > wrote: > > > > > > From: Thierry Reding > > > > > > This function can be used to set a phand

Re: [U-Boot] [PATCH v3 07/13] fdtdec: Add Kconfig symbol for tests

2019-04-12 Thread sjg
On Fri, 22 Mar 2019 at 02:10, Thierry Reding wrote: > > From: Thierry Reding > > Runtime tests are provided as a test_fdtdec command implementation. Add > a Kconfig symbol that allows this command to be built so that the tests > can be used. > > Signed-off-by: Thierry Reding > --- > Changes in v

Re: [U-Boot] [PATCH v3 08/13] fdtdec: test: Fix build warning

2019-04-12 Thread sjg
On Fri, 22 Mar 2019 at 02:10, Thierry Reding wrote: > > From: Thierry Reding > > Hide the declaration of the "fd" variable When not building a DEBUG > configuration, to avoid the variable being unused. > > Signed-off-by: Thierry Reding > --- > Changes in v2: > - new patch > > lib/fdtdec_test.c

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

2019-04-12 Thread Simon Glass
Hi Tom, Build result at https://travis-ci.org/sglass68/u-boot/builds/519059521 The following changes since commit 02f173ca156cee8526dff87603d5e446b443cde3: Merge branch 'master' of git://git.denx.de/u-boot-usb (2019-04-11 14:29:37 -0400) are available in the Git repository at: git://git.d

Re: [U-Boot] [PATCH v3 09/13] fdtdec: test: Use compound statement macros

2019-04-12 Thread sjg
On Fri, 22 Mar 2019 at 02:10, Thierry Reding wrote: > > From: Thierry Reding > > This eliminates the need for intermediate helper functions and allow the > macros to return a value so that it can be used subsequently. > > Signed-off-by: Thierry Reding > --- > Changes in v2: > - new patch > > li

Re: [U-Boot] [PATCH v3 10/13] fdtdec: test: Add carveout tests

2019-04-12 Thread sjg
On Fri, Mar 22, 2019 at 03:53:07PM +0800, Simon Glass wrote: > Hi Thierry, > > On Fri, 22 Mar 2019 at 02:10, Thierry Reding wrote: > > > > From: Thierry Reding > > > > Implement carveout tests for 32-bit and 64-bit builds. > > > > Signed-off-by: Thierry Reding > > --- > > Changes in v2: > > - ne

Re: [U-Boot] [PATCH 2/3] clk: socfpga: replace dm_fdt_pre_reloc by dm_ofnode_pre_reloc

2019-04-12 Thread sjg
On Thu, 21 Mar 2019 at 01:21, Patrick Delaunay wrote: > > Prepare to remove dm_fdt_pre_reloc function. > > Signed-off-by: Patrick Delaunay > --- > > drivers/clk/altera/clk-arria10.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Simon Glass Applied to u-boot-dm, thanks

Re: [U-Boot] [PATCH v3 05/13] fdtdec: Implement fdtdec_add_reserved_memory()

2019-04-12 Thread sjg
From: Thierry Reding This function can be used to add subnodes in the /reserved-memory node. Reviewed-by: Simon Glass Signed-off-by: Thierry Reding --- Changes in v3: - use fdt_generate_phandle() instead of fdtdec_generate_phandle() - add device tree bindings for /reserved-memory - add example

[U-Boot] Build error: caused by CONFIG_SPL_LOG_CONSOLE

2019-04-12 Thread U.Mutlu
If I activate "Enable logging support in SPL" (ie. CONFIG_SPL_LOG_CONSOLE), ie. the following window in make menuconfig: Logging ---> [*] Enable logging support [*] Enable logging support in SPL [*] Enable logging support in TPL (5) Maximum log level to record (3) Ma

Re: [U-Boot] Please pull from u-boot-i2c

2019-04-12 Thread Tom Rini
On Thu, Apr 11, 2019 at 08:33:18PM +0200, Heiko Schocher wrote: > Hello Tom, > > removed patch "i2c: mvtwsi: fix hang on SPL bind" as discussed on ML, > > so here the new pull request: > > The following changes since commit 3c99166441bf3ea325af2da83cfe65430b49c066: > > Prepare v2019.04 (2019

Re: [U-Boot] [PULL] u-boot-stm32 for v2019.07-rc1

2019-04-12 Thread Tom Rini
On Fri, Apr 12, 2019 at 03:44:05PM +, Patrick DELAUNAY wrote: > Hi Tom, > > please pull u-boot-smt32-20190412 including > the following STM32 related patches for v2019.07-rc1 > > - add trusted boot with TF-A for stm32mp1 > - stm32mp1 dts files sync'ed with Linu

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

2019-04-12 Thread Tom Rini
On Fri, Apr 12, 2019 at 01:27:36PM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the following Marvell related patches. I've > removed the board support, causing the out-of-tree building > error for now. I'll push this one after its resolved. Applied to u-boot/master, thanks! -- Tom s

Re: [U-Boot] Pull request: u-boot-sunxi/master

2019-04-12 Thread Tom Rini
On Fri, Apr 12, 2019 at 06:34:52PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > thanks, > Jagan. > > The following changes since commit 3c99166441bf3ea325af2da83cfe65430b49c066: > > Prepare v2019.04 (2019-04-08 21:40:40 -0400) > > are available in the Git repository at: >

Re: [U-Boot] [PATCH 2/2] at91: cleanup taurus port

2019-04-12 Thread Heiko Schocher
Hello Eugen, Am 12.04.2019 um 15:52 schrieb Heiko Schocher: Hello Eugen, Am 12.04.2019 um 15:07 schrieb eugen.hris...@microchip.com: On 12.04.2019 15:53, Heiko Schocher wrote: External E-Mail Hello eugen, Am 12.04.2019 um 13:24 schrieb eugen.hris...@microchip.com: On 11.04.2019 08:53,

Re: [U-Boot] [RFC v2 08/11] cmd: bootefi: carve out bootmgr code from do_bootefi()

2019-04-12 Thread AKASHI Takahiro
On Fri, Apr 12, 2019 at 07:55:16AM +0200, Heinrich Schuchardt wrote: > On 3/27/19 5:40 AM, AKASHI Takahiro wrote: > >This is a preparatory patch for reworking do_bootefi() in later patch. > >do_bootmgr_exec() is renamed to do_efibootmgr() as we put all the necessary > >code into this function. > >

Re: [U-Boot] [PATCH 3/3] arm: kirkwood: openrd: Increase U-Boot size in flash to make it fit

2019-04-12 Thread Chris Packham
On Thu, 11 Apr 2019, 10:33 PM Stefan Roese, wrote: > We have run now multiple times into size issues with the openrd > board port. To finally fix this, this patch now moves the U-Boot size > from 0x6. to 0x8., giving enough space for the next time. > > This also changes the environment lo

Re: [U-Boot] [PATCH 1/3] arm: kirkwood: dts: Add openrd-* dtb makefile build targets

2019-04-12 Thread Chris Packham
On Thu, 11 Apr 2019, 10:33 PM Stefan Roese, wrote: > The following Kirkwood dtb build targets are currently missing: > > kirkwood-openrd-base.dtb > kirkwood-openrd-client.dtb > kirkwood-openrd-ultimate.dtb > > This patch adds them to the Makefile to fix the build error. > > Signed-off-by: Stefan

Re: [U-Boot] [RFC v2 09/11] cmd: bootefi: carve out do_boot_efi() from do_bootefi()

2019-04-12 Thread AKASHI Takahiro
On Fri, Apr 12, 2019 at 07:59:51AM +0200, Heinrich Schuchardt wrote: > On 3/27/19 5:40 AM, AKASHI Takahiro wrote: > >This is a preparatory patch for reworking do_bootefi() in later patch. > >All the non-boot-manager-based (that is, bootefi ) code is put > >into one function, do_boot_efi(). > > > >S

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

2019-04-12 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Fri, 12 Apr 2019 11:13:21 +0530: > On Sun, Dec 9, 2018 at 11:38 PM Miquel Raynal > wrote: > > > > Hello, > > > > During my last project about SPI-NAND support in U-Boot, I discovered > > when modifying Makefiles a confusing organization where: > > * Sub-directorie

Re: [U-Boot] [PATCH] mtd: spi: Improve data write functionality

2019-04-12 Thread Vignesh Raghavendra
On 05/04/19 2:24 PM, Rajat Srivastava wrote: > Incorporate write enable and status check in the write data > function itself. > > Formerly, Write data function used to break the data to be > written into smaller chunks and used to send the smaller > chunks without write enable or status check for

Re: [U-Boot] [PATCH v2] lib: decode_timing_property should return -NOENT when proprty is not found

2019-04-12 Thread Ondřej Jirman
Hello Simon, On Thu, Apr 11, 2019 at 08:12:00PM -0600, Simon Glass wrote: > Hi, > > On Wed, 20 Feb 2019 at 18:47, Simon Glass wrote: > > > > Hi, > > > > On Wed, 13 Feb 2019 at 10:50, wrote: > > > > > > From: Ondrej Jirman > > > > > > Length may be unitialized when fdt_getprop fails. Return ENO

[U-Boot] Migration to KConfig

2019-04-12 Thread Linder Pascal
Hello everyone, My task is to migrate a board from a U-Boot of version v2016.01 to the latest state of the mainline. So first of all, I am analyzing the configuration system KConfig that has changed in the meantime. I do not really understand what has changed with KConfig. Is it just the fact

[U-Boot] [PATCH 2/8] imx8: fuse: add fuse driver

2019-04-12 Thread Peng Fan
Add fuse write for i.MX8 Signed-off-by: Peng Fan --- drivers/misc/imx8/Makefile | 1 + drivers/misc/imx8/fuse.c | 86 ++ 2 files changed, 87 insertions(+) create mode 100644 drivers/misc/imx8/fuse.c diff --git a/drivers/misc/imx8/Makefile b/driver

[U-Boot] [PATCH 1/8] imx: sip: add call_imx_sip_ret2

2019-04-12 Thread Peng Fan
This function will be used by i.MX8 fuse driver. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/sys_proto.h | 3 +++ arch/arm/mach-imx/sip.c | 22 ++ 2 files changed, 25 insertions(+) diff --git a/arch/arm/include/asm/mach-imx/sys_proto.h b/arc

[U-Boot] [PATCH 3/8] imx8qxp: mek: Enable CMD_FUSE

2019-04-12 Thread Peng Fan
Enable CMD_FUSE for i.MX8QXP MEK Signed-off-by: Peng Fan --- configs/imx8qxp_mek_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx8qxp_mek_defconfig b/configs/imx8qxp_mek_defconfig index a94998b8b5..14e9da386a 100644 --- a/configs/imx8qxp_mek_defconfig +++ b/configs/imx8q

[U-Boot] [PATCH 5/8] thermal: add i.MX8 thermal driver

2019-04-12 Thread Peng Fan
Add i.MX8 thermal driver to support get temperature from SCU. Signed-off-by: Peng Fan --- drivers/thermal/Kconfig | 9 ++ drivers/thermal/Makefile | 1 + drivers/thermal/imx_scu_thermal.c | 203 ++ 3 files changed, 213 insertions(+) cre

[U-Boot] [PATCH 6/8] imx8: cpu: get temperature when print cpu desc

2019-04-12 Thread Peng Fan
Read the temperature when print cpu inforation. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/cpu.c | 35 +-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c index 4bbc956f9d..25b01048

[U-Boot] [PATCH 4/8] misc: imx8: add sc_misc_get_temp

2019-04-12 Thread Peng Fan
Add sc_misc_get_temp to support get temperature Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8/sci/sci.h | 2 ++ arch/arm/include/asm/arch-imx8/sci/svc/misc/api.h | 1 + drivers/misc/imx8/scu_api.c | 28 +++ 3 files changed, 31 ins

[U-Boot] [PATCH 7/8] imx: imx8dx/qxp: enable thermal

2019-04-12 Thread Peng Fan
Add thermal dts node Enable thermal in defconfig Signed-off-by: Peng Fan --- arch/arm/dts/fsl-imx8dx.dtsi | 56 +++ configs/imx8qxp_mek_defconfig | 2 ++ 2 files changed, 58 insertions(+) diff --git a/arch/arm/dts/fsl-imx8dx.dtsi b/arch/arm/dts/fsl-imx8

[U-Boot] [PATCH 8/8] imx8: mek: move HUSH_PARSER to defconfig

2019-04-12 Thread Peng Fan
Move HUSH_PARSER to defconfig, otherwise meet " => run netboot Booting from net ... Unknown command 'if' - try 'help' Unknown command 'then' - try 'help' Unknown command 'else' - try 'help' Unknown command 'fi' - try 'help' Unknown command '0x8028' - try 'help' Unknown command 'if' - try 'help'

Re: [U-Boot] [PATCH 2/4 v4] watchdog: cadence: Remove driver specific "timeout-sec" handling

2019-04-12 Thread Michal Simek
On 11. 04. 19 15:58, Stefan Roese wrote: > Now that we have a generic DT property "timeout-sec" handling, the > driver specific implementation can be dropped. > > This patch also changes the timeout restriction to the min and max > values (clipping). Before this patch, the value provided via > "ti

Re: [U-Boot] [PATCH 1/4 v4] watchdog: Implement generic watchdog_reset() version

2019-04-12 Thread Michal Simek
On 11. 04. 19 15:58, Stefan Roese wrote: > This patch tries to implement a generic watchdog_reset() function that > can be used by all boards that want to service the watchdog device in > U-Boot. This watchdog servicing is enabled via CONFIG_WATCHDOG. > > Without this approach, new boards or platf

Re: [U-Boot] [PATCH 1/4 v4] watchdog: Implement generic watchdog_reset() version

2019-04-12 Thread Stefan Roese
On 12.04.19 10:22, Michal Simek wrote: On 11. 04. 19 15:58, Stefan Roese wrote: This patch tries to implement a generic watchdog_reset() function that can be used by all boards that want to service the watchdog device in U-Boot. This watchdog servicing is enabled via CONFIG_WATCHDOG. Without th

Re: [U-Boot] [RFC v2 10/11] efi_loader: rework bootmgr/bootefi using load_image API

2019-04-12 Thread AKASHI Takahiro
On Fri, Apr 12, 2019 at 07:53:25AM +0200, Heinrich Schuchardt wrote: > On 3/27/19 5:40 AM, AKASHI Takahiro wrote: > >In the current implementation, bootefi command and EFI boot manager > >don't use load_image API, instead, use more primitive and internal > >functions. This will introduce duplicated

Re: [U-Boot] [RFC v2 10/11] efi_loader: rework bootmgr/bootefi using load_image API

2019-04-12 Thread Heinrich Schuchardt
On 4/12/19 10:38 AM, AKASHI Takahiro wrote: > On Fri, Apr 12, 2019 at 07:53:25AM +0200, Heinrich Schuchardt wrote: >> On 3/27/19 5:40 AM, AKASHI Takahiro wrote: >>> In the current implementation, bootefi command and EFI boot manager >>> don't use load_image API, instead, use more primitive and inte

Re: [U-Boot] [RFC v2 08/11] cmd: bootefi: carve out bootmgr code from do_bootefi()

2019-04-12 Thread Heinrich Schuchardt
On 4/12/19 9:06 AM, AKASHI Takahiro wrote: > On Fri, Apr 12, 2019 at 07:55:16AM +0200, Heinrich Schuchardt wrote: >> On 3/27/19 5:40 AM, AKASHI Takahiro wrote: >>> This is a preparatory patch for reworking do_bootefi() in later patch. >>> do_bootmgr_exec() is renamed to do_efibootmgr() as we put

Re: [U-Boot] [RFC v2 09/11] cmd: bootefi: carve out do_boot_efi() from do_bootefi()

2019-04-12 Thread Heinrich Schuchardt
On 4/12/19 9:22 AM, AKASHI Takahiro wrote: > On Fri, Apr 12, 2019 at 07:59:51AM +0200, Heinrich Schuchardt wrote: >> On 3/27/19 5:40 AM, AKASHI Takahiro wrote: >>> This is a preparatory patch for reworking do_bootefi() in later patch. >>> All the non-boot-manager-based (that is, bootefi ) code is

Re: [U-Boot] [PATCH v2 1/1] video: backlight: Parse PWM polarity cell

2019-04-12 Thread Anatolij Gustschin
On Fri, 12 Apr 2019 08:56:27 +0300 Stefan Mavrodiev ste...@olimex.com wrote: > This patch enables the reading of the polarity cell from a PWM > phandle and calls pwm_set_invert(). > > Not all platforms have polarity cell, so skip if it's not pressent. > > Signed-off-by: Stefan Mavrodiev Review

Re: [U-Boot] Migration to KConfig

2019-04-12 Thread Marcel Ziswiler
Sali Pascal On Fri, 2019-04-12 at 07:52 +, Linder Pascal wrote: > Hello everyone, > > > My task is to migrate a board from a U-Boot of version v2016.01 to > the latest state of the mainline. So first of all, I am analyzing the > configuration system KConfig that has changed in the meantime.

Re: [U-Boot] [linux-sunxi] [PATCH] phy: sun4i-usb: Fix PHY0 routing and passby configuration for MUSB

2019-04-12 Thread Jagan Teki
On Thu, Mar 14, 2019 at 4:08 PM Paul Kocialkowski wrote: > > Recent Allwinner platforms (starting with the H3) only use the MUSB > controller for peripheral mode and use HCI for host mode. As a result, > extra steps need to be taken to properly route USB signals to one or > the other. More precise

Re: [U-Boot] [PATCH 1/1] colibri_imx6: use UUID for rootfs

2019-04-12 Thread Marcel Ziswiler
Hi Igor Thanks for cleaning that up. On Fri, 2019-04-05 at 15:51 +0200, Igor Opaniuk wrote: > Replace usage of "/dev/mmcblk*p*" with a proper UUID of rootfs > partition. > This fixes the issue, when MMC controllers are probed in a different > order > in U-boot and Linux kernel. Basically a dream

[U-Boot] [PATCH v3 0/2] add env erase

2019-04-12 Thread Frank Wunderlich
sometimes it is needed to erase the non-volatile environment e.g. for boot-up with builtin-environment or after resizing env this series add basic functionality for erasing environment from storage as a first storage-driver mmc is introduced, other needs to be added later changes since v2: - mo

[U-Boot] [PATCH v3 1/2] env: register erase command

2019-04-12 Thread Frank Wunderlich
Signed-off-by: Frank Wunderlich --- cmd/nvedit.c | 13 + env/env.c | 30 ++ include/environment.h | 17 + 3 files changed, 60 insertions(+) diff --git a/cmd/nvedit.c b/cmd/nvedit.c index 24a6cf7824..3b5c62d629 100644 --

[U-Boot] [PATCH v3 2/2] env: mmc: add erase-function

2019-04-12 Thread Frank Wunderlich
Signed-off-by: Frank Wunderlich --- env/mmc.c | 28 1 file changed, 28 insertions(+) diff --git a/env/mmc.c b/env/mmc.c index c3cf35d01b..f387a53970 100644 --- a/env/mmc.c +++ b/env/mmc.c @@ -242,6 +242,33 @@ fini: fini_mmc_for_env(mmc); return ret;

Re: [U-Boot] [PATCH 1/4 v4] watchdog: Implement generic watchdog_reset() version

2019-04-12 Thread Michal Simek
On 12. 04. 19 10:32, Stefan Roese wrote: > On 12.04.19 10:22, Michal Simek wrote: >> On 11. 04. 19 15:58, Stefan Roese wrote: >>> This patch tries to implement a generic watchdog_reset() function that >>> can be used by all boards that want to service the watchdog device in >>> U-Boot. This watchdo

[U-Boot] [PATCH 1/1] common: fdt_support: Check mtdparts cell size

2019-04-12 Thread Stefan Mavrodiev
When using fdt_fixup_mtdparts() offset and length cell sizes are limited to 4 bytes (1 cell). However if the mtd device is bigger then 4GiB, then #address-cells and #size-cells are 8 bytes (2 cells) [1]. This patch read #size-cells and uses either fdt32_t or fdt64_t cell size. The default is fdt32

[U-Boot] [PATCH] mtd: spi-nor-ids: Add Gigadevice gd25lq128 ID

2019-04-12 Thread Neil Armstrong
This adds support for the Gigadevice gd25lq128 ID needed on the upcoming libretech-ac board. SPI_NOR_QUAD_READ is not set since it has not been tested in Quad mode. Signed-off-by: Neil Armstrong --- drivers/mtd/spi/spi-nor-ids.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/m

[U-Boot] [PATCH 2/2] ARM: uniphier_v8: enable CONFIG_SUPPORT_EMMC_RPMB

2019-04-12 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- configs/uniphier_v8_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/uniphier_v8_defconfig b/configs/uniphier_v8_defconfig index 08dfa240c1..e0e4dbd507 100644 --- a/configs/uniphier_v8_defconfig +++ b/configs/uniphier_v8_defconfig @@ -33,6

[U-Boot] [PATCH 1/2] ARM: dts: uniphier: sync with Linux 5.1-rc4

2019-04-12 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ld11.dtsi| 4 +- arch/arm/dts/uniphier-ld20.dtsi| 66 +- arch/arm/dts/uniphier-ld4.dtsi | 14 +++ arch/arm/dts/uniphier-pro4.dtsi| 16 arch/arm/dts/uniphier-pxs2.dtsi| 6 ++- a

[U-Boot] [RESEND PATCH 1/4] sunxi: Fix compilation of sun8i-emac for A83T

2019-04-12 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The A83T has its own clock header file and clock control module structure, unlike H3/A64/R40 which share a common one. As such some of the SoC specific fields or macros are undefined when building U-boot for A83T. Add dummy entries to the clock control module structure to make

[U-Boot] [RESEND PATCH 2/4] net: sun8i-emac: Fix compilation for A83T

2019-04-12 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The A83T has its own clock header file and clock control module structure, unlike H3/A64/R40 which share a common one. As such some of the SoC specific fields or macros are undefined when building U-boot for A83T. Define the AHB_RESET_OFFSET_EPHY macro if it isn't already defi

[U-Boot] [RESEND PATCH 0/4] sunxi: Enable EMAC on A83T boards using Realtek RTL8211E PHY

2019-04-12 Thread Chen-Yu Tsai
From: Chen-Yu Tsai (Resending from correct email address and with proper cover letter subject.) Hi everyone, This series enables EMAC (Ethernet controller) on two A83T boards, the Cubietruck Plus and Bananapi M3. A couple of changes are required to the clock definitions to make the compiler ha

[U-Boot] [RESEND PATCH 4/4] sunxi: Enable EMAC on the Bananapi M3

2019-04-12 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The Bananapi M3 has an RTL8211E PHY connected to the EMAC using RGMII. The PHY is powered by DCDC1 through SW @ 3.3V. This patch enables the EMAC and Realtek PHY drivers in the defconfig. The device tree file already has the EMAC enabled. Signed-off-by: Chen-Yu Tsai --- c

[U-Boot] [RESEND PATCH 3/4] sunxi: Enable EMAC on the Cubietruck Plus

2019-04-12 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The Cubietruck Plus has an RTL8211E PHY connected to the EMAC using RGMII. The PHY is powered by DLDO4 @ 3.3V, while the I/O pins are powered by DLDO3 @ 2.5V. This patch enables the EMAC and Realtek PHY drivers in the defconfig. The device tree file already has the EMAC enable

[U-Boot] [RESEND-2 PATCH 4/4] sunxi: Enable EMAC on the Bananapi M3

2019-04-12 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The Bananapi M3 has an RTL8211E PHY connected to the EMAC using RGMII. The PHY is powered by DCDC1 through SW @ 3.3V. This patch enables the EMAC and Realtek PHY drivers in the defconfig. The device tree file already has the EMAC enabled. Signed-off-by: Chen-Yu Tsai --- c

[U-Boot] [PATCH] dts: imx6ull: add USB aliases to support DM

2019-04-12 Thread Filip Brozovic
Signed-off-by: Filip Brozovic --- arch/arm/dts/imx6ull.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/dts/imx6ull.dtsi b/arch/arm/dts/imx6ull.dtsi index 97236d86ea..4598f2f411 100644 --- a/arch/arm/dts/imx6ull.dtsi +++ b/arch/arm/dts/imx6ull.dtsi @@ -46,6 +46,8 @@

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

2019-04-12 Thread Marek Vasut
On 4/11/19 10:07 PM, Simon Goldschmidt wrote: > > > Marek Vasut mailto:ma...@denx.de>> schrieb am Do., 11. > Apr. 2019, 21:59: > > On 4/11/19 9:30 PM, Simon Goldschmidt wrote: > > > > > > On 11.04.19 21:03, Tom Rini wrote: > >> On Thu, Apr 11, 2019 at 08:49:38PM +0200, Simon

[U-Boot] [RESEND-2 PATCH 3/4] sunxi: Enable EMAC on the Cubietruck Plus

2019-04-12 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The Cubietruck Plus has an RTL8211E PHY connected to the EMAC using RGMII. The PHY is powered by DLDO4 @ 3.3V, while the I/O pins are powered by DLDO3 @ 2.5V. This patch enables the EMAC and Realtek PHY drivers in the defconfig. The device tree file already has the EMAC enable

[U-Boot] [RESEND-2 PATCH 0/4] sunxi: Enable EMAC on A83T boards using Realtek RTL8211E PHY

2019-04-12 Thread Chen-Yu Tsai
From: Chen-Yu Tsai (Resending yet again with correct email address now subscribed and with proper cover letter subject. Sorry for the noise.) Hi everyone, This series enables EMAC (Ethernet controller) on two A83T boards, the Cubietruck Plus and Bananapi M3. A couple of changes are required t

[U-Boot] [RESEND-2 PATCH 2/4] net: sun8i-emac: Fix compilation for A83T

2019-04-12 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The A83T has its own clock header file and clock control module structure, unlike H3/A64/R40 which share a common one. As such some of the SoC specific fields or macros are undefined when building U-boot for A83T. Define the AHB_RESET_OFFSET_EPHY macro if it isn't already defi

[U-Boot] [RESEND-2 PATCH 1/4] sunxi: Fix compilation of sun8i-emac for A83T

2019-04-12 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The A83T has its own clock header file and clock control module structure, unlike H3/A64/R40 which share a common one. As such some of the SoC specific fields or macros are undefined when building U-boot for A83T. Add dummy entries to the clock control module structure to make

[U-Boot] [PATCH] main: add new bootstage ID for entering cli loop

2019-04-12 Thread Heiko Schocher
adding a new bootstage ID: BOOTSTAGE_ID_ENTER_CLI_LOOP Signed-off-by: Heiko Schocher --- travis build with this patch is fine, see: https://travis-ci.org/hsdenx/u-boot/builds/519102185 common/cli.c| 1 + include/bootstage.h | 1 + 2 files changed, 2 insertions(+) diff --git a/common/cl

[U-Boot] [PATCH v2 1/1] efi_loader: fix setting PlatformLang

2019-04-12 Thread Heinrich Schuchardt
The UEFI variables PlatformLang and PlatformLangCodes specify the current firmware language and the list of all available languages. Currently their values are hard coded. With the patch a new configuration variable EFI_PLATFORM_LANG_CODES is provided. When initializing the UEFI subsystem this co

[U-Boot] [RESEND PATCH] configs: Migrate USB_MUSB_DISABLE_BULK_COMBINE_SPLIT to Kconfig

2019-04-12 Thread Alex Kiernan
Migrate support for disable MUSB bulk split/combine to Kconfig Green Travis build: https://travis-ci.org/akiernan/u-boot/builds/519101867 Signed-off-by: Alex Kiernan --- drivers/usb/musb-new/Kconfig | 9 + include/configs/am335x_evm.h | 1 - include/configs/baltos.

Re: [U-Boot] [RESEND PATCH] configs: Migrate USB_MUSB_DISABLE_BULK_COMBINE_SPLIT to Kconfig

2019-04-12 Thread Marek Vasut
On 4/12/19 12:51 PM, Alex Kiernan wrote: > Migrate support for disable MUSB bulk split/combine to Kconfig > > Green Travis build: > > https://travis-ci.org/akiernan/u-boot/builds/519101867 > > Signed-off-by: Alex Kiernan Acked-by: Marek Vasut I think it's better if this goes through u-boot-t

Re: [U-Boot] [PATCH 1/1] colibri_imx6: use UUID for rootfs

2019-04-12 Thread Igor Opaniuk
Hi Marcel, Thanks for your comments. On Fri, Apr 12, 2019 at 11:32 AM Marcel Ziswiler wrote: > > Hi Igor > > Thanks for cleaning that up. > > On Fri, 2019-04-05 at 15:51 +0200, Igor Opaniuk wrote: > > Replace usage of "/dev/mmcblk*p*" with a proper UUID of rootfs > > partition. > > This fixes th

Re: [U-Boot] [RFC 1/1] cmd: fs: fix data abort in load cmd

2019-04-12 Thread Igor Opaniuk
Thanks Heinrich! Will test it ASAP. On Wed, Apr 10, 2019 at 8:36 PM Heinrich Schuchardt wrote: > > On 4/10/19 8:48 AM, Igor Opaniuk wrote: > > Hi Heinrich, > > > > Thanks for looking into this, > > > > On Tue, Apr 9, 2019 at 11:28 PM Heinrich Schuchardt > > wrote: > >> > >> On 4/9/19 3:08 PM,

Re: [U-Boot] [PATCH 2/2] at91: cleanup taurus port

2019-04-12 Thread Eugen.Hristev
On 11.04.2019 08:53, Heiko Schocher wrote: > > - at91sam9g20-taurus.dts: use labels > - cleanup taurus port to compile clean with >current mainline again. SPL has no serial >output anymore, so it fits into SRAM. > > Signed-off-by: Heiko Schocher [snip] Hello Heiko, This patch has s

Re: [U-Boot] [PATCH 1/1] colibri_imx7: migrate usb to driver model

2019-04-12 Thread Marcel Ziswiler
Hi Igor Just some minor nitpicks below. On Thu, 2019-04-11 at 16:55 +0200, Igor Opaniuk wrote: > Migrate USB to Driver Model (CONFIG_DM_USB=y). > > Signed-off-by: Igor Opaniuk Tested-by: Marcel Ziswiler > --- > arch/arm/dts/imx7-colibri-emmc.dts| 37 + > arch/arm

[U-Boot] Please pull u-boot-marvell/master (v2)

2019-04-12 Thread Stefan Roese
Hi Tom, please pull the following Marvell related patches. I've removed the board support, causing the out-of-tree building error for now. I'll push this one after its resolved. - Misc dts files sync'ed with Linux version (Chris) -

Re: [U-Boot] [PATCH 1/1] colibri_imx6: use UUID for rootfs

2019-04-12 Thread Marcel Ziswiler
Hi Igor On Fri, 2019-04-12 at 11:15 +, Igor Opaniuk wrote: > Hi Marcel, > > Thanks for your comments. > > On Fri, Apr 12, 2019 at 11:32 AM Marcel Ziswiler > wrote: > > Hi Igor > > > > Thanks for cleaning that up. > > > > On Fri, 2019-04-05 at 15:51 +0200, Igor Opaniuk wrote: > > > Replace

Re: [U-Boot] [U-Boot,1/2] spi: ti_qspi: Drop non DM code

2019-04-12 Thread Tom Rini
On Mon, Feb 11, 2019 at 02:35:35PM +0530, Vignesh R wrote: > Now that all boards using TI QSPI have moved to DM and DT, drop non DM > code completely. > > Signed-off-by: Vignesh R > Reviewed-by: Tom Rini > --- > drivers/spi/Kconfig| 12 +- > drivers/spi/Makefile | 2 +-

<    1   2   3   >