/* * Platform data for Texas Instruments TLV320AIC3x codec * * Author: Jarkko Nikula * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef __TLV320AIC3x_H__ #define __TLV320AIC3x_H__ /* GPIO API */ enum { AIC3X_GPIO1_FUNC_DISABLED = 0, AIC3X_GPIO1_FUNC_AUDIO_WORDCLK_ADC = 1, AIC3X_GPIO1_FUNC_CLOCK_MUX = 2, AIC3X_GPIO1_FUNC_CLOCK_MUX_DIV2 = 3, AIC3X_GPIO1_FUNC_CLOCK_MUX_DIV4 = 4, AIC3X_GPIO1_FUNC_CLOCK_MUX_DIV8 = 5, AIC3X_GPIO1_FUNC_SHORT_CIRCUIT_IRQ = 6, AIC3X_GPIO1_FUNC_AGC_NOISE_IRQ = 7, AIC3X_GPIO1_FUNC_INPUT = 8, AIC3X_GPIO1_FUNC_OUTPUT = 9, AIC3X_GPIO1_FUNC_DIGITAL_MIC_MODCLK = 10, AIC3X_GPIO1_FUNC_AUDIO_WORDCLK = 11, AIC3X_GPIO1_FUNC_BUTTON_IRQ = 12, AIC3X_GPIO1_FUNC_HEADSET_DETECT_IRQ = 13, AIC3X_GPIO1_FUNC_HEADSET_DETECT_OR_BUTTON_IRQ = 14, AIC3X_GPIO1_FUNC_ALL_IRQ = 16 }; enum { AIC3X_GPIO2_FUNC_DISABLED = 0, AIC3X_GPIO2_FUNC_HEADSET_DETECT_IRQ = 2, AIC3X_GPIO2_FUNC_INPUT = 3, AIC3X_GPIO2_FUNC_OUTPUT = 4, AIC3X_GPIO2_FUNC_DIGITAL_MIC_INPUT = 5, AIC3X_GPIO2_FUNC_AUDIO_BITCLK = 8, AIC3X_GPIO2_FUNC_HEADSET_DETECT_OR_BUTTON_IRQ = 9, AIC3X_GPIO2_FUNC_ALL_IRQ = 10, AIC3X_GPIO2_FUNC_SHORT_CIRCUIT_OR_AGC_IRQ = 11, AIC3X_GPIO2_FUNC_HEADSET_OR_BUTTON_PRESS_OR_SHORT_CIRCUIT_IRQ = 12, AIC3X_GPIO2_FUNC_SHORT_CIRCUIT_IRQ = 13, AIC3X_GPIO2_FUNC_AGC_NOISE_IRQ = 14, AIC3X_GPIO2_FUNC_BUTTON_PRESS_IRQ = 15 }; enum aic3x_micbias_voltage { AIC3X_MICBIAS_OFF = 0, AIC3X_MICBIAS_2_0V = 1, AIC3X_MICBIAS_2_5V = 2, AIC3X_MICBIAS_AVDDV = 3, }; struct aic3x_setup_data { unsigned int gpio_func[2]; }; struct aic3x_pdata { int gpio_reset; /* < 0 if not used */ struct aic3x_setup_data *setup; /* Selects the micbias voltage */ enum aic3x_micbias_voltage micbias_vg; }; #endif -private-remove&id=6e978b22efa1db9f6e71b24440b5f1d93e968ee3'>treecommitdiff
path: root/include/dt-bindings/net
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2017-02-03 14:18:39 -0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-02-04 00:11:08 +0100
commit6e978b22efa1db9f6e71b24440b5f1d93e968ee3 (patch)
treec666f7a26b860674848949e39a610222b0723f89 /include/dt-bindings/net
parent3c223c19aea85d3dda1416c187915f4a30b04b1f (diff)
cpufreq: intel_pstate: Disable energy efficiency optimization
Some Kabylake desktop processors may not reach max turbo when running in HWP mode, even if running under sustained 100% utilization. This occurs when the HWP.EPP (Energy Performance Preference) is set to "balance_power" (0x80) -- the default on most systems. It occurs because the platform BIOS may erroneously enable an energy-efficiency setting -- MSR_IA32_POWER_CTL BIT-EE, which is not recommended to be enabled on this SKU. On the failing systems, this BIOS issue was not discovered when the desktop motherboard was tested with Windows, because the BIOS also neglects to provide the ACPI/CPPC table, that Windows requires to enable HWP, and so Windows runs in legacy P-state mode, where this setting has no effect. Linux' intel_pstate driver does not require ACPI/CPPC to enable HWP, and so it runs in HWP mode, exposing this incorrect BIOS configuration. There are several ways to address this problem. First, Linux can also run in legacy P-state mode on this system. As intel_pstate is how Linux enables HWP, booting with "intel_pstate=disable" will run in acpi-cpufreq/ondemand legacy p-state mode. Or second, the "performance" governor can be used with intel_pstate, which will modify HWP.EPP to 0. Or third, starting in 4.10, the /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference attribute in can be updated from "balance_power" to "performance". Or fourth, apply this patch, which fixes the erroneous setting of MSR_IA32_POWER_CTL BIT_EE on this model, allowing the default configuration to function as designed. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Reviewed-by: Len Brown <len.brown@intel.com> Cc: 4.6+ <stable@vger.kernel.org> # 4.6+ Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/dt-bindings/net')