mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-15 07:43:07 +00:00
2058967d2f
The Layerscape platforms have different RCW header value from FSL PowerPC platforms, the current image header verification callback is only working on PowerPC, it will fail on Layerscape, this patch is to fix this issue. This is a historical problem and exposed by the following patch: http://patchwork.ozlabs.org/project/uboot/patch/20220114173443.9877-1-pali@kernel.org Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
20 lines
376 B
C
20 lines
376 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright 2012 Freescale Semiconductor, Inc.
|
|
*/
|
|
|
|
#ifndef PBLIMAGE_H
|
|
#define PBLIMAGE_H
|
|
|
|
#define RCW_BYTES 64
|
|
#define RCW_PREAMBLE 0xaa55aa55
|
|
#define RCW_ARM_HEADER 0x01ee0100
|
|
#define RCW_PPC_HEADER 0x010e0100
|
|
|
|
struct pbl_header {
|
|
uint32_t preamble;
|
|
uint32_t rcwheader;
|
|
uint8_t rcw_data[RCW_BYTES];
|
|
};
|
|
|
|
#endif /* PBLIMAGE_H */
|