Re: [U-Boot] [PATCH] am33xx: Add a function to query MPU voltage in uV

2017-10-13 Thread Lokesh Vutla
On Wednesday 11 October 2017 10:12 PM, Felix Brack wrote: > For the DM TPS65910 driver I'm working on, querying the MPU voltage > should return a value in uV. This value can then be used by the > regulator's standard function set_value to set the MPU voltage. > > Signed-off-by: Felix Brack

Re: [U-Boot] [PULL] efi patch queue 2017-10-13

2017-10-13 Thread Tom Rini
On Fri, Oct 13, 2017 at 10:37:37AM +0200, Alexander Graf wrote: > Hi Tom, > > This is my current patch queue for efi. Please pull. > > Alex > > > The following changes since commit 39dd65a059e503883dbf16d4c00ac083d15837da: > > sandbox: Enable btrfs support (2017-10-03 08:44:55 -0400) > >

Re: [U-Boot] [PATCH 3/4] omap-common: fastboot: extend cpu type for DRA71x rev 2.1

2017-10-13 Thread Tom Rini
On Thu, Oct 12, 2017 at 10:47:04PM -0500, Praneeth Bajjuri wrote: > From: Vishal Mahaveer > > DRA71x processors are reduced pin and software compatible > derivative of DRA72 processors. Extend support for this > revision in "getvar cpu" command. > > Signed-off-by: Vishal

Re: [U-Boot] [PATCH 4/4] arm: dra76: fastboot: extend cpu type for getvar command

2017-10-13 Thread Tom Rini
On Thu, Oct 12, 2017 at 10:47:05PM -0500, Praneeth Bajjuri wrote: > 'commit fa24eca1f20a ("omap: Add routine for setting fastboot variables")' > adds initial support and usage of "fastboot getvar" command > for DRA75x and DRA72x devices. > > and > 'commit 0f9e6aee9dbc ("arm: dra76: Add support

Re: [U-Boot] [PATCH 2/4] arm: dra7xx: Add vendor partition to Android GPT table for eMMC

2017-10-13 Thread Tom Rini
On Thu, Oct 12, 2017 at 10:47:03PM -0500, Praneeth Bajjuri wrote: > From: Vishal Mahaveer > > Add vendor partition to Android GPT table for eMMC. > > A Vendor image contains SoC-specific code and configuration. > > Prior to Android 8.0, the vendor partition was optional ; >

Re: [U-Boot] [PATCH 1/4] arm: am57xx: Add vendor partition to Android GPT table for eMMC

2017-10-13 Thread Tom Rini
On Thu, Oct 12, 2017 at 10:47:02PM -0500, Praneeth Bajjuri wrote: > Add vendor partition to Android GPT table for eMMC. > > A Vendor image contains SoC-specific code and configuration. > > Prior to Android 8.0, the vendor partition was optional ; > files belonging to these images were placed in

Re: [U-Boot] [PATCH v2 0/3] kbuild: always use relative path for __FILE__

2017-10-13 Thread Tom Rini
On Sat, Oct 14, 2017 at 03:35:23AM +0900, Masahiro Yamada wrote: > 2017-10-13 22:53 GMT+09:00 Tom Rini : > > On Fri, Oct 13, 2017 at 09:21:19PM +0900, Masahiro Yamada wrote: > >> 2017-10-13 21:11 GMT+09:00 Tom Rini : > >> > On Fri, Oct 13, 2017 at 06:51:42PM

Re: [U-Boot] [PATCH v4 2/2] wandboard: Add support for the MX6QP variant

2017-10-13 Thread Fabio Estevam
Hi Stefano, On Wed, Oct 4, 2017 at 9:35 AM, Fabio Estevam wrote: > Hi Stefano, > > On Wed, Oct 4, 2017 at 6:34 AM, Stefano Babic wrote: > >> mmhhh...it looks to me we are diverging with this SOC. I understand that >> current funtions are not suitable for the

Re: [U-Boot] [PATCH v2 1/1] test/py/tests/test_sleep.py: test time approximately

2017-10-13 Thread Stephen Warren
On 10/13/2017 02:28 PM, Heinrich Schuchardt wrote: On qemu errors like assert 2.999650001525879 >= 3 occur. According to the comment in the code the test is meant to be approximate. So we should accept some milliseconds less. Reviewed-by: Stephen Warren

[U-Boot] [PATCH v2 1/1] test/py/tests/test_sleep.py: test time approximately

2017-10-13 Thread Heinrich Schuchardt
On qemu errors like assert 2.999650001525879 >= 3 occur. According to the comment in the code the test is meant to be approximate. So we should accept some milliseconds less. Cc: Stephen Warren Signed-off-by: Heinrich Schuchardt --- v2 reduce

Re: [U-Boot] [PATCH 1/1] test/py/tests/test_sleep.py: test time approximately

2017-10-13 Thread Stephen Warren
On 10/05/2017 04:33 PM, Heinrich Schuchardt wrote: On 10/05/2017 11:10 PM, Stephen Warren wrote: On 10/05/2017 01:52 PM, Heinrich Schuchardt wrote: On qemu errors like assert 2.999650001525879 >= 3 occur. Can you work out why? I guess 1-999650001525879 is a really tiny amount, so perhaps

Re: [U-Boot] [PATCH v2 0/3] kbuild: always use relative path for __FILE__

2017-10-13 Thread Masahiro Yamada
2017-10-13 22:53 GMT+09:00 Tom Rini : > On Fri, Oct 13, 2017 at 09:21:19PM +0900, Masahiro Yamada wrote: >> 2017-10-13 21:11 GMT+09:00 Tom Rini : >> > On Fri, Oct 13, 2017 at 06:51:42PM +0900, Masahiro Yamada wrote: >> > >> >> We discussed the __FILE__

Re: [U-Boot] [PATCH v3 1/7] spl: fix assignment of board info to global data

2017-10-13 Thread York Sun
On 09/28/2017 08:42 AM, York Sun wrote: > Commit 15eb1d43bf47 ("spl: reorder the assignment of board info to > global data") intended to move assignment of board info earlier, > into board_init_r(). However, function preload_console_init() is > called either from spl_board_init() or from

Re: [U-Boot] [PATCH v2] armv8: ls1088a: Update MC boot sequence

2017-10-13 Thread York Sun
On 10/04/2017 11:57 PM, Bogdan Purcareata wrote: > The MC boot sequence is contained in mc_env_boot. Update LS1088A boards > to use this function, and hook it to reset_phy so that it's called late > enough, after the ports have been initialized, for proper DPC / DPL > fixup. > > Signed-off-by:

Re: [U-Boot] [PATCH] armv8: fsl-layerscape: Allocate Secure memory from first ddr region

2017-10-13 Thread York Sun
On 10/03/2017 03:16 AM, Sumit Garg wrote: > This change is required due to trusted OS (OP-TEE) not being position > independent code, it requires compile time fixed base address. > > To take care of this it is assumed that all layerscape armv8 platforms > has minimum 2G ddr in first region. So we

Re: [U-Boot] [PATCH] ls1021aiot: Move CONFIG_CMD_BOOTZ to Kconfig

2017-10-13 Thread York Sun
On 09/28/2017 09:24 AM, Fabio Estevam wrote: > CONFIG_CMD_BOOTZ symbol does not work in board config file > anymore, so fix this by moving it to Kconfig. > > Signed-off-by: Fabio Estevam > --- Applied to fsl-qoriq master. Thanks. York

Re: [U-Boot] [PATCH] armv8: Apply workaround for USB erratum A-009007 to LS1088A

2017-10-13 Thread York Sun
On 09/22/2017 12:39 AM, Ran Wang wrote: > Rx Compliance tests may fail intermittently at high > jitter frequencies using default register values. > > Program register USB_PHY_RX_OVRD_IN_HI in certain sequence > to make the Rx compliance test pass. > > Signed-off-by: Ran Wang

Re: [U-Boot] [PATCH] armv8: ls1046aqds: Fix NAND offset for Fman ucode and env

2017-10-13 Thread York Sun
On 09/18/2017 02:16 AM, Gong Qianyu wrote: > Fix a bug of 'commit 8104deb2d6b7 ("armv8: layerscape: Adjust memory > mapping for Flash/SD card on LS1046A")' as NAND block size is > 256KB on LS1046AQDS. > > Signed-off-by: Gong Qianyu > --- Applied to fsl-qoriq master. Thanks.

Re: [U-Boot] [PATCH v2 0/3] kbuild: always use relative path for __FILE__

2017-10-13 Thread Masahiro Yamada
2017-10-13 22:53 GMT+09:00 Tom Rini : > On Fri, Oct 13, 2017 at 09:21:19PM +0900, Masahiro Yamada wrote: >> 2017-10-13 21:11 GMT+09:00 Tom Rini : >> > On Fri, Oct 13, 2017 at 06:51:42PM +0900, Masahiro Yamada wrote: >> > >> >> We discussed the __FILE__

[U-Boot] [PATCH v2 4/9] efi_loader: new function utf8_to_utf16

2017-10-13 Thread Heinrich Schuchardt
Provide a conversion function from utf8 to utf16. Add missing #include in include/charset.h. Remove superfluous #include in lib/charset.c. Signed-off-by: Heinrich Schuchardt --- v2 new patch --- include/charset.h | 15 +++ lib/charset.c | 57

[U-Boot] [PATCH v2 7/9] efi_selftest: test reboot by watchdog

2017-10-13 Thread Heinrich Schuchardt
A test is added that verifies that the watchdog timer actually causes a reboot upon timeout. The test in only executed on request using bootefi selftest 'watchdog reboot' Signed-off-by: Heinrich Schuchardt --- v2 no change ---

[U-Boot] [PATCH v2 9/9] test/py: fix typo in test_efi_loader.py

2017-10-13 Thread Heinrich Schuchardt
Make a comment line easier to read. Signed-off-by: Heinrich Schuchardt --- v2 no change --- test/py/tests/test_efi_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/py/tests/test_efi_loader.py b/test/py/tests/test_efi_loader.py index

[U-Boot] [PATCH v2 0/9] efi_loader: implement SetWatchdogTimer

2017-10-13 Thread Heinrich Schuchardt
The patch series is centered on implementing the SetWatchdogTimer boottime service. Two tests are supplied. One that checks that resetting the watchdog timer saves from a reboot. The other checks that the watchdog timer actually leads to a reset. Both are covered by Python test cases. Additional

[U-Boot] [PATCH v2 6/9] efi_selftest: allow to select a single test for exexution

