clk: mediatek: set CLK_PARENT_XTAL on fixed factor clocks
Explicitly set the CLK_PARENT_XTAL flag for fixed factor clocks. Prior to this, it was assumed that clock ID 0 was CLK_XTAL and other IDs used a different clock tree when no parent was explicitly set. Making the parent explicit will allow us to remove this confusing behavior in the future. Reviewed-by: Julien Stephan <jstephan@baylibre.com> Link: https://patch.msgid.link/20260306-clk-mtk-remove-clk-bypass-xtal-flag-v2-8-b253b49f17b2@baylibre.com Signed-off-by: David Lechner <dlechner@baylibre.com>
This commit is contained in:
@@ -95,7 +95,7 @@ static const struct mtk_gate apmixed_cgs[] = {
|
||||
FACTOR(_id, _parent, _mult, _div, CLK_PARENT_TOPCKGEN)
|
||||
|
||||
#define FACTOR2(_id, _parent, _mult, _div) \
|
||||
FACTOR(_id, _parent, _mult, _div, 0)
|
||||
FACTOR(_id, _parent, _mult, _div, CLK_PARENT_XTAL)
|
||||
|
||||
static const struct mtk_fixed_clk top_fixed_clks[] = {
|
||||
FIXED_CLK0(CLK_TOP_TO_U2_PHY, 31250000),
|
||||
|
||||
@@ -269,7 +269,7 @@ static const int top_id_offs_map[CLK_TOP_NR + 1] = {
|
||||
FACTOR(_id, _parent, _mult, _div, CLK_PARENT_TOPCKGEN)
|
||||
|
||||
#define FACTOR2(_id, _parent, _mult, _div) \
|
||||
FACTOR(_id, _parent, _mult, _div, 0)
|
||||
FACTOR(_id, _parent, _mult, _div, CLK_PARENT_XTAL)
|
||||
|
||||
static const struct mtk_fixed_clk top_fixed_clks[] = {
|
||||
FIXED_CLK0(CLK_TOP_DPI, 108 * MHZ),
|
||||
|
||||
@@ -71,7 +71,7 @@ static const struct mtk_pll_data apmixed_plls[] = {
|
||||
FACTOR(_id, _parent, _mult, _div, CLK_PARENT_TOPCKGEN)
|
||||
|
||||
#define FACTOR2(_id, _parent, _mult, _div) \
|
||||
FACTOR(_id, _parent, _mult, _div, 0)
|
||||
FACTOR(_id, _parent, _mult, _div, CLK_PARENT_XTAL)
|
||||
|
||||
static const struct mtk_fixed_clk top_fixed_clks[] = {
|
||||
FIXED_CLK0(CLK_TOP_TO_U2_PHY, 31250000),
|
||||
|
||||
@@ -69,7 +69,7 @@ static const struct mtk_pll_data apmixed_plls[] = {
|
||||
FACTOR(_id, _parent, _mult, _div, CLK_PARENT_TOPCKGEN)
|
||||
|
||||
#define FACTOR2(_id, _parent, _mult, _div) \
|
||||
FACTOR(_id, _parent, _mult, _div, 0)
|
||||
FACTOR(_id, _parent, _mult, _div, CLK_PARENT_XTAL)
|
||||
|
||||
static const struct mtk_fixed_clk top_fixed_clks[] = {
|
||||
FIXED_CLK0(CLK_TOP_CLK_NULL, 26000000),
|
||||
|
||||
@@ -62,7 +62,7 @@ static const struct mtk_pll_data apmixed_plls[] = {
|
||||
FACTOR(_id, _parent, _mult, _div, CLK_PARENT_TOPCKGEN)
|
||||
|
||||
#define FACTOR2(_id, _parent, _mult, _div) \
|
||||
FACTOR(_id, _parent, _mult, _div, 0)
|
||||
FACTOR(_id, _parent, _mult, _div, CLK_PARENT_XTAL)
|
||||
|
||||
static const struct mtk_fixed_clk top_fixed_clks[] = {
|
||||
FIXED_CLK0(CLK_TOP_CLK_NULL, 26000000),
|
||||
|
||||
@@ -64,7 +64,7 @@ static const struct mtk_pll_data apmixed_plls[] = {
|
||||
FACTOR(_id, _parent, _mult, _div, CLK_PARENT_TOPCKGEN)
|
||||
|
||||
#define FACTOR2(_id, _parent, _mult, _div) \
|
||||
FACTOR(_id, _parent, _mult, _div, 0)
|
||||
FACTOR(_id, _parent, _mult, _div, CLK_PARENT_XTAL)
|
||||
|
||||
static const struct mtk_fixed_clk top_fixed_clks[] = {
|
||||
FIXED_CLK0(CLK_TOP_CLK_NULL, 26000000),
|
||||
|
||||
Reference in New Issue
Block a user