firmware: zynqmp-fpga: drop example bin format header
Avoid the example bitstream header to validate the bitstream that should
be loaded into the FPGA. The header is mostly 0xFFFFFFFF with a few
special values at a certain offsets and can be better described with the
offsets and their magic values.

As a drive by, this fixes/removes a broken check in the header
validation. The != operator has a higher precedence than ?: and this
check should have had parenthesis around the ?: expression:

	bin_header[i] != (byte_order == XILINX_BYTE_ORDER_BIT) ?
              bin_format[i] : __swab32(bin_format[i])

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Reviewed-by: Thomas Haemmerle <thomas.haemmerle@wolfvision.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 86d711f commit dc7f246040d5664079ed21c20cb1444b583ec278
@Michael Tretter Michael Tretter authored on 10 Dec 2019
Sascha Hauer committed on 11 Dec 2019
Showing 1 changed file
View
drivers/firmware/zynqmp-fpga.c