diff options
author | Nico Huber <nico.huber@secunet.com> | 2012-07-25 10:33:05 +0200 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2012-11-27 09:16:03 +0100 |
commit | acd7d952514485dbc41fa04b0d16be4002e31019 (patch) | |
tree | 97087133cd567818e9d6e2659a1e98b876155b9b /src/boot | |
parent | e820e5cb3aed810fa9ba6047ce9b8bf352335e32 (diff) |
Add initialization hook for chips
Add an init() function to the chip_operations which will be called
before bus enumeration. This allows to disable unused devices before
they get enumerated.
Change-Id: I63dd9cbfc7b5995ccafb7bf7a81dc71fc67906a0
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: http://review.coreboot.org/1623
Tested-by: build bot (Jenkins)
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Marc Jones <marcj303@gmail.com>
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/boot')
-rw-r--r-- | src/boot/hardwaremain.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/boot/hardwaremain.c b/src/boot/hardwaremain.c index 95dd988e16..206e82b066 100644 --- a/src/boot/hardwaremain.c +++ b/src/boot/hardwaremain.c @@ -82,6 +82,10 @@ void hardwaremain(int boot_complete) init_timer(); timestamp_stash(TS_DEVICE_ENUMERATE); + + /* Initialize chips early, they might disable unused devices. */ + dev_initialize_chips(); + /* Find the devices we don't have hard coded knowledge about. */ dev_enumerate(); post_code(POST_DEVICE_ENUMERATION_COMPLETE); |