diff options
| author | Ingo Molnar <mingo@kernel.org> | 2012-04-13 03:50:21 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2012-04-13 03:50:21 -0400 |
| commit | 659c36fcda403013a01b85da07cf2d9711e6d6c7 (patch) | |
| tree | ece2e7d0e2c19ea5a3d0ec172ad0b81a8a19021d /include/linux/mfd | |
| parent | 9521d830b6341d1887dcfc2aebde23fbfa5f1473 (diff) | |
| parent | 5a7ed29c7572d00a75e8c4529e30c5ac2ef82271 (diff) | |
Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Fixes and improvements for perf/core:
. Overhaul the tools/ makefiles, gluing them to the top level Makefile, from
Borislav Petkov.
. Move the UI files from tools/perf/util/ui/ to tools/perf/ui/. Also move
the GTK+ browser to tools/perf/ui/gtk/, from Namhyung Kim.
. Only fallback to sw cycles counter on ENOENT for the hw cycles, from
Robert Richter
. Trivial fixes from Robert Richter
. Handle the autogenerated bison/flex files better, from Namhyung and Jiri Olsa.
. Navigate jump instructions in the annotate browser, just press enter or ->,
still needs support for a jump navigation history, i.e. to go back.
. Search string in the annotate browser: same keys as vim:
/ forward
n next backward/forward
? backward
. Clarify number of events/samples in the report header, from Ashay Rane
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/abx500.h | 3 | ||||
| -rw-r--r-- | include/linux/mfd/abx500/ab5500.h | 2 | ||||
| -rw-r--r-- | include/linux/mfd/abx500/ab8500.h | 4 | ||||
| -rw-r--r-- | include/linux/mfd/max8997.h | 53 | ||||
| -rw-r--r-- | include/linux/mfd/pm8xxx/pm8921.h | 1 | ||||
| -rw-r--r-- | include/linux/mfd/stmpe.h | 4 | ||||
| -rw-r--r-- | include/linux/mfd/tc3589x.h | 2 | ||||
| -rw-r--r-- | include/linux/mfd/tps65910.h | 7 | ||||
| -rw-r--r-- | include/linux/mfd/wm8994/pdata.h | 3 |
9 files changed, 72 insertions, 7 deletions
diff --git a/include/linux/mfd/abx500.h b/include/linux/mfd/abx500.h index 9970337ff041..e20dd6ead1d0 100644 --- a/include/linux/mfd/abx500.h +++ b/include/linux/mfd/abx500.h | |||
| @@ -14,9 +14,10 @@ | |||
| 14 | * Author: Rickard Andersson <rickard.andersson@stericsson.com> | 14 | * Author: Rickard Andersson <rickard.andersson@stericsson.com> |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include <linux/device.h> | ||
| 18 | #include <linux/regulator/machine.h> | 17 | #include <linux/regulator/machine.h> |
| 19 | 18 | ||
| 19 | struct device; | ||
| 20 | |||
| 20 | #ifndef MFD_ABX500_H | 21 | #ifndef MFD_ABX500_H |
| 21 | #define MFD_ABX500_H | 22 | #define MFD_ABX500_H |
| 22 | 23 | ||
diff --git a/include/linux/mfd/abx500/ab5500.h b/include/linux/mfd/abx500/ab5500.h index a720051ae933..54f820ed73bb 100644 --- a/include/linux/mfd/abx500/ab5500.h +++ b/include/linux/mfd/abx500/ab5500.h | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | #ifndef MFD_AB5500_H | 6 | #ifndef MFD_AB5500_H |
| 7 | #define MFD_AB5500_H | 7 | #define MFD_AB5500_H |
| 8 | 8 | ||
| 9 | #include <linux/device.h> | 9 | struct device; |
| 10 | 10 | ||
| 11 | enum ab5500_devid { | 11 | enum ab5500_devid { |
| 12 | AB5500_DEVID_ADC, | 12 | AB5500_DEVID_ADC, |
diff --git a/include/linux/mfd/abx500/ab8500.h b/include/linux/mfd/abx500/ab8500.h index 838c6b487cc5..dca94396190d 100644 --- a/include/linux/mfd/abx500/ab8500.h +++ b/include/linux/mfd/abx500/ab8500.h | |||
| @@ -7,7 +7,9 @@ | |||
| 7 | #ifndef MFD_AB8500_H | 7 | #ifndef MFD_AB8500_H |
| 8 | #define MFD_AB8500_H | 8 | #define MFD_AB8500_H |
| 9 | 9 | ||
| 10 | #include <linux/device.h> | 10 | #include <linux/mutex.h> |
| 11 | |||
| 12 | struct device; | ||
| 11 | 13 | ||
| 12 | /* | 14 | /* |
| 13 | * AB8500 bank addresses | 15 | * AB8500 bank addresses |
diff --git a/include/linux/mfd/max8997.h b/include/linux/mfd/max8997.h index fff590521e50..28726dd540f2 100644 --- a/include/linux/mfd/max8997.h +++ b/include/linux/mfd/max8997.h | |||
| @@ -131,6 +131,55 @@ struct max8997_muic_platform_data { | |||
| 131 | int num_init_data; | 131 | int num_init_data; |
| 132 | }; | 132 | }; |
| 133 | 133 | ||
| 134 | enum max8997_haptic_motor_type { | ||
| 135 | MAX8997_HAPTIC_ERM, | ||
| 136 | MAX8997_HAPTIC_LRA, | ||
| 137 | }; | ||
| 138 | |||
| 139 | enum max8997_haptic_pulse_mode { | ||
| 140 | MAX8997_EXTERNAL_MODE, | ||
| 141 | MAX8997_INTERNAL_MODE, | ||
| 142 | }; | ||
| 143 | |||
| 144 | enum max8997_haptic_pwm_divisor { | ||
| 145 | MAX8997_PWM_DIVISOR_32, | ||
| 146 | MAX8997_PWM_DIVISOR_64, | ||
| 147 | MAX8997_PWM_DIVISOR_128, | ||
| 148 | MAX8997_PWM_DIVISOR_256, | ||
| 149 | }; | ||
| 150 | |||
| 151 | /** | ||
| 152 | * max8997_haptic_platform_data | ||
| 153 | * @pwm_channel_id: channel number of PWM device | ||
| 154 | * valid for MAX8997_EXTERNAL_MODE | ||
| 155 | * @pwm_period: period in nano second for PWM device | ||
| 156 | * valid for MAX8997_EXTERNAL_MODE | ||
| 157 | * @type: motor type | ||
| 158 | * @mode: pulse mode | ||
| 159 | * MAX8997_EXTERNAL_MODE: external PWM device is used to control motor | ||
| 160 | * MAX8997_INTERNAL_MODE: internal pulse generator is used to control motor | ||
| 161 | * @pwm_divisor: divisor for external PWM device | ||
| 162 | * @internal_mode_pattern: internal mode pattern for internal mode | ||
| 163 | * [0 - 3]: valid pattern number | ||
| 164 | * @pattern_cycle: the number of cycles of the waveform | ||
| 165 | * for the internal mode pattern | ||
| 166 | * [0 - 15]: available cycles | ||
| 167 | * @pattern_signal_period: period of the waveform for the internal mode pattern | ||
| 168 | * [0 - 255]: available period | ||
| 169 | */ | ||
| 170 | struct max8997_haptic_platform_data { | ||
| 171 | unsigned int pwm_channel_id; | ||
| 172 | unsigned int pwm_period; | ||
| 173 | |||
| 174 | enum max8997_haptic_motor_type type; | ||
| 175 | enum max8997_haptic_pulse_mode mode; | ||
| 176 | enum max8997_haptic_pwm_divisor pwm_divisor; | ||
| 177 | |||
| 178 | unsigned int internal_mode_pattern; | ||
| 179 | unsigned int pattern_cycle; | ||
| 180 | unsigned int pattern_signal_period; | ||
| 181 | }; | ||
| 182 | |||
| 134 | enum max8997_led_mode { | 183 | enum max8997_led_mode { |
| 135 | MAX8997_NONE, | 184 | MAX8997_NONE, |
| 136 | MAX8997_FLASH_MODE, | 185 | MAX8997_FLASH_MODE, |
| @@ -192,7 +241,9 @@ struct max8997_platform_data { | |||
| 192 | /* ---- MUIC ---- */ | 241 | /* ---- MUIC ---- */ |
| 193 | struct max8997_muic_platform_data *muic_pdata; | 242 | struct max8997_muic_platform_data *muic_pdata; |
| 194 | 243 | ||
| 195 | /* HAPTIC: Not implemented */ | 244 | /* ---- HAPTIC ---- */ |
| 245 | struct max8997_haptic_platform_data *haptic_pdata; | ||
| 246 | |||
| 196 | /* RTC: Not implemented */ | 247 | /* RTC: Not implemented */ |
| 197 | /* ---- LED ---- */ | 248 | /* ---- LED ---- */ |
| 198 | struct max8997_led_platform_data *led_pdata; | 249 | struct max8997_led_platform_data *led_pdata; |
diff --git a/include/linux/mfd/pm8xxx/pm8921.h b/include/linux/mfd/pm8xxx/pm8921.h index d5517fd32d1b..00fa3de7659d 100644 --- a/include/linux/mfd/pm8xxx/pm8921.h +++ b/include/linux/mfd/pm8xxx/pm8921.h | |||
| @@ -18,7 +18,6 @@ | |||
| 18 | #ifndef __MFD_PM8921_H | 18 | #ifndef __MFD_PM8921_H |
| 19 | #define __MFD_PM8921_H | 19 | #define __MFD_PM8921_H |
| 20 | 20 | ||
| 21 | #include <linux/device.h> | ||
| 22 | #include <linux/mfd/pm8xxx/irq.h> | 21 | #include <linux/mfd/pm8xxx/irq.h> |
| 23 | 22 | ||
| 24 | #define PM8921_NR_IRQS 256 | 23 | #define PM8921_NR_IRQS 256 |
diff --git a/include/linux/mfd/stmpe.h b/include/linux/mfd/stmpe.h index ca1d7a347600..8c54de674b4b 100644 --- a/include/linux/mfd/stmpe.h +++ b/include/linux/mfd/stmpe.h | |||
| @@ -8,7 +8,9 @@ | |||
| 8 | #ifndef __LINUX_MFD_STMPE_H | 8 | #ifndef __LINUX_MFD_STMPE_H |
| 9 | #define __LINUX_MFD_STMPE_H | 9 | #define __LINUX_MFD_STMPE_H |
| 10 | 10 | ||
| 11 | #include <linux/device.h> | 11 | #include <linux/mutex.h> |
| 12 | |||
| 13 | struct device; | ||
| 12 | 14 | ||
| 13 | enum stmpe_block { | 15 | enum stmpe_block { |
| 14 | STMPE_BLOCK_GPIO = 1 << 0, | 16 | STMPE_BLOCK_GPIO = 1 << 0, |
diff --git a/include/linux/mfd/tc3589x.h b/include/linux/mfd/tc3589x.h index 16c76e124f9c..3acb3a8e3af5 100644 --- a/include/linux/mfd/tc3589x.h +++ b/include/linux/mfd/tc3589x.h | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | #ifndef __LINUX_MFD_TC3589x_H | 7 | #ifndef __LINUX_MFD_TC3589x_H |
| 8 | #define __LINUX_MFD_TC3589x_H | 8 | #define __LINUX_MFD_TC3589x_H |
| 9 | 9 | ||
| 10 | #include <linux/device.h> | 10 | struct device; |
| 11 | 11 | ||
| 12 | enum tx3589x_block { | 12 | enum tx3589x_block { |
| 13 | TC3589x_BLOCK_GPIO = 1 << 0, | 13 | TC3589x_BLOCK_GPIO = 1 << 0, |
diff --git a/include/linux/mfd/tps65910.h b/include/linux/mfd/tps65910.h index d0cb12eba402..76700b5eee92 100644 --- a/include/linux/mfd/tps65910.h +++ b/include/linux/mfd/tps65910.h | |||
| @@ -768,6 +768,12 @@ | |||
| 768 | /* Max number of TPS65910/11 regulators */ | 768 | /* Max number of TPS65910/11 regulators */ |
| 769 | #define TPS65910_NUM_REGS 13 | 769 | #define TPS65910_NUM_REGS 13 |
| 770 | 770 | ||
| 771 | /* External sleep controls through EN1/EN2/EN3/SLEEP inputs */ | ||
| 772 | #define TPS65910_SLEEP_CONTROL_EXT_INPUT_EN1 0x1 | ||
| 773 | #define TPS65910_SLEEP_CONTROL_EXT_INPUT_EN2 0x2 | ||
| 774 | #define TPS65910_SLEEP_CONTROL_EXT_INPUT_EN3 0x4 | ||
| 775 | #define TPS65911_SLEEP_CONTROL_EXT_INPUT_SLEEP 0x8 | ||
| 776 | |||
| 771 | /** | 777 | /** |
| 772 | * struct tps65910_board | 778 | * struct tps65910_board |
| 773 | * Board platform data may be used to initialize regulators. | 779 | * Board platform data may be used to initialize regulators. |
| @@ -779,6 +785,7 @@ struct tps65910_board { | |||
| 779 | int irq_base; | 785 | int irq_base; |
| 780 | int vmbch_threshold; | 786 | int vmbch_threshold; |
| 781 | int vmbch2_threshold; | 787 | int vmbch2_threshold; |
| 788 | unsigned long regulator_ext_sleep_control[TPS65910_NUM_REGS]; | ||
| 782 | struct regulator_init_data *tps65910_pmic_init_data[TPS65910_NUM_REGS]; | 789 | struct regulator_init_data *tps65910_pmic_init_data[TPS65910_NUM_REGS]; |
| 783 | }; | 790 | }; |
| 784 | 791 | ||
diff --git a/include/linux/mfd/wm8994/pdata.h b/include/linux/mfd/wm8994/pdata.h index 3fb1f407d5e6..dc3e05011689 100644 --- a/include/linux/mfd/wm8994/pdata.h +++ b/include/linux/mfd/wm8994/pdata.h | |||
| @@ -185,6 +185,9 @@ struct wm8994_pdata { | |||
| 185 | unsigned int jd_scthr:2; | 185 | unsigned int jd_scthr:2; |
| 186 | unsigned int jd_thr:2; | 186 | unsigned int jd_thr:2; |
| 187 | 187 | ||
| 188 | /* Configure WM1811 jack detection for use with external capacitor */ | ||
| 189 | unsigned int jd_ext_cap:1; | ||
| 190 | |||
| 188 | /* WM8958 microphone bias configuration */ | 191 | /* WM8958 microphone bias configuration */ |
| 189 | int micbias[2]; | 192 | int micbias[2]; |
| 190 | 193 | ||
