Re: [U-Boot] Get Phy device ID for non standard phy

2018-08-03 Thread Priyanka Jain
Hello Pankaj, The requirement of LX2160ARD, LX2160AQDS has been taken care by the patch http://patchwork.ozlabs.org/patch/867403/ in upstream u-boot. Regards Priyanka From: Pankaj Bansal Sent: Friday, August 3, 2018 12:09 PM To: joe.hershber...@ni.com; u-boot Cc: Varun Sethi ; Priyanka Jain

[U-Boot] [PATCH v2 1/2] lib: bitrev: Sync with Linux kernel v4.17

2018-08-03 Thread Bin Meng
Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None include/linux/bitrev.h | 102 - lib/bitrev.c | 28 +- 2 files changed, 102 insertions(+), 28 deletions(-) diff --git a/include/linux/bitrev.h

[U-Boot] [PATCH v2 2/2] sandbox: Enable bitrev library build

2018-08-03 Thread Bin Meng
Imply CONFIG_BITREVERSE for Sandbox. Signed-off-by: Bin Meng --- Changes in v2: - Change to imply in the Kconfig arch/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/Kconfig b/arch/Kconfig index bf1b4a9..11900b0 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -78,6 +78,7 @@

Re: [U-Boot] [PATCH v1 14/17] cmd: fpga: Add support for missing fpga loadmk commands

2018-08-03 Thread Michal Simek
On 2.8.2018 22:37, Simon Glass wrote: > On 26 July 2018 at 08:16, Michal Simek wrote: >> Not all 4 fpga loadmk FIT image commands > > I don't understand this. Can you explain what you mean? hm not sure why I have written this short commit message. Maybe I wanted to extend it later when I was

[U-Boot] Get Phy device ID for non standard phy

2018-08-03 Thread Pankaj Bansal
Hi All, I have a query about phy devices that implement phy identification registers at non-standard locations. The IEEE 802.3 specifies these registers as phy ID registers: 22.2.4.3.1 PHY Identifier (Registers 2 and 3) Registers 2 and 3 provide a 32-bit value, which shall constitute a unique

[U-Boot] [PATCH v4 02/13] regmap: Fix documentation

2018-08-03 Thread Mario Six
The documentation in regmap.h is not in kernel-doc format. Correct this. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v3 -> v4: No changes v2 -> v3: New in v3 --- include/regmap.h | 48 +++- 1 file

[U-Boot] [PATCH v4 09/13] regmap: Define regmap_{get,set}

2018-08-03 Thread Mario Six
It would be convenient if one could use the regmap API in conjunction with register maps defined as structs (i.e. structs that directly mirror the memory layout of the registers in question). A similar approach was planned with the regmap_write32/regmap_read32 macros, but was never used. Hence,

[U-Boot] [PATCH v4 06/13] regmap: Add error output

2018-08-03 Thread Mario Six
Add some debug output in cases where the initialization of a regmap fails. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v3 -> v4: No changes v2 -> v3: New in v3 --- drivers/core/regmap.c | 10 -- 1 file changed, 8 insertions(+), 2

[U-Boot] [PATCH v3 04/21] dm: pci: Extract vendor/device id in child_post_bind()

2018-08-03 Thread Bin Meng
Currently only devfn is extracted in child_post_bind(). Now that we have the live-tree version API to look up PCI vendor and device id from the compatible string, let's extract and save them too. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v3 01/21] pci: Remove 440ep-specific macros

2018-08-03 Thread Bin Meng
These macros should not be put in the generic pci.h header file. Since they are not referenced anywhere, remove them completely. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: - Change commit title to use "440ep-specific" Changes in v2: None include/pci.h | 15

[U-Boot] [PATCH v3 00/21] dm: pci: Various fixes and test cases update

2018-08-03 Thread Bin Meng
This fixes several bugs in dm pci driver, as well as updating test cases running on Sandbox to test dm pci. It turns out adding test cases for v1 (3 commits) reveals more design limitations/bugs of sandbox pci driver. Now the v2/v3 series contains 20+ patches! This series is available for

[U-Boot] [PATCH v3 20/21] dm: pci: Add APIs to find capability and extended capability

2018-08-03 Thread Bin Meng
This introduces two new APIs dm_pci_find_capability() and dm_pci_find_ext_capability() to get PCI capability address and PCI express extended capability address for a given PCI device. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: - Mask header_type

[U-Boot] [PATCH v3 16/21] test: dm: pci: Test driver binding with driver data provided

2018-08-03 Thread Bin Meng
With struct pci_device_id, it's possible to pass a driver data for bound driver to use. This adds a test case for this functionality. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/pci.c | 17 + 1 file changed, 17

[U-Boot] [PATCH v3 14/21] pci: sandbox: swap_case: Declare dynamic driver matching

2018-08-03 Thread Bin Meng
This adds a U_BOOT_PCI_DEVICE() declaration to the swap_case driver. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/sandbox/include/asm/test.h | 4 drivers/misc/swap_case.c| 7 +++ 2 files changed, 11 insertions(+) diff

