162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci * Copyright (c) 2008 Atheros Communications Inc.
362306a36Sopenharmony_ci * Copyright (c) 2009 Gabor Juhos <juhosg@openwrt.org>
462306a36Sopenharmony_ci * Copyright (c) 2009 Imre Kaloz <kaloz@openwrt.org>
562306a36Sopenharmony_ci *
662306a36Sopenharmony_ci * Permission to use, copy, modify, and/or distribute this software for any
762306a36Sopenharmony_ci * purpose with or without fee is hereby granted, provided that the above
862306a36Sopenharmony_ci * copyright notice and this permission notice appear in all copies.
962306a36Sopenharmony_ci *
1062306a36Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1162306a36Sopenharmony_ci * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1262306a36Sopenharmony_ci * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1362306a36Sopenharmony_ci * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1462306a36Sopenharmony_ci * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1562306a36Sopenharmony_ci * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1662306a36Sopenharmony_ci * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1762306a36Sopenharmony_ci */
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#ifndef _LINUX_ATH9K_PLATFORM_H
2062306a36Sopenharmony_ci#define _LINUX_ATH9K_PLATFORM_H
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci#define ATH9K_PLAT_EEP_MAX_WORDS	2048
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_cistruct ath9k_platform_data {
2562306a36Sopenharmony_ci	const char *eeprom_name;
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci	u16 eeprom_data[ATH9K_PLAT_EEP_MAX_WORDS];
2862306a36Sopenharmony_ci	u8 *macaddr;
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci	int led_pin;
3162306a36Sopenharmony_ci	u32 gpio_mask;
3262306a36Sopenharmony_ci	u32 gpio_val;
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci	u32 bt_active_pin;
3562306a36Sopenharmony_ci	u32 bt_priority_pin;
3662306a36Sopenharmony_ci	u32 wlan_active_pin;
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci	bool endian_check;
3962306a36Sopenharmony_ci	bool is_clk_25mhz;
4062306a36Sopenharmony_ci	bool tx_gain_buffalo;
4162306a36Sopenharmony_ci	bool disable_2ghz;
4262306a36Sopenharmony_ci	bool disable_5ghz;
4362306a36Sopenharmony_ci	bool led_active_high;
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ci	int (*get_mac_revision)(void);
4662306a36Sopenharmony_ci	int (*external_reset)(void);
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_ci	bool use_eeprom;
4962306a36Sopenharmony_ci};
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ci#endif /* _LINUX_ATH9K_PLATFORM_H */
52