3 * Ladislav Michl <ladis@linux-mips.org>
6 * Copyright (C) 2012 Marek Vasut <marek.vasut@gmail.com>
8 * SPDX-License-Identifier: GPL-2.0+
12 #define LINUX_ARM_ZIMAGE_MAGIC 0x016f2818
19 } __attribute__ ((__packed__));
21 int bootz_setup(ulong image, ulong *start, ulong *end)
23 struct arm_z_header *zi = (struct arm_z_header *)image;
25 if (zi->zi_magic != LINUX_ARM_ZIMAGE_MAGIC) {
26 #ifndef CONFIG_SPL_FRAMEWORK
27 puts("Bad Linux ARM zImage magic!\n");
32 *start = zi->zi_start;
34 #ifndef CONFIG_SPL_FRAMEWORK
35 printf("Kernel image @ %#08lx [ %#08lx - %#08lx ]\n",