Re: [U-Boot] [PATCH v6 00/27] SPI-NAND support

2018-08-03 Thread Jagan Teki
On Fri, Aug 3, 2018 at 1:57 PM, Miquel Raynal wrote: > Hi Jagan, Tom, > > Miquel Raynal wrote on Wed, 1 Aug 2018 > 10:18:21 +0200: > >> During the last months, Boris Brezillon shared his work to support >> serial flashes within Linux. First, he delivered (and merged) a new >> layer called

Re: [U-Boot] [PATCH] stm32f7: board: Fix memory init

2018-08-03 Thread Patrice CHOTARD
Hi Vikas On 08/03/2018 02:48 AM, Vikas Manocha wrote: > Hi Patrice, > > On 08/02/2018 05:18 AM, Patrice Chotard wrote: >> Commit 1473b12ad0b3 ("lib: fdtdec: Update ram_base to store ram start >> adddress") brings regression on STM32F7 which can't boot. >> >> Use fdtdec_setup_mem_size_base() to

[U-Boot] [PATCH v1 07/11] configs: stm32f4xx: Remove CONFIG_SYS_RAM_FREQ_DIV

2018-08-03 Thread Patrice Chotard
Since commit bfea69ad2793 ("stm32f7: sdram: correct sdram configuration as per micron sdram"), CONFIG_SYS_RAM_FREQ_DIV flag is no more used, remove it. Signed-off-by: Patrice Chotard --- include/configs/stm32f429-discovery.h | 1 - include/configs/stm32f429-evaluation.h | 1 -

[U-Boot] [PATCH v1 2/3] snapdragon: added MAC generation functions

2018-08-03 Thread Ramon Fried
Add support for generation of unique MAC address that is derived from board serial. Algorithm for generation of MAC taken from LK. Signed-off-by: Ramon Fried --- arch/arm/mach-snapdragon/include/mach/misc.h | 1 + arch/arm/mach-snapdragon/misc.c | 16 2 files

[U-Boot] [PATCH v1 3/3] db410: alter WLAN/BT MAC address fixup

2018-08-03 Thread Ramon Fried
Change the way MAC address fixup is done: 1. Stop using LK handed device-tree and calculate the MAC address our own. 2. Allow overriding the generated MACS with environment variables: "wlanaddr" and "btaddr". Signed-off-by: Ramon Fried --- .../dragonboard410c/dragonboard410c.c |

[U-Boot] [PATCH v1 1/3] snapdragon: added msm_board_serial() func

2018-08-03 Thread Ramon Fried
This commit adds a function to get the board serial number. In snapdragon it's actually the eMMC serial number. Function added in a new file misc.c that will include further snapdragon miscellaneous functions. Signed-off-by: Ramon Fried --- arch/arm/mach-snapdragon/Makefile| 1 +

Re: [U-Boot] [PATCH v3 07/13] regmap: Add raw read/write functions

2018-08-03 Thread Mario Six
Hi Anatolij, On Thu, Aug 2, 2018 at 12:01 AM, Anatolij Gustschin wrote: > Hi Mario, > > On Tue, 31 Jul 2018 12:01:04 +0200 > Mario Six mario@gdsys.cc wrote: > >> The regmap functions currently assume that all register map accesses >> have a data width of 32 bits, but there are maps that have

[U-Boot] [PATCH v4 10/13] test: regmap: Add test for regmap_{set, get}

2018-08-03 Thread Mario Six
Add test for regmap_{set,get} functions. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v3 -> v4: No changes v2 -> v3: New in v3 --- test/dm/regmap.c | 28 1 file changed, 28 insertions(+) diff --git a/test/dm/regmap.c

[U-Boot] [PATCH v4 03/13] regmap: Add documentation

2018-08-03 Thread Mario Six
Document the regmap_alloc() function. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v3 -> v4: No changes v2 -> v3: New in v3 --- drivers/core/regmap.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/core/regmap.c

[U-Boot] [PATCH v3 18/21] test: dm: pci: Add tests for mixed static and dynamic devices on the same bus

2018-08-03 Thread Bin Meng
In the Sandbox test configuration, PCI bus#0 only has static devices while bus#1 only has dynamic devices. Create a bus#2 that has both types of devices and test such. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/sandbox/dts/test.dts | 18

[U-Boot] [PATCH v3 09/21] test: dm: pci: Test more than one PCI host controller

2018-08-03 Thread Bin Meng
So far there is only one PCI host controller in the sandbox test configuration. This is normally the case for x86, but it can be common on other architectures like ARM/PPC to have more than one PCI host controller in the system. This updates the case to cover such scenario. Signed-off-by: Bin

[U-Boot] [PATCH] clk: at91: utmi: add timeout for utmi lock

2018-08-03 Thread Eugen Hristev
In case the slow clock is not properly configured, the UTMI clock cannot lock the PLL, because UPLLCOUNT will "wait X slow clock cycles". In this case U-boot will loop indefinitely. Added a timeout in this case, to start U-boot even if UTMI clock is not enabled, so the user can use different media

[U-Boot] [PATCH v1 10/11] configs: stm32f469-discovery: Add DISTRO_DEFAULT support

2018-08-03 Thread Patrice Chotard
Add DISTRO_DEFAULT support to be able to boot on mmc by default on boot. Signed-off-by: Patrice Chotard --- configs/stm32f469-discovery_defconfig | 11 --- include/configs/stm32f469-discovery.h | 19 ++- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git

[U-Boot] [PATCH v1 08/11] configs: stm32h743-evaluation: Add DISTRO_DEFAULT support

2018-08-03 Thread Patrice Chotard
Add DISTRO_DEFAULT support to be able to boot on mmc by default on boot. Signed-off-by: Patrice Chotard --- configs/stm32h743-eval_defconfig | 12 +++- include/configs/stm32h743-eval.h | 16 ++-- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git

Re: [U-Boot] Get Phy device ID for non standard phy

2018-08-03 Thread Pankaj Bansal
Hi Priyanka, Yes this patch takes care of cortina phy id. The problem arises, when we have two or more phys in one system that implement the phy ID at two different non-standard location. Like we have in our upcoming boards LX2160AQDS/LX2160ARDB : inphi phy and cortina phy. In which file we

Re: [U-Boot] [PATCH] net: fman: Support both new and legacy FMan Compatibles

2018-08-03 Thread Qiang Zhao
On 08/02/2018 23:26 PM, York Sun wrote: > On 08/01/2018 02:50 AM, Zhao Qiang wrote: >> Recently the FMan Port and MAC compatibles were changed. >> This patch aligns the FMan Port and MAC compatibles to the new FMan >> device tree binding document. >> The FMan device tree binding document

[U-Boot] [PATCH v3 12/21] dm: pci: Assign correct driver data when binding a driver

2018-08-03 Thread Bin Meng
The correct driver data comes from the matching 'id' instead of 'find_id' in pci_find_and_bind_driver(). Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/pci/pci-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v3 02/21] dm: Correct typos in uclass_first/next_device_check()

2018-08-03 Thread Bin Meng
Correct typos in the comment block of uclass_first/next_device_check(). Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None include/dm/uclass.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dm/uclass.h

Re: [U-Boot] [PATCH v6 00/27] SPI-NAND support

2018-08-03 Thread Miquel Raynal
Hi Jagan, Tom, Miquel Raynal wrote on Wed, 1 Aug 2018 10:18:21 +0200: > During the last months, Boris Brezillon shared his work to support > serial flashes within Linux. First, he delivered (and merged) a new > layer called spi-mem. He also initiated in Linux MTD subsystem the move > of all

Re: [U-Boot] [PATCH] ARM: socfpga: Convert to DM serial

2018-08-03 Thread Marek Vasut
On 08/03/2018 10:40 AM, Simon Goldschmidt wrote: > > > On 01.08.2018 09:34, Marek Vasut wrote: >> On 08/01/2018 09:29 AM, Goldschmidt Simon wrote: >>> >>> On 30.07.2018 16:04, Marek Vasut wrote: On 07/30/2018 04:03 PM, Simon Goldschmidt wrote: > > On 12.05.2018 22:28, Marek Vasut

Re: [U-Boot] [PATCH] ARM: socfpga: Convert to DM serial

2018-08-03 Thread Simon Goldschmidt
Marek Vasut schrieb am Fr., 3. Aug. 2018, 11:00: > On 08/03/2018 10:40 AM, Simon Goldschmidt wrote: > > > > > > On 01.08.2018 09:34, Marek Vasut wrote: > >> On 08/01/2018 09:29 AM, Goldschmidt Simon wrote: > >>> > >>> On 30.07.2018 16:04, Marek Vasut wrote: > On 07/30/2018 04:03 PM, Simon

[U-Boot] [PATCH v1 11/11] configs: stm32f429-evaluation: Add DISTRO_DEFAULT support

2018-08-03 Thread Patrice Chotard
Add DISTRO_DEFAULT support to be able to boot on mmc by default on boot. Signed-off-by: Patrice Chotard --- configs/stm32f429-evaluation_defconfig | 11 --- include/configs/stm32f429-evaluation.h | 19 ++- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git

[U-Boot] [PATCH v1 00/11] Update STM32 MCU configs

2018-08-03 Thread Patrice Chotard
This series : - Remove unused configs flags in include/configs/stm32fxx files - Enable instruction and data caches for stm32f4 _ Migrate CMD_CACHE flag from include/configs/ to defconfig for stm32f746 and stm32h7 - Add DISTRO_DEFAULT support for stm32f4 and stm32h7 boards Patrice

[U-Boot] [PATCH v1 05/11] configs: stm32f746-disco: Migrate CONFIG_CMD_CACHE to defconfig

2018-08-03 Thread Patrice Chotard
Remove CONFIG_CMD_CACHE from include/configs/stm32f746-disco.h and enable it in stm32f746-disco_defconfig Signed-off-by: Patrice Chotard --- configs/stm32f746-disco_defconfig | 1 + include/configs/stm32f746-disco.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v1 06/11] configs: stm32h7xx: Migrate CONFIG_CMD_CACHE to defconfig

2018-08-03 Thread Patrice Chotard
Remove CONFIG_CMD_CACHE from include/configs/stm32h7xx.h and enable it in stm32h7xx_defconfig Signed-off-by: Patrice Chotard --- configs/stm32h743-disco_defconfig | 1 + configs/stm32h743-eval_defconfig | 1 + include/configs/stm32h743-disco.h | 1 - include/configs/stm32h743-eval.h | 1 - 4

[U-Boot] [PATCH v1 02/11] configs: stm32fxxx: Remove CONFIG_SYS_CLK_FREQ

2018-08-03 Thread Patrice Chotard
Since commit aa5e3e22f4d6 ("board: stm32: switch to DM STM32 timer") SYS_CLK_FREQ is useless, remove it from stm32f4 and stm32f7 boards. Signed-off-by: Patrice Chotard --- include/configs/stm32f429-discovery.h | 2 -- include/configs/stm32f429-evaluation.h | 1 -

[U-Boot] [PATCH] arm: armv7-a: Enable mtune when CONFIG_CPU_V7A

2018-08-03 Thread Adam Ford
arch/arm/Makefile has a list of options for mtune, but the entry for CONFIG_CPU_V7A is empty. By tuning for generic-armv7-a both the size of SPL and u-boot shrink a little. For those with limited resources in SPL, every little bit helps. The following size changed apply to omap3_logic

[U-Boot] [PATCH v3 2/2] armv8: layerscape: move ns_dev[] define from h to c file.

2018-08-03 Thread Ran Wang
Since more c files will include ns_access.h, this move will fix some compiling warnings and make it sense. Signed-off-by: Ran Wang --- Change in v3: - New file .../include/asm/arch-fsl-layerscape/ns_access.h| 80 -- board/freescale/common/ns_access.c

[U-Boot] [PATCH v4 13/13] misc: Add IHS FPGA driver

2018-08-03 Thread Mario Six
Add a driver for gdsys IHS (Integrated Hardware Systems) FPGAs, which supports initialization of the FPGA, as well as information gathering. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v3 -> v4: * Switched from 'res' as the name for return variables to 'ret' v2 -> v3: * Fixed style

[U-Boot] [PATCH v4 08/13] regmap: Support reading from specific range

2018-08-03 Thread Mario Six
It is useful to be able to treat the different ranges of a regmap separately to be able to use distinct offset for them, but this is currently not implemented in the regmap API. To preserve backwards compatibility, add regmap_read_range and regmap_write_range functions that take an additional

[U-Boot] [PATCH v4 11/13] misc: Sort Makefile entries

2018-08-03 Thread Mario Six
Makefile entries should be sorted. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v3 -> v4: No changes v2 -> v3: New in v3 --- drivers/misc/Makefile | 60 +++ 1 file changed, 32 insertions(+), 28

[U-Boot] [PATCH v3 15/21] sandbox: Update test.dts for dynamic PCI device driver matching

2018-08-03 Thread Bin Meng
At present we have two PCI buses in the test configuration. Both buses have static device-tree config devices. Now we switch the 2nd bus to use dynamic PCI devices for testing. Signed-off-by: Bin Meng --- Changes in v3: - Describe test configuration in the commit message Changes in v2: None

[U-Boot] [PATCH v3 08/21] pci: sandbox: swap_case: Preserve space indicator bit in BAR registers

2018-08-03 Thread Bin Meng
With the newly added testing of more than one device, we get: => ut dm pci_swapcase Test: dm_test_pci_swapcase: pci.c test/dm/pci.c:88, dm_test_pci_swapcase(): "tHIS IS A tESt" = ptr: Expected "tHIS IS A tESt", got "this is a test" Test: dm_test_pci_swapcase: pci.c (flat tree)

[U-Boot] [PATCH v3 05/21] dm: pci: Fix scanning multi-function device

2018-08-03 Thread Bin Meng
The flag to control whether to scan multi-function device during enumeration should be cleared at the beginning of each iteration if the device's function number equals to zero. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v3 06/21] test: dm: pci: Remove unnecessary steps in dm_test_pci_swapcase()

2018-08-03 Thread Bin Meng
The check on uclass_get_device() and device_active() is unnecessary as the follow-up test operations will implicitly probe the driver. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None test/dm/pci.c | 4 +--- 1 file changed, 1 insertion(+), 3

[U-Boot] [PATCH v3 17/21] pci: sandbox: emul: Rename priv structure

2018-08-03 Thread Bin Meng
We have "struct sandbox_pci_priv" in pci_sandbox driver. To avoid confusion, rename the emul's priv to "struct sandbox_pci_emul_priv". Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/pci/pci-emul-uclass.c | 8 1 file changed, 4

Re: [U-Boot] [PATCH] ARM: socfpga: Convert to DM serial

