mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-23 19:43:33 +00:00
dc30009cd3
Traverse Technologies Ten64 family boards use a microcontroller to control low level board functions like startup and reset, as well as holding details such as the board MAC address. Communication between the CPU and microcontroller is via I2C. To keep the driver structure clean between the Ten64 board file, DM_I2C, and a future utility command, this driver has been implemented as a misc uclass device. Signed-off-by: Mathew McBride <matt@traverse.com.au> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
28 lines
653 B
C
28 lines
653 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
#ifndef TEN64_CNTRL_H
|
|
#define TEN64_CNTRL_H
|
|
|
|
/**
|
|
* struct t64uc_board_info - Board Information Structure
|
|
* @mac: Base MAC address
|
|
* @cpuId: Microcontroller unique serial number
|
|
* @fwversion_major: Microcontroller version number (Major)
|
|
* @fwversion_minor: Microcontroller version number (Minor)
|
|
* @fwversion_patch: Microcontroller version number (Patch)
|
|
*/
|
|
struct t64uc_board_info {
|
|
u8 mac[6];
|
|
u32 cpuId[4];
|
|
u8 fwversion_major;
|
|
u8 fwversion_minor;
|
|
u8 fwversion_patch;
|
|
} __packed;
|
|
|
|
enum {
|
|
TEN64_CNTRL_GET_BOARD_INFO,
|
|
TEN64_CNTRL_10G_OFF,
|
|
TEN64_CNTRL_10G_ON,
|
|
TEN64_CNTRL_SET_NEXT_BOOTSRC
|
|
};
|
|
|
|
#endif
|