diff options
Diffstat (limited to 'arch/arm/mach-at91/at91sam9g45.c')
| -rw-r--r-- | arch/arm/mach-at91/at91sam9g45.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/at91sam9g45.c b/arch/arm/mach-at91/at91sam9g45.c index 1532b508c814..318b0407ea04 100644 --- a/arch/arm/mach-at91/at91sam9g45.c +++ b/arch/arm/mach-at91/at91sam9g45.c | |||
| @@ -54,6 +54,11 @@ static struct clk pioDE_clk = { | |||
| 54 | .pmc_mask = 1 << AT91SAM9G45_ID_PIODE, | 54 | .pmc_mask = 1 << AT91SAM9G45_ID_PIODE, |
| 55 | .type = CLK_TYPE_PERIPHERAL, | 55 | .type = CLK_TYPE_PERIPHERAL, |
| 56 | }; | 56 | }; |
| 57 | static struct clk trng_clk = { | ||
| 58 | .name = "trng_clk", | ||
| 59 | .pmc_mask = 1 << AT91SAM9G45_ID_TRNG, | ||
| 60 | .type = CLK_TYPE_PERIPHERAL, | ||
| 61 | }; | ||
| 57 | static struct clk usart0_clk = { | 62 | static struct clk usart0_clk = { |
| 58 | .name = "usart0_clk", | 63 | .name = "usart0_clk", |
| 59 | .pmc_mask = 1 << AT91SAM9G45_ID_US0, | 64 | .pmc_mask = 1 << AT91SAM9G45_ID_US0, |
| @@ -177,6 +182,7 @@ static struct clk *periph_clocks[] __initdata = { | |||
| 177 | &pioB_clk, | 182 | &pioB_clk, |
| 178 | &pioC_clk, | 183 | &pioC_clk, |
| 179 | &pioDE_clk, | 184 | &pioDE_clk, |
| 185 | &trng_clk, | ||
| 180 | &usart0_clk, | 186 | &usart0_clk, |
| 181 | &usart1_clk, | 187 | &usart1_clk, |
| 182 | &usart2_clk, | 188 | &usart2_clk, |
| @@ -216,6 +222,15 @@ static struct clk_lookup periph_clocks_lookups[] = { | |||
| 216 | CLKDEV_CON_DEV_ID("t0_clk", "atmel_tcb.1", &tcb0_clk), | 222 | CLKDEV_CON_DEV_ID("t0_clk", "atmel_tcb.1", &tcb0_clk), |
| 217 | CLKDEV_CON_DEV_ID("pclk", "ssc.0", &ssc0_clk), | 223 | CLKDEV_CON_DEV_ID("pclk", "ssc.0", &ssc0_clk), |
| 218 | CLKDEV_CON_DEV_ID("pclk", "ssc.1", &ssc1_clk), | 224 | CLKDEV_CON_DEV_ID("pclk", "ssc.1", &ssc1_clk), |
| 225 | CLKDEV_CON_DEV_ID(NULL, "atmel-trng", &trng_clk), | ||
| 226 | /* more usart lookup table for DT entries */ | ||
| 227 | CLKDEV_CON_DEV_ID("usart", "ffffee00.serial", &mck), | ||
| 228 | CLKDEV_CON_DEV_ID("usart", "fff8c000.serial", &usart0_clk), | ||
| 229 | CLKDEV_CON_DEV_ID("usart", "fff90000.serial", &usart1_clk), | ||
| 230 | CLKDEV_CON_DEV_ID("usart", "fff94000.serial", &usart2_clk), | ||
| 231 | CLKDEV_CON_DEV_ID("usart", "fff98000.serial", &usart3_clk), | ||
| 232 | /* fake hclk clock */ | ||
| 233 | CLKDEV_CON_DEV_ID("hclk", "at91_ohci", &uhphs_clk), | ||
| 219 | }; | 234 | }; |
| 220 | 235 | ||
| 221 | static struct clk_lookup usart_clocks_lookups[] = { | 236 | static struct clk_lookup usart_clocks_lookups[] = { |
