summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-bcmbca/include/spl_env.h
blob: facc456c0c8e114cb80e6b07f0a53d9d66d84600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0+
 *
 *  Copyright 2019 Broadcom Ltd.
 */

#ifndef _TPL_ENV_H
#define _TPL_ENV_H

#define TPL_ENV_ADDR ((CONFIG_TPL_TEXT_BASE - BOOT_BLOB_MAX_ENV_SIZE)&~0xff)

char *find_spl_env_val(const char *buffer, const char *name);

int get_spl_env_val(const char *buffer, const char *name, char *out, int maxlen);

int validate_metadata(char *cp,int *valid,int *comitted,int *seq) ;

/* UBOOT has multiple conflicting CRC32 functions... so we'll wrap the right one */
uint32_t the_env_crc32(int a, void *b, int len) ;

#define ENV_AVS_DISABLE "avs_disable"

#endif