summaryrefslogtreecommitdiff
path: root/include/eeprom_layout.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-06-07 10:48:41 -0600
committerTom Rini <trini@konsulko.com>2024-06-07 10:48:41 -0600
commit77ba281c91c3578c835d11c0f2fe2cac6fa1d658 (patch)
treedbf0ff8a3b764fce3a7da1cbae20750d9d65d6af /include/eeprom_layout.h
parent227be29df37545f74243a98c12a4a33c4160e3cd (diff)
parent57a9e8d86fde5732f77577adf52dcb62fcdc068a (diff)
Merge patch series "'eeprom' command improvements"
Marek BehĂșn <kabel@kernel.org> says: This series contains improvements for the 'eeprom' command: - refactors - fixes - improvements - ability to use driver model EEPROMs (uclass UCLASS_I2C_EEPROM) - more flexible EEPROM layout support It should not cause any behavior change for any existing board. This series is a dependency for some DDR issue fixes for Turris Omnia. I will be sending that one separately. github PR link (with CI): https://github.com/u-boot/u-boot/pull/540 - there is a failure for test.py for sandbox sandbox_clang but it seems unrelated to these changes
Diffstat (limited to 'include/eeprom_layout.h')
-rw-r--r--include/eeprom_layout.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/eeprom_layout.h b/include/eeprom_layout.h
index 730d963ab96..b1d62205958 100644
--- a/include/eeprom_layout.h
+++ b/include/eeprom_layout.h
@@ -9,6 +9,8 @@
#ifndef _LAYOUT_
#define _LAYOUT_
+#include <eeprom_field.h>
+
#define RESERVED_FIELDS NULL
#define LAYOUT_VERSION_UNRECOGNIZED -1
#define LAYOUT_VERSION_AUTODETECT -2
@@ -24,6 +26,8 @@ struct eeprom_layout {
char *new_data);
};
+struct eeprom_field *eeprom_layout_find_field(struct eeprom_layout *layout,
+ char *field_name, bool warn);
void eeprom_layout_setup(struct eeprom_layout *layout, unsigned char *buf,
unsigned int buf_size, int layout_version);
__weak void __eeprom_layout_assign(struct eeprom_layout *layout,