Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103808010
D15806.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
729 B
Referenced Files
None
Subscribers
None
D15806.diff
View Options
Index: head/sys/arm/allwinner/clkng/aw_clk.h
===================================================================
--- head/sys/arm/allwinner/clkng/aw_clk.h
+++ head/sys/arm/allwinner/clkng/aw_clk.h
@@ -72,6 +72,7 @@
#define AW_CLK_FACTOR_ZERO_BASED 0x0002
#define AW_CLK_FACTOR_HAS_COND 0x0004
#define AW_CLK_FACTOR_FIXED 0x0008
+#define AW_CLK_FACTOR_ZERO_IS_ONE 0x0010
struct aw_clk_factor {
uint32_t shift; /* Shift bits for the factor */
@@ -110,6 +111,8 @@
return (factor->value);
factor_val = (val & factor->mask) >> factor->shift;
+ if (factor_val == 0 && (factor->flags & AW_CLK_FACTOR_ZERO_IS_ONE))
+ factor_val = 1;
if (factor->flags & AW_CLK_FACTOR_POWER_OF_TWO)
factor_val = 1 << factor_val;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 5:27 PM (21 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14947026
Default Alt Text
D15806.diff (729 B)
Attached To
Mode
D15806: aw_ccung: Support clock factors where factor=0, factor is effectively 1
Attached
Detach File
Event Timeline
Log In to Comment