OSDN Git Service

bus: ti-sysc: Add separate functions for handling clocks
authorTony Lindgren <tony@atomide.com>
Thu, 21 Mar 2019 18:00:21 +0000 (11:00 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 1 Apr 2019 14:59:28 +0000 (07:59 -0700)
commitd878970f6ce127a0b5288e1ef20fbbbff7676792
treede048d80029b8fcdb5de7dcd29d9d8c74a9328cd
parentff43728c4aa29c139fdc6c9be30e4cae4d2b7339
bus: ti-sysc: Add separate functions for handling clocks

At least McPDM module depends on an external optional clock to be
usable. To make handling of the McPDM clock easier in the following
patches, let's add separate functions for handling the main clocks
and the optional clocks.

Let's also add error handling to shut down already enabled clocks
while at it.

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c