cape_detect.h 568 B

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