diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-04-13 09:52:02 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-04-15 12:31:24 +0200 |
commit | 47475fa5e0e1cab2537b971afd28f33c0278e101 (patch) | |
tree | 8d0c2d12f5f4c5d2f843597e450a2a3ed9ec3e30 /arch | |
parent | ca48e1c9a639261555c778d0be48cb8b3a9339f7 (diff) | |
download | barebox-47475fa5e0e1cab2537b971afd28f33c0278e101.tar.gz barebox-47475fa5e0e1cab2537b971afd28f33c0278e101.tar.xz |
clk: at91: add sama5d2 audio PLL support
Commit 7310b976 ("clk: at91: fix compilation errors in sama5d2.c") and
follow-up commit ca3077068c ("clk: at91: delete dead i2s/audio code")
had deleted the i2s/audio clock related parts of the upstream driver.
This was mostly due to unwillingness on my part to understand the code
enough for porting them and because I deemed them unnecessary to support
in barebox. The former has changed and the latter is not totally true as
audio PLL derived clocks may be muxed as inputs for programmable and
generated clocks.
Port them over and mimize the diff to upstream.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-at91/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index eb14cd2c28..0226353810 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/mach-at91/Kconfig @@ -34,6 +34,12 @@ config HAVE_AT91_GENERATED_CLK config HAVE_AT91_BOOTSTRAP bool +config HAVE_AT91_AUDIO_PLL + bool + +config HAVE_AT91_I2S_MUX_CLK + bool + # Select if board uses the common at91sam926x_board_init config AT91SAM926X_BOARD_INIT bool @@ -71,6 +77,8 @@ config SOC_SAMA5D2 select HAVE_AT91_USB_CLK select HAVE_AT91_GENERATED_CLK select PINCTRL + select HAVE_AT91_AUDIO_PLL + select HAVE_AT91_I2S_MUX_CLK select PINCTRL_AT91PIO4 select HAS_MACB select HAVE_MACH_ARM_HEAD |