From nobody Mon Feb 9 21:18:52 2026 Received: from mail.thorsis.com (mail.thorsis.com [217.92.40.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F7693612CD; Tue, 20 Jan 2026 14:38:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.92.40.78 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768919923; cv=none; b=EN4bHfd0//7iVdSTabDx1sXm7lrZ1cjTifZbZS14E+hpnBVWFTCGxOdwzRd9/N6QHEidK8B5JzUQ831lfmmKIxkLWL7ej0PclP3ZsCRIr5qjDlkSPYAxukYE5V8vef04mD0geo6QmnXbbzQb51aMe2WdxNw3Sjv1GDzO6vrJiMA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768919923; c=relaxed/simple; bh=2YnDRToDKS+WUBaJqXclpkrTeAbNADVshh7vxcEOFvo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CVvhO8UuLR19VNAgAIHO9vmsRStQq7QJgchj8RRPC5Oc3lLcJbAuKVf0soDDXR3CwslA3Kuesnim/anye9aA2Gt6CgsR1nvE1j/K5b5OskpgHcikMvffBbBo/47PIneHDp+MzqgxrScaJg/SWsBMAYQZTrbGEYp5IHvYkcsqlds= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=thorsis.com; spf=pass smtp.mailfrom=thorsis.com; dkim=pass (2048-bit key) header.d=thorsis.com header.i=@thorsis.com header.b=BabQEu/P; arc=none smtp.client-ip=217.92.40.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=thorsis.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=thorsis.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=thorsis.com header.i=@thorsis.com header.b="BabQEu/P" Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id CB3D1148AD45; Tue, 20 Jan 2026 15:38:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=dkim; t=1768919917; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=Gs7UUBCr88HTtQnY8uC3b4ZM8uaaIy30jyMS9SVxfK8=; b=BabQEu/PuiKF7w3NBqhKL0w1Uzi5kLIrtnmbxbViw2JagpNz6xC7Vf9m228yqzjoJAx4RL vU8zTAkIyjCTosu2zGp/aO9hfaCSZ0yXm86/wEL+bYWsIlMWLBhf9qIZXKCt3CtEghiTxi /xQAlpa/jKoImB4QwO+3iowlT8Bmh93EjhNgKN31PPzkluQ1ysK592nk1CE0mFAZpgNua0 m660XfRhLn7CB+3kCOYddz69Jjm78+2cLtqJpCSZMQOzOMOeEyEJRNhfjMHSIs1vhliTOl diiiY2KRRSy54EM11CHHwlLfLCN4kwgknqwskZgf3bt092pBqefMz+bMuRq7BQ== From: Alexander Dahl To: Claudiu Beznea Cc: Nicolas Ferre , Alexandre Belloni , Ryan Wanner , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Michael Turquette , Stephen Boyd , Cristian Birsan , Varshini Rajendran , Balamanikandan Gunasundar Subject: [PATCH v3 04/19] clk: at91: Use new PMC bindings Date: Tue, 20 Jan 2026 15:37:25 +0100 Message-ID: <20260120143759.904013-5-ada@thorsis.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260120143759.904013-1-ada@thorsis.com> References: <20260120143759.904013-1-ada@thorsis.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Content-Type: text/plain; charset="utf-8" The bindings were split up per SoC before adding new array members for missing clocks. Signed-off-by: Alexander Dahl --- Notes: v3: - extend to all SoC specific at91 clk drivers =20 v2: - new patch, not present in v1 drivers/clk/at91/at91rm9200.c | 12 +++++------ drivers/clk/at91/at91sam9260.c | 14 ++++++------- drivers/clk/at91/at91sam9g45.c | 12 +++++------ drivers/clk/at91/at91sam9n12.c | 12 +++++------ drivers/clk/at91/at91sam9rl.c | 12 +++++------ drivers/clk/at91/at91sam9x5.c | 12 +++++------ drivers/clk/at91/sam9x60.c | 14 ++++++------- drivers/clk/at91/sam9x7.c | 22 ++++++++++---------- drivers/clk/at91/sama5d2.c | 22 ++++++++++---------- drivers/clk/at91/sama5d3.c | 10 ++++----- drivers/clk/at91/sama5d4.c | 12 +++++------ drivers/clk/at91/sama7d65.c | 38 +++++++++++++++++----------------- drivers/clk/at91/sama7g5.c | 28 ++++++++++++------------- 13 files changed, 110 insertions(+), 110 deletions(-) diff --git a/drivers/clk/at91/at91rm9200.c b/drivers/clk/at91/at91rm9200.c index 3f19e737ae4d2..6f5c758ab3ec6 100644 --- a/drivers/clk/at91/at91rm9200.c +++ b/drivers/clk/at91/at91rm9200.c @@ -3,7 +3,7 @@ #include #include =20 -#include +#include =20 #include "pmc.h" =20 @@ -100,7 +100,7 @@ static void __init at91rm9200_pmc_setup(struct device_n= ode *np) if (IS_ERR(regmap)) return; =20 - at91rm9200_pmc =3D pmc_data_allocate(PMC_PLLBCK + 1, + at91rm9200_pmc =3D pmc_data_allocate(AT91RM9200_PMC_PLLBCK + 1, nck(at91rm9200_systemck), nck(at91rm9200_periphck), 0, 4); if (!at91rm9200_pmc) @@ -117,7 +117,7 @@ static void __init at91rm9200_pmc_setup(struct device_n= ode *np) if (IS_ERR(hw)) goto err_free; =20 - at91rm9200_pmc->chws[PMC_MAIN] =3D hw; + at91rm9200_pmc->chws[AT91RM9200_PMC_MAIN] =3D hw; =20 hw =3D at91_clk_register_pll(regmap, "pllack", "mainck", 0, &at91rm9200_pll_layout, @@ -125,7 +125,7 @@ static void __init at91rm9200_pmc_setup(struct device_n= ode *np) if (IS_ERR(hw)) goto err_free; =20 - at91rm9200_pmc->chws[PMC_PLLACK] =3D hw; + at91rm9200_pmc->chws[AT91RM9200_PMC_PLLACK] =3D hw; =20 hw =3D at91_clk_register_pll(regmap, "pllbck", "mainck", 1, &at91rm9200_pll_layout, @@ -133,7 +133,7 @@ static void __init at91rm9200_pmc_setup(struct device_n= ode *np) if (IS_ERR(hw)) goto err_free; =20 - at91rm9200_pmc->chws[PMC_PLLBCK] =3D hw; + at91rm9200_pmc->chws[AT91RM9200_PMC_PLLBCK] =3D hw; =20 parent_names[0] =3D slowxtal_name; parent_names[1] =3D "mainck"; @@ -155,7 +155,7 @@ static void __init at91rm9200_pmc_setup(struct device_n= ode *np) if (IS_ERR(hw)) goto err_free; =20 - at91rm9200_pmc->chws[PMC_MCK] =3D hw; + at91rm9200_pmc->chws[AT91RM9200_PMC_MCK] =3D hw; =20 hw =3D at91rm9200_clk_register_usb(regmap, "usbck", "pllbck", usb_div); if (IS_ERR(hw)) diff --git a/drivers/clk/at91/at91sam9260.c b/drivers/clk/at91/at91sam9260.c index 0799a13060ea4..492114c13e40d 100644 --- a/drivers/clk/at91/at91sam9260.c +++ b/drivers/clk/at91/at91sam9260.c @@ -3,7 +3,7 @@ #include #include =20 -#include +#include =20 #include "pmc.h" =20 @@ -354,7 +354,7 @@ static void __init at91sam926x_pmc_setup(struct device_= node *np, if (IS_ERR(regmap)) return; =20 - at91sam9260_pmc =3D pmc_data_allocate(PMC_PLLBCK + 1, + at91sam9260_pmc =3D pmc_data_allocate(AT91SAM9260_PMC_PLLBCK + 1, ndck(data->sck, data->num_sck), ndck(data->pck, data->num_pck), 0, data->num_progck); @@ -372,7 +372,7 @@ static void __init at91sam926x_pmc_setup(struct device_= node *np, if (IS_ERR(hw)) goto err_free; =20 - at91sam9260_pmc->chws[PMC_MAIN] =3D hw; + at91sam9260_pmc->chws[AT91SAM9260_PMC_MAIN] =3D hw; =20 if (data->has_slck) { hw =3D clk_hw_register_fixed_rate_with_accuracy(NULL, @@ -389,7 +389,7 @@ static void __init at91sam926x_pmc_setup(struct device_= node *np, if (IS_ERR(hw)) goto err_free; =20 - at91sam9260_pmc->chws[PMC_SLOW] =3D hw; + at91sam9260_pmc->chws[AT91SAM9260_PMC_SLOW] =3D hw; slck_name =3D "slck"; } else { slck_name =3D slowxtal_name; @@ -401,7 +401,7 @@ static void __init at91sam926x_pmc_setup(struct device_= node *np, if (IS_ERR(hw)) goto err_free; =20 - at91sam9260_pmc->chws[PMC_PLLACK] =3D hw; + at91sam9260_pmc->chws[AT91SAM9260_PMC_PLLACK] =3D hw; =20 hw =3D at91_clk_register_pll(regmap, "pllbck", "mainck", 1, data->pllb_layout, @@ -409,7 +409,7 @@ static void __init at91sam926x_pmc_setup(struct device_= node *np, if (IS_ERR(hw)) goto err_free; =20 - at91sam9260_pmc->chws[PMC_PLLBCK] =3D hw; + at91sam9260_pmc->chws[AT91SAM9260_PMC_PLLBCK] =3D hw; =20 parent_names[0] =3D slck_name; parent_names[1] =3D "mainck"; @@ -432,7 +432,7 @@ static void __init at91sam926x_pmc_setup(struct device_= node *np, if (IS_ERR(hw)) goto err_free; =20 - at91sam9260_pmc->chws[PMC_MCK] =3D hw; + at91sam9260_pmc->chws[AT91SAM9260_PMC_MCK] =3D hw; =20 hw =3D at91rm9200_clk_register_usb(regmap, "usbck", "pllbck", usb_div); if (IS_ERR(hw)) diff --git a/drivers/clk/at91/at91sam9g45.c b/drivers/clk/at91/at91sam9g45.c index f45a7b80f7d8b..f41bbff76a541 100644 --- a/drivers/clk/at91/at91sam9g45.c +++ b/drivers/clk/at91/at91sam9g45.c @@ -3,7 +3,7 @@ #include #include =20 -#include +#include =20 #include "pmc.h" =20 @@ -115,7 +115,7 @@ static void __init at91sam9g45_pmc_setup(struct device_= node *np) if (IS_ERR(regmap)) return; =20 - at91sam9g45_pmc =3D pmc_data_allocate(PMC_PLLACK + 1, + at91sam9g45_pmc =3D pmc_data_allocate(AT91SAM9G45_PMC_PLLACK + 1, nck(at91sam9g45_systemck), nck(at91sam9g45_periphck), 0, 2); if (!at91sam9g45_pmc) @@ -132,7 +132,7 @@ static void __init at91sam9g45_pmc_setup(struct device_= node *np) if (IS_ERR(hw)) goto err_free; =20 - at91sam9g45_pmc->chws[PMC_MAIN] =3D hw; + at91sam9g45_pmc->chws[AT91SAM9G45_PMC_MAIN] =3D hw; =20 hw =3D at91_clk_register_pll(regmap, "pllack", "mainck", 0, &at91rm9200_pll_layout, &plla_characteristics); @@ -143,13 +143,13 @@ static void __init at91sam9g45_pmc_setup(struct devic= e_node *np) if (IS_ERR(hw)) goto err_free; =20 - at91sam9g45_pmc->chws[PMC_PLLACK] =3D hw; + at91sam9g45_pmc->chws[AT91SAM9G45_PMC_PLLACK] =3D hw; =20 hw =3D at91_clk_register_utmi(regmap, NULL, "utmick", "mainck", NULL); if (IS_ERR(hw)) goto err_free; =20 - at91sam9g45_pmc->chws[PMC_UTMI] =3D hw; + at91sam9g45_pmc->chws[AT91SAM9G45_PMC_UTMI] =3D hw; =20 parent_names[0] =3D slck_name; parent_names[1] =3D "mainck"; @@ -172,7 +172,7 @@ static void __init at91sam9g45_pmc_setup(struct device_= node *np) if (IS_ERR(hw)) goto err_free; =20 - at91sam9g45_pmc->chws[PMC_MCK] =3D hw; + at91sam9g45_pmc->chws[AT91SAM9G45_PMC_MCK] =3D hw; =20 parent_names[0] =3D "plladivck"; parent_names[1] =3D "utmick"; diff --git a/drivers/clk/at91/at91sam9n12.c b/drivers/clk/at91/at91sam9n12.c index 751786184ae2b..f6210fac26f39 100644 --- a/drivers/clk/at91/at91sam9n12.c +++ b/drivers/clk/at91/at91sam9n12.c @@ -3,7 +3,7 @@ #include #include =20 -#include +#include =20 #include "pmc.h" =20 @@ -135,7 +135,7 @@ static void __init at91sam9n12_pmc_setup(struct device_= node *np) if (IS_ERR(regmap)) return; =20 - at91sam9n12_pmc =3D pmc_data_allocate(PMC_PLLBCK + 1, + at91sam9n12_pmc =3D pmc_data_allocate(AT91SAM9N12_PMC_PLLBCK + 1, nck(at91sam9n12_systemck), 31, 0, 2); if (!at91sam9n12_pmc) return; @@ -158,7 +158,7 @@ static void __init at91sam9n12_pmc_setup(struct device_= node *np) if (IS_ERR(hw)) goto err_free; =20 - at91sam9n12_pmc->chws[PMC_MAIN] =3D hw; + at91sam9n12_pmc->chws[AT91SAM9N12_PMC_MAIN] =3D hw; =20 hw =3D at91_clk_register_pll(regmap, "pllack", "mainck", 0, &at91rm9200_pll_layout, &plla_characteristics); @@ -169,14 +169,14 @@ static void __init at91sam9n12_pmc_setup(struct devic= e_node *np) if (IS_ERR(hw)) goto err_free; =20 - at91sam9n12_pmc->chws[PMC_PLLACK] =3D hw; + at91sam9n12_pmc->chws[AT91SAM9N12_PMC_PLLACK] =3D hw; =20 hw =3D at91_clk_register_pll(regmap, "pllbck", "mainck", 1, &at91rm9200_pll_layout, &pllb_characteristics); if (IS_ERR(hw)) goto err_free; =20 - at91sam9n12_pmc->chws[PMC_PLLBCK] =3D hw; + at91sam9n12_pmc->chws[AT91SAM9N12_PMC_PLLBCK] =3D hw; =20 parent_names[0] =3D slck_name; parent_names[1] =3D "mainck"; @@ -199,7 +199,7 @@ static void __init at91sam9n12_pmc_setup(struct device_= node *np) if (IS_ERR(hw)) goto err_free; =20 - at91sam9n12_pmc->chws[PMC_MCK] =3D hw; + at91sam9n12_pmc->chws[AT91SAM9N12_PMC_MCK] =3D hw; =20 hw =3D at91sam9n12_clk_register_usb(regmap, "usbck", "pllbck"); if (IS_ERR(hw)) diff --git a/drivers/clk/at91/at91sam9rl.c b/drivers/clk/at91/at91sam9rl.c index 969f809e7d65a..4664e4afc69cf 100644 --- a/drivers/clk/at91/at91sam9rl.c +++ b/drivers/clk/at91/at91sam9rl.c @@ -3,7 +3,7 @@ #include #include =20 -#include +#include =20 #include "pmc.h" =20 @@ -89,7 +89,7 @@ static void __init at91sam9rl_pmc_setup(struct device_nod= e *np) if (IS_ERR(regmap)) return; =20 - at91sam9rl_pmc =3D pmc_data_allocate(PMC_PLLACK + 1, + at91sam9rl_pmc =3D pmc_data_allocate(AT91SAM9RL_PMC_PLLACK + 1, nck(at91sam9rl_systemck), nck(at91sam9rl_periphck), 0, 2); if (!at91sam9rl_pmc) @@ -99,7 +99,7 @@ static void __init at91sam9rl_pmc_setup(struct device_nod= e *np) if (IS_ERR(hw)) goto err_free; =20 - at91sam9rl_pmc->chws[PMC_MAIN] =3D hw; + at91sam9rl_pmc->chws[AT91SAM9RL_PMC_MAIN] =3D hw; =20 hw =3D at91_clk_register_pll(regmap, "pllack", "mainck", 0, &at91rm9200_pll_layout, @@ -107,13 +107,13 @@ static void __init at91sam9rl_pmc_setup(struct device= _node *np) if (IS_ERR(hw)) goto err_free; =20 - at91sam9rl_pmc->chws[PMC_PLLACK] =3D hw; + at91sam9rl_pmc->chws[AT91SAM9RL_PMC_PLLACK] =3D hw; =20 hw =3D at91_clk_register_utmi(regmap, NULL, "utmick", "mainck", NULL); if (IS_ERR(hw)) goto err_free; =20 - at91sam9rl_pmc->chws[PMC_UTMI] =3D hw; + at91sam9rl_pmc->chws[AT91SAM9RL_PMC_UTMI] =3D hw; =20 parent_names[0] =3D slck_name; parent_names[1] =3D "mainck"; @@ -135,7 +135,7 @@ static void __init at91sam9rl_pmc_setup(struct device_n= ode *np) if (IS_ERR(hw)) goto err_free; =20 - at91sam9rl_pmc->chws[PMC_MCK] =3D hw; + at91sam9rl_pmc->chws[AT91SAM9RL_PMC_MCK] =3D hw; =20 parent_names[0] =3D slck_name; parent_names[1] =3D "mainck"; diff --git a/drivers/clk/at91/at91sam9x5.c b/drivers/clk/at91/at91sam9x5.c index 3b801d12fac0d..501315934965e 100644 --- a/drivers/clk/at91/at91sam9x5.c +++ b/drivers/clk/at91/at91sam9x5.c @@ -3,7 +3,7 @@ #include #include =20 -#include +#include =20 #include "pmc.h" =20 @@ -157,7 +157,7 @@ static void __init at91sam9x5_pmc_setup(struct device_n= ode *np, if (IS_ERR(regmap)) return; =20 - at91sam9x5_pmc =3D pmc_data_allocate(PMC_PLLACK + 1, + at91sam9x5_pmc =3D pmc_data_allocate(AT91SAM9X5_PMC_PLLACK + 1, nck(at91sam9x5_systemck), 31, 0, 2); if (!at91sam9x5_pmc) return; @@ -180,7 +180,7 @@ static void __init at91sam9x5_pmc_setup(struct device_n= ode *np, if (IS_ERR(hw)) goto err_free; =20 - at91sam9x5_pmc->chws[PMC_MAIN] =3D hw; + at91sam9x5_pmc->chws[AT91SAM9X5_PMC_MAIN] =3D hw; =20 hw =3D at91_clk_register_pll(regmap, "pllack", "mainck", 0, &at91rm9200_pll_layout, &plla_characteristics); @@ -191,13 +191,13 @@ static void __init at91sam9x5_pmc_setup(struct device= _node *np, if (IS_ERR(hw)) goto err_free; =20 - at91sam9x5_pmc->chws[PMC_PLLACK] =3D hw; + at91sam9x5_pmc->chws[AT91SAM9X5_PMC_PLLACK] =3D hw; =20 hw =3D at91_clk_register_utmi(regmap, NULL, "utmick", "mainck", NULL); if (IS_ERR(hw)) goto err_free; =20 - at91sam9x5_pmc->chws[PMC_UTMI] =3D hw; + at91sam9x5_pmc->chws[AT91SAM9X5_PMC_UTMI] =3D hw; =20 parent_names[0] =3D slck_name; parent_names[1] =3D "mainck"; @@ -218,7 +218,7 @@ static void __init at91sam9x5_pmc_setup(struct device_n= ode *np, if (IS_ERR(hw)) goto err_free; =20 - at91sam9x5_pmc->chws[PMC_MCK] =3D hw; + at91sam9x5_pmc->chws[AT91SAM9X5_PMC_MCK] =3D hw; =20 parent_names[0] =3D "plladivck"; parent_names[1] =3D "utmick"; diff --git a/drivers/clk/at91/sam9x60.c b/drivers/clk/at91/sam9x60.c index 18baf4a256f47..dbcdb1d2161a9 100644 --- a/drivers/clk/at91/sam9x60.c +++ b/drivers/clk/at91/sam9x60.c @@ -3,7 +3,7 @@ #include #include =20 -#include +#include =20 #include "pmc.h" =20 @@ -216,7 +216,7 @@ static void __init sam9x60_pmc_setup(struct device_node= *np) if (IS_ERR(regmap)) return; =20 - sam9x60_pmc =3D pmc_data_allocate(PMC_PLLACK + 1, + sam9x60_pmc =3D pmc_data_allocate(SAM9X60_PMC_PLLACK + 1, nck(sam9x60_systemck), nck(sam9x60_periphck), nck(sam9x60_gck), 8); @@ -239,10 +239,10 @@ static void __init sam9x60_pmc_setup(struct device_no= de *np) if (IS_ERR(hw)) goto err_free; =20 - sam9x60_pmc->chws[PMC_MAIN] =3D hw; + sam9x60_pmc->chws[SAM9X60_PMC_MAIN] =3D hw; =20 hw =3D sam9x60_clk_register_frac_pll(regmap, &pmc_pll_lock, "pllack_fracc= k", - "mainck", sam9x60_pmc->chws[PMC_MAIN], + "mainck", sam9x60_pmc->chws[SAM9X60_PMC_MAIN], 0, &plla_characteristics, &pll_frac_layout, /* @@ -265,7 +265,7 @@ static void __init sam9x60_pmc_setup(struct device_node= *np) if (IS_ERR(hw)) goto err_free; =20 - sam9x60_pmc->chws[PMC_PLLACK] =3D hw; + sam9x60_pmc->chws[SAM9X60_PMC_PLLACK] =3D hw; =20 hw =3D sam9x60_clk_register_frac_pll(regmap, &pmc_pll_lock, "upllck_fracc= k", "main_osc", main_osc_hw, 1, @@ -283,7 +283,7 @@ static void __init sam9x60_pmc_setup(struct device_node= *np) if (IS_ERR(hw)) goto err_free; =20 - sam9x60_pmc->chws[PMC_UTMI] =3D hw; + sam9x60_pmc->chws[SAM9X60_PMC_UTMI] =3D hw; =20 parent_names[0] =3D md_slck_name; parent_names[1] =3D "mainck"; @@ -301,7 +301,7 @@ static void __init sam9x60_pmc_setup(struct device_node= *np) if (IS_ERR(hw)) goto err_free; =20 - sam9x60_pmc->chws[PMC_MCK] =3D hw; + sam9x60_pmc->chws[SAM9X60_PMC_MCK] =3D hw; =20 parent_names[0] =3D "pllack_divck"; parent_names[1] =3D "upllck_divck"; diff --git a/drivers/clk/at91/sam9x7.c b/drivers/clk/at91/sam9x7.c index 89868a0aeaba9..07eadb712a1e4 100644 --- a/drivers/clk/at91/sam9x7.c +++ b/drivers/clk/at91/sam9x7.c @@ -12,7 +12,7 @@ #include #include =20 -#include +#include =20 #include "pmc.h" =20 @@ -225,7 +225,7 @@ static const struct { .t =3D PLL_TYPE_DIV, /* This feeds CPU. It should not be disabled */ .f =3D CLK_IS_CRITICAL | CLK_SET_RATE_GATE, - .eid =3D PMC_PLLACK, + .eid =3D SAM9X7_PMC_PLLACK, .c =3D &plla_characteristics, }, }, @@ -247,7 +247,7 @@ static const struct { .t =3D PLL_TYPE_DIV, .f =3D CLK_SET_RATE_GATE | CLK_SET_PARENT_GATE | CLK_SET_RATE_PARENT, - .eid =3D PMC_UTMI, + .eid =3D SAM9X7_PMC_UTMI, .c =3D &upll_characteristics, }, }, @@ -269,7 +269,7 @@ static const struct { .f =3D CLK_SET_RATE_GATE | CLK_SET_PARENT_GATE | CLK_SET_RATE_PARENT, .c =3D &audiopll_characteristics, - .eid =3D PMC_AUDIOPMCPLL, + .eid =3D SAM9X7_PMC_AUDIOPMCPLL, .t =3D PLL_TYPE_DIV, }, =20 @@ -280,7 +280,7 @@ static const struct { .f =3D CLK_SET_RATE_GATE | CLK_SET_PARENT_GATE | CLK_SET_RATE_PARENT, .c =3D &audiopll_characteristics, - .eid =3D PMC_AUDIOIOPLL, + .eid =3D SAM9X7_PMC_AUDIOIOPLL, .t =3D PLL_TYPE_DIV, }, }, @@ -302,7 +302,7 @@ static const struct { .f =3D CLK_SET_RATE_GATE | CLK_SET_PARENT_GATE | CLK_SET_RATE_PARENT, .c =3D &lvdspll_characteristics, - .eid =3D PMC_LVDSPLL, + .eid =3D SAM9X7_PMC_LVDSPLL, .t =3D PLL_TYPE_DIV, }, }, @@ -318,7 +318,7 @@ static const struct { */ .f =3D CLK_IS_CRITICAL | CLK_SET_RATE_GATE, .c =3D &plladiv2_characteristics, - .eid =3D PMC_PLLADIV2, + .eid =3D SAM9X7_PMC_PLLADIV2, .t =3D PLL_TYPE_DIV, }, }, @@ -747,7 +747,7 @@ static void __init sam9x7_pmc_setup(struct device_node = *np) if (IS_ERR(regmap)) return; =20 - sam9x7_pmc =3D pmc_data_allocate(PMC_LVDSPLL + 1, + sam9x7_pmc =3D pmc_data_allocate(SAM9X7_PMC_LVDSPLL + 1, nck(sam9x7_systemck), nck(sam9x7_periphck), nck(sam9x7_gck), 8); @@ -776,7 +776,7 @@ static void __init sam9x7_pmc_setup(struct device_node = *np) if (IS_ERR(hw)) goto err_free; =20 - sam9x7_pmc->chws[PMC_MAIN] =3D hw; + sam9x7_pmc->chws[SAM9X7_PMC_MAIN] =3D hw; =20 for (i =3D 0; i < PLL_ID_MAX; i++) { for (j =3D 0; j < 3; j++) { @@ -788,7 +788,7 @@ static void __init sam9x7_pmc_setup(struct device_node = *np) switch (sam9x7_plls[i][j].t) { case PLL_TYPE_FRAC: if (!strcmp(sam9x7_plls[i][j].p, "mainck")) - parent_hw =3D sam9x7_pmc->chws[PMC_MAIN]; + parent_hw =3D sam9x7_pmc->chws[SAM9X7_PMC_MAIN]; else if (!strcmp(sam9x7_plls[i][j].p, "main_osc")) parent_hw =3D main_osc_hw; else @@ -844,7 +844,7 @@ static void __init sam9x7_pmc_setup(struct device_node = *np) if (IS_ERR(hw)) goto err_free; =20 - sam9x7_pmc->chws[PMC_MCK] =3D hw; + sam9x7_pmc->chws[SAM9X7_PMC_MCK] =3D hw; =20 parent_names[0] =3D "plla_divpmcck"; parent_names[1] =3D "upll_divpmcck"; diff --git a/drivers/clk/at91/sama5d2.c b/drivers/clk/at91/sama5d2.c index c16594fce90c9..b7f40c9302a21 100644 --- a/drivers/clk/at91/sama5d2.c +++ b/drivers/clk/at91/sama5d2.c @@ -3,7 +3,7 @@ #include #include =20 -#include +#include =20 #include "pmc.h" =20 @@ -188,7 +188,7 @@ static void __init sama5d2_pmc_setup(struct device_node= *np) if (IS_ERR(regmap)) return; =20 - sama5d2_pmc =3D pmc_data_allocate(PMC_AUDIOPINCK + 1, + sama5d2_pmc =3D pmc_data_allocate(SAMA5D2_PMC_AUDIOPINCK + 1, nck(sama5d2_systemck), nck(sama5d2_periph32ck), nck(sama5d2_gck), 3); @@ -213,7 +213,7 @@ static void __init sama5d2_pmc_setup(struct device_node= *np) if (IS_ERR(hw)) goto err_free; =20 - sama5d2_pmc->chws[PMC_MAIN] =3D hw; + sama5d2_pmc->chws[SAMA5D2_PMC_MAIN] =3D hw; =20 hw =3D at91_clk_register_pll(regmap, "pllack", "mainck", 0, &sama5d3_pll_layout, &plla_characteristics); @@ -224,7 +224,7 @@ static void __init sama5d2_pmc_setup(struct device_node= *np) if (IS_ERR(hw)) goto err_free; =20 - sama5d2_pmc->chws[PMC_PLLACK] =3D hw; + sama5d2_pmc->chws[SAMA5D2_PMC_PLLACK] =3D hw; =20 hw =3D at91_clk_register_audio_pll_frac(regmap, "audiopll_fracck", "mainck"); @@ -236,14 +236,14 @@ static void __init sama5d2_pmc_setup(struct device_no= de *np) if (IS_ERR(hw)) goto err_free; =20 - sama5d2_pmc->chws[PMC_AUDIOPINCK] =3D hw; + sama5d2_pmc->chws[SAMA5D2_PMC_AUDIOPINCK] =3D hw; =20 hw =3D at91_clk_register_audio_pll_pmc(regmap, "audiopll_pmcck", "audiopll_fracck"); if (IS_ERR(hw)) goto err_free; =20 - sama5d2_pmc->chws[PMC_AUDIOPLLCK] =3D hw; + sama5d2_pmc->chws[SAMA5D2_PMC_AUDIOPLLCK] =3D hw; =20 regmap_sfr =3D syscon_regmap_lookup_by_compatible("atmel,sama5d2-sfr"); if (IS_ERR(regmap_sfr)) @@ -253,7 +253,7 @@ static void __init sama5d2_pmc_setup(struct device_node= *np) if (IS_ERR(hw)) goto err_free; =20 - sama5d2_pmc->chws[PMC_UTMI] =3D hw; + sama5d2_pmc->chws[SAMA5D2_PMC_UTMI] =3D hw; =20 parent_names[0] =3D slck_name; parent_names[1] =3D "mainck"; @@ -274,13 +274,13 @@ static void __init sama5d2_pmc_setup(struct device_no= de *np) if (IS_ERR(hw)) goto err_free; =20 - sama5d2_pmc->chws[PMC_MCK] =3D hw; + sama5d2_pmc->chws[SAMA5D2_PMC_MCK] =3D hw; =20 hw =3D at91_clk_register_h32mx(regmap, "h32mxck", "masterck_div"); if (IS_ERR(hw)) goto err_free; =20 - sama5d2_pmc->chws[PMC_MCK2] =3D hw; + sama5d2_pmc->chws[SAMA5D2_PMC_MCK2] =3D hw; =20 parent_names[0] =3D "plladivck"; parent_names[1] =3D "utmick"; @@ -376,7 +376,7 @@ static void __init sama5d2_pmc_setup(struct device_node= *np) if (IS_ERR(hw)) goto err_free; =20 - sama5d2_pmc->chws[PMC_I2S0_MUX] =3D hw; + sama5d2_pmc->chws[SAMA5D2_PMC_I2S0_MUX] =3D hw; =20 parent_names[0] =3D "i2s1_clk"; parent_names[1] =3D "i2s1_gclk"; @@ -385,7 +385,7 @@ static void __init sama5d2_pmc_setup(struct device_node= *np) if (IS_ERR(hw)) goto err_free; =20 - sama5d2_pmc->chws[PMC_I2S1_MUX] =3D hw; + sama5d2_pmc->chws[SAMA5D2_PMC_I2S1_MUX] =3D hw; } =20 of_clk_add_hw_provider(np, of_clk_hw_pmc_get, sama5d2_pmc); diff --git a/drivers/clk/at91/sama5d3.c b/drivers/clk/at91/sama5d3.c index 522ce60314464..4b1e160db09af 100644 --- a/drivers/clk/at91/sama5d3.c +++ b/drivers/clk/at91/sama5d3.c @@ -3,7 +3,7 @@ #include #include =20 -#include +#include =20 #include "pmc.h" =20 @@ -137,7 +137,7 @@ static void __init sama5d3_pmc_setup(struct device_node= *np) if (IS_ERR(regmap)) return; =20 - sama5d3_pmc =3D pmc_data_allocate(PMC_PLLACK + 1, + sama5d3_pmc =3D pmc_data_allocate(SAMA5D3_PMC_PLLACK + 1, nck(sama5d3_systemck), nck(sama5d3_periphck), 0, 3); if (!sama5d3_pmc) @@ -170,13 +170,13 @@ static void __init sama5d3_pmc_setup(struct device_no= de *np) if (IS_ERR(hw)) goto err_free; =20 - sama5d3_pmc->chws[PMC_PLLACK] =3D hw; + sama5d3_pmc->chws[SAMA5D3_PMC_PLLACK] =3D hw; =20 hw =3D at91_clk_register_utmi(regmap, NULL, "utmick", "mainck", NULL); if (IS_ERR(hw)) goto err_free; =20 - sama5d3_pmc->chws[PMC_UTMI] =3D hw; + sama5d3_pmc->chws[SAMA5D3_PMC_UTMI] =3D hw; =20 parent_names[0] =3D slck_name; parent_names[1] =3D "mainck"; @@ -197,7 +197,7 @@ static void __init sama5d3_pmc_setup(struct device_node= *np) if (IS_ERR(hw)) goto err_free; =20 - sama5d3_pmc->chws[PMC_MCK] =3D hw; + sama5d3_pmc->chws[SAMA5D3_PMC_MCK] =3D hw; =20 parent_names[0] =3D "plladivck"; parent_names[1] =3D "utmick"; diff --git a/drivers/clk/at91/sama5d4.c b/drivers/clk/at91/sama5d4.c index 160c0bddb6a3b..d164b5dff7185 100644 --- a/drivers/clk/at91/sama5d4.c +++ b/drivers/clk/at91/sama5d4.c @@ -3,7 +3,7 @@ #include #include =20 -#include +#include =20 #include "pmc.h" =20 @@ -152,7 +152,7 @@ static void __init sama5d4_pmc_setup(struct device_node= *np) if (IS_ERR(regmap)) return; =20 - sama5d4_pmc =3D pmc_data_allocate(PMC_PLLACK + 1, + sama5d4_pmc =3D pmc_data_allocate(SAMA5D4_PMC_PLLACK + 1, nck(sama5d4_systemck), nck(sama5d4_periph32ck), 0, 3); if (!sama5d4_pmc) @@ -185,13 +185,13 @@ static void __init sama5d4_pmc_setup(struct device_no= de *np) if (IS_ERR(hw)) goto err_free; =20 - sama5d4_pmc->chws[PMC_PLLACK] =3D hw; + sama5d4_pmc->chws[SAMA5D4_PMC_PLLACK] =3D hw; =20 hw =3D at91_clk_register_utmi(regmap, NULL, "utmick", "mainck", NULL); if (IS_ERR(hw)) goto err_free; =20 - sama5d4_pmc->chws[PMC_UTMI] =3D hw; + sama5d4_pmc->chws[SAMA5D4_PMC_UTMI] =3D hw; =20 parent_names[0] =3D slck_name; parent_names[1] =3D "mainck"; @@ -212,13 +212,13 @@ static void __init sama5d4_pmc_setup(struct device_no= de *np) if (IS_ERR(hw)) goto err_free; =20 - sama5d4_pmc->chws[PMC_MCK] =3D hw; + sama5d4_pmc->chws[SAMA5D4_PMC_MCK] =3D hw; =20 hw =3D at91_clk_register_h32mx(regmap, "h32mxck", "masterck_div"); if (IS_ERR(hw)) goto err_free; =20 - sama5d4_pmc->chws[PMC_MCK2] =3D hw; + sama5d4_pmc->chws[SAMA5D4_PMC_MCK2] =3D hw; =20 parent_names[0] =3D "plladivck"; parent_names[1] =3D "utmick"; diff --git a/drivers/clk/at91/sama7d65.c b/drivers/clk/at91/sama7d65.c index 7dee2b160ffb3..f6f86261ceefd 100644 --- a/drivers/clk/at91/sama7d65.c +++ b/drivers/clk/at91/sama7d65.c @@ -11,7 +11,7 @@ #include #include =20 -#include +#include =20 #include "pmc.h" =20 @@ -225,7 +225,7 @@ static struct sama7d65_pll { .t =3D PLL_TYPE_DIV, /* This feeds CPU. It should not be disabled. */ .f =3D CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, - .eid =3D PMC_CPUPLL, + .eid =3D SAMA7D65_PMC_CPUPLL, /* * Safe div=3D15 should be safe even for switching b/w 1GHz and * 90MHz (frac pll might go up to 1.2GHz). @@ -260,7 +260,7 @@ static struct sama7d65_pll { * Therefore it should not be disabled. */ .f =3D CLK_IS_CRITICAL | CLK_SET_RATE_GATE, - .eid =3D PMC_SYSPLL, + .eid =3D SAMA7D65_PMC_SYSPLL, }, }, =20 @@ -328,7 +328,7 @@ static struct sama7d65_pll { .t =3D PLL_TYPE_DIV, .f =3D CLK_SET_RATE_GATE | CLK_SET_PARENT_GATE | CLK_SET_RATE_PARENT, - .eid =3D PMC_BAUDPLL, + .eid =3D SAMA7D65_PMC_BAUDPLL, }, }, =20 @@ -350,7 +350,7 @@ static struct sama7d65_pll { .t =3D PLL_TYPE_DIV, .f =3D CLK_SET_RATE_GATE | CLK_SET_PARENT_GATE | CLK_SET_RATE_PARENT, - .eid =3D PMC_AUDIOPMCPLL, + .eid =3D SAMA7D65_PMC_AUDIOPMCPLL, }, =20 [PLL_COMPID_DIV1] =3D { @@ -361,7 +361,7 @@ static struct sama7d65_pll { .t =3D PLL_TYPE_DIV, .f =3D CLK_SET_RATE_GATE | CLK_SET_PARENT_GATE | CLK_SET_RATE_PARENT, - .eid =3D PMC_AUDIOIOPLL, + .eid =3D SAMA7D65_PMC_AUDIOIOPLL, }, }, =20 @@ -383,7 +383,7 @@ static struct sama7d65_pll { .t =3D PLL_TYPE_DIV, .f =3D CLK_SET_RATE_GATE | CLK_SET_PARENT_GATE | CLK_SET_RATE_PARENT, - .eid =3D PMC_ETHPLL, + .eid =3D SAMA7D65_PMC_ETHPLL, }, }, =20 @@ -405,7 +405,7 @@ static struct sama7d65_pll { .t =3D PLL_TYPE_DIV, .f =3D CLK_SET_RATE_GATE | CLK_SET_PARENT_GATE | CLK_SET_RATE_PARENT, - .eid =3D PMC_LVDSPLL, + .eid =3D SAMA7D65_PMC_LVDSPLL, }, }, =20 @@ -427,7 +427,7 @@ static struct sama7d65_pll { .t =3D PLL_TYPE_DIV, .f =3D CLK_SET_RATE_GATE | CLK_SET_PARENT_GATE | CLK_SET_RATE_PARENT, - .eid =3D PMC_UTMI, + .eid =3D SAMA7D65_PMC_UTMI, }, }, }; @@ -470,7 +470,7 @@ static struct { .ep_mux_table =3D { 5, }, .ep_count =3D 1, .ep_chg_id =3D INT_MIN, - .eid =3D PMC_MCK1, + .eid =3D SAMA7D65_PMC_MCK1, .c =3D 1, }, =20 { .n =3D "mck2", @@ -487,7 +487,7 @@ static struct { .ep_mux_table =3D { 5, 6, }, .ep_count =3D 2, .ep_chg_id =3D INT_MIN, - .eid =3D PMC_MCK3, + .eid =3D SAMA7D65_PMC_MCK3, .c =3D 1, }, =20 { .n =3D "mck4", @@ -504,7 +504,7 @@ static struct { .ep_mux_table =3D { 5, }, .ep_count =3D 1, .ep_chg_id =3D INT_MIN, - .eid =3D PMC_MCK5, + .eid =3D SAMA7D65_PMC_MCK5, .c =3D 1, }, =20 { .n =3D "mck6", @@ -1153,7 +1153,7 @@ static void __init sama7d65_pmc_setup(struct device_n= ode *np) if (IS_ERR(hw)) goto err_free; =20 - sama7d65_pmc->chws[PMC_MAIN] =3D hw; + sama7d65_pmc->chws[SAMA7D65_PMC_MAIN] =3D hw; =20 for (i =3D 0; i < PLL_ID_MAX; i++) { for (j =3D 0; j < PLL_COMPID_MAX; j++) { @@ -1166,7 +1166,7 @@ static void __init sama7d65_pmc_setup(struct device_n= ode *np) case PLL_TYPE_FRAC: switch (sama7d65_plls[i][j].p) { case SAMA7D65_PLL_PARENT_MAINCK: - parent_hw =3D sama7d65_pmc->chws[PMC_MAIN]; + parent_hw =3D sama7d65_pmc->chws[SAMA7D65_PMC_MAIN]; break; case SAMA7D65_PLL_PARENT_MAIN_XTAL: parent_hw =3D main_xtal_hw; @@ -1215,12 +1215,12 @@ static void __init sama7d65_pmc_setup(struct device= _node *np) if (IS_ERR(hw)) goto err_free; =20 - sama7d65_pmc->chws[PMC_MCK] =3D hw; + sama7d65_pmc->chws[SAMA7D65_PMC_MCK0] =3D hw; sama7d65_mckx[PCK_PARENT_HW_MCK0].hw =3D hw; =20 parent_hws[0] =3D md_slck_hw; parent_hws[1] =3D td_slck_hw; - parent_hws[2] =3D sama7d65_pmc->chws[PMC_MAIN]; + parent_hws[2] =3D sama7d65_pmc->chws[SAMA7D65_PMC_MAIN]; for (i =3D PCK_PARENT_HW_MCK1; i < ARRAY_SIZE(sama7d65_mckx); i++) { u8 num_parents =3D 3 + sama7d65_mckx[i].ep_count; struct clk_hw *tmp_parent_hws[8]; @@ -1269,7 +1269,7 @@ static void __init sama7d65_pmc_setup(struct device_n= ode *np) =20 parent_hws[0] =3D md_slck_hw; parent_hws[1] =3D td_slck_hw; - parent_hws[2] =3D sama7d65_pmc->chws[PMC_MAIN]; + parent_hws[2] =3D sama7d65_pmc->chws[SAMA7D65_PMC_MAIN]; parent_hws[3] =3D sama7d65_plls[PLL_ID_SYS][PLL_COMPID_DIV0].hw; parent_hws[4] =3D sama7d65_plls[PLL_ID_DDR][PLL_COMPID_DIV0].hw; parent_hws[5] =3D sama7d65_plls[PLL_ID_GPU][PLL_COMPID_DIV0].hw; @@ -1320,8 +1320,8 @@ static void __init sama7d65_pmc_setup(struct device_n= ode *np) =20 parent_hws[0] =3D md_slck_hw; parent_hws[1] =3D td_slck_hw; - parent_hws[2] =3D sama7d65_pmc->chws[PMC_MAIN]; - parent_hws[3] =3D sama7d65_pmc->chws[PMC_MCK1]; + parent_hws[2] =3D sama7d65_pmc->chws[SAMA7D65_PMC_MAIN]; + parent_hws[3] =3D sama7d65_pmc->chws[SAMA7D65_PMC_MCK1]; for (i =3D 0; i < ARRAY_SIZE(sama7d65_gck); i++) { u8 num_parents =3D 4 + sama7d65_gck[i].pp_count; struct clk_hw *tmp_parent_hws[8]; diff --git a/drivers/clk/at91/sama7g5.c b/drivers/clk/at91/sama7g5.c index 1340c2b006192..99b4c1d9bdcca 100644 --- a/drivers/clk/at91/sama7g5.c +++ b/drivers/clk/at91/sama7g5.c @@ -12,7 +12,7 @@ #include #include =20 -#include +#include =20 #include "pmc.h" =20 @@ -183,7 +183,7 @@ static struct sama7g5_pll { .t =3D PLL_TYPE_DIV, /* This feeds CPU. It should not be disabled. */ .f =3D CLK_IS_CRITICAL | CLK_SET_RATE_PARENT, - .eid =3D PMC_CPUPLL, + .eid =3D SAMA7G5_PMC_CPUPLL, /* * Safe div=3D15 should be safe even for switching b/w 1GHz and * 90MHz (frac pll might go up to 1.2GHz). @@ -218,7 +218,7 @@ static struct sama7g5_pll { * Therefore it should not be disabled. */ .f =3D CLK_IS_CRITICAL | CLK_SET_RATE_GATE, - .eid =3D PMC_SYSPLL, + .eid =3D SAMA7G5_PMC_SYSPLL, }, }, =20 @@ -306,7 +306,7 @@ static struct sama7g5_pll { .t =3D PLL_TYPE_DIV, .f =3D CLK_SET_RATE_GATE | CLK_SET_PARENT_GATE | CLK_SET_RATE_PARENT, - .eid =3D PMC_AUDIOPMCPLL, + .eid =3D SAMA7G5_PMC_AUDIOPMCPLL, }, =20 [PLL_COMPID_DIV1] =3D { @@ -317,7 +317,7 @@ static struct sama7g5_pll { .t =3D PLL_TYPE_DIV, .f =3D CLK_SET_RATE_GATE | CLK_SET_PARENT_GATE | CLK_SET_RATE_PARENT, - .eid =3D PMC_AUDIOIOPLL, + .eid =3D SAMA7G5_PMC_AUDIOIOPLL, }, }, =20 @@ -381,7 +381,7 @@ static struct { .ep_mux_table =3D { 5, }, .ep_count =3D 1, .ep_chg_id =3D INT_MIN, - .eid =3D PMC_MCK1, + .eid =3D SAMA7G5_PMC_MCK1, .c =3D 1, }, =20 { .n =3D "mck2", @@ -997,7 +997,7 @@ static void __init sama7g5_pmc_setup(struct device_node= *np) if (IS_ERR(regmap)) return; =20 - sama7g5_pmc =3D pmc_data_allocate(PMC_MCK1 + 1, + sama7g5_pmc =3D pmc_data_allocate(SAMA7G5_PMC_MCK1 + 1, nck(sama7g5_systemck), nck(sama7g5_periphck), nck(sama7g5_gck), 8); @@ -1030,7 +1030,7 @@ static void __init sama7g5_pmc_setup(struct device_no= de *np) if (IS_ERR(hw)) goto err_free; =20 - sama7g5_pmc->chws[PMC_MAIN] =3D hw; + sama7g5_pmc->chws[SAMA7G5_PMC_MAIN] =3D hw; =20 for (i =3D 0; i < PLL_ID_MAX; i++) { for (j =3D 0; j < PLL_COMPID_MAX; j++) { @@ -1043,7 +1043,7 @@ static void __init sama7g5_pmc_setup(struct device_no= de *np) case PLL_TYPE_FRAC: switch (sama7g5_plls[i][j].p) { case SAMA7G5_PLL_PARENT_MAINCK: - parent_hw =3D sama7g5_pmc->chws[PMC_MAIN]; + parent_hw =3D sama7g5_pmc->chws[SAMA7G5_PMC_MAIN]; break; case SAMA7G5_PLL_PARENT_MAIN_XTAL: parent_hw =3D main_xtal_hw; @@ -1092,11 +1092,11 @@ static void __init sama7g5_pmc_setup(struct device_= node *np) if (IS_ERR(hw)) goto err_free; =20 - sama7g5_mckx[PCK_PARENT_HW_MCK0].hw =3D sama7g5_pmc->chws[PMC_MCK] =3D hw; + sama7g5_mckx[PCK_PARENT_HW_MCK0].hw =3D sama7g5_pmc->chws[SAMA7G5_PMC_MCK= 0] =3D hw; =20 parent_hws[0] =3D md_slck_hw; parent_hws[1] =3D td_slck_hw; - parent_hws[2] =3D sama7g5_pmc->chws[PMC_MAIN]; + parent_hws[2] =3D sama7g5_pmc->chws[SAMA7G5_PMC_MAIN]; for (i =3D PCK_PARENT_HW_MCK1; i < ARRAY_SIZE(sama7g5_mckx); i++) { u8 num_parents =3D 3 + sama7g5_mckx[i].ep_count; struct clk_hw *tmp_parent_hws[8]; @@ -1138,11 +1138,11 @@ static void __init sama7g5_pmc_setup(struct device_= node *np) if (IS_ERR(hw)) goto err_free; =20 - sama7g5_pmc->chws[PMC_UTMI] =3D hw; + sama7g5_pmc->chws[SAMA7G5_PMC_UTMI] =3D hw; =20 parent_hws[0] =3D md_slck_hw; parent_hws[1] =3D td_slck_hw; - parent_hws[2] =3D sama7g5_pmc->chws[PMC_MAIN]; + parent_hws[2] =3D sama7g5_pmc->chws[SAMA7G5_PMC_MAIN]; parent_hws[3] =3D sama7g5_plls[PLL_ID_SYS][PLL_COMPID_DIV0].hw; parent_hws[4] =3D sama7g5_plls[PLL_ID_DDR][PLL_COMPID_DIV0].hw; parent_hws[5] =3D sama7g5_plls[PLL_ID_IMG][PLL_COMPID_DIV0].hw; @@ -1192,7 +1192,7 @@ static void __init sama7g5_pmc_setup(struct device_no= de *np) =20 parent_hws[0] =3D md_slck_hw; parent_hws[1] =3D td_slck_hw; - parent_hws[2] =3D sama7g5_pmc->chws[PMC_MAIN]; + parent_hws[2] =3D sama7g5_pmc->chws[SAMA7G5_PMC_MAIN]; for (i =3D 0; i < ARRAY_SIZE(sama7g5_gck); i++) { u8 num_parents =3D 3 + sama7g5_gck[i].pp_count; struct clk_hw *tmp_parent_hws[8]; --=20 2.47.3