1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * Copyright (C) 2018 4 * Lukasz Majewski, DENX Software Engineering, lukma@denx.de 5 * 6 * Based on code developed by: 7 * 8 * Copyright (C) 2012 TQ-Systems GmbH 9 * Daniel Gericke <daniel.gericke@tqs.de> 10 */ 11 12 #ifndef __KP_ID_REV_H_ 13 #define __KP_ID_REV_H_ 14 15 struct id_eeprom { 16 u8 hrcw_primary[0x20]; 17 u8 mac[6]; /* 0x20 ... 0x25 */ 18 u8 rsv1[10]; 19 u8 serial[8]; /* 0x30 ... 0x37 */ 20 u8 rsv2[8]; 21 u8 id[0x40]; /* 0x40 ... 0x7f */ 22 } __packed; 23 24 void show_eeprom(void); 25 int read_eeprom(void); 26 int read_board_id(void); 27 #endif /* __KP_ID_REV_H_ */ 28