Clean-up manipulation of bus support bitfield in EC init code
This patch cleans up EC init routines so that they manipulate
the buses_supported more appropriately. Also, all ECs will add
BUS_LPC and BUS_FWH (if it supports FWH) to the mask only if init
is successful.
wpce775x.c:
- buses_supported was being manipulated regardless of whether or
not initialization was successful. Also, it should add
BUS_LPC | BUS_FWH to the list (It was only adding BUS_FWH)
mec1308.c and it85spi.c:
- Add support for BUS_LPC at the end of init routine.
BUG=chrome-os-partner:7238
TEST=Tested on zgb, alex, mario, stumpy, lumpy, kaen, and aebl
Change-Id: Iaec7a79acfe883157926a7d5929b5cc91659e8aa
Reviewed-on: https://gerrit.chromium.org/gerrit/13053
Tested-by: David Hendricks <dhendrix@chromium.org>
Reviewed-by: David Hendricks <dhendrix@chromium.org>
3 files changed