mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-22 11:13:07 +00:00
4b6a5388da
On cmpc885 board, the ethernet addresses are stored in an EEPROM that is accessed through SPI. A 3 bytes command is sent to the chip then the content gets read. At the time being a single block access is performed, ignoring the first 3 bytes read. Reword the SPI transfer to first send 3 bytes then receive the content of the EEPROM so that there don't be 3 dummy bytes at the beginning of the buffer. And move the function into common.c so that it can be reused by the board that will be added in a future patch. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
9 lines
259 B
C
9 lines
259 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
#ifndef _BOARD_CSSI_COMMON_H
|
|
#define _BOARD_CSSI_COMMON_H
|
|
|
|
void ft_cleanup(void *blob, unsigned long id, const char *prop, const char *compatible);
|
|
int read_eeprom(u8 *din, int len);
|
|
|
|
#endif /* _BOARD_CSSI_COMMON_H */
|