[U-Boot] [PATCH 1/4] efi_loader: set revision in loaded image protocol

2018-07-05 Thread Heinrich Schuchardt
The revision number has to be set in the loaded image protocol. The problem was detected by running the SCT in Protocol/LoadedImage/BlackBoxTest/LoadedImageBBTestMain.c:890 Signed-off-by: Heinrich Schuchardt --- include/efi_api.h | 2 ++ lib/efi_loader/efi_boottime.c | 1 + 2 files

[U-Boot] [PATCH 2/4] efi_loader: EFI_SIMPLE_TEXT_INPUT_PROTOCOL.Reset()

2018-07-05 Thread Heinrich Schuchardt
Implement the reset service of the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. This should resolve the error reported by the SCT in Protocol/SimpleTextIn/BlackBoxTest/SimpleTextInBBTestFunction.c:193 Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_console.c | 7 ++- 1 file changed, 6

[U-Boot] [PATCH 4/4] efi_loader: EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.Reset()

2018-07-05 Thread Heinrich Schuchardt
Implement the reset service of the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL. This should resolve the error reported by the SCT in Protocol/SimpleTextOut/BlackBoxTest/SimpleTextOutBBTestFunction_uefi.c:639 Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_console.c | 10 +- 1 file

[U-Boot] [PATCH 0/4] efi_loader: text protocols

2018-07-05 Thread Heinrich Schuchardt
This patch set fixes some problems found via the SCT. Heinrich Schuchardt (4): efi_loader: set revision in loaded image protocol efi_loader: EFI_SIMPLE_TEXT_INPUT_PROTOCOL.Reset() efi_loader: clear screen has to reset cursor position efi_loader: EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.Reset()

[U-Boot] [PATCH 3/4] efi_loader: clear screen has to reset cursor position

2018-07-05 Thread Heinrich Schuchardt
After clearing the screen the cursor position is row 0, column 0. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_console.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c index 1d52753456..3fd0d2fd51 100644 ---

Re: [U-Boot] [PATCH v2 2/2] arm: qemu-arm: enable PL031 (RTC) in defconfig

2018-07-05 Thread AKASHI Takahiro
On Wed, Jul 04, 2018 at 12:25:34PM +0200, Heinrich Schuchardt wrote: > On 07/04/2018 10:56 AM, Alexander Graf wrote: > > On 07/04/2018 09:36 AM, AKASHI Takahiro wrote: > >> Signed-off-by: AKASHI Takahiro > >> --- > >>   configs/qemu_arm64_defconfig | 2 ++ > >>   configs/qemu_arm_defconfig   | 2

Re: [U-Boot] [PATCH v2 1/2] rtc: pl031: convert the driver to driver model

2018-07-05 Thread AKASHI Takahiro
On Wed, Jul 04, 2018 at 10:53:34AM +0200, Alexander Graf wrote: > On 07/04/2018 09:36 AM, AKASHI Takahiro wrote: > > This patch is missing a patch description. I'm not the maintainer of the rtc > code base so it's not my call, but I personally just reject all patches with > empty patch

Re: [U-Boot] [EXT] Re: [PATCH v3 1/2] dm: mdio: add a uclass for MDIO

2018-07-05 Thread Ken Ma
Hi Joe Please see my comments inline, thanks a lot for your kind and careful review! Yours, Ken -Original Message- From: Joe Hershberger [mailto:joe.hershber...@ni.com] Sent: 2018年6月20日 4:59 To: Ken Ma ; Simon Glass Cc: U-Boot Mailing List ; Andy Shevchenko ; Eugeniy Paltsev ;

Re: [U-Boot] [PATCH v2 1/2] rtc: pl031: convert the driver to driver model

2018-07-05 Thread AKASHI Takahiro
On Wed, Jul 04, 2018 at 02:35:19PM +0300, Tuomas Tynkkynen wrote: > Hi Akashi, > > Thank you for the DM conversion. > > On 07/04/2018 10:36 AM, AKASHI Takahiro wrote: > <..snip..> > >diff --git a/include/dm/platform_data/rtc_pl031.h > >b/include/dm/platform_data/rtc_pl031.h > >new file mode

[U-Boot] [PATCH v4 1/2] dm: mdio: add a uclass for MDIO

