developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 1 | From dcce03b49e8bac8a2c371c24dbcc9a6922861b8a Mon Sep 17 00:00:00 2001 |
| 2 | From: Sam Shih <sam.shih@mediatek.com> |
| 3 | Date: Fri, 2 Jun 2023 13:06:07 +0800 |
| 4 | Subject: [PATCH] [slow-speed-io][999-2130-pwm-add-mt7986-support.patch] |
| 5 | |
| 6 | --- |
| 7 | drivers/pwm/pwm-mediatek.c | 6 ++++++ |
| 8 | 1 file changed, 6 insertions(+) |
| 9 | |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 10 | diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c |
developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 11 | index b94e0d09c..35a0db2ff 100644 |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 12 | --- a/drivers/pwm/pwm-mediatek.c |
| 13 | +++ b/drivers/pwm/pwm-mediatek.c |
| 14 | @@ -302,6 +302,11 @@ static const struct pwm_mediatek_of_data mt7629_pwm_data = { |
| 15 | .pwm45_fixup = false, |
| 16 | }; |
developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 17 | |
developer | 8b9f285 | 2021-06-03 21:53:08 +0800 | [diff] [blame] | 18 | +static const struct pwm_mediatek_of_data mt7986_pwm_data = { |
| 19 | + .num_pwms = 2, |
| 20 | + .pwm45_fixup = false, |
| 21 | +}; |
| 22 | + |
| 23 | static const struct pwm_mediatek_of_data mt8516_pwm_data = { |
| 24 | .num_pwms = 5, |
| 25 | .pwm45_fixup = false, |
| 26 | @@ -313,6 +318,7 @@ static const struct of_device_id pwm_mediatek_of_match[] = { |
| 27 | { .compatible = "mediatek,mt7623-pwm", .data = &mt7623_pwm_data }, |
| 28 | { .compatible = "mediatek,mt7628-pwm", .data = &mt7628_pwm_data }, |
| 29 | { .compatible = "mediatek,mt7629-pwm", .data = &mt7629_pwm_data }, |
| 30 | + { .compatible = "mediatek,mt7986-pwm", .data = &mt7986_pwm_data }, |
| 31 | { .compatible = "mediatek,mt8516-pwm", .data = &mt8516_pwm_data }, |
| 32 | { }, |
| 33 | }; |
developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 34 | -- |
| 35 | 2.34.1 |
| 36 | |