google/kahlee: Move mainboard_ec_init to chip init phase
Move mainboard_ec_init out of mainboard enable to the more appropriate mainboard init phase. Change-Id: Ieabcecf70e4de0b42fc639d031755b6d0b66f08a Signed-off-by: Marc Jones <marcj303@gmail.com> Reviewed-on: https://review.coreboot.org/20312 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
a1b07939f1
commit
9ad593b944
1 changed files with 5 additions and 3 deletions
|
@ -76,7 +76,10 @@ static void pirq_setup(void)
|
||||||
picr_data_ptr = mainboard_picr_data;
|
picr_data_ptr = mainboard_picr_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void mainboard_init(void *chip_info)
|
||||||
|
{
|
||||||
|
mainboard_ec_init();
|
||||||
|
}
|
||||||
|
|
||||||
/*************************************************
|
/*************************************************
|
||||||
* Dedicated mainboard function
|
* Dedicated mainboard function
|
||||||
|
@ -88,10 +91,9 @@ static void kahlee_enable(device_t dev)
|
||||||
|
|
||||||
/* Initialize the PIRQ data structures for consumption */
|
/* Initialize the PIRQ data structures for consumption */
|
||||||
pirq_setup();
|
pirq_setup();
|
||||||
|
|
||||||
mainboard_ec_init();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct chip_operations mainboard_ops = {
|
struct chip_operations mainboard_ops = {
|
||||||
|
.init = mainboard_init,
|
||||||
.enable_dev = kahlee_enable,
|
.enable_dev = kahlee_enable,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue