clk: mmp2: Add support for power islands
Apart from the clocks and resets, the PMU hardware also controls power to peripherals that are on separate power islands. On MMP2, that's the GC860 GPU and the SSPA audio interface, while on MMP3 also the camera interface is on a separate island, along with the pair of GC2000 and GC300 GPUs and the SSPA. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Link: https://lkml.kernel.org/r/20200519224151.2074597-12-lkundrak@v3.sk Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:

committad av
Stephen Boyd

förälder
17d43046fd
incheckning
ee4df23634
@@ -3,6 +3,7 @@
|
||||
#define __MACH_MMP_CLK_H
|
||||
|
||||
#include <linux/clk-provider.h>
|
||||
#include <linux/pm_domain.h>
|
||||
#include <linux/clkdev.h>
|
||||
|
||||
#define APBC_NO_BUS_CTRL BIT(0)
|
||||
@@ -259,4 +260,13 @@ void mmp_clk_init(struct device_node *np, struct mmp_clk_unit *unit,
|
||||
int nr_clks);
|
||||
void mmp_clk_add(struct mmp_clk_unit *unit, unsigned int id,
|
||||
struct clk *clk);
|
||||
|
||||
/* Power islands */
|
||||
#define MMP_PM_DOMAIN_NO_DISABLE BIT(0)
|
||||
|
||||
struct generic_pm_domain *mmp_pm_domain_register(const char *name,
|
||||
void __iomem *reg,
|
||||
u32 power_on, u32 reset, u32 clock_enable,
|
||||
unsigned int flags, spinlock_t *lock);
|
||||
|
||||
#endif
|
||||
|
Referens i nytt ärende
Block a user