Re: [U-Boot] [PATCH 6/8] cpu: Add cpu_print_info function

2018-04-19 Thread Mario Six
Hi Simon, On Wed, Apr 18, 2018 at 5:45 PM, Simon Glass wrote: > Hi Mario, > > On 18 April 2018 at 02:35, Mario Six wrote: >> Hi Simon, >> >> On Thu, Apr 12, 2018 at 6:37 PM, Simon Glass wrote: >>> Hi Mario, >>> >>> On 11 April 2018 at

Re: [U-Boot] [PATCH] board: freescale: ls1012ardb: Add command to switch QSPI bank

2018-04-19 Thread Calvin Johnson
On Thu, Apr 19, 2018 at 12:17 PM, Scott Wood wrote: > On Mon, 2018-04-16 at 08:40 +0530, Calvin Johnson wrote: >> On Fri, Apr 13, 2018 at 12:18 AM, Jagdish Gediya >> wrote: >> > Add command "boot_bank X" to switch the boot bank to either >> > 1 or 2. >>

[U-Boot] [UBOOT PATCH v3 2/7] mmc: sdhci: Handle execute tuning command in sdhci_send_command

2018-04-19 Thread Siva Durga Prasad Paladugu
From: Siva Durga Prasad Paladugu This patch upadted sdhci_send_command to handle execute tuning command. Signed-off-by: Siva Durga Prasad Paladugu --- drivers/mmc/sdhci.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[U-Boot] [UBOOT PATCH v3 1/7] mmc: sdhci: Add support for disabling clock

2018-04-19 Thread Siva Durga Prasad Paladugu
From: Siva Durga Prasad Paladugu This patch adds support to disable clock if clk_disable was set and then enable or set clock if the clock was changed or clock was disabled when clock needs to be enabled. Signed-off-by: Siva Durga Prasad Paladugu ---

[U-Boot] [UBOOT PATCH v3 4/7] mmc: sdhci: Invoke platform specific tuning and delay routines

2018-04-19 Thread Siva Durga Prasad Paladugu
From: Siva Durga Prasad Paladugu This patch adds support to invoke any platform specific tuning and delay routines if available. Signed-off-by: Siva Durga Prasad Paladugu --- drivers/mmc/sdhci.c | 24 1 file changed, 24

[U-Boot] [UBOOT PATCH v3 6/7] mmc: zynq_sdhci: Add support for SD3.0

2018-04-19 Thread Siva Durga Prasad Paladugu
This patch adds support of SD3.0 for ZynqMP. Signed-off-by: Siva Durga Prasad Paladugu --- Changes for v3: - Used macro for loop counter - Made printf to debug - Fixed if condition to reduce a line as per comment --- board/xilinx/zynqmp/Makefile | 2 +

Re: [U-Boot] [PATCH v2 4/5] sunxi: R40: add gigabit ethernet devicetree node

2018-04-19 Thread Maxime Ripard
On Tue, Apr 17, 2018 at 03:42:34PM +0200, Lothar Felten wrote: > Add a device tree node for the Allwinner R40/V40 CPU. > The syscon node is required by the gmac driver. > > Signed-off-by: Lothar Felten > --- > arch/arm/dts/sun8i-r40.dtsi | 28

[U-Boot] [UBOOT PATCH v3 0/7] Add support of SD3.0 UHS modes for ZynqMP

2018-04-19 Thread Siva Durga Prasad Paladugu
This patch series is meant to add SD3.0 support for ZynqMP platform. The first five patches in the series mostly setting up things in sdhci layer to support SD3.0 , the sixth patch is to add SD3.0 support for ZynqMP platform and the last patch is to enable this support for ZynqMP zcu102 rev1.0

[U-Boot] [UBOOT PATCH v3 3/7] sdhci: Add new sdhci ops for platform specific tuning and delays

2018-04-19 Thread Siva Durga Prasad Paladugu
From: Siva Durga Prasad Paladugu This patch adds new hooks for any platform specific tuning and tap delays programing. These are needed for supporting SD3.0. Signed-off-by: Siva Durga Prasad Paladugu --- include/sdhci.h | 2 ++ 1 file changed, 2

Re: [U-Boot] [PATCH v1 06/16] arm: socfpga: misc: Move eth reset to common misc driver

2018-04-19 Thread Marek Vasut
On 04/19/2018 05:13 AM, Ley Foon Tan wrote: > On Thu, Apr 19, 2018 at 10:47 AM, Marek Vasut wrote: >> On 04/19/2018 11:50 AM, Ley Foon Tan wrote: >>> Move eth reset to common misc driver so can used by other device families. >>> >>> Signed-off-by: Chin Liang See

Re: [U-Boot] [PATCH v1 05/16] arm: socfpga: misc: Add CONFIG_SYS_L2_PL310 switch

