diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-01 18:36:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-01 18:36:01 -0400 |
commit | 43a0a98aa8da71583f84b84fd72e265c24d4c5f8 (patch) | |
tree | 3830aff2b36f48a67be5f485f00f56cf4269729d /drivers/pwm | |
parent | 6911a5281430cf6897376487698504620f454791 (diff) | |
parent | f8c6d88b2c874295f49b9ad1ca0826b9a8ef3180 (diff) |
Merge tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC driver updates from Olof Johansson:
"Driver updates for ARM SoCs.
A slew of changes this release cycle. The reset driver tree, that we
merge through arm-soc for historical reasons, is also sizable this
time around.
Among the changes:
- clps711x: Treewide changes to compatible strings, merged here for simplicity.
- Qualcomm: SCM firmware driver cleanups, move to platform driver
- ux500: Major cleanups, removal of old mach-specific infrastructure.
- Atmel external bus memory driver
- Move of brcmstb platform to the rest of bcm
- PMC driver updates for tegra, various fixes and improvements
- Samsung platform driver updates to support 64-bit Exynos platforms
- Reset controller cleanups moving to devm_reset_controller_register() APIs
- Reset controller driver for Amlogic Meson
- Reset controller driver for Hisilicon hi6220
- ARM SCPI power domain support"
* tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (100 commits)
ARM: ux500: consolidate base platform files
ARM: ux500: move soc_id driver to drivers/soc
ARM: ux500: call ux500_setup_id later
ARM: ux500: consolidate soc_device code in id.c
ARM: ux500: remove cpu_is_u* helpers
ARM: ux500: use CLK_OF_DECLARE()
ARM: ux500: move l2x0 init to .init_irq
mfd: db8500 stop passing around platform data
ASoC: ab8500-codec: remove platform data based probe
ARM: ux500: move ab8500_regulator_plat_data into driver
ARM: ux500: remove unused regulator data
soc: raspberrypi-power: add CONFIG_OF dependency
firmware: scpi: add CONFIG_OF dependency
video: clps711x-fb: Changing the compatibility string to match with the smallest supported chip
input: clps711x-keypad: Changing the compatibility string to match with the smallest supported chip
pwm: clps711x: Changing the compatibility string to match with the smallest supported chip
serial: clps711x: Changing the compatibility string to match with the smallest supported chip
irqchip: clps711x: Changing the compatibility string to match with the smallest supported chip
clocksource: clps711x: Changing the compatibility string to match with the smallest supported chip
clk: clps711x: Changing the compatibility string to match with the smallest supported chip
...
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/pwm-clps711x.c | 2 | ||||
-rw-r--r-- | drivers/pwm/pwm-omap-dmtimer.c | 12 |
2 files changed, 8 insertions, 6 deletions
diff --git a/drivers/pwm/pwm-clps711x.c b/drivers/pwm/pwm-clps711x.c index 7d335422cfda..26ec24e457b1 100644 --- a/drivers/pwm/pwm-clps711x.c +++ b/drivers/pwm/pwm-clps711x.c | |||
@@ -155,7 +155,7 @@ static int clps711x_pwm_remove(struct platform_device *pdev) | |||
155 | } | 155 | } |
156 | 156 | ||
157 | static const struct of_device_id __maybe_unused clps711x_pwm_dt_ids[] = { | 157 | static const struct of_device_id __maybe_unused clps711x_pwm_dt_ids[] = { |
158 | { .compatible = "cirrus,clps711x-pwm", }, | 158 | { .compatible = "cirrus,ep7209-pwm", }, |
159 | { } | 159 | { } |
160 | }; | 160 | }; |
161 | MODULE_DEVICE_TABLE(of, clps711x_pwm_dt_ids); | 161 | MODULE_DEVICE_TABLE(of, clps711x_pwm_dt_ids); |
diff --git a/drivers/pwm/pwm-omap-dmtimer.c b/drivers/pwm/pwm-omap-dmtimer.c index 3e95090cd7cf..5ad42f33e70c 100644 --- a/drivers/pwm/pwm-omap-dmtimer.c +++ b/drivers/pwm/pwm-omap-dmtimer.c | |||
@@ -245,7 +245,7 @@ static int pwm_omap_dmtimer_probe(struct platform_device *pdev) | |||
245 | struct pwm_omap_dmtimer_chip *omap; | 245 | struct pwm_omap_dmtimer_chip *omap; |
246 | struct pwm_omap_dmtimer_pdata *pdata; | 246 | struct pwm_omap_dmtimer_pdata *pdata; |
247 | pwm_omap_dmtimer *dm_timer; | 247 | pwm_omap_dmtimer *dm_timer; |
248 | u32 prescaler; | 248 | u32 v; |
249 | int status; | 249 | int status; |
250 | 250 | ||
251 | pdata = dev_get_platdata(&pdev->dev); | 251 | pdata = dev_get_platdata(&pdev->dev); |
@@ -306,10 +306,12 @@ static int pwm_omap_dmtimer_probe(struct platform_device *pdev) | |||
306 | if (pm_runtime_active(&omap->dm_timer_pdev->dev)) | 306 | if (pm_runtime_active(&omap->dm_timer_pdev->dev)) |
307 | omap->pdata->stop(omap->dm_timer); | 307 | omap->pdata->stop(omap->dm_timer); |
308 | 308 | ||
309 | /* setup dmtimer prescaler */ | 309 | if (!of_property_read_u32(pdev->dev.of_node, "ti,prescaler", &v)) |
310 | if (!of_property_read_u32(pdev->dev.of_node, "ti,prescaler", | 310 | omap->pdata->set_prescaler(omap->dm_timer, v); |
311 | &prescaler)) | 311 | |
312 | omap->pdata->set_prescaler(omap->dm_timer, prescaler); | 312 | /* setup dmtimer clock source */ |
313 | if (!of_property_read_u32(pdev->dev.of_node, "ti,clock-source", &v)) | ||
314 | omap->pdata->set_source(omap->dm_timer, v); | ||
313 | 315 | ||
314 | omap->chip.dev = &pdev->dev; | 316 | omap->chip.dev = &pdev->dev; |
315 | omap->chip.ops = &pwm_omap_dmtimer_ops; | 317 | omap->chip.ops = &pwm_omap_dmtimer_ops; |