Skip to content
Snippets Groups Projects
Commit f8114927 authored by Laurent Petre's avatar Laurent Petre
Browse files

Only toggle GPIO #9 when resetting the slave lpGBT

With the appropriate default lpGBT configuration, this commits avoids
any side effect on the master lpGBT from triggering an exernal slave
lpGBT reset. Side effects included, among others, incorrectly setting
the VFAT reset lines GPIO.

Updated default lpGBT configurations will fully configure the GPIO block
for "the system to just work": I/O direction, drive strength,
pull-up/down resistor, reset lifted,...
parent 72e4e2d1
No related branches found
No related tags found
1 merge request!304Bring ME0 to feature-parity
......@@ -311,9 +311,8 @@ uint8_t gem::hardware::gbt::reset_slave_gbt(const uint32_t ohN, uint8_t gbtMask)
continue;
try {
writeGBTReg(ohN, gbtN, 0x053, 0x02); // Configure GPIO #9 as output
writeGBTReg(ohN, gbtN, 0x055, 0x00); // Set GPIO #9 low
writeGBTReg(ohN, gbtN, 0x053, 0x00); // Configure GPIO #9 as input (lifts the reset)
writeGBTReg(ohN, gbtN, 0x055, 0x0, 0x2); // Set GPIO #9 low
writeGBTReg(ohN, gbtN, 0x055, 0x1, 0x2); // Set GPIO #9 high
} catch (const gbt_ic_error&) {
gbtMask &= ~(1U << gbtN);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment