diff options
author | Duncan Laurie <dlaurie@chromium.org> | 2015-11-23 14:26:45 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-11-24 11:02:49 -0800 |
commit | 1ea9dece80cd020a0cea2adc63daea086aba43b8 (patch) | |
tree | c3dbec4c783972828dcb8108f1250badaa363e74 /driver | |
parent | 156461b212d4ecf2c39943923a1201942644a827 (diff) | |
download | chrome-ec-1ea9dece80cd020a0cea2adc63daea086aba43b8.tar.gz |
usb_mux: Add a callback for board specific init
This adds a callback for board specific initialization that is called
after the driver init function. This will allow a board to apply
port-specific tuning (such as USB EQ settings) to the mux chip.
BUG=chrome-os-partner:47074
BRANCH=none
TEST=build and boot on chell
Change-Id: Ib162f9a2c5239678c46b80e5517823b336f6b66c
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/313746
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/usb_mux.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/usb_mux.c b/driver/usb_mux.c index a067fc1c25..619c32ba21 100644 --- a/driver/usb_mux.c +++ b/driver/usb_mux.c @@ -24,6 +24,10 @@ void usb_mux_init(int port) res = mux->driver->init(mux->port_addr); if (res) CPRINTS("Error initializing mux port(%d): %d", port, res); + + /* Apply board specific initialization */ + if (mux->board_init) + mux->board_init(mux); } /* |