mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 20:36:49 +07:00
1c4c5fe0b7
There are several types of pll clocks used in Samsung SoC's and these pll clocks can be represented as Samsung specific pll clock types and registered with the common clock framework. Add support for pll35xx, pll36xx, pll45xx, pll46xx and pll2550x clock types and helper functions to register them. Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Reviewed-by: Tomasz Figa <t.figa@samsung.com> Tested-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Acked-by: Mike Turquette <mturquette@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
42 lines
1.2 KiB
C
42 lines
1.2 KiB
C
/*
|
|
* Copyright (c) 2013 Samsung Electronics Co., Ltd.
|
|
* Copyright (c) 2013 Linaro Ltd.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* Common Clock Framework support for all PLL's in Samsung platforms
|
|
*/
|
|
|
|
#ifndef __SAMSUNG_CLK_PLL_H
|
|
#define __SAMSUNG_CLK_PLL_H
|
|
|
|
enum pll45xx_type {
|
|
pll_4500,
|
|
pll_4502,
|
|
pll_4508
|
|
};
|
|
|
|
enum pll46xx_type {
|
|
pll_4600,
|
|
pll_4650,
|
|
pll_4650c,
|
|
};
|
|
|
|
extern struct clk * __init samsung_clk_register_pll35xx(const char *name,
|
|
const char *pname, const void __iomem *con_reg);
|
|
extern struct clk * __init samsung_clk_register_pll36xx(const char *name,
|
|
const char *pname, const void __iomem *con_reg);
|
|
extern struct clk * __init samsung_clk_register_pll45xx(const char *name,
|
|
const char *pname, const void __iomem *con_reg,
|
|
enum pll45xx_type type);
|
|
extern struct clk * __init samsung_clk_register_pll46xx(const char *name,
|
|
const char *pname, const void __iomem *con_reg,
|
|
enum pll46xx_type type);
|
|
extern struct clk * __init samsung_clk_register_pll2550x(const char *name,
|
|
const char *pname, const void __iomem *reg_base,
|
|
const unsigned long offset);
|
|
|
|
#endif /* __SAMSUNG_CLK_PLL_H */
|