2017-10-13 Thread Heinrich Schuchardt
Environment variable efi_selftest is passed as load options to the selftest application. It is used to select a single test to be executed. Special value 'list' displays a list of all available tests. Tests get an on_request property. If this property is set the tests are only executed if

[U-Boot] [PATCH v2 8/9] test/py: test reboot by EFI watchdog

2017-10-13 Thread Heinrich Schuchardt
Clear environment variable efi_selftest before executing the default tests. Provide a test verifying that the EFI watchdog reboots the system upon timeout. The test depends on CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt --- v2 choose test via

[U-Boot] [PATCH v2 3/9] efi_selftest: provide test for watchdog timer

2017-10-13 Thread Heinrich Schuchardt
The test verifies that resetting the watchdog timer ensures that it is not called during the timeout period. Testing that the watchdog timer actually executes a reset would require a test outside the efi_selftest framework. Signed-off-by: Heinrich Schuchardt --- v2

[U-Boot] [PATCH v2 5/9] efi_loader: guard against double inclusion of efi_loader.h

2017-10-13 Thread Heinrich Schuchardt
Use a define to detect double inclusion of efi_loader.h. Signed-off-by: Heinrich Schuchardt --- v2 new patch --- include/efi_loader.h | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/efi_loader.h b/include/efi_loader.h index

[U-Boot] [PATCH v2 1/9] efi_loader: move efi_search_obj up in code

2017-10-13 Thread Heinrich Schuchardt
To avoid a forward declaration move efi_search_obj before all protocol services functions. Signed-off-by: Heinrich Schuchardt --- v2 no change --- lib/efi_loader/efi_boottime.c | 41 + 1 file changed, 21 insertions(+), 20

[U-Boot] [PATCH v2 2/9] efi_loader: implement SetWatchdogTimer

2017-10-13 Thread Heinrich Schuchardt
The watchdog is initialized with a 5 minute timeout period. It can be reset by SetWatchdogTimer. It is stopped by ExitBoottimeServices. Signed-off-by: Heinrich Schuchardt --- v2 code comments updated --- cmd/bootefi.c | 1 + include/efi_loader.h

[U-Boot] [PATCH 1/1] scripts/get_maintainer.pl: update to current version

2017-10-13 Thread Heinrich Schuchardt
Update the script to version 0.26 (as of Linux v4.14-rc1) Keep our "penguin_chief". Keep our top_of_kernel_tree. The negative forms of the command line parameters are described when using --help. New options are --git-blame-signatures => when used with --git-blame,

[U-Boot] [PATCH 3/4] mtd: nand: denali_dt: add clock support

2017-10-13 Thread Masahiro Yamada
Enable clock in the probe hook. The clock rate will be necessary when setup_data_interface hook is supported. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali.h| 1 + drivers/mtd/nand/denali_dt.c | 12 2 files changed, 13

[U-Boot] [PATCH 2/4] ARM: uniphier: adjust ifdefs for new UniPhier DWC3 CONFIG

2017-10-13 Thread Masahiro Yamada
Now USB 3.0 feature is enabled/disabled by CONFIG_USB_DWC3_UNIPHIER. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/clk/clk-pro4.c | 6 +++--- arch/arm/mach-uniphier/clk/clk-pro5.c | 6 +++--- arch/arm/mach-uniphier/clk/clk-pxs2.c | 6 +++--- 3 files

[U-Boot] [PATCH 4/4] clk: uniphier: add NAND controller clock

2017-10-13 Thread Masahiro Yamada
This allows the NAND driver to enable clock and get its clock rate. Signed-off-by: Masahiro Yamada --- drivers/clk/uniphier/clk-uniphier-sys.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c

[U-Boot] [PATCH 1/4] ARM: uniphier: enable DWC3 xHCI driver

2017-10-13 Thread Masahiro Yamada
Enable CONFIGs for the DWC3 core and the UniPhier specific glue layer. Signed-off-by: Masahiro Yamada --- configs/uniphier_v7_defconfig | 2 ++ configs/uniphier_v8_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/uniphier_v7_defconfig

[U-Boot] [PATCH v2] DW SPI: Get clock value from Device Tree

2017-10-13 Thread Eugeniy Paltsev
Add option to set spi controller clock frequency via device tree using standard clock bindings. Old way of setting spi controller clock frequency (via implementation of 'cm_get_spi_controller_clk_hz' function in platform specific code) remains supported for backward compatibility. Signed-off-by:

Re: [U-Boot] [PATCH] power: extend prefix match to regulator-name property

2017-10-13 Thread Felix Brack
Hello Simon, On 12.10.2017 04:07, Simon Glass wrote: > Hi Felix, > > On 9 October 2017 at 03:04, Felix Brack wrote: >> >> This patch extends pmic_bind_children prefix matching. In addition to >> the node name the property regulator-name is used while trying to match >> prefixes.

Re: [U-Boot] [PATCH 07/11] efi_loader: fix events

2017-10-13 Thread Rob Clark
On Fri, Oct 13, 2017 at 1:24 AM, Heinrich Schuchardt wrote: > > > On 10/10/2017 02:23 PM, Rob Clark wrote: >> >> An event can be created with type==0, Shell.efi does this for an event >> that is set when Ctrl-C is typed. So our current approach of having a >> fixed set of

