diff options
author | Mario Scheithauer <mario.scheithauer@siemens.com> | 2022-11-08 13:50:06 +0100 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2022-11-24 05:59:31 +0000 |
commit | 1a97c89d7b22a92992131032b0cd587de9f33d64 (patch) | |
tree | 205cb520f8251a1c7e65193e15462fbac56f207d /src/drivers/net/phy/m88e1512/chip.h | |
parent | 49ec39fa7f05c4a3d320b5a60593108e1affb19f (diff) |
drivers/net/phy/m88e1512: Provide functionality to customize LED status
For Marvel PHY it could be necessary to customize the shown LED status
at the connector. The LED status can be changed via Function Control
Register on page 3.
Link to the Marvell PHY 88E1512 datasheet:
https://web.archive.org/web/20221109080111/https://www.marvell.com/content/dam/marvell/en/public-collateral/phys-transceivers/marvell-phys-transceivers-alaska-88e151x-datasheet.pdf
Change-Id: Ia71c43f4286f9201f03cb759252ebb405ab81904
Signed-off-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69386
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/net/phy/m88e1512/chip.h')
-rw-r--r-- | src/drivers/net/phy/m88e1512/chip.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/drivers/net/phy/m88e1512/chip.h b/src/drivers/net/phy/m88e1512/chip.h new file mode 100644 index 0000000000..36a46e93c9 --- /dev/null +++ b/src/drivers/net/phy/m88e1512/chip.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include "m88e1512.h" + +struct drivers_net_phy_m88e1512_config { + bool configure_leds; /* Enable LED customization */ + unsigned char led_0_ctrl; /* LED[0] Control */ + unsigned char led_1_ctrl; /* LED[1] Control */ + unsigned char led_2_ctrl; /* LED[2] Control */ +}; |