ec/google/chromeec: Add .scan_bus() callback for Chrome EC device
commitb77963c423dbef18ac06028c275fb4acf4b61ad9
authorFurquan Shaikh <furquan@google.com>
Mon, 20 Apr 2020 00:38:20 +0000 (19 17:38 -0700)
committerFurquan Shaikh <furquan@google.com>
Wed, 22 Apr 2020 18:52:29 +0000 (22 18:52 +0000)
tree2b25aa23888b152d27ccbbd50054e5c179a69ceb
parenteec30f7beae074c3f80a182cc2950ed8e4f0a640
ec/google/chromeec: Add .scan_bus() callback for Chrome EC device

This change adds scan_static_bus() as .scan_bus() callback for Chrome EC
device which allows scanning of devices sitting behind the EC using
the topology provided by mainboard's devicetree.cb.

BUG=b:154290952
TEST=Verified with follow-up changes that devices behind EC are scanned
correctly.

Signed-off-by: Furquan Shaikh <furquan@google.com>
Change-Id: Id3630db56774fba1e3fc53bf349588c4c585773b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40514
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/ec/google/chromeec/ec_lpc.c