clk: Hi6220: add stub clock driver
authorLeo Yan <leo.yan@linaro.org>
Tue, 4 Aug 2015 07:27:28 +0000 (15:27 +0800)
committerMichael Turquette <mturquette@baylibre.com>
Mon, 24 Aug 2015 23:49:10 +0000 (16:49 -0700)
commitc1628a2c416da947f5afac615d53189250fa49cb
tree1d7c5bea6d920415b59b5ddf2e89b5eef749236a
parent832446e8aaaeaf9365da18f95f01a42e6da27279
clk: Hi6220: add stub clock driver

On Hi6220, there have some clocks which can use mailbox channel to send
messages to power controller to change frequency; this includes CPU, GPU
and DDR clocks.

For dynamic frequency scaling, firstly need write the frequency value to
SRAM region, and then send message to mailbox to trigger power controller
to handle this requirement. This driver will use syscon APIs to pass SRAM
memory region and use common mailbox APIs for channels accessing.

This init driver will support cpu frequency change firstly.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/hisilicon/Kconfig
drivers/clk/hisilicon/Makefile
drivers/clk/hisilicon/clk-hi6220-stub.c [new file with mode: 0644]