Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Common board functions for siemens AM335X based boards |
| 4 | * (C) Copyright 2013 Siemens Schweiz AG |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 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]; |
Anatolij Gustschin | 490e6d6 | 2019-07-10 19:44:16 +0200 | [diff] [blame] | 14 | #if CONFIG_IS_ENABLED(TARGET_GIEDI) || CONFIG_IS_ENABLED(TARGET_DENEB) |
| 15 | uchar mac_wlan[6]; |
| 16 | #endif |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 17 | int usb_vendor_id; |
| 18 | int usb_product_id; |
| 19 | int pxm50; |
Samuel Egli | 56eb3da | 2013-11-04 14:05:03 +0100 | [diff] [blame] | 20 | unsigned char serial[MAX_STRING_LENGTH]; |
| 21 | int version; |
Heiko Schocher | 0c331eb | 2014-11-18 11:51:06 +0100 | [diff] [blame] | 22 | uchar asn[MAX_STRING_LENGTH]; |
Heiko Schocher | 4ac32b9 | 2014-11-18 11:51:05 +0100 | [diff] [blame] | 23 | uchar comp_version[MAX_STRING_LENGTH]; |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 24 | }; |
| 25 | |
| 26 | int factoryset_read_eeprom(int i2c_addr); |
Simon Glass | 382bee5 | 2017-08-03 12:22:09 -0600 | [diff] [blame] | 27 | int factoryset_env_set(void); |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 28 | extern struct factorysetcontainer factory_dat; |
| 29 | |
| 30 | #endif /* __FACTORYSET_H */ |