Wenyou Yang | 8c772bd | 2016-07-20 17:55:12 +0800 | [diff] [blame] | 1 | config CLK_AT91 |
| 2 | bool "AT91 clock drivers" |
| 3 | depends on CLK |
Wenyou Yang | 9a71d39 | 2016-09-27 11:00:29 +0800 | [diff] [blame] | 4 | select MISC |
Wenyou Yang | 8c772bd | 2016-07-20 17:55:12 +0800 | [diff] [blame] | 5 | help |
| 6 | This option is used to enable the AT91 clock driver. |
| 7 | The driver supports the AT91 clock generator, including |
| 8 | the oscillators and PLLs, such as main clock, slow clock, |
| 9 | PLLA, UTMI PLL. Clocks can also be a source clock of other |
| 10 | clocks a tree structure, such as master clock, usb device |
| 11 | clock, matrix clock and generic clock. |
| 12 | Devices can use a common clock API to request a particular |
| 13 | clock, enable it and get its rate. |
| 14 | |
| 15 | config AT91_UTMI |
| 16 | bool "Support UTMI PLL Clock" |
Wenyou Yang | e54b4f0 | 2017-11-17 14:46:43 +0800 | [diff] [blame] | 17 | depends on CLK_AT91 |
Wenyou Yang | 6b66b92 | 2017-09-05 18:30:07 +0800 | [diff] [blame] | 18 | select REGMAP |
Wenyou Yang | e54b4f0 | 2017-11-17 14:46:43 +0800 | [diff] [blame] | 19 | select SPL_REGMAP if SPL_DM |
Wenyou Yang | 6b66b92 | 2017-09-05 18:30:07 +0800 | [diff] [blame] | 20 | select SYSCON |
Wenyou Yang | e54b4f0 | 2017-11-17 14:46:43 +0800 | [diff] [blame] | 21 | select SPL_SYSCON if SPL_DM |
Wenyou Yang | 8c772bd | 2016-07-20 17:55:12 +0800 | [diff] [blame] | 22 | help |
| 23 | This option is used to enable the AT91 UTMI PLL clock |
| 24 | driver. It is the clock provider of USB, and UPLLCK is the |
| 25 | output of 480 MHz UTMI PLL, The souce clock of the UTMI |
| 26 | PLL is the main clock, so the main clock must select the |
| 27 | fast crystal oscillator to meet the frequency accuracy |
| 28 | required by USB. |
| 29 | |
Wenyou Yang | 22cb237 | 2018-02-09 11:34:50 +0800 | [diff] [blame] | 30 | config AT91_USB_CLK |
| 31 | bool "Support USB OHCI Input Clock" |
| 32 | depends on CLK_AT91 |
| 33 | help |
| 34 | This option is used to enable the USB Input Clock, from |
| 35 | the device tree, configure the USBS bit (PLLA or UTMI PLL) |
| 36 | and USBDIV field of the PMC_USB register. |
| 37 | |
Wenyou Yang | 8c772bd | 2016-07-20 17:55:12 +0800 | [diff] [blame] | 38 | config AT91_H32MX |
| 39 | bool "Support H32MX 32-bit Matrix Clock" |
| 40 | depends on CLK_AT91 |
| 41 | help |
| 42 | This option is used to enable the AT91 H32MX matrixes |
| 43 | clock driver. There are H64MX and H32MX matrixes clocks, |
| 44 | H64MX 64-bit matrix clocks are MCK. The H32MX 32-bit |
| 45 | matrix clock is to be configured as MCK if MCK does not |
| 46 | exceed 83 MHz, else it is to be configured as MCK/2. |
| 47 | |
| 48 | config AT91_GENERIC_CLK |
| 49 | bool "Support Generic Clock" |
| 50 | depends on CLK_AT91 |
| 51 | help |
| 52 | This option is used to enable the AT91 generic clock |
| 53 | driver. Some peripherals may need a second clock source |
| 54 | that may be different from the system clock. This second |
| 55 | clock is the generic clock (GCLK) and is managed by |
| 56 | the PMC via PMC_PCR register. |