Re: [U-Boot] [PATCH] ARC: HSDK: introduce CREG GPIO driver

2017-10-13 Thread Tom Rini
On Fri, Oct 13, 2017 at 01:55:28PM +, Alexey Brodkin wrote: > Hi Tom, > > On Fri, 2017-10-13 at 09:46 -0400, Tom Rini wrote: > > On Fri, Oct 13, 2017 at 01:33:22PM +, Alexey Brodkin wrote: > > > > > > Hi Tom, > > > > > > On Fri, 2017-10-13 at 16:21 +0300, Eugeniy Paltsev wrote: > > > >

Re: [U-Boot] [PATCH] ARC: HSDK: introduce CREG GPIO driver

2017-10-13 Thread Alexey Brodkin
Hi Tom, On Fri, 2017-10-13 at 09:46 -0400, Tom Rini wrote: > On Fri, Oct 13, 2017 at 01:33:22PM +, Alexey Brodkin wrote: > > > > Hi Tom, > > > > On Fri, 2017-10-13 at 16:21 +0300, Eugeniy Paltsev wrote: > > > > > > The HSDK can manage some pins via CREG registers block. > > > > > >

Re: [U-Boot] [PATCH v2 0/3] kbuild: always use relative path for __FILE__

2017-10-13 Thread Tom Rini
On Fri, Oct 13, 2017 at 09:21:19PM +0900, Masahiro Yamada wrote: > 2017-10-13 21:11 GMT+09:00 Tom Rini : > > On Fri, Oct 13, 2017 at 06:51:42PM +0900, Masahiro Yamada wrote: > > > >> We discussed the __FILE__ problem when U-Boot is built out of tree. > >>

Re: [U-Boot] [PATCH] ARC: HSDK: introduce CREG GPIO driver

2017-10-13 Thread Tom Rini
On Fri, Oct 13, 2017 at 01:33:22PM +, Alexey Brodkin wrote: > Hi Tom, > > On Fri, 2017-10-13 at 16:21 +0300, Eugeniy Paltsev wrote: > > The HSDK can manage some pins via CREG registers block. > > > > Signed-off-by: Eugeniy Paltsev > > --- > >  MAINTAINERS   

Re: [U-Boot] [PATCH] ARC: HSDK: introduce CREG GPIO driver

2017-10-13 Thread Alexey Brodkin
Hi Tom, On Fri, 2017-10-13 at 16:21 +0300, Eugeniy Paltsev wrote: > The HSDK can manage some pins via CREG registers block. > > Signed-off-by: Eugeniy Paltsev > --- >  MAINTAINERS   |   6 +++ >  drivers/gpio/Kconfig  |   7 +++ >  

Re: [U-Boot] fsl_esdhc driver is broken with DM

2017-10-13 Thread Fabio Estevam
Hi Lukasz, On Fri, Oct 13, 2017 at 5:16 AM, Lukasz Majewski wrote: > There is some ongoing work to provide such facility. for imx6 > boards. I will keep you informed. That's good news! Please keep me in the loop as well. Thanks

[U-Boot] [PATCH v2] mx6slevk: Fix MMC breakage for the SPL target

2017-10-13 Thread Fabio Estevam
From: Fabio Estevam Commit 001cdbbb32ef1f6 ("imx: mx6slevk: enable more DM drivers") breaks MMC support in U-Boot proper on the mx6slevk_spl_defconfig target: U-Boot SPL 2017.09-00396-g6ca43a5 (Oct 01 2017 - 16:20:18) Trying to boot from MMC1 U-Boot

[U-Boot] [PATCH] ARC: HSDK: introduce CREG GPIO driver

2017-10-13 Thread Eugeniy Paltsev
The HSDK can manage some pins via CREG registers block. Signed-off-by: Eugeniy Paltsev --- MAINTAINERS | 6 +++ drivers/gpio/Kconfig | 7 +++ drivers/gpio/Makefile | 1 + drivers/gpio/hsdk-creg-gpio.c | 109

[U-Boot] U-Boot download link broken

2017-10-13 Thread Guillaume Gardet
Hi, On this page: http://www.denx.de/wiki/U-Boot/SourceCode there is a link to Amazon Cloud Drive to download U-Boot, but this link is not working anymore. Another problem: on the FTP, there is no tarball for v2017.11-rc1. Guillaume ___ U-Boot

Re: [U-Boot] [PATCH v2 0/3] kbuild: always use relative path for __FILE__

2017-10-13 Thread Masahiro Yamada
2017-10-13 21:11 GMT+09:00 Tom Rini : > On Fri, Oct 13, 2017 at 06:51:42PM +0900, Masahiro Yamada wrote: > >> We discussed the __FILE__ problem when U-Boot is built out of tree. >> https://www.mail-archive.com/u-boot@lists.denx.de/msg242852.html >> >> The deeper your build

Re: [U-Boot] [PATCH v2 0/3] kbuild: always use relative path for __FILE__

2017-10-13 Thread Tom Rini
On Fri, Oct 13, 2017 at 06:51:42PM +0900, Masahiro Yamada wrote: > We discussed the __FILE__ problem when U-Boot is built out of tree. > https://www.mail-archive.com/u-boot@lists.denx.de/msg242852.html > > The deeper your build directory is located, the larger > your U-Boot image becomes. > If

