blob: b0d5c9f18bc9e711a26743d06ba07956d734302e [file] [log] [blame]
Kory Maincent26551102021-05-04 19:31:24 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * (C) Copyright 2021
4 * Köry Maincent, Bootlin, <kory.maincent@bootlin.com>
5 */
6
7#ifndef __CAPE_DETECT_H
8#define __CAPE_DETECT_H
9
10struct am335x_cape_eeprom_id {
11 unsigned int header;
12 char eeprom_rev[2];
13 char board_name[32];
14 char version[4];
15 char manufacturer[16];
16 char part_number[16];
17};
18
19#define CAPE_EEPROM_FIRST_ADDR 0x54
20#define CAPE_EEPROM_LAST_ADDR 0x57
21
22#define CAPE_EEPROM_ADDR_LEN 0x10
23
24#define CAPE_MAGIC 0xEE3355AA
25
26int extension_board_scan(struct list_head *extension_list);
27
28#endif /* __CAPE_DETECT_H */