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 #if CONFIG_IS_ENABLED(TARGET_GIEDI) || CONFIG_IS_ENABLED(TARGET_DENEB) 15 uchar mac_wlan[6]; 16 #endif 17 int usb_vendor_id; 18 int usb_product_id; 19 int pxm50; 20 #if defined(CONFIG_VIDEO) 21 unsigned char disp_name[MAX_STRING_LENGTH]; 22 #endif 23 unsigned char serial[MAX_STRING_LENGTH]; 24 int version; 25 uchar asn[MAX_STRING_LENGTH]; 26 uchar comp_version[MAX_STRING_LENGTH]; 27 }; 28 29 int factoryset_read_eeprom(int i2c_addr); 30 int factoryset_env_set(void); 31 extern struct factorysetcontainer factory_dat; 32 33 #endif /* __FACTORYSET_H */ 34