2018-08-03 Thread Simon Goldschmidt
On 01.08.2018 09:34, Marek Vasut wrote: On 08/01/2018 09:29 AM, Goldschmidt Simon wrote: On 30.07.2018 16:04, Marek Vasut wrote: On 07/30/2018 04:03 PM, Simon Goldschmidt wrote: On 12.05.2018 22:28, Marek Vasut wrote: Pull the serial port configuration from DT and use DM serial instead

[U-Boot] [PATCH v1 01/11] board: stm32: use bi_dram[0].start instead of hardcoded value

2018-08-03 Thread Patrice Chotard
Use gd->bd->bi_dram[0].start initialized from DT instead of using hardcoded CONFIG_SYS_SDRAM_BASE from config file. Remove unused CONFIG_SYS_RAM_BASE and CONFIG_SYS_SDRAM_BASE defines. Signed-off-by: Patrice Chotard --- board/st/stm32f429-discovery/stm32f429-discovery.c | 2 +-

[U-Boot] [PATCH] db410c: add FIT support

2018-08-03 Thread Ramon Fried
1. Add FIT support for DB410c defconfig. 2. Don't overwrite bootargs (they're already defined in Linux device tree for DB410c. Signed-off-by: Ramon Fried --- configs/dragonboard410c_defconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

Re: [U-Boot] [PATCH v3 07/13] regmap: Add raw read/write functions

2018-08-03 Thread Mario Six
Hi Simon, On Thu, Aug 2, 2018 at 2:20 PM, Simon Glass wrote: > Hi Mario, > > On 31 July 2018 at 04:01, Mario Six wrote: >> The regmap functions currently assume that all register map accesses >> have a data width of 32 bits, but there are maps that have different >> widths. >> >> To rectify

Re: [U-Boot] [PATCH v3 13/13] misc: Add IHS FPGA driver

2018-08-03 Thread Mario Six
Hi Simon, On Thu, Aug 2, 2018 at 6:56 PM, Simon Glass wrote: > On 31 July 2018 at 04:01, Mario Six wrote: >> Add a driver for gdsys IHS (Integrated Hardware Systems) FPGAs, which >> supports initialization of the FPGA, as well as information gathering. >> >> Signed-off-by: Mario Six >> --- >>

Re: [U-Boot] [PATCH v3 02/13] regmap: Fix documentation

2018-08-03 Thread Mario Six
Hi Simon, On Thu, Aug 2, 2018 at 6:56 PM, Simon Glass wrote: > Hi Mario, > > On 31 July 2018 at 04:00, Mario Six wrote: >> The documentation in regmap.h is not in kernel-doc format. Correct this. >> >> Signed-off-by: Mario Six >> --- >> >> v2 -> v3: >> New in v3 >> >> --- >> include/regmap.h

[U-Boot] [PATCH v3 1/2] armv8: layerscape: Enable EHCI access for LS1012A

2018-08-03 Thread Ran Wang
Program Central Security Unit (CSU) to grant access permission for USB 2.0 controller, otherwiase EHCI funciton will down. Signed-off-by: Ran Wang --- Change in v3: - None Change in v2: - Add EL checking code to make sure related programming only happen in EL3

[U-Boot] [PATCH v4 07/13] regmap: Add raw read/write functions

2018-08-03 Thread Mario Six
The regmap functions currently assume that all register map accesses have a data width of 32 bits, but there are maps that have different widths. To rectify this, implement the regmap_raw_read and regmap_raw_write functions from the Linux kernel API that specify the width of a desired read or

[U-Boot] [PATCH v4 05/13] regmap: Introduce init_range

2018-08-03 Thread Mario Six
Both fdtdec_get_addr_size_fixed and of_address_to_resource can fail with an error, which is not currently checked during regmap initialization. Since the indentation depth is already quite deep, extract a new 'init_range' method to do the initialization. Reviewed-by: Anatolij Gustschin

[U-Boot] [PATCH v4 04/13] regmap: Improve error handling

2018-08-03 Thread Mario Six
ofnode_read_simple_addr_cells may fail and return a negative error code. Check for this when initializing regmaps. Also check if both_len is zero, since this is perfectly possible, and would lead to a division-by-zero further down the line. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon

[U-Boot] [PATCH v4 12/13] misc: Add gdsys_soc driver

2018-08-03 Thread Mario Six
This patch adds a driver for the bus associated with a IHS FPGA. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v3 -> v4: No changes v2 -> v3: * Fixed style violations * Added bindings file * Added more debug output in case of errors * Switched all printfs to debug * Documented the

[U-Boot] [PATCH v3 19/21] pci: Add all known capability and extended capability ids

2018-08-03 Thread Bin Meng
Currently we don't have a complete list of capability and extended capability ids. This adds them. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None include/pci.h | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v3 21/21] test: dm: pci: Add cases for finding PCI capability APIs

