diff options
author | Marc Jones <marcj303@gmail.com> | 2017-06-22 22:19:55 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-07-31 17:32:51 +0000 |
commit | 9ad593b944b72f6c91a132c1b0c62b1c42f4a2aa (patch) | |
tree | 49bde1d939f9d05a75724f3a6cae453f0a5d08dc | |
parent | a1b07939f1a140be8764c08f6eef0db7c90f5aa0 (diff) | |
download | coreboot-9ad593b944b72f6c91a132c1b0c62b1c42f4a2aa.tar.xz |
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>
-rw-r--r-- | src/mainboard/google/kahlee/mainboard.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mainboard/google/kahlee/mainboard.c b/src/mainboard/google/kahlee/mainboard.c index 781a71a393..9d84f0d56b 100644 --- a/src/mainboard/google/kahlee/mainboard.c +++ b/src/mainboard/google/kahlee/mainboard.c @@ -76,7 +76,10 @@ static void pirq_setup(void) picr_data_ptr = mainboard_picr_data; } - +static void mainboard_init(void *chip_info) +{ + mainboard_ec_init(); +} /************************************************* * Dedicated mainboard function @@ -88,10 +91,9 @@ static void kahlee_enable(device_t dev) /* Initialize the PIRQ data structures for consumption */ pirq_setup(); - - mainboard_ec_init(); } struct chip_operations mainboard_ops = { + .init = mainboard_init, .enable_dev = kahlee_enable, }; |