30 lines
872 B
Plaintext
30 lines
872 B
Plaintext
|
#
|
||
|
# brcm-patchram configuration
|
||
|
#
|
||
|
if [ -r /etc/sysconfig/bluetooth ]; then
|
||
|
BD_ADDR=`cat /etc/sysconfig/bluetooth`
|
||
|
else
|
||
|
BD_ADDR=`ifconfig wlan0 | grep HWaddr | awk '{ print $5 }'`
|
||
|
[ "$BD_ADDR" ] || BD_ADDR="01:02:03:04:05:06"
|
||
|
fi
|
||
|
|
||
|
# Hannspad
|
||
|
if [ -d /sys/devices/platform/smba1002-pm-bt ]; then
|
||
|
BAUD_RATE=3000000
|
||
|
UART_DEVICE_NAME=/dev/ttyHS2
|
||
|
PATCHRAM_FILE=/lib/firmware/BCM4329B1.hcd
|
||
|
BD_OPT_ADD="--enable_lpm"
|
||
|
elif [ -e /dev/ttySAC0 ]; then
|
||
|
# Samsung Galaxy Note 10.1
|
||
|
BAUD_RATE=4000000
|
||
|
UART_DEVICE_NAME=/dev/ttySAC0
|
||
|
PATCHRAM_FILE=/lib/firmware/bcm4334.hcd
|
||
|
BD_OPT_ADD="--enable_hci --enable_lpm --no2bytes --tosleep 50000 --use_baudrate_for_download --i2s=1,1,0,1"
|
||
|
elif [ -e /dev/ttyHS2 ]; then
|
||
|
# Iconia A200/A500
|
||
|
BAUD_RATE=3000000
|
||
|
UART_DEVICE_NAME=/dev/ttyHS2
|
||
|
PATCHRAM_FILE=/lib/firmware/bcm4329.hcd
|
||
|
BD_OPT_ADD="--enable_lpm"
|
||
|
fi
|