hoc-clk: better variable names for minLut
This commit is contained in:
1 parent
d98da35604
commit
c3137f56d6
1 file changed
+2
-2
@@ -666,11 +666,11 @@ namespace board {
|
|||||||
constexpr u32 Shift = 8;
|
constexpr u32 Shift = 8;
|
||||||
constexpr u32 Mask = 0x3F << Shift;
|
constexpr u32 Mask = 0x3F << Shift;
|
||||||
/* Index is always 0 for us. */
|
/* Index is always 0 for us. */
|
||||||
constexpr u32 Value = 0;
|
constexpr u32 MinLutIndex = 0;
|
||||||
|
|
||||||
volatile u32 *reg = reinterpret_cast<volatile u32 *>(cldvfs + CL_DVFS_OUTPUT_CFG_0);
|
volatile u32 *reg = reinterpret_cast<volatile u32 *>(cldvfs + CL_DVFS_OUTPUT_CFG_0);
|
||||||
|
|
||||||
*reg = (*reg & ~Mask) | ((Value << Shift) & Mask);
|
*reg = (*reg & ~Mask) | ((MinLutIndex << Shift) & Mask);
|
||||||
|
|
||||||
static_cast<void>(*reg);
|
static_cast<void>(*reg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user