Re: [U-Boot] [PATCH 2/6] mmc: uniphier-sd: Use mmc_of_parse()

2017-10-13 Thread Marek Vasut
On 10/13/2017 01:36 PM, Masahiro Yamada wrote: > Hi Marek, > > 2017-10-06 21:07 GMT+09:00 Marek Vasut : >> Drop the ad-hoc DT caps parsing in favor of common framework function. >> >> Signed-off-by: Marek Vasut >> Cc: Jaehoon Chung

Re: [U-Boot] [PATCH 2/6] mmc: uniphier-sd: Use mmc_of_parse()

2017-10-13 Thread Masahiro Yamada
Hi Marek, 2017-10-06 21:07 GMT+09:00 Marek Vasut : > Drop the ad-hoc DT caps parsing in favor of common framework function. > > Signed-off-by: Marek Vasut > Cc: Jaehoon Chung > Cc: Masahiro Yamada

[U-Boot] [PATCH] [RFC] imx: dek_blob: Fix lock-up on dek_blob command

2017-10-13 Thread Henri Roosen
The function blob_encap_dek accesses a CAAM register CONFIG_SYS_FSL_JR0_ADDR + 0x102c, before the CAAM clock has been enabled, which causes the system to lock-up at the dek_blob command. This patch enables and disables the CAAM clock, because this is also done in

[U-Boot] [PATCH] drivers: core: Add translation in live tree case

2017-10-13 Thread Mario Six
The function dev_read_addr calls ofnode_get_addr_index in the live tree case, which does not apply bus translations to the address read from the device tree. This results in illegal addresses on boards that rely on bus translations being applied. Fix this situation by applying bus translations in

Re: [U-Boot] [PATCH 3/3] x86: baytrail: fsp: Move Azalia update codes to board

2017-10-13 Thread Stefan Roese
On 13.10.2017 10:30, Bin Meng wrote: Azalia configuration may be different across boards, hence it's not appropriate to do that in the SoC level. Instead, let's make the SoC update_fsp_azalia_configs() routine as a weak version, and do the actual work in the board codes. So far it seems only

Re: [U-Boot] [PATCH 1/3] x86: fsp: Consolidate Azalia header file

2017-10-13 Thread Stefan Roese
On 13.10.2017 10:30, Bin Meng wrote: So far there are two copies of Azalia struct defines with one in baytrail and the other one in braswell. This consolidates these two into one, put it in the common place, and remove the prefix pch_ to these structs to make their names more generic. This also

Re: [U-Boot] [PATCH 2/3] x86: baytrail: fsp: Use a function to update the Azalia config pointer

2017-10-13 Thread Stefan Roese
On 13.10.2017 10:30, Bin Meng wrote: At present we directly pass the Azalia config pointer to the FSP UPD. This updates to use a function to do the stuff, like Braswell does. Signed-off-by: Bin Meng --- arch/x86/cpu/baytrail/fsp_configs.c | 15

Re: [U-Boot] [PATCH 07/20] usb: dwc3-uniphier: replace with

2017-10-13 Thread Marek Vasut
On 10/13/2017 01:01 PM, Masahiro Yamada wrote: > Hi Marek, > > > 2017-10-13 19:40 GMT+09:00 Marek Vasut : >> On 10/13/2017 12:21 PM, Masahiro Yamada wrote: >>> Including pulls in a lot of bloat. What this driver needs >>> is BIT(), so replace it with >>> >>> Signed-off-by:

Re: [U-Boot] [PATCH 1/2] x86: baytrail: Fix unstable ACPI S3 resume

2017-10-13 Thread Stefan Roese
On 12.10.2017 14:07, Bin Meng wrote: It was observed that when booting a Ubuntu 16.04 kernel, doing ACPI S3 suspend/resume sometimes causes the Ubuntu kernel hang forever. The issue is however not reproduced with a kernel built from i386/ x86_64 defconfig configuration. The unstability is

Re: [U-Boot] [PATCH 2/2] x86: Turn off running VGA ROM during S3 resume

2017-10-13 Thread Stefan Roese
On 12.10.2017 14:07, Bin Meng wrote: This is only needed when graphics console is used. For kernel with native graphics driver, this can be turned off to speed up. Change this option's default to n in the Kconfig. Signed-off-by: Bin Meng --- arch/x86/Kconfig | 1 - 1

Re: [U-Boot] [PATCH 07/20] usb: dwc3-uniphier: replace with

2017-10-13 Thread Masahiro Yamada
Hi Marek, 2017-10-13 19:40 GMT+09:00 Marek Vasut : > On 10/13/2017 12:21 PM, Masahiro Yamada wrote: >> Including pulls in a lot of bloat. What this driver needs >> is BIT(), so replace it with >> >> Signed-off-by: Masahiro Yamada > > Doesn't

Re: [U-Boot] [PATCH v2 0/2] Support for TI bandgap temperature sensor

2017-10-13 Thread Faiz Abbas
Hi, On Monday 09 October 2017 05:47 PM, Faiz Abbas wrote: > Adding support for TI bandgap temperature sensor. > Also add dt support for bandgap sensor in spl. > > Faiz Abbas (2): > thermal: ti-bandgap: Add support for temperature sensor > ARM: dts: OMAP5+: Add support for bandgap sensor in