2018-04-19 Thread Marek Vasut
On 04/19/2018 07:15 AM, See, Chin Liang wrote: > On Thu, 2018-04-19 at 04:47 +0200, Marek Vasut wrote: >> On 04/19/2018 11:50 AM, Ley Foon Tan wrote: >>> >>> Add CONFIG_SYS_L2_PL310 conditional build. >> Why ? >> > > In ARM64, L2 cache controller is accessed through processor registers. > Hence

[U-Boot] [UBOOT PATCH v3 5/7] mmc : sdhci: Read capabilities register1 and update host caps

2018-04-19 Thread Siva Durga Prasad Paladugu
From: Siva Durga Prasad Paladugu This patch reads the capabilities register1 and update the host caps accordingly for mmc layer usage. This patch mainly reads for UHS capabilities inorder to support SD3.0. Signed-off-by: Siva Durga Prasad Paladugu ---

[U-Boot] [UBOOT PATCH v3 7/7] zynqmp: zcu102: Enable UHS support for ZCU102 Rev1.0 board

2018-04-19 Thread Siva Durga Prasad Paladugu
This patch enables UHS support for ZynqMP zcu102 rev 1.0 board. Signed-off-by: Siva Durga Prasad Paladugu --- configs/xilinx_zynqmp_zcu102_rev1_0_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/xilinx_zynqmp_zcu102_rev1_0_defconfig

[U-Boot] [PATCH 1/2] rockchip: rk3128: use ROCKCHIP_BOOT_MODE_REG to update reboot flag

2018-04-19 Thread Kever Yang
Use ROCKCHIP_BOOT_MODE_REG instead of grf structure so that we can re-use the source code later. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig| 1 + arch/arm/mach-rockchip/rk3128-board.c | 5 + 2 files changed, 2 insertions(+), 4

Re: [U-Boot] [PATCH] board: freescale: ls1012ardb: Add command to switch QSPI bank

2018-04-19 Thread Scott Wood
On Mon, 2018-04-16 at 08:40 +0530, Calvin Johnson wrote: > On Fri, Apr 13, 2018 at 12:18 AM, Jagdish Gediya > wrote: > > Add command "boot_bank X" to switch the boot bank to either > > 1 or 2. > > Are these functions required as this can be handled by new env vars to >

Re: [U-Boot] [PATCH v2 2/5] sunxi: R40: add gigabit ethernet reset

2018-04-19 Thread Maxime Ripard
On Tue, Apr 17, 2018 at 03:42:32PM +0200, Lothar Felten wrote: > Add reset control for the gigabit interface of the Allwinner R40/V40 CPU > > Signed-off-by: Lothar Felten Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Bootlin (formerly

[U-Boot] [PATCH 2/2] rockchip: rk322x: use ROCKCHIP_BOOT_MODE_REG to update reboot flag

2018-04-19 Thread Kever Yang
Use ROCKCHIP_BOOT_MODE_REG instead of grf structure so that we can re-use the source code later. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk322x-board.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

Re: [U-Boot] [PATCH v2 5/5] configs: Bananapi_M2_Ultra: enable gigabit on the Bananapi M2U

2018-04-19 Thread Maxime Ripard
On Tue, Apr 17, 2018 at 03:42:35PM +0200, Lothar Felten wrote: > Enable the gigabit ethernet for the Bananapi M2 Ultra board. > Tested on BananaPi M2 Berry (R40), custom board (V40). > > Signed-off-by: Lothar Felten > --- > arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts |

Re: [U-Boot] [PATCH v1 13/16] arm: socfpga: stratix10: Add timer support for Stratix10 SoC

2018-04-19 Thread Marek Vasut
On 04/19/2018 07:26 AM, See, Chin Liang wrote: > On Thu, 2018-04-19 at 04:59 +0200, Marek Vasut wrote: >> On 04/19/2018 11:50 AM, Ley Foon Tan wrote: >>> >>> Add timer support for Stratix SoC >> Is this really custom timer or is that some armv8 thing you're adding >> here ? Don't we already have a

[U-Boot] [PATCH] watchdog: cadence: Show used timeout value

2018-04-19 Thread Michal Simek
Debug message was showing timeout value which was passed to start function but there is a checking if this value can be setup. The patch is moving this debug printf function below checking. Signed-off-by: Michal Simek --- drivers/watchdog/cdns_wdt.c | 4 ++-- 1 file

[U-Boot] [PATCH] arm: zynq: Enable debug_uart_init in spl when enabled

2018-04-19 Thread Michal Simek
In past this code was commented and was used for debug purpose. But there is no reason not to enabled it based on macros. Signed-off-by: Michal Simek --- arch/arm/mach-zynq/spl.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git

[U-Boot] [PATCH 2/2] nand: zynq: Cleanup initialization

2018-04-19 Thread Michal Simek
From: Ezequiel Garcia CONFIG_NAND_ZYNQ selects CONFIG_SYS_NAND_SELF_INIT, so the driver doesn't have to play any ifdef game. Also, we can mark zynq_nand_init() as static and get rid of the mach-specific nand.h header. This is really a revert of: "mtd: zynq: nand:

Re: [U-Boot] [PATCH v4 0/4] ARM: i.MX6: Add u-boot dtsi files

2018-04-19 Thread Jagan Teki
Stefano, On Wed, Apr 11, 2018 at 6:02 PM, Jagan Teki wrote: > All CONFIG changes from arch/arm/mach-imx fromprevious version [1] > since most of them won't agree with new naming convention that sync > with Linux. > > This series add rest of changes like u-boot dtsi

Re: [U-Boot] [PATCH] sf: Add Spansion s25fl208k entry

2018-04-19 Thread Jagan Teki
On Wed, Apr 4, 2018 at 3:20 PM, Sean Nyekjaer wrote: > Add entry for Spansion s25fl208k part. > > Signed-off-by: Sean Nyekjaer > --- Applied to u-boot-spi/master ___ U-Boot mailing list

[U-Boot] [PATCH 1/2] nand: zynq: Add support for 16-bit buswidth

2018-04-19 Thread Michal Simek
From: Siva Durga Prasad Paladugu This patch adds support for 16-bit buswidth by determining the bus width based on mio configuration. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek ---

[U-Boot] [PATCH v2 02/18] spi: mpc8xxx: Fix comments

2018-04-19 Thread Mario Six
There are some comments on the same line as the code they document. Put comments above the code lines they document, so the line length is not unnecessarily increased. Signed-off-by: Mario Six --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 22

[U-Boot] [PATCH v2 00/18] spi: mpc8xxx: DM conversion

2018-04-19 Thread Mario Six
This is v2 of a patch series that adds support for DM to the MPC8XXX SPI driver, cleans up the driver code, fixes a few minor problems. Some TODOs are left over for later, such as proper SPI speed setting, and support for SPI mode setting. These would be enhancements to the original

[U-Boot] send message on serial ports

2018-04-19 Thread Ran Shalit
Hello, Is it possible to send a message on different uart ports , while leaving the console in the same port ? Which command in common can be used for that ? Thank you, ranran ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH] arm64: zynqmp: Wire watchdog internals

