mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-04 14:00:19 +00:00 
			
		
		
		
	add FIT support and set "boardid" from factoryset records "DEV/id" and "COMP/ver". "boardid" is used for selecting which fit configuration gets booted on the board. Signed-off-by: Heiko Schocher <hs@denx.de>
		
			
				
	
	
		
			32 lines
		
	
	
		
			677 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			677 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * 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;
 | 
						|
	uchar asn[MAX_STRING_LENGTH];
 | 
						|
	uchar comp_version[MAX_STRING_LENGTH];
 | 
						|
};
 | 
						|
 | 
						|
int factoryset_read_eeprom(int i2c_addr);
 | 
						|
int factoryset_setenv(void);
 | 
						|
extern struct factorysetcontainer factory_dat;
 | 
						|
 | 
						|
#endif /* __FACTORYSET_H */
 |