Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Common board functions for siemens AM335X based boards |
| 3 | * (C) Copyright 2013 Siemens Schweiz AG |
| 4 | * |
| 5 | * SPDX-License-Identifier: GPL-2.0+ |
| 6 | */ |
| 7 | |
| 8 | #ifndef __FACTORYSET_H |
| 9 | #define __FACTORYSET_H |
| 10 | |
| 11 | #define MAX_STRING_LENGTH 32 |
| 12 | |
| 13 | struct factorysetcontainer { |
| 14 | uchar mac[6]; |
| 15 | int usb_vendor_id; |
| 16 | int usb_product_id; |
| 17 | int pxm50; |
| 18 | #if defined(CONFIG_VIDEO) |
| 19 | unsigned char disp_name[MAX_STRING_LENGTH]; |
| 20 | #endif |
Samuel Egli | 8069bfe | 2013-11-04 14:05:03 +0100 | [diff] [blame] | 21 | unsigned char serial[MAX_STRING_LENGTH]; |
| 22 | int version; |
Heiko Schocher | faf2dc6 | 2014-11-18 11:51:06 +0100 | [diff] [blame] | 23 | uchar asn[MAX_STRING_LENGTH]; |
Heiko Schocher | 7b90565 | 2014-11-18 11:51:05 +0100 | [diff] [blame] | 24 | uchar comp_version[MAX_STRING_LENGTH]; |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | int factoryset_read_eeprom(int i2c_addr); |
Simon Glass | 6a38e41 | 2017-08-03 12:22:09 -0600 | [diff] [blame] | 28 | int factoryset_env_set(void); |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 29 | extern struct factorysetcontainer factory_dat; |
| 30 | |
| 31 | #endif /* __FACTORYSET_H */ |