146a1d512SLuciano Coelho /* 246a1d512SLuciano Coelho * This file is part of wl18xx 346a1d512SLuciano Coelho * 446a1d512SLuciano Coelho * Copyright (C) 2011 Texas Instruments Inc. 546a1d512SLuciano Coelho * 646a1d512SLuciano Coelho * This program is free software; you can redistribute it and/or 746a1d512SLuciano Coelho * modify it under the terms of the GNU General Public License 846a1d512SLuciano Coelho * version 2 as published by the Free Software Foundation. 946a1d512SLuciano Coelho * 1046a1d512SLuciano Coelho * This program is distributed in the hope that it will be useful, but 1146a1d512SLuciano Coelho * WITHOUT ANY WARRANTY; without even the implied warranty of 1246a1d512SLuciano Coelho * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1346a1d512SLuciano Coelho * General Public License for more details. 1446a1d512SLuciano Coelho * 1546a1d512SLuciano Coelho * You should have received a copy of the GNU General Public License 1646a1d512SLuciano Coelho * along with this program; if not, write to the Free Software 1746a1d512SLuciano Coelho * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 1846a1d512SLuciano Coelho * 02110-1301 USA 1946a1d512SLuciano Coelho * 2046a1d512SLuciano Coelho */ 2146a1d512SLuciano Coelho 2246a1d512SLuciano Coelho #ifndef __WL18XX_CONF_H__ 2346a1d512SLuciano Coelho #define __WL18XX_CONF_H__ 2446a1d512SLuciano Coelho 25*18b70ac9SLuciano Coelho #define WL18XX_CONF_MAGIC 0x10e100ca 26*18b70ac9SLuciano Coelho #define WL18XX_CONF_VERSION (WLCORE_CONF_VERSION | 0x0001) 27*18b70ac9SLuciano Coelho #define WL18XX_CONF_MASK 0x0000ffff 28*18b70ac9SLuciano Coelho #define WL18XX_CONF_SIZE (WLCORE_CONF_SIZE + \ 29*18b70ac9SLuciano Coelho sizeof(struct wl18xx_priv_conf)) 30*18b70ac9SLuciano Coelho 3146a1d512SLuciano Coelho struct wl18xx_conf_phy { 3246a1d512SLuciano Coelho u8 phy_standalone; 3346a1d512SLuciano Coelho u8 rdl; 3446a1d512SLuciano Coelho u8 enable_clpc; 3546a1d512SLuciano Coelho u8 enable_tx_low_pwr_on_siso_rdl; 3646a1d512SLuciano Coelho u8 auto_detect; 3746a1d512SLuciano Coelho u8 dedicated_fem; 3846a1d512SLuciano Coelho u8 low_band_component; 3946a1d512SLuciano Coelho u8 low_band_component_type; 4046a1d512SLuciano Coelho u8 high_band_component; 4146a1d512SLuciano Coelho u8 high_band_component_type; 4246a1d512SLuciano Coelho u8 tcxo_ldo_voltage; 4346a1d512SLuciano Coelho u8 xtal_itrim_val; 4446a1d512SLuciano Coelho u8 srf_state; 4546a1d512SLuciano Coelho u8 io_configuration; 4646a1d512SLuciano Coelho u8 sdio_configuration; 4746a1d512SLuciano Coelho u8 settings; 4846a1d512SLuciano Coelho u8 rx_profile; 4946a1d512SLuciano Coelho u8 primary_clock_setting_time; 5046a1d512SLuciano Coelho u8 clock_valid_on_wake_up; 5146a1d512SLuciano Coelho u8 secondary_clock_setting_time; 525add82edSLuciano Coelho u8 pwr_limit_reference_11_abg; 5316ea4733SIdo Reis u8 psat; 5416ea4733SIdo Reis s8 low_power_val; 5516ea4733SIdo Reis s8 med_power_val; 5616ea4733SIdo Reis s8 high_power_val; 5734bacf73SLuciano Coelho } __packed; 5846a1d512SLuciano Coelho 5923ee9bf8SLuciano Coelho struct wl18xx_priv_conf { 6046a1d512SLuciano Coelho struct wl18xx_conf_phy phy; 6134bacf73SLuciano Coelho } __packed; 6246a1d512SLuciano Coelho 6346a1d512SLuciano Coelho #endif /* __WL18XX_CONF_H__ */ 64