2018-04-19 Thread Michal Simek
Enable watchdog in full U-Boot. Similar changes were done by: "arm: zynq: Wire watchdog internals" (sha1: e6cc3b25d721c3001019f8b44bfaae2a57255162) Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp.c | 42 1 file changed,

[U-Boot] [PATCH] cmd: clk: Check return value from soc_clk_dump

2018-04-19 Thread Michal Simek
In case of error in soc_clk_dump function are returned different values then CMD return values (-1, 0, 1). For example: ZynqMP> clk dump exit not allowed from main input shel The patch is checking all negative return values and return CMD_RET_FAILURE which is proper reaction for these cases.

Re: [U-Boot] [PATCH v1] arm: mxs: make startup code thumb compatible

2018-04-19 Thread Christoph Müllner
> On 19.04.2018, at 10:33, Marek Vasut wrote: > > On 04/19/2018 10:02 AM, klaus.go...@theobroma-systems.com wrote: >> >>> On 18.04.2018, at 22:02, Marek Vasut wrote: >>> >>> On 04/18/2018 06:25 PM, Klaus Goger wrote: When building the mxs platform in thumb

[U-Boot] [PATCH v2 0/8] Fix SPL build without CONFIG_SPL_SERIAL_SUPPORT

2018-04-19 Thread Alex Kiernan
Attempting to build SPL without CONFIG_SPL_SERIAL_SUPPORT defined fails in assorted ways. This series fixes up those failures. Green Travis build: https://travis-ci.org/akiernan/u-boot/builds/368288275 Changes in v2: - Rebase against master - Update Travis build URL - Introduce default y

Re: [U-Boot] [PATCH v2 0/7] i.MX6DL: Add BTicino Mamoj board support

2018-04-19 Thread Jagan Teki
Stefano, On Wed, Apr 11, 2018 at 6:06 PM, Jagan Teki wrote: > This series add support for BTicino i.MX6DL Mamoj board. > > Changes for v2: > - Update Kconfig changes for CONFIG_FSL_ESDHC > - Add HAB support > > Jagan Teki (7): > i.MX6: board: Add BTicino i.MX6DL

[U-Boot] [PATCH v2 07/18] spi: mpc8xxx: Use IO accessors

2018-04-19 Thread Mario Six
Accesses to the register map are currently done by directly reading and writing the structure. Switch to the appropriate IO accessors instead. Signed-off-by: Mario Six --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 38 +++--- 1

[U-Boot] [PATCH v2 12/18] spi: mpc8xxx: Make code more readable

2018-04-19 Thread Mario Six
Introduce the to_prescale_mod and set_char_len inline functions to make the code more readable. Note that the added "if (bitlen > 16)" check does not change the semantics of the current code, and hence only preserves the current error (this will be fixed in a later patch in the series).

[U-Boot] [PATCH v2 06/18] spi: mpc8xxx: Replace defines with enums

2018-04-19 Thread Mario Six
Replace pre-processor defines with proper enums, and use the BIT macro where applicable. Signed-off-by: Mario Six --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git

