summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2022-09-19 18:28:10 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-20 23:31:25 +0000
commit60fca7c2143af0f15eb843a6fc57185102b5a7fb (patch)
treef3f2280f07018b650c187b6729184a1dc4584065
parente9314be72f512c90917a37957d7e48cabaf55c3d (diff)
downloadchrome-ec-60fca7c2143af0f15eb843a6fc57185102b5a7fb.tar.gz
Zephyr: Remove default anx7483 board set
Remove the default declaration of board_set, as boards may need their own tuning in addition to the default tuning. BRANCH=None BUG=b:244457125 TEST=zmake build affected boards Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Iedacdfb92417076841fd3c1c0178653c0a58cc60 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3905900 Reviewed-by: Andrew McRae <amcrae@google.com>
-rw-r--r--zephyr/projects/nissa/craask/overlay.dts1
-rw-r--r--zephyr/projects/nissa/nivviks/overlay.dts1
-rw-r--r--zephyr/projects/nissa/xivu/overlay.dts1
-rw-r--r--zephyr/shim/include/usbc/anx7483_usb_mux.h13
4 files changed, 9 insertions, 7 deletions
diff --git a/zephyr/projects/nissa/craask/overlay.dts b/zephyr/projects/nissa/craask/overlay.dts
index 4dab00610c..b3a510c111 100644
--- a/zephyr/projects/nissa/craask/overlay.dts
+++ b/zephyr/projects/nissa/craask/overlay.dts
@@ -336,6 +336,7 @@
anx7483_mux_1: anx7483-mux-1@3e {
compatible = "analogix,anx7483";
reg = <0x3e>;
+ board-set = "anx7483_set_default_tuning";
};
};
diff --git a/zephyr/projects/nissa/nivviks/overlay.dts b/zephyr/projects/nissa/nivviks/overlay.dts
index a6a256de3f..c2d5e3f24b 100644
--- a/zephyr/projects/nissa/nivviks/overlay.dts
+++ b/zephyr/projects/nissa/nivviks/overlay.dts
@@ -370,6 +370,7 @@
anx7483_mux_1: anx7483-mux-1@3e {
compatible = "analogix,anx7483";
reg = <0x3e>;
+ board-set = "anx7483_set_default_tuning";
};
};
diff --git a/zephyr/projects/nissa/xivu/overlay.dts b/zephyr/projects/nissa/xivu/overlay.dts
index 0a30a46457..de45db75e7 100644
--- a/zephyr/projects/nissa/xivu/overlay.dts
+++ b/zephyr/projects/nissa/xivu/overlay.dts
@@ -334,6 +334,7 @@
anx7483_mux_1: anx7483-mux-1@3e {
compatible = "analogix,anx7483";
reg = <0x3e>;
+ board-set = "anx7483_set_default_tuning";
};
};
diff --git a/zephyr/shim/include/usbc/anx7483_usb_mux.h b/zephyr/shim/include/usbc/anx7483_usb_mux.h
index c45b9809a2..5e56837e3a 100644
--- a/zephyr/shim/include/usbc/anx7483_usb_mux.h
+++ b/zephyr/shim/include/usbc/anx7483_usb_mux.h
@@ -10,13 +10,12 @@
#define ANX7483_USB_MUX_COMPAT analogix_anx7483
-#define USB_MUX_CONFIG_ANX7483(mux_id) \
- { \
- USB_MUX_COMMON_FIELDS(mux_id), \
- .driver = &anx7483_usb_retimer_driver, \
- .board_set = &anx7483_set_default_tuning, \
- .i2c_port = I2C_PORT_BY_DEV(mux_id), \
- .i2c_addr_flags = DT_REG_ADDR(mux_id), \
+#define USB_MUX_CONFIG_ANX7483(mux_id) \
+ { \
+ USB_MUX_COMMON_FIELDS(mux_id), \
+ .driver = &anx7483_usb_retimer_driver, \
+ .i2c_port = I2C_PORT_BY_DEV(mux_id), \
+ .i2c_addr_flags = DT_REG_ADDR(mux_id), \
}
#endif /* __ZEPHYR_SHIM_ANX7483_USB_MUX_H */