2
0

701-MIPS-ath79-add-routerboard-detection.patch 724 B

123456789101112131415161718192021
  1. --- a/arch/mips/ath79/prom.c
  2. +++ b/arch/mips/ath79/prom.c
  3. @@ -136,6 +136,18 @@ void __init prom_init(void)
  4. initrd_end = initrd_start + fw_getenvl("initrd_size");
  5. }
  6. #endif
  7. +
  8. + if (strstr(arcs_cmdline, "board=750Gr3") ||
  9. + strstr(arcs_cmdline, "board=750i") ||
  10. + strstr(arcs_cmdline, "board=411") ||
  11. + strstr(arcs_cmdline, "board=433") ||
  12. + strstr(arcs_cmdline, "board=450") ||
  13. + strstr(arcs_cmdline, "board=493") ||
  14. + strstr(arcs_cmdline, "board=951G") ||
  15. + strstr(arcs_cmdline, "board=2011L") ||
  16. + strstr(arcs_cmdline, "board=711Gr100") ||
  17. + strstr(arcs_cmdline, "board=922gs"))
  18. + ath79_prom_append_cmdline("console", "ttyS0,115200");
  19. }
  20. void __init prom_free_prom_memory(void)