|
【Android】
Firefly-RK3288 使用uart4
发表于 2018-11-9 16:14:27
浏览:7410
|
回复:0
打印
只看该作者
[复制链接]
楼主
Firefly-RK3288 Android5.1 SPI0和UART4是复用,而软件默认是打开SPI0功能,如果需要UART4功能,只需要添加如下补丁进行修改即可
diff --git a/device/rockchip/common/init.connectivity.rc b/device/rockchip/common/init.connectivity.rc
index 36e7c14..12cdfdf 100755
--- a/device/rockchip/common/init.connectivity.rc
+++ b/device/rockchip/common/init.connectivity.rc
@@ -60,10 +60,12 @@ on boot
# bluetooth power up/down interface
chmod 0660 /dev/ttyS0
chmod 0666 /dev/ttyS1
+ chmod 0666 /dev/ttyS4
chmod 0660 /dev/vflash
chown bluetooth net_bt_stack /dev/vflash
chown bluetooth net_bt_stack /dev/ttyS1
chown bluetooth net_bt_stack /dev/ttyS0
+ chown root root /dev/ttyS4
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type
chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
chmod 0664 /sys/class/rfkill/rfkill0/state
diff --git a/kernel/arch/arm/boot/dts/firefly-rk3288.dts b/kernel/arch/arm/boot/dts/firefly-rk3288.dts
index 5e69784..7a246a1 100755
--- a/kernel/arch/arm/boot/dts/firefly-rk3288.dts
+++ b/kernel/arch/arm/boot/dts/firefly-rk3288.dts
@@ -310,7 +310,7 @@
};
&spi0 {
- status = "okay";
+ status = "disabled";
max-freq = <48000000>;
spidev@00 {
compatible = "linux,spidev";
@@ -423,6 +423,10 @@
status = "okay";
};
+&uart_exp {
+ status = "okay";
+};
+
|
|