summaryrefslogtreecommitdiff
path: root/drivers/nvmem/layouts/u-boot-env.h
blob: dd5f280ac047b601b2f73edbf419e2b278a406a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef _LINUX_NVMEM_LAYOUTS_U_BOOT_ENV_H
#define _LINUX_NVMEM_LAYOUTS_U_BOOT_ENV_H

enum u_boot_env_format {
	U_BOOT_FORMAT_SINGLE,
	U_BOOT_FORMAT_REDUNDANT,
	U_BOOT_FORMAT_BROADCOM,
};

int u_boot_env_parse(struct device *dev, struct nvmem_device *nvmem,
		     enum u_boot_env_format format);

#endif  /* ifndef _LINUX_NVMEM_LAYOUTS_U_BOOT_ENV_H */