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>
Dieser Commit ist enthalten in:
Tero Kristo
2019-04-04 11:11:04 +03:00
committet von Stephen Boyd
Ursprung a348f05361
Commit 2b1202d708
4 geänderte Dateien mit 22 neuen und 2 gelöschten Zeilen

Datei anzeigen

@@ -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 = { \