Re: [PATCH] firmware: zynmp-fpga: drop example bin format header

2019-12-10 Thread Thomas Hämmerle
typo in subject: zynmp-fpga -> zynqmp-fpga On 09.12.19 14:59, Michael Tretter wrote: > Avoid the example bitstream header to validate the bitstream that should > be loaded into the FPGA. The header is mostly 0x with a few > special values at a certain offsets and can be better described

[PATCH v2 4/4] firmware: zynqmp-fpga: print Xilinx bitstream header

2019-10-25 Thread Thomas Hämmerle
From: Michael Tretter The bitstream header has 5 fields, that start with a char for the type. Four fields have a big-ending length and a null-terminated string for the design name, the part number, and the date and time of creation. The last field is a big-endian 32 bit unsigned int for the size

[PATCH v2 3/4] firmware: zynqmp-fpga: introduce driver to load bitstream to FPGA

2019-10-25 Thread Thomas Hämmerle
From: Thomas Haemmerle The driver provides functionalities to check and load a bitstream to FPGA. A boolean parameter to check if FPGA is already programmed is added. Signed-off-by: Thomas Haemmerle --- arch/arm/configs/zynqmp_defconfig | 1 + drivers/firmware/Kconfig | 7 +

[PATCH v2 0/4] ARM: zynqmp: add support for bitstream loading

2019-10-25 Thread Thomas Hämmerle
From: Thomas Haemmerle Changes from v1: - remove dts commits - add commit for pmu and trustzone firmware virsion macro - split bin-header validation and byte-order detection - add description for bitstream Michael Tretter (1): firmware: zynqmp-fpga: print Xilinx bitstream header Thomas

[PATCH v2 2/4] firmware-zynqmp: extend driver with fpga relavant functions

2019-10-25 Thread Thomas Hämmerle
From: Thomas Haemmerle Port functions from xlnx-linux to get FPGA status and invoke bitstream loading. Signed-off-by: Thomas Haemmerle --- arch/arm/mach-zynqmp/firmware-zynqmp.c | 48 +- .../arm/mach-zynqmp/include/mach/firmware-zynqmp.h | 14 ++- 2 files

[PATCH v2 1/4] firmware-zynqmp: add macros for PMU and trustzone firmware versions

2019-10-25 Thread Thomas Hämmerle
From: Thomas Haemmerle Signed-off-by: Thomas Haemmerle --- arch/arm/mach-zynqmp/firmware-zynqmp.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/arch/arm/mach-zynqmp/firmware-zynqmp.c b/arch/arm/mach-zynqmp/firmware-zynqmp.c index f2187e9..d91dcb0

[PATCH 5/5] firmware: zynqmp-fpga: print Xilinx bitstream header

2019-10-24 Thread Thomas Hämmerle
From: Michael Tretter The bitstream header has 5 fields, that start with a char for the type. Four fields have a big-ending length and a null-terminated string for the design name, the part number, and the date and time of creation. The last field is a big-endian 32 bit unsigned int for the size

[PATCH 1/5] ARM: zynqmp: dts: move firmware node to src tree

2019-10-24 Thread Thomas Hämmerle
From: Michael Tretter The firmware node will be added to the mainline device tree. As it will eventually enter Barebox via a device tree sync, add it to the src tree already. Signed-off-by: Michael Tretter --- arch/arm/dts/zynqmp-zcu104-revA.dts | 1 - arch/arm/dts/zynqmp.dtsi|

[PATCH 2/5] firmware-zynqmp: extend driver with fpga relavant functions

2019-10-24 Thread Thomas Hämmerle
From: Thomas Haemmerle Port functions from xlnx-linux to get FPGA status and invoke bitstream loading. Signed-off-by: Thomas Haemmerle --- arch/arm/mach-zynqmp/firmware-zynqmp.c | 47 ++ .../arm/mach-zynqmp/include/mach/firmware-zynqmp.h | 8 2 files

[PATCH 4/5] ARM: zynqmp: dts: move pcap node to src tree

2019-10-24 Thread Thomas Hämmerle
From: Thomas Haemmerle The pcap node will be added to the mainline device tree. As it will eventually enter Barebox via a device tree sync, add it to the src tree already. Signed-off-by: Thomas Haemmerle --- dts/src/arm64/xilinx/zynqmp.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 3/5] firmware: zynqmp-fpga: introduce driver to load bitstream to FPGA

