From 3f2546b2ef55b661fd8dd69682b38992225e86f6 Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Mon, 29 Apr 2019 01:17:54 +0100 Subject: Initial import of qemu-2.4.1 --- roms/u-boot/board/siemens/common/factoryset.h | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 roms/u-boot/board/siemens/common/factoryset.h (limited to 'roms/u-boot/board/siemens/common/factoryset.h') diff --git a/roms/u-boot/board/siemens/common/factoryset.h b/roms/u-boot/board/siemens/common/factoryset.h new file mode 100644 index 00000000..4d6de10f --- /dev/null +++ b/roms/u-boot/board/siemens/common/factoryset.h @@ -0,0 +1,29 @@ +/* + * Common board functions for siemens AM335X based boards + * (C) Copyright 2013 Siemens Schweiz AG + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __FACTORYSET_H +#define __FACTORYSET_H + +#define MAX_STRING_LENGTH 32 + +struct factorysetcontainer { + uchar mac[6]; + int usb_vendor_id; + int usb_product_id; + int pxm50; +#if defined(CONFIG_VIDEO) + unsigned char disp_name[MAX_STRING_LENGTH]; +#endif + unsigned char serial[MAX_STRING_LENGTH]; + int version; +}; + +int factoryset_read_eeprom(int i2c_addr); +int factoryset_setenv(void); +extern struct factorysetcontainer factory_dat; + +#endif /* __FACTORYSET_H */ -- cgit v1.2.3