2018-07-05 Thread make
From: Ken Ma Add a uclass which provides access to MDIO busses and includes operations required by MDIO. The implementation is based on the existing mii/phy/mdio data structures and APIs. This patch also adds device tree binding for MDIO bus. Signed-off-by: Ken Ma Reviewed-by:

Re: [U-Boot] [PATCH v4 1/2] dm: mdio: add a uclass for MDIO

2018-07-05 Thread Stefan Roese
On 05.07.2018 09:34, m...@marvell.com wrote: From: Ken Ma Add a uclass which provides access to MDIO busses and includes operations required by MDIO. The implementation is based on the existing mii/phy/mdio data structures and APIs. This patch also adds device tree binding for MDIO bus.

Re: [U-Boot] [PATCH v4 2/2] mdio: add marvell MDIO driver

2018-07-05 Thread Stefan Roese
On 05.07.2018 09:34, m...@marvell.com wrote: From: Ken Ma This patch adds a separate driver for the MDIO interface of the Marvell Ethernet controllers based on driver model. There are two reasons to have a separate driver rather than including it inside the MAC driver itself: *) The MDIO

Re: [U-Boot] [PATCH v2 1/2] rtc: pl031: convert the driver to driver model

2018-07-05 Thread AKASHI Takahiro
On Wed, Jul 04, 2018 at 12:50:52PM +0200, Heinrich Schuchardt wrote: > On 07/04/2018 09:36 AM, AKASHI Takahiro wrote: > > Signed-off-by: AKASHI Takahiro > > --- > > drivers/rtc/Kconfig | 6 ++ > > drivers/rtc/pl031.c | 109 +-- > >

Re: [U-Boot] [PATCH v2] sunxi: A64: OHCI: prevent turning off shared USB clock

2018-07-05 Thread Andre Przywara
Hi, On 05/07/18 10:25, Marek Vasut wrote: > On 07/05/2018 01:57 AM, Andre Przywara wrote: >> On the A64 the clock for the first USB controller is actually the parent >> of the clock for the second controller, so turning them off in that order >> makes the system hang. >> Fix this by only turning

Re: [U-Boot] [PATCH v2] sunxi: A64: OHCI: prevent turning off shared USB clock

2018-07-05 Thread Jagan Teki
On Thu, Jul 5, 2018 at 5:27 AM, Andre Przywara wrote: > On the A64 the clock for the first USB controller is actually the parent > of the clock for the second controller, so turning them off in that order > makes the system hang. > Fix this by only turning off *both* clocks when the *last* OHCI

[U-Boot] [PATCH v4 0/2] Add MDIO driver model support

2018-07-05 Thread make
From: Ken Ma Changes in v4: - Minor updates for comments and Maintainer. - Use wait_for_bit_le32() instead of implementing private busy wait polling function. Changes in v3: - Move mdio uclass implementation to driver/net folder; - Replace flat-tree functions with livetree functions and

Re: [U-Boot] Support of device-tree for PowerPC platform: Query

2018-07-05 Thread Bin Meng
Hi Jagdish, On Thu, Jul 5, 2018 at 1:31 PM, Jagdish Gediya wrote: > Hi Bin, > >> -Original Message- >> From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Bin Meng >> Sent: Tuesday, July 3, 2018 8:11 PM >> To: Prabhakar Kushwaha >> Cc: u-boot@lists.denx.de >> Subject: Re:

Re: [U-Boot] [PATCH 1/2] arm: timer: factor out FSL arch timer erratum workaround

2018-07-05 Thread Andre Przywara
Hi, On 03/07/18 21:51, Andreas Färber wrote: > Am 03.07.2018 um 01:08 schrieb Andreas Färber: >> Am 02.07.2018 um 10:01 schrieb Jagan Teki: >>> On Wed, Jun 27, 2018 at 6:12 AM, Andre Przywara >>> wrote: At the moment we have the workaround for the Freescale arch timer erratum A-008585

Re: [U-Boot] [PATCH 0/7] Improve rockusb support in U-Boot

2018-07-05 Thread Lukasz Majewski
Hi Alberto, > Dear Kever, > > On Thu, Jul 5, 2018 at 3:15 AM, Kever Yang > wrote: > > > > Hi Alberto, > > > > Thanks for your patches, and I'm so glad for people using > > rockusb and try to improve it. > > > > You can reference to rockchip source code here: > >