[U-Boot] [PATCH] arm64: zynqmp: Reset FPD Watchdog on zcu100

2018-04-19 Thread Michal Simek
Low level configuration didn't reset FPD Watchdog that's why accessing it caused u-boot hang. Signed-off-by: Michal Simek --- board/xilinx/zynqmp/zynqmp-zcu100-revC/psu_init_gpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2 18/18] spi: mpc8xxx: Convert to DM

2018-04-19 Thread Mario Six
Support DM in the MPC8xxx SPI driver, and remove the legacy SPI interface. Signed-off-by: Mario Six --- drivers/spi/mpc8xxx_spi.c | 144 ++ 1 file changed, 107 insertions(+), 37 deletions(-) --- Changes v1 -> v2: * Removed legacy

[U-Boot] [PATCH 2/2] nand: zynq: Send address cycles as per onfi parameter page

2018-04-19 Thread Michal Simek
From: Siva Durga Prasad Paladugu Send address cycles as per value read from onfi parameter page for Read and write commands instead of using a hard coded value. This may vary for different parts and hence use it from onfi parameter page value. Signed-off-by: Siva

[U-Boot] [PATCH v2 04/18] spi: mpc8xxx: Fix space after cast

2018-04-19 Thread Mario Six
Fix all "superfluous space after case" style errors. Signed-off-by: Mario Six --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c index

[U-Boot] [PATCH v2 10/18] spi: mpc8xxx: Simplify logic a bit

2018-04-19 Thread Mario Six
We do nothing in the loop if the "not empty" event was not detected. To simplify the logic, check if this is the case, and skip the execution of the loop early to reduce the nesting level and flag checking. Signed-off-by: Mario Six --- Changes v1 -> v2: None ---

[U-Boot] [PATCH v2 15/18] spi: mpc8xxx: Re-order transfer setup

2018-04-19 Thread Mario Six
Minize the time the adapter is disabled (via SPI_MODE_EN clearing/setting) to just the character length setting, and only set up the temporary data writing variable right before we need it, so there is a more clear distinction between setting up the SPI adapter, and setting up the data to be

[U-Boot] [PATCH v2 16/18] spi: mpc8xxx: Fix if check

2018-04-19 Thread Mario Six
Decreasing the bit length and increasing the write data pointer should be done when there are more than 32 bit of data, not 16 bit. This did not produce incorrect behavior, because the only time where the two checks produce different outcomes is the case of 16 < bitlen < 32, and in this case the

[U-Boot] [PATCH v2 09/18] spi: mpc8xxx: Get rid of is_read

2018-04-19 Thread Mario Six
Get rid of the is_read variable, and just keep the state of the "not empty" and "not full" events in two boolean variables within the loop body. Signed-off-by: Mario Six --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 12 +++- 1 file changed, 7

[U-Boot] [PATCH 1/2] arm: zynq: Rework FPGA initialization

2018-04-19 Thread Michal Simek
This commit moves the FPGA descriptor definition to mach-zynq, where it makes more sense. Based on patches from Ariel D'Alessandro and Ezequiel Garcia Signed-off-by: Michal Simek --- arch/arm/Kconfig

Re: [U-Boot] [PATCH] drivers: spi: migrate cf_spi to DM

2018-04-19 Thread Jagan Teki
On Thu, Mar 22, 2018 at 8:13 PM, Angelo Dureghello wrote: > This patch adds DM support to cf_spi.c. > To be able to build spi driver with DM support, a new config > option has been introdiced (DM_NO_DT) since m68k architecture > does not support fdt. This can be different case,

Re: [U-Boot] [PATCH 19/19] spi: mpc8xxx: Add DM support

2018-04-19 Thread Mario Six
Hi Jagan, On Thu, Apr 19, 2018 at 1:32 PM, Jagan Teki wrote: > On Tue, Apr 10, 2018 at 4:31 PM, Mario Six wrote: >> Support DM for the MPC8XXX SPI driver. >> >> Signed-off-by: Mario Six >> --- >> drivers/spi/mpc8xxx_spi.c | 135

[U-Boot] [PATCH v2 11/18] spi: mpc8xxx: Reduce scope of loop variables

2018-04-19 Thread Mario Six
The transmission loop starts with setting some variables, which are only used inside the loop. Reduce the scope to the loop to make the declaration and initialization of these variables coincide. In the case of char_size this also always initializes the variable immediately with the final value

[U-Boot] [PATCH 2/2] arm: zynq: Remove checkboard and enable DISPLAY_CPUINFO

2018-04-19 Thread Michal Simek
Now that showing silicon version is part of the CPU info display, let's remove checkboard(). Note that the generic show_board_info() will still show the DT 'model' property. For instance: U-Boot 2018.05-rc2-00025-g611b3ee0159b (Apr 19 2018 - 11:23:12 +0200) CPU: Zynq 7z045 Silicon: v1.0

[U-Boot] [PATCH v2 03/18] spi: mpc8xxx: Rename camel-case variables

