From d0f492c85c8eac6693cfd29b899ee17e43056f19 Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Mon, 9 Sep 2019 09:04:57 +0800 Subject: [PATCH] rockchip: resource: improve comment for init_resource_list() Change-Id: Ic6ac812976b063c6991e33d128e5abe11832c78e Signed-off-by: Joseph Chen --- arch/arm/mach-rockchip/resource_img.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-rockchip/resource_img.c b/arch/arm/mach-rockchip/resource_img.c index 2d39e1a196..58bceeb6ee 100755 --- a/arch/arm/mach-rockchip/resource_img.c +++ b/arch/arm/mach-rockchip/resource_img.c @@ -195,10 +195,16 @@ static int replace_resource_entry(const char *f_name, uint32_t base, } /* - * 1. Get resource file from part: boot/recovery(AOSP) > resource(RK) - * 2. Add all file into resource file list and load them from storage - * when we really need it. - * 3. Parse logo partition and add logo file int resource file list; + * There are: logo/battery pictures and dtb file in the resource image by default. + * + * This function does: + * + * 1. Get resource image from part: boot/recovery(AOSP) > resource(RK); + * 2. Add all file into resource list(We load them from storage when we need); + * 3. Add logo picture from logo partition into resource list(replace the + * old one in resource file); + * 4. Add dtb file from dtb position into resource list if boot_img_hdr_v2 + * (replace the old one in resource file); */ static int init_resource_list(struct resource_img_hdr *hdr) {