mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-11-08 08:47:20 +07:00
Update for opi3b compatibility
v1.1.1: uwe5622 v2.1: ap6256
This commit is contained in:
@@ -350,13 +350,17 @@ prepare_board() {
|
||||
amixer -c 0 cset name='Playback Path' HP > /dev/null 2>&1
|
||||
amixer -c 0 cset name='Capture MIC Path' 'Main Mic' > /dev/null 2>&1
|
||||
|
||||
if [[ $BOARD == orangepi3b ]]; then
|
||||
rfkill unblock all
|
||||
/usr/bin/hciattach_opi -n -s 1500000 /dev/ttyBT0 sprd &
|
||||
elif [[ $BOARD == orangepicm4 ]]; then
|
||||
bt_status=$(cat /proc/device-tree/wireless-bluetooth/status)
|
||||
wifi_chip=$(cat /proc/device-tree/wireless-wlan/wifi_chip_type)
|
||||
|
||||
if [[ "${wifi_chip}" == "ap6256" && "${bt_status}" == "okay" ]]; then
|
||||
rfkill unblock all
|
||||
brcm_patchram_plus --bd_addr_rand --enable_hci --no2bytes --use_baudrate_for_download --tosleep 200000 \
|
||||
--baudrate 1500000 --patchram /lib/firmware/BCM4345C0.hcd /dev/ttyS1 &
|
||||
else
|
||||
rfkill unblock all
|
||||
/usr/bin/hciattach_opi -n -s 1500000 /dev/ttyBT0 sprd &
|
||||
|
||||
fi
|
||||
;;
|
||||
orangepi3plus)
|
||||
|
||||
1
external/packages/bsp/rk356x/etc/udev/rules.d/90-load-uwe5622-modules.rules
vendored
Normal file
1
external/packages/bsp/rk356x/etc/udev/rules.d/90-load-uwe5622-modules.rules
vendored
Normal file
@@ -0,0 +1 @@
|
||||
ACTION=="add", SUBSYSTEM=="sdio", SUBSYSTEMS=="sdio", ENV{SDIO_ID}=="0000:0000", RUN+="/sbin/modprobe -a sprdwl_ng sprdbt_tty"
|
||||
Reference in New Issue
Block a user