msm_serial_hs_lite: Add support to vote for BUS scaling

PNOC Bus client is required to vote for BUS Scaling.
In absent of Bus scaling vote from Bus client and PNOC
clock gating is enabled, access to PNOC bus would be
error fatal. Hence it is required to vote for Bus scaling
for PNOC Bus client. BLSP based UART is PNOC bus client.
Hence add support to vote for PNOC bus scaling.

clk_enable_count is used to make decision about when to
vote/reset Bus scaling. Bus scaling is voted before turning
ON UART clock, where as it is reset when turning OFF UART
clock. Bus voting APIs are not refcounted. Hence this
appoach is used.

This change also uses API provided by bus driver to parse
device tree node for vectors.

CRs-Fixed: 446336
Change-Id: I42cec03443e18d8e23cd609830f5630784d9935e
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2 files changed