eeprom.c (bd072111e7319d90a7b8127f91c2806b9a6f279e) | eeprom.c (c38e7a9348f725be0ea2493454db9e6d44fb7e0c) |
---|---|
1/* 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2009 Nick Kossifidis <mickflemm@gmail.com> 4 * Copyright (c) 2008-2009 Felix Fietkau <nbd@openwrt.org> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. --- 153 unchanged lines hidden (view full) --- 162 ee->ee_is_hb63 = true; 163 else 164 ee->ee_is_hb63 = false; 165 166 AR5K_EEPROM_READ(AR5K_EEPROM_RFKILL, val); 167 ee->ee_rfkill_pin = (u8) AR5K_REG_MS(val, AR5K_EEPROM_RFKILL_GPIO_SEL); 168 ee->ee_rfkill_pol = val & AR5K_EEPROM_RFKILL_POLARITY ? true : false; 169 | 1/* 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2009 Nick Kossifidis <mickflemm@gmail.com> 4 * Copyright (c) 2008-2009 Felix Fietkau <nbd@openwrt.org> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. --- 153 unchanged lines hidden (view full) --- 162 ee->ee_is_hb63 = true; 163 else 164 ee->ee_is_hb63 = false; 165 166 AR5K_EEPROM_READ(AR5K_EEPROM_RFKILL, val); 167 ee->ee_rfkill_pin = (u8) AR5K_REG_MS(val, AR5K_EEPROM_RFKILL_GPIO_SEL); 168 ee->ee_rfkill_pol = val & AR5K_EEPROM_RFKILL_POLARITY ? true : false; 169 |
170 /* Check if PCIE_OFFSET points to PCIE_SERDES_SECTION 171 * and enable serdes programming if needed. 172 * 173 * XXX: Serdes values seem to be fixed so 174 * no need to read them here, we write them 175 * during ath5k_hw_attach */ 176 AR5K_EEPROM_READ(AR5K_EEPROM_PCIE_OFFSET, val); 177 ee->ee_serdes = (val == AR5K_EEPROM_PCIE_SERDES_SECTION) ? 178 true : false; 179 |
|
170 return 0; 171} 172 173 174/* 175 * Read antenna infos from eeprom 176 */ 177static int ath5k_eeprom_read_ants(struct ath5k_hw *ah, u32 *offset, --- 1625 unchanged lines hidden --- | 180 return 0; 181} 182 183 184/* 185 * Read antenna infos from eeprom 186 */ 187static int ath5k_eeprom_read_ants(struct ath5k_hw *ah, u32 *offset, --- 1625 unchanged lines hidden --- |