mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-12 07:43:22 +09:00
![Wadim Egorov](/assets/img/avatar_default.png)
Read SoM information from EEPROM and set ethaddr in late init. Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22 lines
700 B
C
22 lines
700 B
C
/*
|
|
* Copyright (C) 2017 PHYTEC Messtechnik GmbH
|
|
* Author: Wadim Egorov <w.egorov@phytec.de>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
/*
|
|
* rk3288_som struct represents the eeprom layout for PHYTEC RK3288 based SoMs
|
|
*/
|
|
struct rk3288_som {
|
|
unsigned char api_version; /* EEPROM layout API version */
|
|
unsigned char mod_version; /* PCM/PFL/PCA */
|
|
unsigned char option[12]; /* coding for variants */
|
|
unsigned char som_rev; /* SOM revision */
|
|
unsigned char mac[6];
|
|
unsigned char ksp; /* 1: KSP, 2: KSM */
|
|
unsigned char kspno; /* Number for KSP/KSM module */
|
|
unsigned char reserved[8]; /* not used */
|
|
unsigned char bs; /* Bits set in previous bytes */
|
|
} __attribute__ ((__packed__));
|