diff options
Diffstat (limited to 'arch/arm/mach-omap1/clock_data.c')
-rw-r--r-- | arch/arm/mach-omap1/clock_data.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/arch/arm/mach-omap1/clock_data.c b/arch/arm/mach-omap1/clock_data.c index c007d80dfb62..9b45f4b0ee22 100644 --- a/arch/arm/mach-omap1/clock_data.c +++ b/arch/arm/mach-omap1/clock_data.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <plat/clock.h> | 25 | #include <plat/clock.h> |
26 | #include <plat/cpu.h> | 26 | #include <plat/cpu.h> |
27 | #include <plat/clkdev_omap.h> | 27 | #include <plat/clkdev_omap.h> |
28 | #include <plat/board.h> | ||
29 | #include <plat/sram.h> /* for omap_sram_reprogram_clock() */ | 28 | #include <plat/sram.h> /* for omap_sram_reprogram_clock() */ |
30 | 29 | ||
31 | #include <mach/hardware.h> | 30 | #include <mach/hardware.h> |
@@ -776,11 +775,10 @@ static struct clk_functions omap1_clk_functions = { | |||
776 | 775 | ||
777 | static void __init omap1_show_rates(void) | 776 | static void __init omap1_show_rates(void) |
778 | { | 777 | { |
779 | pr_notice("Clocking rate (xtal/DPLL1/MPU): " | 778 | pr_notice("Clocking rate (xtal/DPLL1/MPU): %ld.%01ld/%ld.%01ld/%ld.%01ld MHz\n", |
780 | "%ld.%01ld/%ld.%01ld/%ld.%01ld MHz\n", | 779 | ck_ref.rate / 1000000, (ck_ref.rate / 100000) % 10, |
781 | ck_ref.rate / 1000000, (ck_ref.rate / 100000) % 10, | 780 | ck_dpll1.rate / 1000000, (ck_dpll1.rate / 100000) % 10, |
782 | ck_dpll1.rate / 1000000, (ck_dpll1.rate / 100000) % 10, | 781 | arm_ck.rate / 1000000, (arm_ck.rate / 100000) % 10); |
783 | arm_ck.rate / 1000000, (arm_ck.rate / 100000) % 10); | ||
784 | } | 782 | } |
785 | 783 | ||
786 | u32 cpu_mask; | 784 | u32 cpu_mask; |
@@ -788,7 +786,6 @@ u32 cpu_mask; | |||
788 | int __init omap1_clk_init(void) | 786 | int __init omap1_clk_init(void) |
789 | { | 787 | { |
790 | struct omap_clk *c; | 788 | struct omap_clk *c; |
791 | const struct omap_clock_config *info; | ||
792 | int crystal_type = 0; /* Default 12 MHz */ | 789 | int crystal_type = 0; /* Default 12 MHz */ |
793 | u32 reg; | 790 | u32 reg; |
794 | 791 | ||
@@ -837,19 +834,13 @@ int __init omap1_clk_init(void) | |||
837 | ck_dpll1_p = clk_get(NULL, "ck_dpll1"); | 834 | ck_dpll1_p = clk_get(NULL, "ck_dpll1"); |
838 | ck_ref_p = clk_get(NULL, "ck_ref"); | 835 | ck_ref_p = clk_get(NULL, "ck_ref"); |
839 | 836 | ||
840 | info = omap_get_config(OMAP_TAG_CLOCK, struct omap_clock_config); | ||
841 | if (info != NULL) { | ||
842 | if (!cpu_is_omap15xx()) | ||
843 | crystal_type = info->system_clock_type; | ||
844 | } | ||
845 | |||
846 | if (cpu_is_omap7xx()) | 837 | if (cpu_is_omap7xx()) |
847 | ck_ref.rate = 13000000; | 838 | ck_ref.rate = 13000000; |
848 | if (cpu_is_omap16xx() && crystal_type == 2) | 839 | if (cpu_is_omap16xx() && crystal_type == 2) |
849 | ck_ref.rate = 19200000; | 840 | ck_ref.rate = 19200000; |
850 | 841 | ||
851 | pr_info("Clocks: ARM_SYSST: 0x%04x DPLL_CTL: 0x%04x ARM_CKCTL: " | 842 | pr_info("Clocks: ARM_SYSST: 0x%04x DPLL_CTL: 0x%04x ARM_CKCTL: 0x%04x\n", |
852 | "0x%04x\n", omap_readw(ARM_SYSST), omap_readw(DPLL_CTL), | 843 | omap_readw(ARM_SYSST), omap_readw(DPLL_CTL), |
853 | omap_readw(ARM_CKCTL)); | 844 | omap_readw(ARM_CKCTL)); |
854 | 845 | ||
855 | /* We want to be in syncronous scalable mode */ | 846 | /* We want to be in syncronous scalable mode */ |