History

clk: divider: add explicit big endian support

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

Jonas Gorski committed 7 years ago

Commit 434d69f1 parent 9e98c672 files · +24 −4Browse files

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

Unified · Split

include/linux/clk-provider.h+4−0
@@ -417,6 +417,9 @@ struct clk_div_table { · 416 unmodified lines
417417 * CLK_DIVIDER_MAX_AT_ZERO - For dividers which are like CLK_DIVIDER_ONE_BASED
418418 * except when the value read from the register is zero, the divisor is
419419 * 2^width of the field.
420+ * CLK_DIVIDER_BIG_ENDIAN - By default little endian register accesses are used
421+ * for the divider register. Setting this flag makes the register accesses
422+ * big endian.
420423 */
421424 struct clk_divider {
422425 struct clk_hw hw;
@@ -438,6 +441,7 @@ struct clk_divider { · 15 unmodified lines
438441 #define CLK_DIVIDER_ROUND_CLOSEST BIT(4)
439442 #define CLK_DIVIDER_READ_ONLY BIT(5)
440443 #define CLK_DIVIDER_MAX_AT_ZERO BIT(6)
444+#define CLK_DIVIDER_BIG_ENDIAN BIT(7)
441445
442446 extern const struct clk_ops clk_divider_ops;
443447 extern const struct clk_ops clk_divider_ro_ops;

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