Re: [U-Boot] [PATCH v2] sunxi: A64: OHCI: prevent turning off shared USB clock

2018-07-05 Thread Marek Vasut
On 07/05/2018 01:57 AM, Andre Przywara wrote: > On the A64 the clock for the first USB controller is actually the parent > of the clock for the second controller, so turning them off in that order > makes the system hang. > Fix this by only turning off *both* clocks when the *last* OHCI controller

Re: [U-Boot] [PATCH 4/7] usb: rockchip: implement K_FW_LBA_READ_10 command

2018-07-05 Thread Alberto Panizzo
Hi Kever, On Thu, Jul 5, 2018 at 3:19 AM, Kever Yang wrote: > > Hi Alberto, > > > On 07/04/2018 03:02 AM, Alberto Panizzo wrote: > > It is now possible to read from block device al logic layer. > > Corresponding command on workstation is: > > rkdeveloptool rl > > > > Signed-off-by: Alberto

[U-Boot] [PATCH v4 2/2] mdio: add marvell MDIO driver

2018-07-05 Thread make
From: Ken Ma This patch adds a separate driver for the MDIO interface of the Marvell Ethernet controllers based on driver model. There are two reasons to have a separate driver rather than including it inside the MAC driver itself: *) The MDIO interface is shared by all Ethernet ports, so a

Re: [U-Boot] [PATCH 0/7] Improve rockusb support in U-Boot

2018-07-05 Thread Alberto Panizzo
Dear Kever, On Thu, Jul 5, 2018 at 3:15 AM, Kever Yang wrote: > > Hi Alberto, > > Thanks for your patches, and I'm so glad for people using rockusb > and try to improve it. > > You can reference to rockchip source code here: >

Re: [U-Boot] [PATCH 3/5] net: Make copy_filename() accept NULL src

2018-07-05 Thread Alexander Graf
On 07/04/2018 06:18 PM, Joe Hershberger wrote: On Wed, Jul 4, 2018 at 4:25 AM, Alexander Graf wrote: On 07/04/2018 02:36 AM, Joe Hershberger wrote: Rather than crashing, check the src ptr and set dst to empty string. Signed-off-by: Joe Hershberger Wouldn't it make more sense to check for

Re: [U-Boot] [PATCH v2 5/7] efi_loader: calculate crc32 for EFI tables

2018-07-05 Thread Alexander Graf
On 06/28/2018 12:45 PM, Heinrich Schuchardt wrote: For the boot and runtime services tables and for the system table the crc32 has to be set in the header. Signed-off-by: Heinrich Schuchardt Reviewed-by: Bin Meng --- v2 no change --- cmd/bootefi.c | 5 +

[U-Boot] [PATCH 1/3] Revert "ARM: imx6: Disable DDR DRAM calibration DHCOM i.MX6 PDK"

2018-07-05 Thread lzenz
From: Ludwig Zenz This reverts commit a637fe6f27fd4c19ef9f43a5f871c244581422ac. The DDR DRAM calibration was enhanced by write leveling correction code. It can be used with T-topology now. Signed-off-by: Ludwig Zenz --- board/dhelectronics/dh_imx6/dh_imx6_spl.c | 4 1 file changed, 4

[U-Boot] [PATCH 2/3] ARM: imx6: configure ddrcode pins in spl DHCOM i.MX6 PDK

2018-07-05 Thread lzenz
From: Ludwig Zenz Preperation for conditional DDR3 initialization based on GPIO codes. Signed-off-by: Ludwig Zenz --- board/dhelectronics/dh_imx6/dh_imx6_spl.c | 40 +++ 1 file changed, 40 insertions(+) diff --git a/board/dhelectronics/dh_imx6/dh_imx6_spl.c

[U-Boot] [PATCH 2/2] bootmenu: Extend BOOTDELAY help text

2018-07-05 Thread Alex Kiernan
Extend BOOTDELAY help text to cover its additional usage within the bootmenu command. Signed-off-by: Alex Kiernan --- common/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index 4c7a1a9af8..81e88ea77c 100644 --- a/common/Kconfig +++

[U-Boot] [PATCH 1/2] env: Include bootdelay in environment if negative

