mb/google/herobrine: consolidate hoglin/herobrine QUP inits
Hoglin and Herobrine (proto1) should share majority of GPIOs. Conslidating the QUP initializations in mainboard. Also, putting fingerprint init in a conditional as not all devices will have an FP sensor. BUG=b:182963902,b:223826899 BRANCH=None TEST=booted BIOS on hoglin and check for i2c errors in dmesg Change-Id: I48ce42760f2c75f04619b967a05909d2b3f28e2c Signed-off-by: Shelley Chen <shchen@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/62743 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
parent
d99e773460
commit
5730d018d1
|
@ -77,8 +77,7 @@ static void mainboard_init(struct device *dev)
|
|||
qupv3_se_fw_load_and_init(QUPV3_0_SE2, SE_PROTOCOL_I2C, MIXED);
|
||||
/* Fingerprint SPI */
|
||||
qupv3_se_fw_load_and_init(QUPV3_1_SE3, SE_PROTOCOL_SPI, MIXED);
|
||||
} else if (CONFIG(BOARD_GOOGLE_SENOR) || CONFIG(BOARD_GOOGLE_PIGLIN) ||
|
||||
CONFIG(BOARD_GOOGLE_HOGLIN)) {
|
||||
} else if (CONFIG(BOARD_GOOGLE_SENOR) || CONFIG(BOARD_GOOGLE_PIGLIN)) {
|
||||
/* APPS I2C */
|
||||
qupv3_se_fw_load_and_init(QUPV3_0_SE1, SE_PROTOCOL_I2C, GSI);
|
||||
/* ESIM SPI */
|
||||
|
@ -93,6 +92,7 @@ static void mainboard_init(struct device *dev)
|
|||
/* Audio I2C */
|
||||
qupv3_se_fw_load_and_init(QUPV3_0_SE2, SE_PROTOCOL_I2C, MIXED);
|
||||
/* Fingerprint SPI */
|
||||
if (CONFIG(HEROBRINE_HAS_FINGERPRINT))
|
||||
qupv3_se_fw_load_and_init(QUPV3_1_SE1, SE_PROTOCOL_SPI, MIXED);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue