aboutsummaryrefslogtreecommitdiff
path: root/drivers/clocksource/timer-ti-dm.c
AgeCommit message (Collapse)AuthorFilesLines
2019-01-22clocksource: timer-ti-dm: Fix pwm dmtimer usage of fck reparentingTony Lindgren1-0/+4
Commit 84badc5ec5fc ("ARM: dts: omap4: Move l4 child devices to probe them with ti-sysc") moved some omap4 timers to probe with ti-sysc interconnect target module. Turns out this broke pwm-omap-dmtimer where we now try to reparent the clock to itself with the following: omap_dm_timer_of_set_source: failed to set parent With ti-sysc, we can now configure the clock sources in the dts with assigned-clocks and assigned-clock-parents. So we should be able to remove omap_dm_timer_of_set_source with clean-up patches later on. But for now, let's just fix it first by checking if parent and fck are the same and bail out of so. Fixes: 84badc5ec5fc ("ARM: dts: omap4: Move l4 child devices to probe them with ti-sysc") Cc: Bartosz Golaszewski <[email protected]> Cc: Daniel Lezcano <[email protected]> Cc: H. Nikolaus Schaller <[email protected]> Cc: Keerthy <[email protected]> Cc: Ladislav Michl <[email protected]> Cc: Pavel Machek <[email protected]> Cc: Sebastian Reichel <[email protected]> Cc: Tero Kristo <[email protected]> Cc: Thierry Reding <[email protected]> Cc: Thomas Gleixner <[email protected]> Reported-by: H. Nikolaus Schaller <[email protected]> Tested-By: Andreas Kemnade <[email protected]> Tested-By: H. Nikolaus Schaller <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
2018-12-18clocksource/drivers/timer-ti-dm: Remove the early platform driver registrationBartosz Golaszewski1-1/+0
This driver is no longer used as an early platform driver. Remove the registration macro. Signed-off-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]>
2018-02-28clocksource: timer-ti-dm: Check prescaler valueLadislav Michl1-2/+2
Invalid value silently disables use of the prescaler. Use -1 explicitely for that purpose and error out on invalid value. Signed-off-by: Ladislav Michl <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
2018-02-28clocksource: timer-ti-dm: Consolidate set sourceLadislav Michl1-22/+16
Reorder omap_dm_timer_set_source internals to get source verification more straightforward. Signed-off-by: Ladislav Michl <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
2018-02-28clocksource: timer-ti-dm: Make unexported functions staticLadislav Michl1-109/+115
As dmtimer no longer exports functions, make those previously exported static (this requires few functions to be moved around as their prototypes were deleted). Signed-off-by: Ladislav Michl <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
2018-02-22clocksource: timer-ti-dm: Hook device platform data if not already assignedLadislav Michl1-4/+6
In the case of device tree boot the device platform data is usually NULL so hook the platform data obtained from the match. As part of un-constify the platform_data pointer. Signed-off-by: Ladislav Michl <[email protected]> Signed-off-by: Keerthy <[email protected]> Reviewed-by: Sebastian Reichel <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
2018-02-22clocksource: timer-ti-dm: Populate the timer ops to the pdataKeerthy1-0/+25
Add the timer ops to the platform data Signed-off-by: Keerthy <[email protected]> Reviewed-by: Sebastian Reichel <[email protected]> Tested-by: Ladislav Michl <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
2018-02-22ARM: OMAP: Move dmtimer driver out of plat-omap to drivers under clocksourceKeerthy1-0/+973
Move the dmtimer driver out of plat-omap to clocksource. So that non-omap devices also could use this. No Code changes done to the driver file only renamed to timer-ti-dm.c. Also removed the config dependencies for OMAP_DM_TIMER. Signed-off-by: Keerthy <[email protected]> Reviewed-by: Sebastian Reichel <[email protected]> Tested-by: Ladislav Michl <[email protected]> [[email protected]: add select omap_dm_timer for omap16xx] Signed-off-by: Tony Lindgren <[email protected]>