2018-07-05 Thread Alex Kiernan
The test for (CONFIG_BOOTDELAY >= 0) has been in U-Boot since the beginning, but the meaning of it has changed over time. Allow the default to be set for any value, including -ve ones. This allows (for example) CONFIG_ENV_IS_NOWHERE to have values for bootdelay in its compiled in environment. The

[U-Boot] [PATCH 3/3] ARM: imx6: DHCOM i.MX6 PDK: ddr init for 32bit bus and 4GBit chips

2018-07-05 Thread lzenz
From: Ludwig Zenz Support 1GIB + 2GIB DDR3 with 64bit bus width and 512MIB + 1GIB with 32bit bus width Signed-off-by: Ludwig Zenz --- board/dhelectronics/dh_imx6/dh_imx6_spl.c | 191 +++--- 1 file changed, 173 insertions(+), 18 deletions(-) diff --git

[U-Boot] [PATCH] sf: add Gigadevice gd25q16c entry

2018-07-05 Thread lzenz
From: Ludwig Zenz Add support for the Gigadevice gd25q16c nor flash. (Tested on a imx6 board) Signed-off-by: Ludwig Zenz --- drivers/mtd/spi/spi_flash_ids.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/spi_flash_ids.c b/drivers/mtd/spi/spi_flash_ids.c index

[U-Boot] adout specification ram size before boot linux

2018-07-05 Thread out-luxiaobo
Hello!! We using zenq_7z010 board, We have some question, How setting RAM size to 64M for linux kernel before linux kenerl ? Thanks ! ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH] sf: add paired dev info for winbond w25q16jv

2018-07-05 Thread lzenz
From: Ludwig Zenz This commit adds paired dev info for winbond w25q16jv (tested w25q16jvssiq with a i.mx6 board) Signed-off-by: Ludwig Zenz --- drivers/mtd/spi/spi_flash_ids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi/spi_flash_ids.c

Re: [U-Boot] [PATCH 2/5] net: Re-check prerequisites when autoloading

2018-07-05 Thread Alexander Graf
On 07/04/2018 06:23 PM, Joe Hershberger wrote: On Wed, Jul 4, 2018 at 4:20 AM, Alexander Graf wrote: On 07/04/2018 02:36 AM, Joe Hershberger wrote: With net autoload, we check the prerequisites for the initial command, but the greater prerequisites when autoloading are not checked. If we

Re: [U-Boot] [PATCH 1/2 v2] board: freescale: ls1012afrx:Common files to support

2018-07-05 Thread Pramod Kumar
>-Original Message- >From: York Sun >Sent: Tuesday, July 3, 2018 8:53 PM >To: Pramod Kumar ; u-boot@lists.denx.de >Subject: Re: [PATCH 1/2 v2] board: freescale: ls1012afrx:Common files to >support > >On 06/06/2018 04:16 AM, Pramod Kumar wrote: >> LS1012A-FRDM and LS1012A-FRWY board. >>

[U-Boot] [PATCH] sf: add Macronix mx25l1633e entry

2018-07-05 Thread lzenz
From: Ludwig Zenz Add support for the Macronix mx25l1633e nor flash. (Tested on a imx6 board) Signed-off-by: Ludwig Zenz --- drivers/mtd/spi/spi_flash_ids.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/spi_flash_ids.c b/drivers/mtd/spi/spi_flash_ids.c index

Re: [U-Boot] [PATCH 4/4] efi_loader: EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.Reset()

2018-07-05 Thread Alexander Graf
On 07/05/2018 08:18 AM, Heinrich Schuchardt wrote: Implement the reset service of the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL. This should resolve the error reported by the SCT in Protocol/SimpleTextOut/BlackBoxTest/SimpleTextOutBBTestFunction_uefi.c:639 Signed-off-by: Heinrich Schuchardt ---

Re: [U-Boot] [PATCH v2 7/7] efi_selftest: test InstallConfigurationTable()

2018-07-05 Thread Alexander Graf
On 06/28/2018 12:45 PM, Heinrich Schuchardt wrote: Provide a unit test for InstallConfigurationTable(). A table is installed, updated, removed. The table entry and the triggering of events is checked. Signed-off-by: Heinrich Schuchardt Could you please do a crc test run that checks the

[U-Boot] [PATCH v2 1/5] net: phy: add ofnode node to struct phy_device

2018-07-05 Thread Grygorii Strashko
Now the UCLASS_ETH device "node" field is owerwritten by some network drivers in case of Ethernet PHYs which are linked to UCLASS_ETH device using "phy-handle" DT property and when Ethernet PHY driver needs to read some additional information from DT. In such cases following happens (in general):

[U-Boot] [PATCH v2 2/5] net: phy: dp83867: switch to use phy_get_ofnode()

2018-07-05 Thread Grygorii Strashko
Use PHY API phy_get_ofnode() helper to get PHY DT node. Signed-off-by: Grygorii Strashko Acked-by: Joe Hershberger --- drivers/net/phy/ti.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/ti.c b/drivers/net/phy/ti.c index 98c36ab..d4a7e39 100644 ---

[U-Boot] [PATCH v2 5/5] drivers: net: zynq_gem: fix phy dt node setting

2018-07-05 Thread Grygorii Strashko
Now zynq_gem driver will overwrite UCLASS_ETH node when PHY is connected and configured which is not correct. Use struct phydev->node instead. Signed-off-by: Grygorii Strashko Acked-by: Joe Hershberger --- drivers/net/zynq_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2 0/5] net: phy: prevent uclass_eth device "node" field overwriting

2018-07-05 Thread Grygorii Strashko
This series prevents the UCLASS_ETH device "node" field overwriting by some network drivers when Ethernet PHYs are linked to UCLASS_ETH device using "phy-handle" DT property and when Ethernet PHY driver needs to read some additional information from DT (like dp83867). It fixes following cases:

[U-Boot] [PATCH v2 4/5] drivers: net: cpsw: fix phy dt node setting

2018-07-05 Thread Grygorii Strashko
Now CPSW driver will overwrite UCLASS_ETH node when PHY is connected and configured which is not correct. Use struct phydev->node instead. Signed-off-by: Grygorii Strashko Acked-by: Joe Hershberger --- drivers/net/cpsw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2 3/5] net: phy: xilinx: switch to use phy_get_ofnode()

2018-07-05 Thread Grygorii Strashko
Use PHY API phy_get_ofnode() helper to get PHY DT node. Signed-off-by: Grygorii Strashko Acked-by: Joe Hershberger --- drivers/net/phy/xilinx_phy.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/phy/xilinx_phy.c b/drivers/net/phy/xilinx_phy.c index

Re: [U-Boot] [PATCH 3/5] net: Make copy_filename() accept NULL src

2018-07-05 Thread Joe Hershberger
On Thu, Jul 5, 2018 at 6:49 AM, Alexander Graf wrote: > On 07/04/2018 06:18 PM, Joe Hershberger wrote: >> >> On Wed, Jul 4, 2018 at 4:25 AM, Alexander Graf wrote: >>> >>> On 07/04/2018 02:36 AM, Joe Hershberger wrote: Rather than crashing, check the src ptr and set dst to empty string.

[U-Boot] [BUG] efi_loader: efi_set_virtual_address_map() does not support runtime drivers

2018-07-05 Thread Heinrich Schuchardt
The function efi_set_virtual_address_map() is left after hitting the first EFI_RUNTIME_SERVICES_CODE to relocate. But if EFI runtime drivers have been loaded into U-Boot there will be multiple such blocks. SetVirtualAddressMap() as described in the UEFI spec is rather complex to implement. It

[U-Boot] [PATCH 1/3] efi_loader: correctly initialize system table crc32

2018-07-05 Thread Heinrich Schuchardt
We should calculate the crc32 after initalizing all fields of the system table. Signed-off-by: Heinrich Schuchardt --- cmd/bootefi.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/bootefi.c b/cmd/bootefi.c index b60c151fb4..1bf75e2bba 100644 ---

[U-Boot] [PATCH 2/3] efi_loader: correct signature of CalculateCrc32()

2018-07-05 Thread Heinrich Schuchardt
Use const for the buffer. We are not changing the buffer. Use efi_uintn_t where prescribed by the UEFI spec. Prefer u32 over uint32_t. Signed-off-by: Heinrich Schuchardt --- include/efi_api.h | 5 +++-- lib/efi_loader/efi_boottime.c | 6 +++--- 2 files changed, 6 insertions(+), 5

