aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/Kconfig
diff options
context:
space:
mode:
authorBob Liu <lliubbo@gmail.com>2012-05-17 05:15:40 -0400
committerBob Liu <lliubbo@gmail.com>2012-05-21 02:54:49 -0400
commit7c141c1c5c148419eef8972688e86e2e3115ea13 (patch)
tree82b946e1611bcd9c090ea83bb591deb32a31a1c9 /arch/blackfin/Kconfig
parent1c40093976192c837c80f0c723394f176ca132ff (diff)
blackfin: bf60x: make clock changeable in kernel menuconfig
Add clock changeable support in kernel menuconfig for bf60x. Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/Kconfig')
-rw-r--r--arch/blackfin/Kconfig45
1 files changed, 40 insertions, 5 deletions
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig
index 23bae9a3f787..4e48e72291a9 100644
--- a/arch/blackfin/Kconfig
+++ b/arch/blackfin/Kconfig
@@ -435,7 +435,7 @@ config BFIN_KERNEL_CLOCK
435 435
436config PLL_BYPASS 436config PLL_BYPASS
437 bool "Bypass PLL" 437 bool "Bypass PLL"
438 depends on BFIN_KERNEL_CLOCK 438 depends on BFIN_KERNEL_CLOCK && (!BF60x)
439 default n 439 default n
440 440
441config CLKIN_HALF 441config CLKIN_HALF
@@ -454,7 +454,7 @@ config VCO_MULT
454 default "20" if (BFIN537_STAMP || BFIN527_EZKIT || BFIN527_EZKIT_V2 || BFIN548_EZKIT || BFIN548_BLUETECHNIX_CM || BFIN538_EZKIT) 454 default "20" if (BFIN537_STAMP || BFIN527_EZKIT || BFIN527_EZKIT_V2 || BFIN548_EZKIT || BFIN548_BLUETECHNIX_CM || BFIN538_EZKIT)
455 default "22" if BFIN533_BLUETECHNIX_CM 455 default "22" if BFIN533_BLUETECHNIX_CM
456 default "20" if (BFIN537_BLUETECHNIX_CM_E || BFIN537_BLUETECHNIX_CM_U || BFIN527_BLUETECHNIX_CM || BFIN561_BLUETECHNIX_CM) 456 default "20" if (BFIN537_BLUETECHNIX_CM_E || BFIN537_BLUETECHNIX_CM_U || BFIN527_BLUETECHNIX_CM || BFIN561_BLUETECHNIX_CM)
457 default "20" if BFIN561_EZKIT 457 default "20" if (BFIN561_EZKIT || BF609)
458 default "16" if (H8606_HVSISTEMAS || BLACKSTAMP || BFIN526_EZBRD || BFIN518F_EZBRD) 458 default "16" if (H8606_HVSISTEMAS || BLACKSTAMP || BFIN526_EZBRD || BFIN518F_EZBRD)
459 default "25" if BFIN527_AD7160EVAL 459 default "25" if BFIN527_AD7160EVAL
460 help 460 help
@@ -486,12 +486,45 @@ config SCLK_DIV
486 int "System Clock Divider" 486 int "System Clock Divider"
487 depends on BFIN_KERNEL_CLOCK 487 depends on BFIN_KERNEL_CLOCK
488 range 1 15 488 range 1 15
489 default 5 489 default 4
490 help 490 help
491 This sets the frequency of the system clock (including SDRAM or DDR). 491 This sets the frequency of the system clock (including SDRAM or DDR) on
492 !BF60x else it set the clock for system buses and provides the
493 source from which SCLK0 and SCLK1 are derived.
492 This can be between 1 and 15 494 This can be between 1 and 15
493 System Clock = (PLL frequency) / (this setting) 495 System Clock = (PLL frequency) / (this setting)
494 496
497config SCLK0_DIV
498 int "System Clock0 Divider"
499 depends on BFIN_KERNEL_CLOCK && BF60x
500 range 1 15
501 default 1
502 help
503 This sets the frequency of the system clock0 for PVP and all other
504 peripherals not clocked by SCLK1.
505 This can be between 1 and 15
506 System Clock0 = (System Clock) / (this setting)
507
508config SCLK1_DIV
509 int "System Clock1 Divider"
510 depends on BFIN_KERNEL_CLOCK && BF60x
511 range 1 15
512 default 1
513 help
514 This sets the frequency of the system clock1 (including SPORT, SPI and ACM).
515 This can be between 1 and 15
516 System Clock1 = (System Clock) / (this setting)
517
518config DCLK_DIV
519 int "DDR Clock Divider"
520 depends on BFIN_KERNEL_CLOCK && BF60x
521 range 1 15
522 default 2
523 help
524 This sets the frequency of the DDR memory.
525 This can be between 1 and 15
526 DDR Clock = (PLL frequency) / (this setting)
527
495choice 528choice
496 prompt "DDR SDRAM Chip Type" 529 prompt "DDR SDRAM Chip Type"
497 depends on BFIN_KERNEL_CLOCK 530 depends on BFIN_KERNEL_CLOCK
@@ -507,7 +540,7 @@ endchoice
507 540
508choice 541choice
509 prompt "DDR/SDRAM Timing" 542 prompt "DDR/SDRAM Timing"
510 depends on BFIN_KERNEL_CLOCK 543 depends on BFIN_KERNEL_CLOCK && !BF60x
511 default BFIN_KERNEL_CLOCK_MEMINIT_CALC 544 default BFIN_KERNEL_CLOCK_MEMINIT_CALC
512 help 545 help
513 This option allows you to specify Blackfin SDRAM/DDR Timing parameters 546 This option allows you to specify Blackfin SDRAM/DDR Timing parameters
@@ -589,6 +622,7 @@ config MAX_VCO_HZ
589 default 600000000 if BF548 622 default 600000000 if BF548
590 default 533333333 if BF549 623 default 533333333 if BF549
591 default 600000000 if BF561 624 default 600000000 if BF561
625 default 800000000 if BF609
592 626
593config MIN_VCO_HZ 627config MIN_VCO_HZ
594 int 628 int
@@ -596,6 +630,7 @@ config MIN_VCO_HZ
596 630
597config MAX_SCLK_HZ 631config MAX_SCLK_HZ
598 int 632 int
633 default 200000000 if BF609
599 default 133333333 634 default 133333333
600 635
601config MIN_SCLK_HZ 636config MIN_SCLK_HZ