blob: d4e8353249a42ed0836a590ec2f7b07d6a240963 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Heiko Schocher499c4982013-08-19 16:39:01 +02002/*
3 * Common board functions for siemens AM335X based boards
4 * (C) Copyright 2013 Siemens Schweiz AG
Heiko Schocher499c4982013-08-19 16:39:01 +02005 */
6
7#ifndef __FACTORYSET_H
8#define __FACTORYSET_H
9
10#define MAX_STRING_LENGTH 32
11
12struct 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
Samuel Egli8069bfe2013-11-04 14:05:03 +010020 unsigned char serial[MAX_STRING_LENGTH];
21 int version;
Heiko Schocherfaf2dc62014-11-18 11:51:06 +010022 uchar asn[MAX_STRING_LENGTH];
Heiko Schocher7b905652014-11-18 11:51:05 +010023 uchar comp_version[MAX_STRING_LENGTH];
Heiko Schocher499c4982013-08-19 16:39:01 +020024};
25
26int factoryset_read_eeprom(int i2c_addr);
Simon Glass6a38e412017-08-03 12:22:09 -060027int factoryset_env_set(void);
Heiko Schocher499c4982013-08-19 16:39:01 +020028extern struct factorysetcontainer factory_dat;
29
30#endif /* __FACTORYSET_H */