2018-08-03 Thread Bin Meng
Add several PCI capability and extended capability ID registers in the swap_case driver, so that we can add test case for dm_pci_find_capability() and dm_pci_find_ext_capability(). Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v3 13/21] pci: sandbox: Support dynamically binding device driver

2018-08-03 Thread Bin Meng
At present all emulated sandbox pci devices must be present in the device tree in order to be used. The real world pci uclass driver supports pci device driver matching, and we should add such support on sandbox too. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: - Update

Re: [U-Boot] [PATCH] ARM: socfpga: Convert to DM serial

2018-08-03 Thread Marek Vasut
On 08/03/2018 11:10 AM, Simon Goldschmidt wrote: > > > Marek Vasut mailto:ma...@denx.de>> schrieb am Fr., 3. > Aug. 2018, 11:00: > > On 08/03/2018 10:40 AM, Simon Goldschmidt wrote: > > > > > > On 01.08.2018 09:34, Marek Vasut wrote: > >> On 08/01/2018 09:29 AM, Goldschmidt

[U-Boot] [PATCH v1 03/11] configs: stm32f429-disco: Remove CONFIG_SYS_RAM_CS

2018-08-03 Thread Patrice Chotard
This flag is not used, remove it. Signed-off-by: Patrice Chotard --- include/configs/stm32f429-discovery.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/stm32f429-discovery.h b/include/configs/stm32f429-discovery.h index e0f604db0e21..38af704c3b96 100644 ---

Re: [U-Boot] [PATCH v3 05/13] regmap: Introduce init_range

2018-08-03 Thread Mario Six
Hi Simon, On Thu, Aug 2, 2018 at 2:21 PM, Simon Glass wrote: > On 31 July 2018 at 04:01, Mario Six wrote: >> Both fdtdec_get_addr_size_fixed and of_address_to_resource can fail with >> an error, which is not currently checked during regmap initialization. >> >> Since the indentation depth is

[U-Boot] [PATCH v4 01/13] test: regmap: Increase size of syscon0 memory

2018-08-03 Thread Mario Six
The upcoming changes to the regmap interface will contain a proper check for plausibility when reading/writing from/to a register map. To still have the current tests pass, increase the size of the memory region for the syscon0 device, since one of the tests reads and writes beyond this range.

[U-Boot] [PATCH v3 11/21] pci: sandbox: emul: Fix the call to pci_bus_find_devfn()

2018-08-03 Thread Bin Meng
With the newly added test cases for PCI configuration access, we get: => ut dm pci_busdev Test: dm_test_pci_busdev: pci.c test/dm/pci.c:49, dm_test_pci_busdev(): SANDBOX_PCI_VENDOR_ID == vendor: Expected 4660, got 65535 Test: dm_test_pci_busdev: pci.c (flat tree) test/dm/pci.c:49,

[U-Boot] [PATCH v3 03/21] dm: core: Add ofnode function to read PCI vendor and device id

2018-08-03 Thread Bin Meng
We don't have the live-tree version of fdtdec_get_pci_vendev(). This adds the API. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/ofnode.c | 36 include/dm/ofnode.h | 13 + 2 files

[U-Boot] [PATCH v3 10/21] test: dm: pci: Add tests for configuration space access

2018-08-03 Thread Bin Meng
So far we missed the testing for PCI configuration space access. This adds tests for it, as well as removing some redundant asserts. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: - Update commit message to mention removing redundant asserts Changes in v2: None

[U-Boot] [PATCH v3 07/21] test: dm: pci: Test more than one device on the same bus

2018-08-03 Thread Bin Meng
It's quite common to have more than one device on the same PCI bus. This updates the test case to test such scenario. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/sandbox/dts/test.dts | 7 +++ test/dm/pci.c | 37

[U-Boot] [PATCH v1 09/11] configs: stm32h743-discovery: Add DISTRO_DEFAULT support

2018-08-03 Thread Patrice Chotard
Add DISTRO_DEFAULT support to be able to boot on mmc by default on boot. Signed-off-by: Patrice Chotard --- configs/stm32h743-disco_defconfig | 12 +++- include/configs/stm32h743-disco.h | 16 ++-- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git

[U-Boot] [PATCH v1 04/11] configs: stm32f4xx: Enable ICACHE and DCACHE

2018-08-03 Thread Patrice Chotard
Enable instruction and data caches. Fix boot_sd command as since commit d409c962169b ("armv7m: disable icache before linux booting"), instruction cache is automatically disable before linux booting. "icache off" from boot_sd command becomes useless, remove it. Signed-off-by: Patrice Chotard ---

[U-Boot] [PATCH v1 0/3] Let U-Boot generate MAC address for db410

2018-08-03 Thread Ramon Fried
This patchset gives U-boot ownership on generating WLAN/BT mac addresses for WCNSS chip on Dragonboard410. Previously, this was done by LK and U-boot only read the results from the patched DTB LK fixed-up. This is is part of my ongoing effort to get rid of LK once and for all for Snapdragon ARCH.

[U-Boot] [PATCH v1 8/8] armv7: ls1021a: enable esdhc

