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