2018-04-19 Thread Mario Six
There are three variables that have camel-case names, which is not the preferred naming style. Give those variables more compliant names instead. Signed-off-by: Mario Six --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 22 +++--- 1 file changed,

[U-Boot] [PATCH v2 05/18] spi: mpc8xxx: Fix function names in strings

2018-04-19 Thread Mario Six
Replace the function name with a "%s" format string and the __func__ variable in debug statements (as proposed by checkpatch). Signed-off-by: Mario Six --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-)

[U-Boot] [PATCH v2 13/18] spi: mpc8xxx: Rename variable

2018-04-19 Thread Mario Six
The variable "char_size" holds the number of bits to be transferred in the current loop iteration. A better name would be "xfer_bitlen", which we rename this variable to. Signed-off-by: Mario Six --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 8 1 file

[U-Boot] [PATCH v2 17/18] spi: mpc8xxx: Use get_timer

2018-04-19 Thread Mario Six
The comment before the transmission loop in conjunction with the definition of SPI_TIMEOUT as 1000 implies that the loop is supposed to have a timeout value of 1000 ms. But since there is no mdelay(1) or similar in the loop body, the loop just runs 1000 times, without regard for the time elapsed.

Re: [U-Boot] [PATCH v1] arm: mxs: make startup code thumb compatible

2018-04-19 Thread klaus . goger
> On 18.04.2018, at 22:02, Marek Vasut wrote: > > On 04/18/2018 06:25 PM, Klaus Goger wrote: >> When building the mxs platform in thumb mode gcc generates code using >> the intra procedure call scratch register (ip/r12) for the calling the >> lowlevel_init function. This modifies

Re: [U-Boot] [PATCH v2 1/5] sunxi: R40: add gigabit ethernet clocks

2018-04-19 Thread Maxime Ripard
On Tue, Apr 17, 2018 at 03:42:31PM +0200, Lothar Felten wrote: > Add clock control entries for the gigabit interface of the Allwinner > R40/V40 CPU > > Signed-off-by: Lothar Felten Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Bootlin

Re: [U-Boot] [PATCH v2 3/5] sunxi: R40: add gigabit ethernet gpio pinmux

2018-04-19 Thread Maxime Ripard
On Tue, Apr 17, 2018 at 03:42:33PM +0200, Lothar Felten wrote: > Add gpio mux settings for the Allwinner R40/V40 CPU. > The gigabit ethernet interface can only be routed to a fixed set of pins. > > Signed-off-by: Lothar Felten Acked-by: Maxime Ripard

Re: [U-Boot] [PATCH 1/5] ARM: socfpga: Add boot trampoline for Arria10

2018-04-19 Thread Marek Vasut
On 04/19/2018 07:51 AM, See, Chin Liang wrote: > On Tue, 2018-04-17 at 11:28 +0200, Marek Vasut wrote: >> On 04/17/2018 11:11 AM, See, Chin Liang wrote: >>> >>> On Tue, 2018-04-17 at 11:01 +0200, Marek Vasut wrote: On 04/17/2018 10:52 AM, See, Chin Liang wrote: > > > On Tue,

Re: [U-Boot] [PATCH v1] arm: mxs: make startup code thumb compatible

2018-04-19 Thread Marek Vasut
On 04/19/2018 10:02 AM, klaus.go...@theobroma-systems.com wrote: > >> On 18.04.2018, at 22:02, Marek Vasut wrote: >> >> On 04/18/2018 06:25 PM, Klaus Goger wrote: >>> When building the mxs platform in thumb mode gcc generates code using >>> the intra procedure call scratch

[U-Boot] [PATCH v2 14/18] spi: mpc8xxx: Document LEN setting better

2018-04-19 Thread Mario Six
Instead of having a table right before the code implementing the length setting for documentation, have inline comments for the if branches actually implementing the length setting described table's entries (which is readable thanks to the set_char_len function). Signed-off-by: Mario Six

[U-Boot] [PATCH] watchdog: cadence: Remove useless ioremap

2018-04-19 Thread Michal Simek
There is no need to call ioremap. Also reg pointer is completely unused in the driver. Signed-off-by: Michal Simek --- drivers/watchdog/cdns_wdt.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/watchdog/cdns_wdt.c b/drivers/watchdog/cdns_wdt.c index

[U-Boot] [PATCH] pci: intel: Add Intel FPGA PCIe controller driver

2018-04-19 Thread Ley Foon Tan
Add PCIe driver for Intel FPGA PCIe IP. This driver operates the PCIe IP in rootport mode only, the EP mode is not supported. The driver is tested with the Intel e1000e NIC driver. Signed-off-by: Ley Foon Tan --- drivers/pci/Kconfig | 7 +

Re: [U-Boot] [PATCH] board: freescale: ls1012ardb: Add command to switch QSPI bank

2018-04-19 Thread Prabhakar Kushwaha
Thanks Scott for reviewing this patch > -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Scott > Wood > Sent: Friday, April 20, 2018 6:40 AM > To: Calvin Johnson > Cc: U-Boot Mailing List > Subject: Re:

[U-Boot] [PATCH 07/10] rockchip: rk3288: add board_debug_uart_init()

2018-04-19 Thread Kever Yang
Use board_debug_uart_init() for UART iomux init instead of do it in board_init_f, and move the function to soc file so that we can find all the soc/board setting in soc file and use a common board file for all rockchip SoCs later. Signed-off-by: Kever Yang ---

[U-Boot] [PATCH 08/10] rockchip: rk3368: move board_debug_uart_init() to rk3368.c

2018-04-19 Thread Kever Yang
Move the function to soc file so that we can find all the soc/board setting in soc file and use a common board file later for all rockchip SoCs. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3368-board-spl.c | 5 -

[U-Boot] [PATCH 02/10] rockchip; kylin-rk3036: enabl DEBUG UART

2018-04-19 Thread Kever Yang
Enable debug uart for kylin board in defconfig. Signed-off-by: Kever Yang --- configs/kylin-rk3036_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/kylin-rk3036_defconfig b/configs/kylin-rk3036_defconfig index c7bd73f..6ff187e 100644 ---

[U-Boot] [PATCH 09/10] rockchip: rk3399: use grf structure to access reg

2018-04-19 Thread Kever Yang
Prefer to use structure to access register if we could. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3399/rk3399.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c

[U-Boot] [PATCH 03/10] rockchip: rk3036: add board_debug_uart_init()

2018-04-19 Thread Kever Yang
Use board_debug_uart_init() for UART iomux init instead of do it in board_init_f, and move the function to soc file so that we can find all the soc/board setting in soc file and use a common board file. Signed-off-by: Kever Yang ---

[U-Boot] [PATCH 10/10] rockchip: rk3399: add board_debug_uart_init()

2018-04-19 Thread Kever Yang
Use board_debug_uart_init() for UART iomux init instead of do it in board_init_f, and move the function to soc file so that we can find all the soc/board setting in soc file and use a common board file for all rockchip SoCs later. Signed-off-by: Kever Yang ---

[U-Boot] [PATCH 04/10] rockchip: rk3188: add board_debug_uart_init()

2018-04-19 Thread Kever Yang
Use board_debug_uart_init() for UART iomux init instead of do it in board_init_f, and move the function to soc file so that we can find all the soc/board setting in soc file and use a common board file. Signed-off-by: Kever Yang ---

[U-Boot] [PATCH 05/10] rockchip: rk322x: move board_debug_uart_init() to rk322x.c

2018-04-19 Thread Kever Yang
Move the function to soc file so that we can find all the soc/board setting in soc file and use a common board file later for all rockchip SoCs. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk322x-board-spl.c | 43 ++---

Re: [U-Boot] [RFC PATCH v1 0/1] Migrate IMAGE_FORMAT_LEGACY to Kconfig

2018-04-19 Thread Alex Kiernan
On Thu, Apr 19, 2018 at 8:39 PM, Tom Rini wrote: > On Thu, Apr 19, 2018 at 04:52:30AM +, Alex Kiernan wrote: >> >> On the face of it, this is a straightforward moveconfig, but because >> of how CONFIG_FIT_SIGNATURE, CONFIG_IMAGE_FORMAT_LEGACY and >>

[U-Boot] [PATCH 00/10] rockchip: enable board_debug_uart_init for all soc

2018-04-19 Thread Kever Yang
ALl rockchip soc use DEBUG UART, and need init the uart iomux in board_debug_uart_init(). Move the board_debug_uart_init() into soc file so that we can make all soc config in soc file and share a common board file later for all rockchip SoCs. Kever Yang (10): rockchip: enable

[U-Boot] [PATCH 01/10] rockchip: enable DEBUG_UART_BOARD_INIT by default

2018-04-19 Thread Kever Yang
All Rockchip SoCs use DEBUG_UART_BOARD_INIT to init per board UART IOMUX, enable it by default. Signed-off-by: Kever Yang --- arch/arm/Kconfig | 2 ++ arch/arm/mach-rockchip/Kconfig | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH 06/10] rockchip: rk3288: use grf structure to access soc_con2

2018-04-19 Thread Kever Yang
Prefer to use structure to access register if we can. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3288/rk3288.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3288/rk3288.c

[U-Boot] [PATCH] DW SPI: invert wait condition in dw_spi_xfer

2018-04-19 Thread Eugeniy Paltsev
While switching to readl_poll_timeout macros from custom code the waiting condition was accidently inverted, so it was pure luck that this code works at least in some conditions. Fix that by inverting exit condition for readl_poll_timeout. Fixes: c6b4f031d9 ("DW SPI: fix tx data loss on FIFO

[U-Boot] [PATCH v2 4/8] riscv: Add board_quiesce_devices stub

2018-04-19 Thread Alexander Graf
This patch adds an empty stub for board_quiesce_devices() which allows boards to quiesce their devices before we boot into an OS in a platform agnostic way. Signed-off-by: Alexander Graf --- arch/riscv/include/asm/u-boot-riscv.h | 1 + arch/riscv/lib/bootm.c| 4

[U-Boot] [PATCH v2 1/8] riscv: Add setjmp/longjmp code

2018-04-19 Thread Alexander Graf
To support efi_loader we need to have platform support for setjmp/longjmp. Add it here. Signed-off-by: Alexander Graf --- v1 -> v2: - Allow 32bit target - Also save/restore ra, sp --- arch/riscv/include/asm/setjmp.h | 26 arch/riscv/lib/Makefile |

[U-Boot] [PATCH v2 7/8] riscv: nx25: Enable distro boot

2018-04-19 Thread Alexander Graf
Distro boot allows for a common boot path on systems that allow distributions to easily boot from a default configuration. This patch enables distro boot for the nx25-ae250. Hopefully this can serve as a good example for new boards, so they enable it as well. Signed-off-by: Alexander Graf

[U-Boot] [PATCH v2 5/8] efi_loader: Use EFI_CACHELINE_SIZE in the image loader too

2018-04-19 Thread Alexander Graf
We were using our EFI_CACHELINE_SIZE define only in the runtime service code, but left the image loader to use plain CONFIG_SYS_CACHELINE_SIZE. This patch moves EFI_CACHELINE_SIZE into efi_loader.h and converts the image loader to use it. Signed-off-by: Alexander Graf ---

[U-Boot] [PATCH v2 6/8] distro: Extend with RISC-V defines

2018-04-19 Thread Alexander Graf
While we don't have VCI or UEFI naming conventions for RISC-V file paths yet, we need to search for something. So let's make up a few defines that at least allow us to get started until the specs officially include RISC-V. Signed-off-by: Alexander Graf --- v1 -> v2: - Use

Re: [U-Boot] [PATCH] rsa-sign: Fix build against libressl

2018-04-19 Thread Jonathan Gray
On Wed, Apr 18, 2018 at 10:37:43PM +0200, Hauke Mehrtens wrote: > Libressl implements the OpenSSL 1.1 API partially and improved the > support with version 2.7. For some code we have to take use the OpenSSL > 1.0 API and for some parts the OpenSSL 1.1 API can be used. > This was compile tested

Re: [U-Boot] [PATCH 1/2] nand: zynq: Fix driver initialization

2018-04-19 Thread Ezequiel Garcia
Hi Michal, On 19 April 2018 at 08:10, Michal Simek wrote: > From: Ezequiel Garcia > > This driver is currently broken, refusing to initialize properly. > > The reason is that get_nand_dev_by_index() was being called before >

[U-Boot] [PATCH v2 3/8] riscv: Add EFI application infrastructure

2018-04-19 Thread Alexander Graf
The hello world binary and a few selftests require to build EFI target binaries, not just the EFI host environment. This patch adds all required files to generate an EFI binary for RISC-V. Signed-off-by: Alexander Graf --- new in v2 --- arch/riscv/config.mk | 5

[U-Boot] [PATCH v2 0/8] riscv: Enable efi_loader support

2018-04-19 Thread Alexander Graf
We now have RISC-V support in U-Boot - which is great! However, not that we're finally making progress to converge on efi_loader and distro boot for booting on ARM platforms, we really want to make sure there is no technical reason not to do the same on RISC-V as well. So this patch set

[U-Boot] [PATCH v2 2/8] riscv: Enable function sections

2018-04-19 Thread Alexander Graf
The linker can remove sections that are never addressed, so it makes a lot of sense to declare every function as an individual section. This reduces the output U-Boot code size by ~30kb for me. Signed-off-by: Alexander Graf --- arch/riscv/config.mk | 2 +- 1 file changed, 1

[U-Boot] [PATCH v2 8/8] efi_loader: Enable RISC-V support

2018-04-19 Thread Alexander Graf
We have almost all pieces needed to support RISC-V UEFI binaries in place already. The only missing piece are ELF relocations for runtime code and data. This patch adds respective support in the linker script and the runtime relocation code. It also allows users to enable the EFI_LOADER

[U-Boot] [PATCH 1/2] nand: zynq: Fix driver initialization

2018-04-19 Thread Michal Simek
From: Ezequiel Garcia This driver is currently broken, refusing to initialize properly. The reason is that get_nand_dev_by_index() was being called before nand_register(), thus returning a pointer into uninitialized memory. In other words, the struct mtd_info used

Re: [U-Boot] [PATCH v5 0/2] SF: add support for sst26wf016, sst26wf032, sst26wf064

2018-04-19 Thread Jagan Teki
On Tue, Apr 10, 2018 at 5:10 PM, Eugeniy Paltsev wrote: > Add support for the SST sst26wf016, sst26wf032 and sst26wf064 flash IC: > > sst26wf*** flash series block protection implementation differs from other > SST series, so we add implementation for sst26wf***

Re: [U-Boot] [PATCH 19/19] spi: mpc8xxx: Add DM support

2018-04-19 Thread Jagan Teki
On Tue, Apr 10, 2018 at 4:31 PM, Mario Six wrote: > Support DM for the MPC8XXX SPI driver. > > Signed-off-by: Mario Six > --- > drivers/spi/mpc8xxx_spi.c | 135 > +- > 1 file changed, 133 insertions(+), 2

Re: [U-Boot] [PATCH 19/19] spi: mpc8xxx: Add DM support

2018-04-19 Thread Mario Six
On Thu, Apr 19, 2018 at 1:48 PM, Jagan Teki wrote: > On Thu, Apr 19, 2018 at 5:15 PM, Mario Six wrote: >> Hi Jagan, >> >> On Thu, Apr 19, 2018 at 1:32 PM, Jagan Teki wrote: >>> On Tue, Apr 10, 2018 at 4:31 PM, Mario Six

Re: [U-Boot] [PATCH 19/19] spi: mpc8xxx: Add DM support

2018-04-19 Thread Jagan Teki
On Thu, Apr 19, 2018 at 5:15 PM, Mario Six wrote: > Hi Jagan, > > On Thu, Apr 19, 2018 at 1:32 PM, Jagan Teki wrote: >> On Tue, Apr 10, 2018 at 4:31 PM, Mario Six wrote: >>> Support DM for the MPC8XXX SPI driver. >>> >>>

[U-Boot] [PATCH v2 01/18] spi: mpc8xxx: Use short type names

2018-04-19 Thread Mario Six
The function signatures in the driver are quite long as is. Use short type names (uint etc.) to make them more readable. Signed-off-by: Mario Six --- drivers/spi/mpc8xxx_spi.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) --- Changes v1 -> v2: None ---