2018-08-03 Thread Yinbo Zhu
This patch is to enable eSDHC for ls1021a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/ls1021a.dtsi |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/arm/dts/ls1021a.dtsi b/arch/arm/dts/ls1021a.dtsi index 5b3fc6a..59c97d5 100644 --- a/arch/arm/dts/ls1021a.dtsi +++

Re: [U-Boot] armv5 and OMAP3 Question

2018-08-03 Thread Adam Ford
On Tue, Jul 25, 2017 at 11:08 AM Tom Rini wrote: > > On Tue, Jul 25, 2017 at 08:14:57AM -0500, Adam Ford wrote: > > > The readme file for OMAP indicates that we compile using armv5 to "to > > allow more compilers to work" > > > > We have our arch/arm/mach-omap2/omap3/lowlevel_init.S file also

[U-Boot] [PATCH 1/4] stm32mp1: activate serial rx buffer

2018-08-03 Thread Patrick Delaunay
Activate the serial rx buffer. Prepare console MUX activation with vidconsole, and avoid console performance issue (missing character for copy-paste). Signed-off-by: Patrick Delaunay --- configs/stm32mp15_basic_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH 2/4] serial: protect access to serial rx buffer

2018-08-03 Thread Patrick Delaunay
Add test to avoid access to rx buffer when this buffer is empty. In this case directly call getc() function to avoid issue when tstc() is not called. Signed-off-by: Patrick Delaunay --- drivers/serial/serial-uclass.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[U-Boot] [PATCH 3/4] console: unify fgetc function when console MUX is deactivated

2018-08-03 Thread Patrick Delaunay
Unify the fgetc function when MUX is activated or not: - always call tstc() : it is the normal behavior expected by serial uclass (call tstc then getc) and that avoids issue when SERIAL_RX_BUFFER is activated - reload WATCHDOG in the char waiting loop This patch allow to have the same

[U-Boot] [PATCH 0/4] Solve issue with serial rx buffer when MUX is deactivated

2018-08-03 Thread Patrick Delaunay
When I activate CONFIG_SERIAL_RX_BUFFER on my board without CONSOLE_MUX, I have a strange behavior in console: a new prompt is displayed continuously I check the call stack cread_line (common/cli_readline.c) => getcmd_getch (common/cli_readline.c) ==> fgetc (common/console.c) ===> console_tstc

Re: [U-Boot] Get number of seconds since beginning of epoch

2018-08-03 Thread Wolfgang Denk
Hallo Mark, In message you wrote: > > I am wondering whether U-Boot already has the functionality to > retrieve the number of seconds since beginning of the 1970-01-01 > epoch. I would like to use this value in a Hush script. There is no such feature in U-Boot (yet). > Alternative proposals

[U-Boot] Get number of seconds since beginning of epoch

2018-08-03 Thread Jonas Mark (BT-FIR/ENG1)
Hi, I am wondering whether U-Boot already has the functionality to retrieve the number of seconds since beginning of the 1970-01-01 epoch. I would like to use this value in a Hush script. For a product I have the requirement to detect if the current booting happens within x seconds of the

[U-Boot] [PATCH v1 7/8] armv8: ls1046a: add eSDHC node

2018-08-03 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1046a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1046a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1046a.dtsi b/arch/arm/dts/fsl-ls1046a.dtsi index 4acbaf7..7687d12 100644 ---

[U-Boot] [PATCH v1 6/8] armv8: ls1043a: add eSDHC node

2018-08-03 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1043a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1043a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1043a.dtsi b/arch/arm/dts/fsl-ls1043a.dtsi index ff40122..a804f51 100644 ---

Re: [U-Boot] [PATCH v2 3/3] sandbox: Add serial test

2018-08-03 Thread Patrice CHOTARD
Hi Simon On 08/02/2018 06:57 PM, Simon Glass wrote: > On 1 August 2018 at 09:58, Patrice Chotard wrote: >> Signed-off-by: Patrice Chotard >> --- >> >> Changes in v2: >>- Add sandbox serial test >> >> drivers/serial/sandbox.c | 14 ++ >> include/common.h | 1 + >>

[U-Boot] [PATCH 4/4] cli: handle getch error

2018-08-03 Thread Patrick Delaunay
Handle getch error (when getch return 0x0) to avoid display issue in the console. Signed-off-by: Patrick Delaunay --- common/cli_readline.c | 4 1 file changed, 4 insertions(+) diff --git a/common/cli_readline.c b/common/cli_readline.c index 60a232b..99b6317 100644 ---

[U-Boot] [PATCH v3 2/4] serial: stm32: Replace setparity by setconfig

2018-08-03 Thread Patrice Chotard
Replace stm32_serial_setparity by stm32_serial_setconfig which allows to set serial bits number, parity and stop bits number. Only parity setting is implemented. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard --- Changes in v3: - Replace u8 by uint for parity/bits/stop in

[U-Boot] [PATCH v3 4/4] sandbox: Add serial test

