init.c (d5432503bfb49f3425bad0b850714ffd8b533cfc) init.c (935477ed7b537cf28b38f0c6b4471915d8c0e12a)
1/*
2 * Copyright (c) 2008-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 348 unchanged lines hidden (view full) ---

357}
358
359static void ath9k_init_pcoem_platform(struct ath_softc *sc)
360{
361 struct ath_hw *ah = sc->sc_ah;
362 struct ath9k_hw_capabilities *pCap = &ah->caps;
363 struct ath_common *common = ath9k_hw_common(ah);
364
1/*
2 * Copyright (c) 2008-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 348 unchanged lines hidden (view full) ---

357}
358
359static void ath9k_init_pcoem_platform(struct ath_softc *sc)
360{
361 struct ath_hw *ah = sc->sc_ah;
362 struct ath9k_hw_capabilities *pCap = &ah->caps;
363 struct ath_common *common = ath9k_hw_common(ah);
364
365 if (!IS_ENABLED(CONFIG_ATH9K_PCOEM))
366 return;
367
365 if (common->bus_ops->ath_bus_type != ATH_PCI)
366 return;
367
368 if (sc->driver_data & (ATH9K_PCI_CUS198 |
369 ATH9K_PCI_CUS230)) {
370 ah->config.xlna_gpio = 9;
371 ah->config.xatten_margin_cfg = true;
372 ah->config.alt_mingainidx = true;

--- 633 unchanged lines hidden ---
368 if (common->bus_ops->ath_bus_type != ATH_PCI)
369 return;
370
371 if (sc->driver_data & (ATH9K_PCI_CUS198 |
372 ATH9K_PCI_CUS230)) {
373 ah->config.xlna_gpio = 9;
374 ah->config.xatten_margin_cfg = true;
375 ah->config.alt_mingainidx = true;

--- 633 unchanged lines hidden ---