Skip to content

[Accton AS7816]: Add lpmode in sfputil.py#2989

Merged
lguohan merged 1 commit intosonic-net:masterfrom
brandonchuang:as7816_64x
Jun 12, 2019
Merged

[Accton AS7816]: Add lpmode in sfputil.py#2989
lguohan merged 1 commit intosonic-net:masterfrom
brandonchuang:as7816_64x

Conversation

@brandonchuang
Copy link
Contributor

Signed-off-by: brandon_chuang [email protected]

CPU: Intel Atom® Processor C2538
MAC: Broadcom Tomahawk II. 1 pcs 6400Gbs multi-layer Ethernet switch controller
BMC: None

What I did
Add lpmode in sfputil.py for as7812-64x.
.

How I did it
Implement get_low_power_mode/set_low_power_mode in sfputil.py

How to verify it
sfputil show lpmode
sfputil lpmode off
sfputil lpmode on

Description for the changelog
Access eeprom from transceiver to get/set lpmode status
If "Power override" bit is not set, return the H/W pin status depended on H/W design.
For as7812-64x, this pin is pulled low which is High Power Mode.
If "Power override" bit is set, retrun the S/W lpmode status read from eeprom.

Below is the Power Mode Truth Table defined in sff-8436

LPMode_Pin Power_overide_Bit Power_set_Bit Module_Power_Allowed
1 0 X Low Power
0 0 X High Power
X 1 1 Low Power
X 1 0 High Power

@lguohan
Copy link
Collaborator

lguohan commented Jun 11, 2019

retest vs please

@jleveque
Copy link
Contributor

Retest vs please

@lguohan lguohan merged commit 4ce3cc8 into sonic-net:master Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants