diff options
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/clock-sh7722.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7722.c | 57 |
1 files changed, 1 insertions, 56 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c index c090c9a373f6..ccefd7dde78c 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * arch/sh/kernel/cpu/sh4a/clock-sh7722.c | 2 | * arch/sh/kernel/cpu/sh4a/clock-sh7722.c |
3 | * | 3 | * |
4 | * SH7343, SH7722, SH7723 & SH7366 support for the clock framework | 4 | * SH7343, SH7722 & SH7366 support for the clock framework |
5 | * | 5 | * |
6 | * Copyright (c) 2006-2007 Nomad Global Solutions Inc | 6 | * Copyright (c) 2006-2007 Nomad Global Solutions Inc |
7 | * Based on code for sh7343 by Paul Mundt | 7 | * Based on code for sh7343 by Paul Mundt |
@@ -176,11 +176,6 @@ static unsigned long module_clk_recalc(struct clk *clk) | |||
176 | #define STCMASK 0x3f | 176 | #define STCMASK 0x3f |
177 | #define DIVCALC(div) (div/2-1) | 177 | #define DIVCALC(div) (div/2-1) |
178 | #define FRQCRKICK 0x80000000 | 178 | #define FRQCRKICK 0x80000000 |
179 | #elif defined(CONFIG_CPU_SUBTYPE_SH7723) | ||
180 | #define MASTERDIVS { 6, 8, 12, 16 } | ||
181 | #define STCMASK 0x1f | ||
182 | #define DIVCALC(div) (div-1) | ||
183 | #define FRQCRKICK 0x00000000 | ||
184 | #else | 179 | #else |
185 | #define MASTERDIVS { 2, 3, 4, 6, 8, 16 } | 180 | #define MASTERDIVS { 2, 3, 4, 6, 8, 16 } |
186 | #define STCMASK 0x1f | 181 | #define STCMASK 0x1f |
@@ -681,56 +676,6 @@ static struct clk sh7722_mstpcr_clocks[] = { | |||
681 | MSTPCR("vpu0", "bus_clk", 2, 1, CLK_ENABLE_ON_INIT), | 676 | MSTPCR("vpu0", "bus_clk", 2, 1, CLK_ENABLE_ON_INIT), |
682 | MSTPCR("lcdc0", "bus_clk", 2, 0, 0), | 677 | MSTPCR("lcdc0", "bus_clk", 2, 0, 0), |
683 | #endif | 678 | #endif |
684 | #if defined(CONFIG_CPU_SUBTYPE_SH7723) | ||
685 | /* See page 60 of Datasheet V1.0: Overview -> Block Diagram */ | ||
686 | MSTPCR("tlb0", "cpu_clk", 0, 31, 0), | ||
687 | MSTPCR("ic0", "cpu_clk", 0, 30, 0), | ||
688 | MSTPCR("oc0", "cpu_clk", 0, 29, 0), | ||
689 | MSTPCR("l2c0", "sh_clk", 0, 28, 0), | ||
690 | MSTPCR("ilmem0", "cpu_clk", 0, 27, 0), | ||
691 | MSTPCR("fpu0", "cpu_clk", 0, 24, 0), | ||
692 | MSTPCR("intc0", "cpu_clk", 0, 22, 0), | ||
693 | MSTPCR("dmac0", "bus_clk", 0, 21, 0), | ||
694 | MSTPCR("sh0", "sh_clk", 0, 20, 0), | ||
695 | MSTPCR("hudi0", "peripheral_clk", 0, 19, 0), | ||
696 | MSTPCR("ubc0", "cpu_clk", 0, 17, 0), | ||
697 | MSTPCR("tmu0", "peripheral_clk", 0, 15, 0), | ||
698 | MSTPCR("cmt0", "r_clk", 0, 14, 0), | ||
699 | MSTPCR("rwdt0", "r_clk", 0, 13, 0), | ||
700 | MSTPCR("dmac1", "bus_clk", 0, 12, 0), | ||
701 | MSTPCR("tmu1", "peripheral_clk", 0, 11, 0), | ||
702 | MSTPCR("flctl0", "peripheral_clk", 0, 10, 0), | ||
703 | MSTPCR("scif0", "peripheral_clk", 0, 9, 0), | ||
704 | MSTPCR("scif1", "peripheral_clk", 0, 8, 0), | ||
705 | MSTPCR("scif2", "peripheral_clk", 0, 7, 0), | ||
706 | MSTPCR("scif3", "bus_clk", 0, 6, 0), | ||
707 | MSTPCR("scif4", "bus_clk", 0, 5, 0), | ||
708 | MSTPCR("scif5", "bus_clk", 0, 4, 0), | ||
709 | MSTPCR("msiof0", "bus_clk", 0, 2, 0), | ||
710 | MSTPCR("msiof1", "bus_clk", 0, 1, 0), | ||
711 | MSTPCR("meram0", "sh_clk", 0, 0, CLK_ENABLE_ON_INIT), | ||
712 | MSTPCR("i2c0", "peripheral_clk", 1, 9, 0), | ||
713 | MSTPCR("rtc0", "r_clk", 1, 8, 0), | ||
714 | MSTPCR("atapi0", "sh_clk", 2, 28, 0), | ||
715 | MSTPCR("adc0", "peripheral_clk", 2, 28, 0), | ||
716 | MSTPCR("tpu0", "bus_clk", 2, 25, 0), | ||
717 | MSTPCR("irda0", "peripheral_clk", 2, 24, 0), | ||
718 | MSTPCR("tsif0", "bus_clk", 2, 22, 0), | ||
719 | MSTPCR("icb0", "bus_clk", 2, 21, 0), | ||
720 | MSTPCR("sdhi0", "bus_clk", 2, 18, 0), | ||
721 | MSTPCR("sdhi1", "bus_clk", 2, 17, 0), | ||
722 | MSTPCR("keysc0", "r_clk", 2, 14, 0), | ||
723 | MSTPCR("usb0", "bus_clk", 2, 11, 0), | ||
724 | MSTPCR("2dg0", "bus_clk", 2, 10, 0), | ||
725 | MSTPCR("siu0", "bus_clk", 2, 8, 0), | ||
726 | MSTPCR("veu1", "bus_clk", 2, 6, CLK_ENABLE_ON_INIT), | ||
727 | MSTPCR("vou0", "bus_clk", 2, 5, 0), | ||
728 | MSTPCR("beu0", "bus_clk", 2, 4, 0), | ||
729 | MSTPCR("ceu0", "bus_clk", 2, 3, 0), | ||
730 | MSTPCR("veu0", "bus_clk", 2, 2, CLK_ENABLE_ON_INIT), | ||
731 | MSTPCR("vpu0", "bus_clk", 2, 1, CLK_ENABLE_ON_INIT), | ||
732 | MSTPCR("lcdc0", "bus_clk", 2, 0, 0), | ||
733 | #endif | ||
734 | #if defined(CONFIG_CPU_SUBTYPE_SH7724) | 679 | #if defined(CONFIG_CPU_SUBTYPE_SH7724) |
735 | /* See Datasheet : Overview -> Block Diagram */ | 680 | /* See Datasheet : Overview -> Block Diagram */ |
736 | MSTPCR("tlb0", "cpu_clk", 0, 31, 0), | 681 | MSTPCR("tlb0", "cpu_clk", 0, 31, 0), |