diff options
Diffstat (limited to 'arch/arm/mach-at91/at91sam9g45.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9g45.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/at91sam9g45.c b/arch/arm/mach-at91/at91sam9g45.c index 4792682d52b9..da6dc0f29657 100644 --- a/arch/arm/mach-at91/at91sam9g45.c +++ b/arch/arm/mach-at91/at91sam9g45.c | |||
@@ -182,6 +182,13 @@ static struct clk adc_op_clk = { | |||
182 | .rate_hz = 13200000, | 182 | .rate_hz = 13200000, |
183 | }; | 183 | }; |
184 | 184 | ||
185 | /* AES/TDES/SHA clock - Only for sam9m11/sam9g56 */ | ||
186 | static struct clk aestdessha_clk = { | ||
187 | .name = "aestdessha_clk", | ||
188 | .pmc_mask = 1 << AT91SAM9G45_ID_AESTDESSHA, | ||
189 | .type = CLK_TYPE_PERIPHERAL, | ||
190 | }; | ||
191 | |||
185 | static struct clk *periph_clocks[] __initdata = { | 192 | static struct clk *periph_clocks[] __initdata = { |
186 | &pioA_clk, | 193 | &pioA_clk, |
187 | &pioB_clk, | 194 | &pioB_clk, |
@@ -211,6 +218,7 @@ static struct clk *periph_clocks[] __initdata = { | |||
211 | &udphs_clk, | 218 | &udphs_clk, |
212 | &mmc1_clk, | 219 | &mmc1_clk, |
213 | &adc_op_clk, | 220 | &adc_op_clk, |
221 | &aestdessha_clk, | ||
214 | // irq0 | 222 | // irq0 |
215 | }; | 223 | }; |
216 | 224 | ||
@@ -231,6 +239,9 @@ static struct clk_lookup periph_clocks_lookups[] = { | |||
231 | CLKDEV_CON_DEV_ID("pclk", "ssc.0", &ssc0_clk), | 239 | CLKDEV_CON_DEV_ID("pclk", "ssc.0", &ssc0_clk), |
232 | CLKDEV_CON_DEV_ID("pclk", "ssc.1", &ssc1_clk), | 240 | CLKDEV_CON_DEV_ID("pclk", "ssc.1", &ssc1_clk), |
233 | CLKDEV_CON_DEV_ID(NULL, "atmel-trng", &trng_clk), | 241 | CLKDEV_CON_DEV_ID(NULL, "atmel-trng", &trng_clk), |
242 | CLKDEV_CON_DEV_ID(NULL, "atmel_sha", &aestdessha_clk), | ||
243 | CLKDEV_CON_DEV_ID(NULL, "atmel_tdes", &aestdessha_clk), | ||
244 | CLKDEV_CON_DEV_ID(NULL, "atmel_aes", &aestdessha_clk), | ||
234 | /* more usart lookup table for DT entries */ | 245 | /* more usart lookup table for DT entries */ |
235 | CLKDEV_CON_DEV_ID("usart", "ffffee00.serial", &mck), | 246 | CLKDEV_CON_DEV_ID("usart", "ffffee00.serial", &mck), |
236 | CLKDEV_CON_DEV_ID("usart", "fff8c000.serial", &usart0_clk), | 247 | CLKDEV_CON_DEV_ID("usart", "fff8c000.serial", &usart0_clk), |
@@ -387,7 +398,7 @@ static unsigned int at91sam9g45_default_irq_priority[NR_AIC_IRQS] __initdata = { | |||
387 | 3, /* Ethernet */ | 398 | 3, /* Ethernet */ |
388 | 0, /* Image Sensor Interface */ | 399 | 0, /* Image Sensor Interface */ |
389 | 2, /* USB Device High speed port */ | 400 | 2, /* USB Device High speed port */ |
390 | 0, | 401 | 0, /* AESTDESSHA Crypto HW Accelerators */ |
391 | 0, /* Multimedia Card Interface 1 */ | 402 | 0, /* Multimedia Card Interface 1 */ |
392 | 0, | 403 | 0, |
393 | 0, /* Advanced Interrupt Controller (IRQ0) */ | 404 | 0, /* Advanced Interrupt Controller (IRQ0) */ |