summaryrefslogtreecommitdiff
path: root/board/toradex/common/tdx-eeprom.h
diff options
context:
space:
mode:
authorIgor Opaniuk <igor.opaniuk@toradex.com>2020-07-15 13:30:53 +0300
committerStefano Babic <sbabic@denx.de>2020-07-27 15:00:36 +0300
commitc2e969378d7710fe4ffd36f44437833f83e9488a (patch)
tree17f50600eb8065c85f469cbae5473d21b0a0f6c5 /board/toradex/common/tdx-eeprom.h
parentfb99ac9cafd1bfa9cf2317ddbce3a23a07638171 (diff)
downloadu-boot-c2e969378d7710fe4ffd36f44437833f83e9488a.tar.xz
toradex: tdx-cfg-block: add EEPROM read/store wrappers
These functions wrap functionality for storing config blocks in EEPROM. Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Diffstat (limited to 'board/toradex/common/tdx-eeprom.h')
-rw-r--r--board/toradex/common/tdx-eeprom.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/board/toradex/common/tdx-eeprom.h b/board/toradex/common/tdx-eeprom.h
new file mode 100644
index 0000000000..a6772d2f3f
--- /dev/null
+++ b/board/toradex/common/tdx-eeprom.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (c) 2020 Toradex
+ */
+
+#ifndef _TDX_EEPROM_H
+#define _TDX_EEPROM_H
+
+#include <i2c_eeprom.h>
+
+int read_tdx_eeprom_data(u32 eeprom_id, int offset, uint8_t *buf, int size);
+int write_tdx_eeprom_data(u32 eeprom_id, int offset, uint8_t *buf, int size);
+
+#endif /* _TDX_EEPROM_H */