zoukankan      html  css  js  c++  java
  • RK3288 添加普通串口uart1和uart3

    CPU:RK3288

    系统:Android 5.1

    diff --git a/device/rockchip/common/init.connectivity.rc b/device/rockchip/common/init.connectivity.rc
    index 4957cdb..15c507e 100755
    --- a/device/rockchip/common/init.connectivity.rc
    +++ b/device/rockchip/common/init.connectivity.rc
    @@ -59,10 +59,10 @@ on boot
     
     # bluetooth power up/down interface
         chmod 0660 /dev/ttyS0
    -    chmod 0660 /dev/ttyS1
    +#   chmod 0660 /dev/ttyS1
         chmod 0660 /dev/vflash
         chown bluetooth net_bt_stack /dev/vflash
    -    chown bluetooth net_bt_stack /dev/ttyS1
    +#   chown bluetooth net_bt_stack /dev/ttyS1
         chown bluetooth net_bt_stack /dev/ttyS0
         chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type
         chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
    diff --git a/device/rockchip/common/init.rk30board.rc b/device/rockchip/common/init.rk30board.rc
    old mode 100644
    new mode 100755
    index 2cfcbb8..7357314
    --- a/device/rockchip/common/init.rk30board.rc
    +++ b/device/rockchip/common/init.rk30board.rc
    @@ -25,6 +25,10 @@ on post-fs-data
         chown root system /system/lib/hw/gps.default.so
         mkdir /data/gps 0770 system net_bt_stack
     
    +    chmod 666 /dev/ttyS1
    +    chmod 666 /dev/ttyS3
    +    chmod 666 /dev/ttyS4
    +
         ##$_rbox_$_modify_$_chenzhi_20120309
         ##$_rbox_$_modify_$_begin
         mkdir /data/misc/ppp 777 system system
    diff --git a/kernel/arch/arm/boot/dts/rk3288_rk808.dts b/kernel/arch/arm/boot/dts/rk3288_rk808.dts
    index fbfcf2b..4c4dfd9 100755
    --- a/kernel/arch/arm/boot/dts/rk3288_rk808.dts
    +++ b/kernel/arch/arm/boot/dts/rk3288_rk808.dts
    @@ -304,6 +304,24 @@
            pinctrl-0 = <&uart0_xfer &uart0_cts>;
     };
     
    +&uart_bb {
    +       status = "okay";
    +       dma-names = "!tx", "!rx";
    +       pinctrl-0 = <&uart1_xfer &uart1_cts>;
    +};
    +
    +&uart_gps {
    +       status = "okay";
    +       dma-names = "!tx", "!rx";
    +       pinctrl-0 = <&uart3_xfer &uart3_cts>;
    +};
    +
    +&uart_exp {
    +       status = "okay";
    +       dma-names = "!tx", "!rx";
    +       pinctrl-0 = <&uart4_xfer &uart4_cts>;
    +};
    +
     &i2c0 {
            status = "okay";
  • 相关阅读:
    BOM弹窗 滚动条
    标签占位信息
    标签样式操作
    Keepalived入门学习
    史上最全Redis面试题(2020最新版)
    一文带你读懂zookeeper在大数据生态的应用
    详细解析虚拟化的起源和分类
    干货 | Nginx负载均衡原理及配置实例
    干货 | 一文彻底读懂nginx中的location指令
    史上最全Linux面试题(2020最新版)
  • 原文地址:https://www.cnblogs.com/lialong1st/p/11018958.html
Copyright © 2011-2022 走看看