1 /* 2 * Copyright (c) 2024 Rockchip Electronics Co., Ltd 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7 #include <common.h> 8 9 /** 10 * Get specific key-value pairs from env partition 11 * 12 * @param desc block description 13 * @param name which key want to get from env 14 * @return key-value pairs if ok, else NULL 15 */ 16 char *envf_get(struct blk_desc *desc, const char *name); 17