History

clk: gate: add explicit big endian support

Add a clock specific flag to switch register accesses to big endian, to allow runtime configuration of big endian gated clocks.

Jonas Gorski committed 7 years ago

Commit d1c8a501 parent 58a2b4c2 files · +23 −3Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/clk-provider.h+4−0
@@ -349,6 +349,9 @@ void of_fixed_clk_setup(struct device_node *np); · 348 unmodified lines
349349 * of this register, and mask of gate bits are in higher 16-bit of this
350350 * register. While setting the gate bits, higher 16-bit should also be
351351 * updated to indicate changing gate bits.
352+ * CLK_GATE_BIG_ENDIAN - by default little endian register accesses are used for
353+ * the gate register. Setting this flag makes the register accesses big
354+ * endian.
352355 */
353356 struct clk_gate {
354357 struct clk_hw hw;
@@ -362,6 +365,7 @@ struct clk_gate { · 7 unmodified lines
362365
363366 #define CLK_GATE_SET_TO_DISABLE BIT(0)
364367 #define CLK_GATE_HIWORD_MASK BIT(1)
368+#define CLK_GATE_BIG_ENDIAN BIT(2)
365369
366370 extern const struct clk_ops clk_gate_ops;
367371 struct clk *clk_register_gate(struct device *dev, const char *name,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t