Re: [U-Boot] [PATCH 07/20] usb: dwc3-uniphier: replace with

2017-10-13 Thread Marek Vasut
On 10/13/2017 12:21 PM, Masahiro Yamada wrote: > Including pulls in a lot of bloat. What this driver needs > is BIT(), so replace it with > > Signed-off-by: Masahiro Yamada Doesn't common.h also pull in the config macros ? Maybe they are not needed here though

[U-Boot] [PATCH] i2c: remove DECLARE_GLOBAL_DATA_PTR from i2c-uclass

2017-10-13 Thread Masahiro Yamada
No global pointer is used in this file. Signed-off-by: Masahiro Yamada --- drivers/i2c/i2c-uclass.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/i2c/i2c-uclass.c b/drivers/i2c/i2c-uclass.c index 1397f34..920811a 100644 ---

[U-Boot] [PATCH 09/20] i2c: uniphier-f: replace debug() with dev_dbg()

2017-10-13 Thread Masahiro Yamada
Use dev_dbg() functions. It will be helpful to prefix log messages with the corresponding device name when the core framework is ready. While I am here, I renamed "dev", which was actually private data, into "priv" because dev->dev looks confusing. Signed-off-by: Masahiro Yamada

[U-Boot] [PATCH 17/20] ARM: dts: uniphier: prepare to use clock for serial

2017-10-13 Thread Masahiro Yamada
The serial driver is probed by SPL and/or board_init_f. To get the clock from the serial driver, the clock node must be marked as u-boot,dm-pre-reloc. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-v7-u-boot.dtsi | 8

[U-Boot] [PATCH 05/20] pinctrl: uniphier: simplify input enable and delete pin arrays

2017-10-13 Thread Masahiro Yamada
The pin data are implemented for old SoCs to specify the bit shift of the IECTRL register. They are not wortwhile given the required memory footprint. Delete all the pin data and enable all bits of the IECTRL register. Signed-off-by: Masahiro Yamada ---

[U-Boot] [PATCH 18/20] serial: uniphier: use clk for enable and get_rate

2017-10-13 Thread Masahiro Yamada
Get clock rate from the clock driver to drop U-Boot specific property "clock-frequency". Signed-off-by: Masahiro Yamada --- drivers/serial/serial_uniphier.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH] simple-bus: remove DECLARE_GLOBAL_DATA_PTR and

2017-10-13 Thread Masahiro Yamada
Both are unneeded in this file. Signed-off-by: Masahiro Yamada --- drivers/core/simple-bus.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/core/simple-bus.c b/drivers/core/simple-bus.c index 14803e3..cc48c8b 100644 --- a/drivers/core/simple-bus.c

[U-Boot] [PATCH 12/20] clk: uniphier: add peripheral clock data

2017-10-13 Thread Masahiro Yamada
Add peripheral clock data for all SoCs. Signed-off-by: Masahiro Yamada --- drivers/clk/uniphier/Makefile| 2 + drivers/clk/uniphier/clk-uniphier-core.c | 33 + drivers/clk/uniphier/clk-uniphier-peri.c | 113 +++

[U-Boot] [PATCH 16/20] ARM: uniphier: split u-boot, dm-pre-reloc out to uniphier-v7-u-boot.dtsi

2017-10-13 Thread Masahiro Yamada
UniPhier 32-bit SoCs use CONFIG_SPL_OF_CONTROL. So, many nodes must be marked as dm-pre-reloc to prevent fdtgrep from stripping them off. Sprinkling U-Boot specific properties all over the place is painful because DT files are synced with Linux from time to time. Split u-boot,dm-pre-reloc out

[U-Boot] [PATCH 02/20] gpio: uniphier: rework single device node model

2017-10-13 Thread Masahiro Yamada
First, I implemented this driver as per-bank model, but it was a design mistake. - There are 31 banks in the maximum case. It is painful to add so many nodes to DT. - The IRQ control registers are shared between banks. Per-bank design is a problem for Linux. The counterpart for

[U-Boot] [PATCH 07/20] usb: dwc3-uniphier: replace with

2017-10-13 Thread Masahiro Yamada
Including pulls in a lot of bloat. What this driver needs is BIT(), so replace it with Signed-off-by: Masahiro Yamada --- drivers/usb/dwc3/dwc3-uniphier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-uniphier.c

[U-Boot] [PATCH 10/20] clk: uniphier: rework for better clock tree structure

2017-10-13 Thread Masahiro Yamada
U-Boot does not support fancy clock tree structures like the Linux common clock framework. Implement a simple clock tree model at the driver level. With this, the clock data will be simplified. Signed-off-by: Masahiro Yamada ---

[U-Boot] [PATCH 03/20] ARM: dts: uniphier: update GPIO nodes

2017-10-13 Thread Masahiro Yamada
Switch to the single node design. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ld11.dtsi | 23 + arch/arm/dts/uniphier-ld4.dtsi | 115 ++ arch/arm/dts/uniphier-pro4.dtsi | 206 ++--

[U-Boot] [PATCH 00/20] ARM: uniphier: various refactoring for v2017.11-rc2

2017-10-13 Thread Masahiro Yamada
- Reactor of GPIO, clk, reset drivers. - Clean up SOC code - Sync DT - Use more clock drivers - Split U-Boot specific DT property Masahiro Yamada (20): ARM: uniphier: switch to CONFIG_ENV_IS_NOWHERE gpio: uniphier: rework single device node model ARM: dts: uniphier: update GPIO nodes

