mb/lenovo/{x201,x60}/smihandler: Use mdelay instead of udelay for large values

Change-Id: I7d20a850f8c2a1fcdee358c9e73d4c04eb3d7de8
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37006
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Peter Lemenkov
2019-11-20 14:50:31 +01:00
committed by Patrick Georgi
parent 9ea4c8a71e
commit 386d3418ef
2 changed files with 4 additions and 4 deletions

View File

@@ -53,7 +53,7 @@ static void mainboard_smi_handle_ec_sci(void)
case 0x58: case 0x58:
/* Dock Event */ /* Dock Event */
ec_clr_bit(0x03, 2); ec_clr_bit(0x03, 2);
udelay(250000); mdelay(250);
dock_connect(); dock_connect();
ec_set_bit(0x03, 2); ec_set_bit(0x03, 2);
/* set dock LED to indicate status */ /* set dock LED to indicate status */

View File

@@ -51,7 +51,7 @@ int mainboard_io_trap_handler(int smif)
switch (smif) { switch (smif) {
case SMI_DOCK_CONNECT: case SMI_DOCK_CONNECT:
ec_clr_bit(0x03, 2); ec_clr_bit(0x03, 2);
udelay(250000); mdelay(250);
if (!dock_connect()) { if (!dock_connect()) {
ec_set_bit(0x03, 2); ec_set_bit(0x03, 2);
/* set dock LED to indicate status */ /* set dock LED to indicate status */