mirror of
https://github.com/andreili/klipper.git
synced 2025-08-23 19:34:06 +02:00
rp2040: Prefer larger postdiv1 on rp2040 chips
The rp2040 uses a pll vco divider of 6. Prefer setting postdiv1=6 and postdiv2=1 (instead of the previous postdiv1=3 and postdiv2=2). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
aa3388cc59
commit
14cbb8dd2d
@ -113,8 +113,8 @@ static void
|
||||
pll_setup(pll_hw_t *pll, uint32_t mul, uint32_t postdiv)
|
||||
{
|
||||
// Setup pll
|
||||
uint32_t refdiv = 1, fbdiv = mul, postdiv2 = 2, postdiv1 = postdiv/postdiv2;
|
||||
if (postdiv1 > 0x07) {
|
||||
uint32_t refdiv = 1, fbdiv = mul, postdiv2 = 1, postdiv1 = postdiv;
|
||||
while (postdiv1 > 0x07) {
|
||||
postdiv1 >>= 1;
|
||||
postdiv2 <<= 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user