[U-Boot] [PATCH 06/20] ARM: uniphier: use pr_() instead of printf() where appropriate

2017-10-13 Thread Masahiro Yamada
Replace printf() with pr_() to specify proper loglevel. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/arm32/psci.c | 4 +++- arch/arm/mach-uniphier/board_late_init.c | 4 +++- arch/arm/mach-uniphier/boot-device/boot-device.c |

[U-Boot] [PATCH 08/20] i2c: uniphier: replace debug() with dev_dbg()

2017-10-13 Thread Masahiro Yamada
Use dev_dbg() functions. It will be helpful to prefix log messages with the corresponding device name when the core framework is ready. While I am here, I renamed "dev", which was actually private data, into "priv" because dev->dev looks confusing. Signed-off-by: Masahiro Yamada

[U-Boot] [PATCH 13/20] reset: uniphier: fix the first argument passed to dev_err()

2017-10-13 Thread Masahiro Yamada
priv->dev does not exist. Pass the correct pointer to udevice. Signed-off-by: Masahiro Yamada --- drivers/reset/reset-uniphier.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c

[U-Boot] [PATCH 01/20] ARM: uniphier: switch to CONFIG_ENV_IS_NOWHERE

2017-10-13 Thread Masahiro Yamada
The non-volatile storage varies board by board. The default should be NOWHERE. Please choose a proper device via Kconfig. Signed-off-by: Masahiro Yamada --- env/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/env/Kconfig b/env/Kconfig index

[U-Boot] [PATCH 19/20] ARM: dts: uniphier: sync DT with Linux 4.14-rc4

2017-10-13 Thread Masahiro Yamada
Sync with Linux 4.14-rc4. (Include some DT updates queued up for Linux 4.15.) Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ld11.dtsi| 15 -- arch/arm/dts/uniphier-ld20.dtsi| 97 --

[U-Boot] [PATCH 11/20] clk: uniphier: add PXs3 clock data

2017-10-13 Thread Masahiro Yamada
Add basic clock data for Socionext's new SoC PXs3. Signed-off-by: Masahiro Yamada --- drivers/clk/uniphier/clk-uniphier-core.c | 8 drivers/clk/uniphier/clk-uniphier-sys.c | 14 ++ drivers/clk/uniphier/clk-uniphier.h | 1 + 3 files

[U-Boot] [PATCH 20/20] ARM: uniphier: change the default of SoC select to UNIPHIER_V7_MULTI

2017-10-13 Thread Masahiro Yamada
ARCH_UNIPHIER_V8_MULTI depends on !SPL, so the default may be hidden. Use a clearer default. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-uniphier/Kconfig

[U-Boot] [PATCH 04/20] pinctrl: uniphier: set PUPD_SIMPLE cap flag for PXs3

2017-10-13 Thread Masahiro Yamada
Like other recenct UniPhier SoCs, the pupdctrl number of PXs3 matches to the pin number. Signed-off-by: Masahiro Yamada --- drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 15/20] i2c: uniphier-f: use clk for enable and get_rate

2017-10-13 Thread Masahiro Yamada
Get clock rate from the clock driver instead of hard-coding it. Signed-off-by: Masahiro Yamada --- drivers/i2c/i2c-uniphier-f.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/i2c-uniphier-f.c

[U-Boot] [PATCH 14/20] i2c: uniphier: use clk for enable and get_rate

2017-10-13 Thread Masahiro Yamada
Get clock rate from the clock driver instead of hard-coding it. Signed-off-by: Masahiro Yamada --- drivers/i2c/i2c-uniphier.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/i2c-uniphier.c

[U-Boot] [PATCH v2 2/3] kbuild: add stringify helper to quote a string passed to C files

2017-10-13 Thread Masahiro Yamada
I want to reuse $(squote)$(quote)...$(quote)$(squote) in the next commit. Move it to a helper. Signed-off-by: Masahiro Yamada --- Changes in v2: None scripts/Kbuild.include | 4 scripts/Makefile.lib | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-)

[U-Boot] [PATCH v2 0/3] kbuild: always use relative path for __FILE__

2017-10-13 Thread Masahiro Yamada
We discussed the __FILE__ problem when U-Boot is built out of tree. https://www.mail-archive.com/u-boot@lists.denx.de/msg242852.html The deeper your build directory is located, the larger your U-Boot image becomes. If your platform has memory footprint limit, this is a problem. Recently, I

[U-Boot] [PATCH v2 1/3] kbuild: Get rid of KBUILD_STR

2017-10-13 Thread Masahiro Yamada
From: Michal Marek The compiler can accept -DKBUILD_MODNAME="foo", it's just a matter of quoting. That way, we reduce the gcc command line a bit. Signed-off-by: Michal Marek Signed-off-by: Masahiro Yamada [ Linux commit:

[U-Boot] [PATCH v2 3/3] kbuild: redefine __FILE__ as relative path from $(srctree) if possible

2017-10-13 Thread Masahiro Yamada
Since Kbuild runs in the objtree, __FILE__ can be a very long path depending of $(srctree). If objtree is a child of srctree, the situation is a bit better. ($(srctree) is "..") For other cases of out-of-tree build, filenames in WARN_ON() etc. are still an absolute path. It also means the

