18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Copyright (c) 2008 Atheros Communications Inc.
38c2ecf20Sopenharmony_ci * Copyright (c) 2009 Gabor Juhos <juhosg@openwrt.org>
48c2ecf20Sopenharmony_ci * Copyright (c) 2009 Imre Kaloz <kaloz@openwrt.org>
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * Permission to use, copy, modify, and/or distribute this software for any
78c2ecf20Sopenharmony_ci * purpose with or without fee is hereby granted, provided that the above
88c2ecf20Sopenharmony_ci * copyright notice and this permission notice appear in all copies.
98c2ecf20Sopenharmony_ci *
108c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
118c2ecf20Sopenharmony_ci * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
128c2ecf20Sopenharmony_ci * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
138c2ecf20Sopenharmony_ci * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
148c2ecf20Sopenharmony_ci * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
158c2ecf20Sopenharmony_ci * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
168c2ecf20Sopenharmony_ci * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
178c2ecf20Sopenharmony_ci */
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#ifndef _LINUX_ATH9K_PLATFORM_H
208c2ecf20Sopenharmony_ci#define _LINUX_ATH9K_PLATFORM_H
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#define ATH9K_PLAT_EEP_MAX_WORDS	2048
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_cistruct ath9k_platform_data {
258c2ecf20Sopenharmony_ci	const char *eeprom_name;
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci	u16 eeprom_data[ATH9K_PLAT_EEP_MAX_WORDS];
288c2ecf20Sopenharmony_ci	u8 *macaddr;
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci	int led_pin;
318c2ecf20Sopenharmony_ci	u32 gpio_mask;
328c2ecf20Sopenharmony_ci	u32 gpio_val;
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci	u32 bt_active_pin;
358c2ecf20Sopenharmony_ci	u32 bt_priority_pin;
368c2ecf20Sopenharmony_ci	u32 wlan_active_pin;
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci	bool endian_check;
398c2ecf20Sopenharmony_ci	bool is_clk_25mhz;
408c2ecf20Sopenharmony_ci	bool tx_gain_buffalo;
418c2ecf20Sopenharmony_ci	bool disable_2ghz;
428c2ecf20Sopenharmony_ci	bool disable_5ghz;
438c2ecf20Sopenharmony_ci	bool led_active_high;
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci	int (*get_mac_revision)(void);
468c2ecf20Sopenharmony_ci	int (*external_reset)(void);
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci	bool use_eeprom;
498c2ecf20Sopenharmony_ci};
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci#endif /* _LINUX_ATH9K_PLATFORM_H */
52