2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2013-08-19 14:39:01 +00:00
|
|
|
/*
|
|
|
|
* Common board functions for siemens AM335X based boards
|
|
|
|
* (C) Copyright 2013 Siemens Schweiz AG
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __FACTORYSET_H
|
|
|
|
#define __FACTORYSET_H
|
|
|
|
|
|
|
|
#define MAX_STRING_LENGTH 32
|
|
|
|
|
|
|
|
struct factorysetcontainer {
|
|
|
|
uchar mac[6];
|
|
|
|
int usb_vendor_id;
|
|
|
|
int usb_product_id;
|
|
|
|
int pxm50;
|
|
|
|
#if defined(CONFIG_VIDEO)
|
|
|
|
unsigned char disp_name[MAX_STRING_LENGTH];
|
|
|
|
#endif
|
2013-11-04 13:05:03 +00:00
|
|
|
unsigned char serial[MAX_STRING_LENGTH];
|
|
|
|
int version;
|
2014-11-18 10:51:06 +00:00
|
|
|
uchar asn[MAX_STRING_LENGTH];
|
2014-11-18 10:51:05 +00:00
|
|
|
uchar comp_version[MAX_STRING_LENGTH];
|
2013-08-19 14:39:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
int factoryset_read_eeprom(int i2c_addr);
|
2017-08-03 18:22:09 +00:00
|
|
|
int factoryset_env_set(void);
|
2013-08-19 14:39:01 +00:00
|
|
|
extern struct factorysetcontainer factory_dat;
|
|
|
|
|
|
|
|
#endif /* __FACTORYSET_H */
|