1 /*
2 * (C) Copyright 2015 Google, Inc
3 * Written by Simon Glass <sjg@chromium.org>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 *
7 * See README.rockchip for details of the rksd format
8 */
9
10 #include "imagetool.h"
11 #include <image.h>
12 #include <rc4.h>
13 #include "mkimage.h"
14 #include "rkcommon.h"
15
rksd_check_image_type(uint8_t type)16 static int rksd_check_image_type(uint8_t type)
17 {
18 if (type == IH_TYPE_RKSD)
19 return EXIT_SUCCESS;
20 else
21 return EXIT_FAILURE;
22 }
23
24 /*
25 * rk_sd parameters
26 */
27 U_BOOT_IMAGE_TYPE(
28 rksd,
29 "Rockchip SD Boot Image support",
30 0,
31 NULL,
32 rkcommon_check_params,
33 rkcommon_verify_header,
34 rkcommon_print_header,
35 rkcommon_set_header,
36 NULL,
37 rksd_check_image_type,
38 NULL,
39 rkcommon_vrec_header
40 );
41