2018-08-03 Thread Patrice Chotard
Signed-off-by: Patrice Chotard --- Changes in v3: - Update serial test when wrong serial options are specified - Add SERIAL_CONFIG(par, bits, stop) macro to create serial mask Changes in v2: - Add sandbox serial test drivers/serial/sandbox.c | 14 + include/common.h

[U-Boot] [PATCH v3 0/4] Replace serial setparity by setconfig

2018-08-03 Thread Patrice Chotard
This series : - Replace setparity ops by more complete setconfig in serial uclass - Replace setparity by setconfig in STM32 serial driver _ Adds test for serial setconfig Changes in v3: - Update SERIAL_PAR_MASK definition - Don't remove setparity ops declaration in patch 1 to not

[U-Boot] [PATCH v2] stm32f7: board: Fix memory init

2018-08-03 Thread Patrice Chotard
Commit 1473b12ad0b3 ("lib: fdtdec: Update ram_base to store ram start adddress") brings regression on STM32F7 which can't boot. Use fdtdec_setup_mem_size_base() to setup memory base and size. Use fdtdec_setup_memory_banksize() to setup memory bank base and size. Reported-by: Mark Olsson

Re: [U-Boot] [PATCH v2 1/3] dm: serial: Replace setparity by setconfig

2018-08-03 Thread Patrice CHOTARD
Hi Simon On 08/02/2018 06:56 PM, Simon Glass wrote: > Hi Patrice, > > On 1 August 2018 at 09:58, Patrice Chotard wrote: >> From: Patrick Delaunay >> >> Replace setparity by more generic setconfig ops >> to allow uart parity, bits word length and stop bits >> number change. >> >> Adds

[U-Boot] [PATCH v3 3/8] Enable CONFIG_BLK and CONFIG_DM_MMC to Kconfig

2018-08-03 Thread Yinbo Zhu
This enables the folowing to Kconfig: CONFIG_BLK CONFIG_DM_MMC Signed-off-by: Yinbo Zhu --- Change in v3: Changed this patch's order configs/ls1021atwr_nor_SECURE_BOOT_defconfig |2 ++ configs/ls1021atwr_nor_defconfig |2 ++

[U-Boot] [PATCH v1 5/8] armv8: ls1088a: add eSDHC node

2018-08-03 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1088a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1088a.dtsi |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1088a.dtsi b/arch/arm/dts/fsl-ls1088a.dtsi index 077caf3..72d755a 100644 ---

[U-Boot] [PATCH v1 4/8] armv8: ls2088a: add eSDHC node

2018-08-03 Thread Yinbo Zhu
This patch is to add eSDHC node for ls2088a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls2080a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls2080a.dtsi b/arch/arm/dts/fsl-ls2080a.dtsi index b0f8517..2d537ae 100644 ---

[U-Boot] [PATCH v3 1/8] armv8: enable BLK code configuration

2018-08-03 Thread Yinbo Zhu
This patch is to enable BLK code configuration for SD boot. Signed-off-by: Yinbo Zhu --- Change in v3: update the commit information as above include/mmc.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/mmc.h b/include/mmc.h index

[U-Boot] [PATCH v2 2/8] armv8/ls1088a/ls2088a: esdhc: Add esdhc clock support

2018-08-03 Thread Yinbo Zhu
This patch adds esdhc clock support for ls1088a and ls2088a. Signed-off-by: Yinbo Zhu --- Change in v2: Changed this patch's order .../arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git

Re: [U-Boot] [PATCH] ARM: socfpga: Convert to DM serial

2018-08-03 Thread Simon Goldschmidt
Marek Vasut schrieb am Fr., 3. Aug. 2018, 11:22: > On 08/03/2018 11:10 AM, Simon Goldschmidt wrote: > > > > > > Marek Vasut mailto:ma...@denx.de>> schrieb am Fr., 3. > > Aug. 2018, 11:00: > > > > On 08/03/2018 10:40 AM, Simon Goldschmidt wrote: > > > > > > > > > On 01.08.2018

Re: [U-Boot] [PATCH v6 00/27] SPI-NAND support

2018-08-03 Thread Jagan Teki
On Fri, Aug 3, 2018 at 3:20 PM, Jagan Teki wrote: > On Fri, Aug 3, 2018 at 1:57 PM, Miquel Raynal > wrote: >> Hi Jagan, Tom, >> >> Miquel Raynal wrote on Wed, 1 Aug 2018 >> 10:18:21 +0200: >> >>> During the last months, Boris Brezillon shared his work to support >>> serial flashes within

Re: [U-Boot] [PATCH v2 2/3] serial: stm32: Replace setparity by setconfig

2018-08-03 Thread Patrice CHOTARD
Hi Simon On 08/02/2018 06:57 PM, Simon Glass wrote: > Hi Patrice, > > On 1 August 2018 at 09:58, Patrice Chotard wrote: >> Replace stm32_serial_setparity by stm32_serial_setconfig >> which allows to set serial bits number, parity and stop >> bits number. >> Only parity setting is implemented.

  1   2   >