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:
committed by
Patrick Georgi
parent
9ea4c8a71e
commit
386d3418ef
@@ -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 */
|
||||||
@@ -101,9 +101,9 @@ void mainboard_smi_sleep(u8 slp_typ)
|
|||||||
{
|
{
|
||||||
if (slp_typ == 3) {
|
if (slp_typ == 3) {
|
||||||
u8 ec_wake = ec_read(0x32);
|
u8 ec_wake = ec_read(0x32);
|
||||||
/* If EC wake events are enabled, enable wake on EC WAKE GPE. */
|
/* If EC wake events are enabled, enable wake on EC WAKE GPE. */
|
||||||
if (ec_wake & 0x14) {
|
if (ec_wake & 0x14) {
|
||||||
/* Redirect EC WAKE GPE to SCI. */
|
/* Redirect EC WAKE GPE to SCI. */
|
||||||
gpi_route_interrupt(GPE_EC_WAKE, GPI_IS_SCI);
|
gpi_route_interrupt(GPE_EC_WAKE, GPI_IS_SCI);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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 */
|
||||||
|
Reference in New Issue
Block a user