[U-Boot] [PATCH 3/3] efi_selftest: unit test for CalculateCrc32()

2018-07-05 Thread Heinrich Schuchardt
This unit test checks the CalculateCrc32 bootservice and checks the headers of the system table, the boot services tablle, and the runtime services table before and after ExitBootServices(). Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/Makefile | 1 +

[U-Boot] [PATCH 1/1] efi_loader: EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.Reset()

2018-07-05 Thread Heinrich Schuchardt
Implement the reset service of the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL. This should resolve the error reported by the SCT in Protocol/SimpleTextOut/BlackBoxTest/SimpleTextOutBBTestFunction_uefi.c:639 Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_console.c | 22 ++ 1

[U-Boot] [PATCH 1/1] efi_loader: rename utf16_strlen, utf16_strnlen

2018-07-05 Thread Heinrich Schuchardt
The function names utf16_strlen() and utf16_strnlen() are misnomers. The functions do not count utf-16 characters but non-zero words. So let's rename them to u16_strlen and u16_strnlen(). In utf16_dup() avoid assignment in if clause. Signed-off-by: Heinrich Schuchardt --- include/charset.h

[U-Boot] [PATCH 1/1] MAINTAINERS: assign lib/charset.c

2018-07-05 Thread Heinrich Schuchardt
lib/charset.c is only used by the EFI subsystem. Signed-off-by: Heinrich Schuchardt --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index b2c9717cb7..2aef214ea0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -348,6 +348,7 @@ F: doc/README.iscsi F:

[U-Boot] [PATCH 0/3] efi_loader: correctly initialize system table crc32

2018-07-05 Thread Heinrich Schuchardt
The crc32 of the system table has to be calculated after all fields have been set. Adjust the signature of CalculateCrc32(). Provide a unit test that checks the crc of the system table, the runtime services table, and the boot sevices table before and after ExitBootServices(). Heinrich

Re: [U-Boot] SoCFPGA PL330 DMA driver and ECC scrubbing

2018-07-05 Thread Marek Vasut
On 07/06/2018 01:11 AM, Jason Rush wrote: > On 7/4/2018 2:23 AM, Marek Vasut wrote: >> On 07/04/2018 01:45 AM, Jason Rush wrote: >>> On 7/3/2018 9:08 AM, Marek Vasut wrote: On 07/03/2018 03:58 PM, Jason Rush wrote: > On 6/29/2018 10:17 AM, Marek Vasut wrote: >> On 06/29/2018 05:06 PM,

Re: [U-Boot] [PATCH v2 4/8] usb: rockchip: implement K_FW_LBA_READ_10 command

2018-07-05 Thread Lukasz Majewski
Hi Alberto, > This patch implement reading blocks form selected device with > LBA addressing. > > Corresponding command on workstation is: > rkdeveloptool rl > > While we support reading more than one blocks per K_FW_LBA_READ_10 > request, rkdeveloptool and original rockchip tool do perform

Re: [U-Boot] SoCFPGA PL330 DMA driver and ECC scrubbing

2018-07-05 Thread Jason Rush
On 7/4/2018 2:23 AM, Marek Vasut wrote: > On 07/04/2018 01:45 AM, Jason Rush wrote: >> On 7/3/2018 9:08 AM, Marek Vasut wrote: >>> On 07/03/2018 03:58 PM, Jason Rush wrote: On 6/29/2018 10:17 AM, Marek Vasut wrote: > On 06/29/2018 05:06 PM, Jason Rush wrote: >> On 6/29/2018 9:52 AM,

[U-Boot] [PATCH] kconfig: Avoid format overflow warning from GCC 8.1

2018-07-05 Thread Luis Araneda
cherry-pick kernel commit 2ae89c7 (2018-06-05) to avoid warnings when compiling with GCC 8.1 In file included from scripts/kconfig/zconf.tab.c:2486: scripts/kconfig/confdata.c: In function ‘conf_write’: scripts/kconfig/confdata.c:771:22: warning: ‘%s’ directive writing likely 7 or more bytes

Re: [U-Boot] SoCFPGA PL330 DMA driver and ECC scrubbing

2018-07-05 Thread Jason Rush
On 7/5/2018 6:10 PM, Marek Vasut wrote: > On 07/06/2018 01:11 AM, Jason Rush wrote: >> On 7/4/2018 2:23 AM, Marek Vasut wrote: >>> On 07/04/2018 01:45 AM, Jason Rush wrote: On 7/3/2018 9:08 AM, Marek Vasut wrote: > On 07/03/2018 03:58 PM, Jason Rush wrote: >> On 6/29/2018 10:17 AM,

[U-Boot] [PATCH v2 3/3] efi_selftest: unit test for CalculateCrc32()

2018-07-05 Thread Heinrich Schuchardt
This unit test checks the CalculateCrc32 bootservice and checks the headers of the system table, the boot services tablle, and the runtime services table before and after ExitBootServices(). Signed-off-by: Heinrich Schuchardt --- v2: no change --- lib/efi_selftest/Makefile |

[U-Boot] [PATCH v2 2/3] efi_loader: correct signature of CalculateCrc32()

2018-07-05 Thread Heinrich Schuchardt
Use const for the buffer. We are not changing the buffer. Use efi_uintn_t where prescribed by the UEFI spec. Prefer u32 over uint32_t. Signed-off-by: Heinrich Schuchardt --- v2: avoid a warning in a debug statement --- include/efi_api.h | 5 +++--

[U-Boot] [PATCH v2 1/3] efi_loader: correctly initialize system table crc32

2018-07-05 Thread Heinrich Schuchardt
We should calculate the crc32 after initalizing all fields of the system table. Signed-off-by: Heinrich Schuchardt --- v2: no change --- cmd/bootefi.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/bootefi.c b/cmd/bootefi.c index

[U-Boot] [PATCH v2 0/3] efi_loader: correctly initialize system table crc32

2018-07-05 Thread Heinrich Schuchardt
The crc32 of the system table has to be calculated after all fields have been set. Adjust the signature of CalculateCrc32(). Provide a unit test that checks the crc of the system table, the runtime services table, and the boot sevices table before and after ExitBootServices(). v2: avoid

Re: [U-Boot] [PATCH v2 3/3] efi_selftest: unit test for CalculateCrc32()

2018-07-05 Thread Alexander Graf
On 06.07.18 07:09, Heinrich Schuchardt wrote: > This unit test checks the CalculateCrc32 bootservice and checks the > headers of the system table, the boot services tablle, and the runtime > services table before and after ExitBootServices(). > > Signed-off-by: Heinrich Schuchardt This is a

Re: [U-Boot] [PATCH v6 0/5] drivers: Add reset ctrl to drivers

2018-07-05 Thread Ley Foon Tan
On Thu, Jun 14, 2018 at 6:45 PM, Ley Foon Tan wrote: > Add reset ctrl to dwmmc socfpga, designware Ethernet and ns16550 serial > drivers. > > A reset property is an optional feature, so only print out a warning and > do not fail if a reset property is not present. > > If a reset property is

[U-Boot] [PATCH] imx: i.mx6q: imx6q_logic: Migrate to SPL and enable SDP

2018-07-05 Thread Adam Ford
Since the vast majority of i.MX6 boards are migrating to SPL, this patch converts im6q_logic to SPL and enables the SDP for loading SPL and u-boot.img over USB. The Falcon mode only supports NAND flash as of now due to limited space/RAM, but all i.MX6D/Q SOM's from Logic PD have internal NAND

[U-Boot] [PATCH v3] spi: cadence_qspi: Fix compilation warning

2018-07-05 Thread Ley Foon Tan
Use "%zu" for size_t data type. Compilation warning as below: In file included from include/linux/bug.h:7:0, from include/common.h:26, from drivers/spi/cadence_qspi.c:8: drivers/spi/cadence_qspi.c: In function ‘cadence_spi_xfer’:

Re: [U-Boot] [PATCH 3/3] rockchip: fix incorrect detection of ram size

2018-07-05 Thread Marty E. Plummer
On Sat, May 19, 2018 at 02:08:53PM +0200, Dr. Philipp Tomsich wrote: > Marty, > > > On 19 May 2018, at 12:40, Marty E. Plummer wrote: > > > > So explain to me what you'd like me to do here, if you would. What I > > gather from this is you want me to flip CONFIG_PHYS_64BIT and see if it > >