Change-Id: I3250a5d21c3d1faad778c57389eab4eb5ab2ac13
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
BT_MAC=`printf b8:27:eb:%02x:%02x:%02x $((0x$B1 ^ 0xaa)) $((0x$B2 ^ 0xaa)) $((0x$B3 ^ 0xaa))`
}
+PIVERSION=`cat /proc/device-tree/model | awk '{print $3}'`
PIMODEL=`cat /proc/device-tree/model | awk '{print $5}'`
-echo "$PIMODEL"
+echo "$PIVERSION $PIMODEL"
-if [ "$PIMODEL" = "B" ]
+if [ "$PIVERSIOM" = "3" ] && [ "$PIMODEL" = "B" ]
then
- FLOW_CONTROL=noflow
- UART_SPEED=460800
+ echo "RPI3 B model"
+ FLOW_CONTROL=noflow
+ UART_SPEED=460800
else
- FLOW_CONTROL=flow
- UART_SPEED=2000000
+ echo "RPI3 B+ or RPI4 model"
+ FLOW_CONTROL=flow
+ UART_SPEED=2000000
fi