factoryset.h 550 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Common board functions for siemens AM335X based boards
  3. * (C) Copyright 2013 Siemens Schweiz AG
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef __FACTORYSET_H
  8. #define __FACTORYSET_H
  9. #define MAX_STRING_LENGTH 32
  10. struct factorysetcontainer {
  11. uchar mac[6];
  12. int usb_vendor_id;
  13. int usb_product_id;
  14. int pxm50;
  15. #if defined(CONFIG_VIDEO)
  16. unsigned char disp_name[MAX_STRING_LENGTH];
  17. #endif
  18. };
  19. int factoryset_read_eeprom(int i2c_addr);
  20. int factoryset_setenv(void);
  21. extern struct factorysetcontainer factory_dat;
  22. #endif /* __FACTORYSET_H */