mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 02:08:38 +00:00
3641339eff
The Rockchip boot ROM could load & run an initial spl loader, and continue to load a second level boot-loader(which stored right after the initial loader) when it returns. Modify idblock generation code to support it. Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org>
28 lines
655 B
C
28 lines
655 B
C
/*
|
|
* (C) Copyright 2015 Google, Inc
|
|
* Written by Simon Glass <sjg@chromium.org>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _RKCOMMON_H
|
|
#define _RKCOMMON_H
|
|
|
|
enum {
|
|
RK_BLK_SIZE = 512,
|
|
RK_INIT_OFFSET = 4,
|
|
RK_MAX_BOOT_SIZE = 512 << 10,
|
|
};
|
|
|
|
/**
|
|
* rkcommon_set_header() - set up the header for a Rockchip boot image
|
|
*
|
|
* This sets up a 2KB header which can be interpreted by the Rockchip boot ROM.
|
|
*
|
|
* @buf: Pointer to header place (must be at least 2KB in size)
|
|
* @file_size: Size of the file we want the boot ROM to load, in bytes
|
|
* @return 0 if OK, -ENOSPC if too large
|
|
*/
|
|
int rkcommon_set_header(void *buf, uint file_size);
|
|
|
|
#endif
|