diff options
Diffstat (limited to 'arch/arm/mach-omap2/pdata-quirks.c')
-rw-r--r-- | arch/arm/mach-omap2/pdata-quirks.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c index e781e4fae13a..a935d28443da 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c | |||
@@ -23,6 +23,8 @@ | |||
23 | #include <linux/platform_data/pinctrl-single.h> | 23 | #include <linux/platform_data/pinctrl-single.h> |
24 | #include <linux/platform_data/iommu-omap.h> | 24 | #include <linux/platform_data/iommu-omap.h> |
25 | #include <linux/platform_data/wkup_m3.h> | 25 | #include <linux/platform_data/wkup_m3.h> |
26 | #include <linux/platform_data/pwm_omap_dmtimer.h> | ||
27 | #include <plat/dmtimer.h> | ||
26 | 28 | ||
27 | #include "common.h" | 29 | #include "common.h" |
28 | #include "common-board-devices.h" | 30 | #include "common-board-devices.h" |
@@ -449,6 +451,24 @@ void omap_auxdata_legacy_init(struct device *dev) | |||
449 | dev->platform_data = &twl_gpio_auxdata; | 451 | dev->platform_data = &twl_gpio_auxdata; |
450 | } | 452 | } |
451 | 453 | ||
454 | /* Dual mode timer PWM callbacks platdata */ | ||
455 | #if IS_ENABLED(CONFIG_OMAP_DM_TIMER) | ||
456 | struct pwm_omap_dmtimer_pdata pwm_dmtimer_pdata = { | ||
457 | .request_by_node = omap_dm_timer_request_by_node, | ||
458 | .free = omap_dm_timer_free, | ||
459 | .enable = omap_dm_timer_enable, | ||
460 | .disable = omap_dm_timer_disable, | ||
461 | .get_fclk = omap_dm_timer_get_fclk, | ||
462 | .start = omap_dm_timer_start, | ||
463 | .stop = omap_dm_timer_stop, | ||
464 | .set_load = omap_dm_timer_set_load, | ||
465 | .set_match = omap_dm_timer_set_match, | ||
466 | .set_pwm = omap_dm_timer_set_pwm, | ||
467 | .set_prescaler = omap_dm_timer_set_prescaler, | ||
468 | .write_counter = omap_dm_timer_write_counter, | ||
469 | }; | ||
470 | #endif | ||
471 | |||
452 | /* | 472 | /* |
453 | * Few boards still need auxdata populated before we populate | 473 | * Few boards still need auxdata populated before we populate |
454 | * the dev entries in of_platform_populate(). | 474 | * the dev entries in of_platform_populate(). |
@@ -502,6 +522,9 @@ static struct of_dev_auxdata omap_auxdata_lookup[] __initdata = { | |||
502 | OF_DEV_AUXDATA("ti,am4372-wkup-m3", 0x44d00000, "44d00000.wkup_m3", | 522 | OF_DEV_AUXDATA("ti,am4372-wkup-m3", 0x44d00000, "44d00000.wkup_m3", |
503 | &wkup_m3_data), | 523 | &wkup_m3_data), |
504 | #endif | 524 | #endif |
525 | #if IS_ENABLED(CONFIG_OMAP_DM_TIMER) | ||
526 | OF_DEV_AUXDATA("ti,omap-dmtimer-pwm", 0, NULL, &pwm_dmtimer_pdata), | ||
527 | #endif | ||
505 | #if defined(CONFIG_ARCH_OMAP4) || defined(CONFIG_SOC_OMAP5) | 528 | #if defined(CONFIG_ARCH_OMAP4) || defined(CONFIG_SOC_OMAP5) |
506 | OF_DEV_AUXDATA("ti,omap4-iommu", 0x4a066000, "4a066000.mmu", | 529 | OF_DEV_AUXDATA("ti,omap4-iommu", 0x4a066000, "4a066000.mmu", |
507 | &omap4_iommu_pdata), | 530 | &omap4_iommu_pdata), |