X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=qemu%2Froms%2Fu-boot%2Fboard%2Fsiemens%2Fcommon%2Ffactoryset.h;fp=qemu%2Froms%2Fu-boot%2Fboard%2Fsiemens%2Fcommon%2Ffactoryset.h;h=4d6de10f5237266caada475dc286e0cd281e1024;hb=e44e3482bdb4d0ebde2d8b41830ac2cdb07948fb;hp=0000000000000000000000000000000000000000;hpb=9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00;p=kvmfornfv.git diff --git a/qemu/roms/u-boot/board/siemens/common/factoryset.h b/qemu/roms/u-boot/board/siemens/common/factoryset.h new file mode 100644 index 000000000..4d6de10f5 --- /dev/null +++ b/qemu/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 */