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