aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/board/ti/common/cape_detect.h
diff options
context:
space:
mode:
Diffstat (limited to 'roms/u-boot/board/ti/common/cape_detect.h')
-rw-r--r--roms/u-boot/board/ti/common/cape_detect.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/roms/u-boot/board/ti/common/cape_detect.h b/roms/u-boot/board/ti/common/cape_detect.h
new file mode 100644
index 000000000..b0d5c9f18
--- /dev/null
+++ b/roms/u-boot/board/ti/common/cape_detect.h
@@ -0,0 +1,28 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * (C) Copyright 2021
+ * Köry Maincent, Bootlin, <kory.maincent@bootlin.com>
+ */
+
+#ifndef __CAPE_DETECT_H
+#define __CAPE_DETECT_H
+
+struct am335x_cape_eeprom_id {
+ unsigned int header;
+ char eeprom_rev[2];
+ char board_name[32];
+ char version[4];
+ char manufacturer[16];
+ char part_number[16];
+};
+
+#define CAPE_EEPROM_FIRST_ADDR 0x54
+#define CAPE_EEPROM_LAST_ADDR 0x57
+
+#define CAPE_EEPROM_ADDR_LEN 0x10
+
+#define CAPE_MAGIC 0xEE3355AA
+
+int extension_board_scan(struct list_head *extension_list);
+
+#endif /* __CAPE_DETECT_H */