036-ARM-BCM5301X-Enable-earlycon-on-tested-devices.patch 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. From 5a6516ff135555aa53c7d156cd3973b826e011f9 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
  3. Date: Wed, 6 Apr 2016 18:49:55 +0200
  4. Subject: [PATCH] ARM: BCM5301X: Enable earlycon on tested devices
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. This allows reporting & debugging problems occurring early in the boot
  9. process.
  10. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  11. Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
  12. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  13. ---
  14. --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
  15. +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
  16. @@ -17,7 +17,7 @@
  17. model = "Buffalo WZR-1750DHP (BCM4708)";
  18. chosen {
  19. - bootargs = "console=ttyS0,115200";
  20. + bootargs = "console=ttyS0,115200 earlycon";
  21. };
  22. memory {
  23. --- a/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
  24. +++ b/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
  25. @@ -17,7 +17,7 @@
  26. model = "Luxul XWC-1000 (BCM4708)";
  27. chosen {
  28. - bootargs = "console=ttyS0,115200";
  29. + bootargs = "console=ttyS0,115200 earlycon";
  30. };
  31. memory {
  32. --- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
  33. +++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
  34. @@ -17,7 +17,7 @@
  35. model = "Netgear R6250 V1 (BCM4708)";
  36. chosen {
  37. - bootargs = "console=ttyS0,115200";
  38. + bootargs = "console=ttyS0,115200 earlycon";
  39. };
  40. memory {
  41. --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
  42. +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
  43. @@ -17,7 +17,7 @@
  44. model = "SmartRG SR400ac";
  45. chosen {
  46. - bootargs = "console=ttyS0,115200";
  47. + bootargs = "console=ttyS0,115200 earlycon";
  48. };
  49. memory {
  50. --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
  51. +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
  52. @@ -17,7 +17,7 @@
  53. model = "Buffalo WZR-600DHP2 (BCM47081)";
  54. chosen {
  55. - bootargs = "console=ttyS0,115200";
  56. + bootargs = "console=ttyS0,115200 earlycon";
  57. };
  58. memory {
  59. --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
  60. +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
  61. @@ -17,7 +17,7 @@
  62. model = "D-Link DIR-885L";
  63. chosen {
  64. - bootargs = "console=ttyS0,115200";
  65. + bootargs = "console=ttyS0,115200 earlycon";
  66. };
  67. memory {
  68. --- a/arch/arm/boot/dts/bcm5301x.dtsi
  69. +++ b/arch/arm/boot/dts/bcm5301x.dtsi
  70. @@ -18,6 +18,10 @@
  71. / {
  72. interrupt-parent = <&gic>;
  73. + chosen {
  74. + stdout-path = &uart0;
  75. + };
  76. +
  77. chipcommonA {
  78. compatible = "simple-bus";
  79. ranges = <0x00000000 0x18000000 0x00001000>;