blob: 8fa6c3b3d3bb2ae08285e51827085cc0574f1aa3 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Heiko Schocherc0dcece2013-08-19 16:39:01 +02002/*
3 * Common board functions for siemens AM335X based boards
4 * (C) Copyright 2013 Siemens Schweiz AG
Heiko Schocherc0dcece2013-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];
Anatolij Gustschin490e6d62019-07-10 19:44:16 +020014#if CONFIG_IS_ENABLED(TARGET_GIEDI) || CONFIG_IS_ENABLED(TARGET_DENEB)
15 uchar mac_wlan[6];
16#endif
Heiko Schocherc0dcece2013-08-19 16:39:01 +020017 int usb_vendor_id;
18 int usb_product_id;
19 int pxm50;
Samuel Egli56eb3da2013-11-04 14:05:03 +010020 unsigned char serial[MAX_STRING_LENGTH];
21 int version;
Heiko Schocher0c331eb2014-11-18 11:51:06 +010022 uchar asn[MAX_STRING_LENGTH];
Heiko Schocher4ac32b92014-11-18 11:51:05 +010023 uchar comp_version[MAX_STRING_LENGTH];
Heiko Schocherc0dcece2013-08-19 16:39:01 +020024};
25
26int factoryset_read_eeprom(int i2c_addr);
Simon Glass382bee52017-08-03 12:22:09 -060027int factoryset_env_set(void);
Heiko Schocherc0dcece2013-08-19 16:39:01 +020028extern struct factorysetcontainer factory_dat;
29
30#endif /* __FACTORYSET_H */