421-BCM63XX-add-led-pin-for-ath9k.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --- a/arch/mips/bcm63xx/boards/board_common.c
  2. +++ b/arch/mips/bcm63xx/boards/board_common.c
  3. @@ -301,7 +301,7 @@ int __init board_register_devices(void)
  4. /* register any fixups */
  5. for (i = 0; i < board.has_caldata; i++)
  6. pci_enable_ath9k_fixup(board.caldata[i].slot, board.caldata[i].caldata_offset,
  7. - board.caldata[i].endian_check);
  8. + board.caldata[i].endian_check, board.caldata[i].led_pin);
  9. return 0;
  10. }
  11. --- a/arch/mips/bcm63xx/pci-ath9k-fixup.c
  12. +++ b/arch/mips/bcm63xx/pci-ath9k-fixup.c
  13. @@ -182,13 +182,14 @@ static void ath9k_pci_fixup(struct pci_d
  14. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATHEROS, PCI_ANY_ID, ath9k_pci_fixup);
  15. void __init pci_enable_ath9k_fixup(unsigned slot, u32 offset,
  16. - unsigned endian_check)
  17. + unsigned endian_check, int led_pin)
  18. {
  19. if (ath9k_num_fixups >= ARRAY_SIZE(ath9k_fixups))
  20. return;
  21. ath9k_fixups[ath9k_num_fixups].slot = slot;
  22. ath9k_fixups[ath9k_num_fixups].pdata.endian_check = endian_check;
  23. + ath9k_fixups[ath9k_num_fixups].pdata.led_pin = led_pin;
  24. if (!bcm63xx_read_eeprom(ath9k_fixups[ath9k_num_fixups].pdata.eeprom_data, offset))
  25. return;
  26. --- a/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
  27. +++ b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
  28. @@ -22,6 +22,7 @@ struct ath9k_caldata {
  29. unsigned int slot;
  30. u32 caldata_offset;
  31. unsigned int endian_check:1;
  32. + int led_pin;
  33. };
  34. /*
  35. --- a/arch/mips/include/asm/mach-bcm63xx/pci_ath9k_fixup.h
  36. +++ b/arch/mips/include/asm/mach-bcm63xx/pci_ath9k_fixup.h
  37. @@ -3,6 +3,6 @@
  38. void pci_enable_ath9k_fixup(unsigned slot, u32 offset,
  39. - unsigned endian_check) __init;
  40. + unsigned endian_check, int led_pin) __init;
  41. #endif /* _PCI_ATH9K_FIXUP */