[U-Boot] [PATCH v2 08/18] spi: mpc8xxx: Simplify if

2018-04-19 Thread Mario Six
Instead of having a nested if block, just have two branches within the overarching if block to eliminate one nesting level. Signed-off-by: Mario Six --- Changes v1 -> v2: None --- drivers/spi/mpc8xxx_spi.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-)

Re: [U-Boot] [RFC PATCH 1/2] fpga: xilinx: zynq: Add support to decrypt images

2018-04-19 Thread Stefan Herbrechtsmeier
Am 02.04.2018 um 08:15 schrieb Siva Durga Prasad Paladugu: This patch adds support to decrypt an encrypted bitstream or image. This zynq aes command can either load decrypted image back to DDR or it can load an encrypted bitsream to PL directly by decrypting it. The image has to be encrypted

Re: [U-Boot] [PATCH v2 6/8] distro: Extend with RISC-V defines

2018-04-19 Thread Heinrich Schuchardt
On 04/19/2018 05:49 PM, Alexander Graf wrote: While we don't have VCI or UEFI naming conventions for RISC-V file paths yet, we need to search for something. So let's make up a few defines that at least allow us to get started until the specs officially include RISC-V. Signed-off-by: Alexander

Re: [U-Boot] [PATCH v2 6/8] distro: Extend with RISC-V defines

2018-04-19 Thread Alexander Graf
On 04/19/2018 07:19 PM, Heinrich Schuchardt wrote: On 04/19/2018 05:49 PM, Alexander Graf wrote: While we don't have VCI or UEFI naming conventions for RISC-V file paths yet, we need to search for something. So let's make up a few defines that at least allow us to get started until the

Re: [U-Boot] [PATCH 6/6] cmd: Add "boot_android" command.

2018-04-19 Thread Stanislas BERTRAND
Hi Alex, I used work available in https://android.googlesource.com/platform/external/u-boot/+/android-o-mr1-iot-preview-7. I selected the n-iot-preview-4 because it is U-Boot version 2017.01 which is compatible with TI U-Boot work. One quick feedback about the boot_android : > The new

Re: [U-Boot] [RFC PATCH] arm: zynqmp: Add ZynqMP minimal R5 support

2018-04-19 Thread Alexander Graf
On 04/18/2018 03:11 PM, Michal Simek wrote: Xilinx ZynqMP also contains dual Cortex R5 which can run U-Boot. This patch is adding minimal support to get U-Boot boot. DDR needs to be partitioned. Console is done via Cadence uart driver and the first Cadence Triple Timer Counter is used for time.

Re: [U-Boot] [PATCH v2 6/8] distro: Extend with RISC-V defines

2018-04-19 Thread Heinrich Schuchardt
On 04/19/2018 07:19 PM, Heinrich Schuchardt wrote: On 04/19/2018 05:49 PM, Alexander Graf wrote: While we don't have VCI or UEFI naming conventions for RISC-V file paths yet, we need to search for something. So let's make up a few defines that at least allow us to get started until the

[U-Boot] [PATCH 1/1] cmd: CONFIG_CMD_LOG select CONFIG_LOG

2018-04-19 Thread Heinrich Schuchardt
CONFIG_CMD_LOG without CONFIG_LOG leads to a build error: ‘gd_t {aka volatile struct global_data}’ has no member named ‘default_log_level’ So CMD_LOG should select LOG. Signed-off-by: Heinrich Schuchardt --- cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

  1   2   >