blob: 261a21768791f4b248a9476d2d4ff41abf8df4fc [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];
Anatolij Gustschin8e9821e2019-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 Schocher499c4982013-08-19 16:39:01 +020017 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
Samuel Egli8069bfe2013-11-04 14:05:03 +010023 unsigned char serial[MAX_STRING_LENGTH];
24 int version;
Heiko Schocherfaf2dc62014-11-18 11:51:06 +010025 uchar asn[MAX_STRING_LENGTH];
Heiko Schocher7b905652014-11-18 11:51:05 +010026 uchar comp_version[MAX_STRING_LENGTH];
Heiko Schocher499c4982013-08-19 16:39:01 +020027};
28
29int factoryset_read_eeprom(int i2c_addr);
Simon Glass6a38e412017-08-03 12:22:09 -060030int factoryset_env_set(void);
Heiko Schocher499c4982013-08-19 16:39:01 +020031extern struct factorysetcontainer factory_dat;
32
33#endif /* __FACTORYSET_H */