Support Orange Pi 3 LTS

This commit is contained in:
orangepi-xunlong
2021-11-25 19:16:52 +08:00
parent 31d8885bd5
commit 9f400f169d
9 changed files with 7123 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
# Allwinner H6 quad core 2GB RAM SoC GBE USB3
BOARD_NAME="OPI 3 LTS"
BOARDFAMILY="sun50iw6"
BOOTCONFIG="orangepi_3_lts_defconfig"
KERNEL_TARGET="legacy,current"
MODULES="uwe5622_bsp_sdio sprdbt_tty sprdwl_ng"
MODULES_BLACKLIST_LEGACY="bcmdhd"
FULL_DESKTOP="yes"
ATFBRANCH="tag:v2.2"

View File

@@ -2397,7 +2397,7 @@ CONFIG_MICREL_PHY=m
CONFIG_MICROCHIP_PHY=m
CONFIG_MICROCHIP_T1_PHY=m
# CONFIG_MICROSEMI_PHY is not set
CONFIG_MOTORCOMM_PHY=m
CONFIG_MOTORCOMM_PHY=y
CONFIG_NATIONAL_PHY=m
# CONFIG_NXP_TJA11XX_PHY is not set
CONFIG_AT803X_PHY=m

View File

@@ -1611,6 +1611,7 @@ CONFIG_FIXED_PHY=y
# CONFIG_MICREL_PHY is not set
# CONFIG_MICROCHIP_PHY is not set
# CONFIG_MICROSEMI_PHY is not set
CONFIG_MOTORCOMM_PHY=y
# CONFIG_NATIONAL_PHY is not set
# CONFIG_QSEMI_PHY is not set
# CONFIG_REALTEK_PHY is not set
@@ -1755,7 +1756,22 @@ CONFIG_BCMDHD_OOB=y
# CONFIG_BCMDHD_SDIO_IRQ is not set
CONFIG_RTL8723CS=m
# CONFIG_RTL8723BS_VQ0 is not set
CONFIG_RTL8822BS=m
CONFIG_SPARD_WLAN_SUPPORT=y
#
# UNISOC WCN Device Drivers(for new chip...)
#
# CONFIG_SC23XX is not set
# CONFIG_WCN_BSP_DRIVER_BUILDIN is not set
# CONFIG_RK_WIFI_DEVICE_UWE5621 is not set
# CONFIG_RK_WIFI_DEVICE_UWE5622 is not set
CONFIG_AW_WIFI_DEVICE_UWE5622=y
CONFIG_AW_BIND_VERIFY=y
CONFIG_WLAN_UWE5622=m
CONFIG_SPRDWL_NG=m
CONFIG_UNISOC_WIFI_PS=y
CONFIG_TTY_OVERY_SDIO=m
# CONFIG_RTL8822BS is not set
#
# Enable WiMAX (Networking options) to see the WiMAX drivers
@@ -1787,6 +1803,7 @@ CONFIG_INPUT_EVDEV=y
CONFIG_INPUT_KEYRESET=y
CONFIG_INPUT_KEYCOMBO=y
CONFIG_INPUT_SENSORINIT=y
# CONFIG_INPUT_POWERKEY is not set
#
# Input Device Drivers

View File

@@ -29,6 +29,15 @@ case $BRANCH in
ASOUND_STATE='asound.state.sun50iw6-legacy'
BOOT_FDT_FILE=sunxi/sun50i-h6-orangepi-${BOARD:8}.dtb
;;
current)
if [[ ${BOARD} == orangepi3-lts ]]; then
KERNELBRANCH="branch:orange-pi-5.10"
LINUXCONFIG=linux-5.10-sunxi64-current
fi
;;
esac
family_tweaks_s()
@@ -67,4 +76,6 @@ family_tweaks_bsp()
cp $EXTER/packages/bsp/sunxi/ap6255-bluetooth.service $destination/lib/systemd/system/
[[ $BRANCH == legacy ]] && cp $EXTER/packages/bsp/sunxi/ap6255-wifi.service $destination/lib/systemd/system/
fi
install -m 755 $EXTER/packages/blobs/bt/hciattach/hciattach_opi_$ARCH $destination/usr/bin/hciattach_opi
}

View File

@@ -87,7 +87,7 @@ prepare_board() {
# IRQ distribution based on $BOARDFAMILY and/or $BOARD_NAME
case ${BOARD} in
orangepizero2)
orangepizero2|orangepi3-lts)
rfkill unblock all
/usr/bin/hciattach_opi -n -s 1500000 /dev/ttyBT0 sprd &
;;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff