diff options
author | Andrew Victor <andrew@sanpeople.com> | 2007-02-08 04:25:38 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-02-08 09:55:27 -0500 |
commit | c177a1e75a07237efe1f68fbf430892fdf2bb868 (patch) | |
tree | 4ee68b4037cbe5c64c4385bb1d903270703db90c /arch/arm/mach-at91/at91sam9261.c | |
parent | e6d92e6397634ac7d2e80b16c52f0dfab9b673b4 (diff) |
[ARM] 4147/1: AT91: Define Timer/Counter clocks.
Define the Timer/Counter Unit clocks on the AT91RM9200, AT91SAM9260 and
AT91SAM9261 processors.
Original patch from David Brownell.
Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91/at91sam9261.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9261.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/at91sam9261.c b/arch/arm/mach-at91/at91sam9261.c index 47e02ff7e872..1a9102368f11 100644 --- a/arch/arm/mach-at91/at91sam9261.c +++ b/arch/arm/mach-at91/at91sam9261.c | |||
@@ -97,6 +97,21 @@ static struct clk spi1_clk = { | |||
97 | .pmc_mask = 1 << AT91SAM9261_ID_SPI1, | 97 | .pmc_mask = 1 << AT91SAM9261_ID_SPI1, |
98 | .type = CLK_TYPE_PERIPHERAL, | 98 | .type = CLK_TYPE_PERIPHERAL, |
99 | }; | 99 | }; |
100 | static struct clk tc0_clk = { | ||
101 | .name = "tc0_clk", | ||
102 | .pmc_mask = 1 << AT91SAM9261_ID_TC0, | ||
103 | .type = CLK_TYPE_PERIPHERAL, | ||
104 | }; | ||
105 | static struct clk tc1_clk = { | ||
106 | .name = "tc1_clk", | ||
107 | .pmc_mask = 1 << AT91SAM9261_ID_TC1, | ||
108 | .type = CLK_TYPE_PERIPHERAL, | ||
109 | }; | ||
110 | static struct clk tc2_clk = { | ||
111 | .name = "tc2_clk", | ||
112 | .pmc_mask = 1 << AT91SAM9261_ID_TC2, | ||
113 | .type = CLK_TYPE_PERIPHERAL, | ||
114 | }; | ||
100 | static struct clk ohci_clk = { | 115 | static struct clk ohci_clk = { |
101 | .name = "ohci_clk", | 116 | .name = "ohci_clk", |
102 | .pmc_mask = 1 << AT91SAM9261_ID_UHP, | 117 | .pmc_mask = 1 << AT91SAM9261_ID_UHP, |
@@ -121,7 +136,9 @@ static struct clk *periph_clocks[] __initdata = { | |||
121 | &spi0_clk, | 136 | &spi0_clk, |
122 | &spi1_clk, | 137 | &spi1_clk, |
123 | // ssc 0 .. ssc2 | 138 | // ssc 0 .. ssc2 |
124 | // tc0 .. tc2 | 139 | &tc0_clk, |
140 | &tc1_clk, | ||
141 | &tc2_clk, | ||
125 | &ohci_clk, | 142 | &ohci_clk, |
126 | &lcdc_clk, | 143 | &lcdc_clk, |
127 | // irq0 .. irq2 | 144 | // irq0 .. irq2 |