[U-Boot] [PATCH 0/3] kbuild: always use relative path for __FILE__

2017-10-13 Thread Masahiro Yamada
We discussed the __FILE__ problem when U-Boot is built out of tree. https://www.mail-archive.com/u-boot@lists.denx.de/msg242852.html The deeper your build directory is located, the larger your U-Boot image becomes. If your platform has memory footprint limit, this is a problem. Recently, I

[U-Boot] [PATCH 3/3] kbuild: redefine __FILE__ as relative path from $(srctree) if possible

2017-10-13 Thread Masahiro Yamada
Since Kbuild runs in the objtree, __FILE__ can be a very long path depending of $(srctree). If objtree is a child of srctree, the situation is a bit better. ($(srctree) is "..") For other cases of out-of-tree build, filenames in WARN_ON() etc. are still an absolute path. It also means the

[U-Boot] [PATCH 2/3] kbuild: add stringify helper to quote a string passed to C files

2017-10-13 Thread Masahiro Yamada
I want to reuse $(squote)$(quote)...$(quote)$(squote) in the next commit. Move it to a helper. Signed-off-by: Masahiro Yamada --- scripts/Kbuild.include | 4 scripts/Makefile.lib | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 1/3] kbuild: Get rid of KBUILD_STR

2017-10-13 Thread Masahiro Yamada
From: Michal Marek The compiler can accept -DKBUILD_MODNAME="foo", it's just a matter of quoting. That way, we reduce the gcc command line a bit. Signed-off-by: Michal Marek Signed-off-by: Masahiro Yamada [ Linux commit:

Re: [U-Boot] [PATCH] arm: Start AArch32 Linux in EL1 instead of EL2 on AArch64

2017-10-13 Thread Marc Zyngier
On 13/10/17 09:37, Michal Simek wrote: > On 13.10.2017 10:33, Marc Zyngier wrote: >> On 13/10/17 08:26, Michal Simek wrote: >>> On 13.10.2017 09:19, Alexander Graf wrote: On 13.10.17 09:08, Michal Simek wrote: > AArch32 Linux should start in EL1 instead of EL2. Why?

[U-Boot] [PULL] efi patch queue 2017-10-13

2017-10-13 Thread Alexander Graf
Hi Tom, This is my current patch queue for efi. Please pull. Alex The following changes since commit 39dd65a059e503883dbf16d4c00ac083d15837da: sandbox: Enable btrfs support (2017-10-03 08:44:55 -0400) are available in the git repository at: git://github.com/agraf/u-boot.git

Re: [U-Boot] [PATCH] arm: Start AArch32 Linux in EL1 instead of EL2 on AArch64

2017-10-13 Thread Michal Simek
On 13.10.2017 10:33, Marc Zyngier wrote: > On 13/10/17 08:26, Michal Simek wrote: >> On 13.10.2017 09:19, Alexander Graf wrote: >>> >>> >>> On 13.10.17 09:08, Michal Simek wrote: AArch32 Linux should start in EL1 instead of EL2. >>> >>> Why? There is KVM on AArch32 as well. >> >> Is AArch32

Re: [U-Boot] [PATCH] arm: Start AArch32 Linux in EL1 instead of EL2 on AArch64

2017-10-13 Thread Marc Zyngier
On 13/10/17 08:26, Michal Simek wrote: > On 13.10.2017 09:19, Alexander Graf wrote: >> >> >> On 13.10.17 09:08, Michal Simek wrote: >>> AArch32 Linux should start in EL1 instead of EL2. >> >> Why? There is KVM on AArch32 as well. > > Is AArch32 without KVM able to start from EL2? > At least based

[U-Boot] [PATCH 2/3] x86: baytrail: fsp: Use a function to update the Azalia config pointer

2017-10-13 Thread Bin Meng
At present we directly pass the Azalia config pointer to the FSP UPD. This updates to use a function to do the stuff, like Braswell does. Signed-off-by: Bin Meng --- arch/x86/cpu/baytrail/fsp_configs.c | 15 +--

[U-Boot] [PATCH 3/3] x86: baytrail: fsp: Move Azalia update codes to board

2017-10-13 Thread Bin Meng
Azalia configuration may be different across boards, hence it's not appropriate to do that in the SoC level. Instead, let's make the SoC update_fsp_azalia_configs() routine as a weak version, and do the actual work in the board codes. So far it seems only som-db5800-som-6867 board enables the

[U-Boot] [PATCH 1/3] x86: fsp: Consolidate Azalia header file

2017-10-13 Thread Bin Meng
So far there are two copies of Azalia struct defines with one in baytrail and the other one in braswell. This consolidates these two into one, put it in the common place, and remove the prefix pch_ to these structs to make their names more generic. This also corrects reset_wait_timer from us to

Re: [U-Boot] [PATCH 05/11] efi_loader: move efi_search_obj up in code

2017-10-13 Thread Alexander Graf
On 13.10.17 02:15, Heinrich Schuchardt wrote: > On 10/09/2017 06:49 AM, Simon Glass wrote: >> On 7 October 2017 at 22:57, Heinrich Schuchardt wrote: >>> To avoid a forward declaration move efi_search_obj before >>> all protocol services functions. >>> >>> Signed-off-by:

  1   2   >