aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorArtem Lapkin <email2tema@gmail.com>2021-07-13 14:48:47 +0800
committerNeil Armstrong <narmstrong@baylibre.com>2021-07-27 10:29:31 +0200
commit4f038ee6dca74254424c5e54ec4440450c1286ba (patch)
tree534c0228f0aabe6fd6f1a890f71c04c1ab4c21be /board
parent786c514946d485b009f49f8cb2231b83dfb22718 (diff)
downloadu-boot-4f038ee6dca74254424c5e54ec4440450c1286ba.zip
u-boot-4f038ee6dca74254424c5e54ec4440450c1286ba.tar.gz
u-boot-4f038ee6dca74254424c5e54ec4440450c1286ba.tar.bz2
board: amlogic: vim3: fix phy-names property setup
phy-names was improperly implemented resulting in an inoperable USB-OTG port. - phy-names = "usb2-phy0\0\0usb2-phy1\0"; + phy-names = "usb2-phy0\0usb2-phy1"; Signed-off-by: Artem Lapkin <art@khadas.com> Acked-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Diffstat (limited to 'board')
-rw-r--r--board/amlogic/vim3/vim3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/amlogic/vim3/vim3.c b/board/amlogic/vim3/vim3.c
index 71aaa0d..18ef146 100644
--- a/board/amlogic/vim3/vim3.c
+++ b/board/amlogic/vim3/vim3.c
@@ -104,8 +104,8 @@ int meson_ft_board_setup(void *blob, struct bd_info *bd)
}
/* Update PHY names (mandatory to disable USB3.0) */
- len = strlcpy(data, "usb2-phy0", 32) + 1;
- len += strlcpy(&data[len], "usb2-phy1", 32 - len) + 1;
+ len = strlcpy(data, "usb2-phy0", 32);
+ len += strlcpy(&data[len], "usb2-phy1", 32 - len);
ret = fdt_setprop(blob, node, "phy-names", data, len);
if (ret < 0) {
printf("vim3: failed to update usb phy names property (%d)\n", ret);