2019-10-24 Thread Thomas Hämmerle
From: Thomas Haemmerle The driver provides functionalities to check and load a bitstream to FPGA. A boolean parameter to check if FPGA is already programmed is added. Signed-off-by: Thomas Haemmerle --- arch/arm/configs/zynqmp_defconfig | 1 +

[PATCH 0/5] ARM: zynqmp: add support for bitstream loading

2019-10-24 Thread Thomas Hämmerle
From: Thomas Haemmerle Michael Tretter (2): ARM: zynqmp: dts: move firmware node to src tree firmware: zynqmp-fpga: print Xilinx bitstream header Thomas Haemmerle (3): firmware-zynqmp: extend driver with fpga relavant functions firmware: zynqmp-fpga: introduce driver to load bitstream

[PATCH v2] firmware-zynqmp: port from linux

2019-02-21 Thread Thomas Hämmerle
From: Thomas Haemmerle Changes since v1: - return -EIO (instead of -1) if API version or trustzone version are earlier than v1.0 in probe function Thomas Haemmerle (1): firmware-zynqmp: port from linux arch/arm/Kconfig | 1 +

Re: [PATCH] firmware-zynqmp: port from linux

2019-02-14 Thread Thomas Hämmerle
Hi Sascha, On 12.02.19 09:31, Sascha Hauer wrote: > Hi Thomas, > > On Mon, Feb 11, 2019 at 02:10:40PM +0000, Thomas Hämmerle wrote: >> From: Thomas Haemmerle >> >> Port Xilinx Zynq MPSoC Firmware layer driver from linux. >> >> Signed-off-by: Thomas

[PATCH 5/6] macb: disable second priority queue for zynqmp gem support

2019-01-08 Thread Thomas Hämmerle
6 0x0294 #define GEM_DCFG7 0x0298 +#define GEM_TQ10x0440 +#define GEM_RQ10x0480 /* Bitfields in NCR */ #define MACB_LB_OFFSET 0 -- 2.7.4 Thomas Häm

[PATCH 1/6] dp83867: port from linux

2019-01-08 Thread Thomas Hämmerle
.phy_id = DP83867_PHY_ID, + .phy_id_mask = 0xfff0, + .drv.name = "TI DP83867", + .features = PHY_GBIT_FEATURES, + + .config_init = dp83867_config_init, + + .c

[PATCH 6/6] zynqmp: enable macb Ethernet support

2019-01-08 Thread Thomas Hämmerle
mel,sama5d3-gem",}, + { .compatible = "cdns,zynqmp-gem",}, { /* sentinel */ } }; -- 2.7.4 Thomas Hämmerle Research and Development Wolfvision GmbH | 6833 Klaus | Austria Tel: +43 5523 52250 | Mail: thomas.haemme...@wolfvision.net Webpage: www.wolfvision.com | www.w

[PATCH 2/6] macb: fix format specifiers for debug output

2019-01-08 Thread Thomas Hämmerle
>dev, "[%d] rx_buffer_size [%d]\n", + dev_dbg(bp->dev, "[%zu] rx_buffer_size [%d]\n", size, bp->rx_buffer_size); } -- 2.7.4 Thomas Hämmerle Research and Development Wolfvision GmbH | 6833 Klaus | Austria Tel: +43 5523 52250 | Mail: th

[PATCH 3/6] macb: fix check if hw is gem

2019-01-08 Thread Thomas Hämmerle
urn MACB_BFEXT(IDNUM, macb_readl(macb, MID)) >= 0x2; } static int macb_send(struct eth_device *edev, void *packet, -- 2.7.4 Thomas Hämmerle Research and Development Wolfvision GmbH | 6833 Klaus | Austria Tel: +43 5523 52250 | Mail: thomas.haemme...@wolfvision.net Webpage: www.wolfvisi

[PATCH 4/6] macb: fix memory leakage due to double allocation of rx_buffer

2019-01-08 Thread Thomas Hämmerle
LTIPLE); } - bp->rx_buffer = dma_alloc_coherent(bp->rx_buffer_size * bp->rx_ring_size, - DMA_ADDRESS_BROKEN); } dev_dbg(bp->dev, "[%zu] rx_buffer_size [%d]\n", -- 2.7.