From 49ed58d88e2fd81dec6a9d6ef9d6cf64a4c9839a Mon Sep 17 00:00:00 2001 From: Muhammed Efe Cetin Date: Sat, 29 Jul 2023 20:04:03 +0300 Subject: [PATCH] opi5: remove type-c/usb2 mode service --- config/boards/orangepi5.conf | 18 ------------------ .../bsp/orangepi5/orangepi5-usb2-init.service | 9 --------- 2 files changed, 27 deletions(-) delete mode 100644 packages/bsp/orangepi5/orangepi5-usb2-init.service diff --git a/config/boards/orangepi5.conf b/config/boards/orangepi5.conf index 04ba0b581ee4..328e94569812 100644 --- a/config/boards/orangepi5.conf +++ b/config/boards/orangepi5.conf @@ -21,24 +21,6 @@ BL31_BLOB='rk35/rk3588_bl31_v1.38.elf' declare -g BLUETOOTH_HCIATTACH_PARAMS="-s 115200 /dev/ttyS9 bcm43xx 1500000" # For the bluetooth-hciattach extension enable_extension "bluetooth-hciattach" # Enable the bluetooth-hciattach extension -function post_family_tweaks_bsp__orangepi5_copy_usb2_service() { - display_alert "Installing BSP firmware and fixups" - - # Add USB2 init service. Otherwise, USB2 and TYPE-C won't work by default - cp $SRC/packages/bsp/orangepi5/orangepi5-usb2-init.service $destination/lib/systemd/system/ - - return 0 -} - -function post_family_tweaks__orangepi5_enable_usb2_service() { - display_alert "$BOARD" "Installing board tweaks" "info" - - # enable usb2 init service - chroot $SDCARD /bin/bash -c "systemctl --no-reload enable orangepi5-usb2-init.service >/dev/null 2>&1" - - return 0 -} - function post_family_tweaks__orangepi5_naming_audios() { display_alert "$BOARD" "Renaming orangepi5 audios" "info" diff --git a/packages/bsp/orangepi5/orangepi5-usb2-init.service b/packages/bsp/orangepi5/orangepi5-usb2-init.service deleted file mode 100644 index ab7f2fe33852..000000000000 --- a/packages/bsp/orangepi5/orangepi5-usb2-init.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Init USB2 for Orange Pi 5 - -[Service] -ExecStart=/usr/bin/sh -c "echo host > /sys/kernel/debug/usb/fc000000.usb/mode" -Type=oneshot - -[Install] -WantedBy=default.target