serial-baudrate.patch 1.3 KB

1234567891011121314151617181920212223
  1. diff -Nur linux-stable-4.4-rockpi4.orig/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi linux-stable-4.4-rockpi4/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi
  2. --- linux-stable-4.4-rockpi4.orig/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi 2022-12-09 18:12:00.000000000 +0100
  3. +++ linux-stable-4.4-rockpi4/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi 2022-12-09 22:12:59.489123950 +0100
  4. @@ -58,7 +58,7 @@
  5. rockchip,signal-irq = <182>;
  6. rockchip,wake-irq = <0>;
  7. rockchip,irq-mode-enable = <1>; /* If enable uart uses irq instead of fiq */
  8. - rockchip,baudrate = <1500000>; /* Only 115200 and 1500000 */
  9. + rockchip,baudrate = <115200>; /* Only 115200 and 1500000 */
  10. pinctrl-names = "default";
  11. pinctrl-0 = <&uart2c_xfer>;
  12. };
  13. diff -Nur linux-stable-4.4-rockpi4.orig/scripts/dtc/dtc-lexer.lex.c_shipped linux-stable-4.4-rockpi4/scripts/dtc/dtc-lexer.lex.c_shipped
  14. --- linux-stable-4.4-rockpi4.orig/scripts/dtc/dtc-lexer.lex.c_shipped 2022-12-09 18:12:07.000000000 +0100
  15. +++ linux-stable-4.4-rockpi4/scripts/dtc/dtc-lexer.lex.c_shipped 2022-12-09 22:11:26.298627242 +0100
  16. @@ -631,7 +631,6 @@
  17. #include "srcpos.h"
  18. #include "dtc-parser.tab.h"
  19. -YYLTYPE yylloc;
  20. extern bool treesource_error;
  21. /* CAUTION: this will stop working if we ever use yyless() or yyunput() */