Commit bbd7a6c
clk: divider: Add re-usable determine_rate implementations
These are useful when running on 32-bit systems to increase the upper
supported frequency limit. clk_ops.round_rate returns a signed long
which limits the maximum rate on 32-bit systems to 2^31 (or approx.
2.14GHz). clk_ops.determine_rate internally uses an unsigned long so
the maximum rate on 32-bit systems is 2^32 or approx. 4.29GHz.
To avoid code-duplication switch over divider_{ro_,}round_rate_parent
to use the new divider_{ro_,}determine_rate functions.
Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20210627223959.188139-2-martin.blumenstingl@googlemail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>1 parent faa0e30 commit bbd7a6c
2 files changed
Lines changed: 67 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
346 | 384 | | |
347 | 385 | | |
348 | 386 | | |
349 | 387 | | |
350 | 388 | | |
351 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
352 | 395 | | |
353 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
354 | 399 | | |
355 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
356 | 403 | | |
357 | 404 | | |
358 | 405 | | |
| |||
361 | 408 | | |
362 | 409 | | |
363 | 410 | | |
364 | | - | |
365 | | - | |
366 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
367 | 417 | | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
372 | 421 | | |
373 | | - | |
374 | | - | |
| 422 | + | |
375 | 423 | | |
376 | | - | |
| 424 | + | |
377 | 425 | | |
378 | 426 | | |
379 | 427 | | |
380 | | - | |
381 | 428 | | |
382 | 429 | | |
383 | 430 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
632 | 638 | | |
633 | 639 | | |
634 | 640 | | |
| |||
0 commit comments