1
0

701-MIPS-ath79-add-routerboard-detection.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --- a/arch/mips/ath79/prom.c
  2. +++ b/arch/mips/ath79/prom.c
  3. @@ -136,6 +136,32 @@ 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=750-hb") ||
  11. + strstr(arcs_cmdline, "board=411") ||
  12. + strstr(arcs_cmdline, "board=433") ||
  13. + strstr(arcs_cmdline, "board=435") ||
  14. + strstr(arcs_cmdline, "board=450") ||
  15. + strstr(arcs_cmdline, "board=493") ||
  16. + strstr(arcs_cmdline, "board=951G") ||
  17. + strstr(arcs_cmdline, "board=H951L") ||
  18. + strstr(arcs_cmdline, "board=952-hb") ||
  19. + strstr(arcs_cmdline, "board=953gs") ||
  20. + strstr(arcs_cmdline, "board=962") ||
  21. + strstr(arcs_cmdline, "board=lhg") ||
  22. + strstr(arcs_cmdline, "board=map-hb") ||
  23. + strstr(arcs_cmdline, "board=map2-hb") ||
  24. + strstr(arcs_cmdline, "board=wap-hb") ||
  25. + strstr(arcs_cmdline, "board=wap-lte") ||
  26. + strstr(arcs_cmdline, "board=wapg-sc") ||
  27. + strstr(arcs_cmdline, "board=2011L") ||
  28. + strstr(arcs_cmdline, "board=2011r") ||
  29. + strstr(arcs_cmdline, "board=711Gr100") ||
  30. + strstr(arcs_cmdline, "board=911L") ||
  31. + strstr(arcs_cmdline, "board=922gs"))
  32. + ath79_prom_append_cmdline("console", "ttyS0,115200");
  33. }
  34. void __init prom_free_prom_memory(void)