summaryrefslogtreecommitdiff
path: root/drivers/clk/ti/clock.h
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2019-04-04 11:11:04 +0300
committerStephen Boyd <sboyd@kernel.org>2019-04-25 20:51:33 +0300
commit2b1202d708fd3117bca6bad8770353f389ee0f08 (patch)
treec9b5fc9a2940a48767557886d32bb3414bd6fe26 /drivers/clk/ti/clock.h
parenta348f05361c968cf4a54b6a4f3aeb6f9a271956a (diff)
downloadlinux-2b1202d708fd3117bca6bad8770353f389ee0f08.tar.xz
clk: ti: dra7x: prevent non-existing clkctrl clocks from registering
Certain clkctrl clocks (like the USB_OTG_SS4) do not exist on some variants of the dra7x SoC. Append a flag for these clocks and skip the registration in cases where the clocks do not exist. Reported-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/ti/clock.h')
-rw-r--r--drivers/clk/ti/clock.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/clk/ti/clock.h b/drivers/clk/ti/clock.h
index 4223a399b317..773e2c4ac390 100644
--- a/drivers/clk/ti/clock.h
+++ b/drivers/clk/ti/clock.h
@@ -83,6 +83,12 @@ enum {
#define CLKF_HW_SUP BIT(6)
#define CLKF_NO_IDLEST BIT(7)
+#define CLKF_SOC_MASK GENMASK(10, 8)
+
+#define CLKF_SOC_DRA72 BIT(8)
+#define CLKF_SOC_DRA74 BIT(9)
+#define CLKF_SOC_DRA76 BIT(10)
+
#define CLK(dev, con, ck) \
{ \
.lk = { \