SAMA5 I2S Kconfig update

This commit is contained in:
Gregory Nutt 2013-11-11 13:50:25 -06:00
parent c615f6e6fd
commit 60950c760f
2 changed files with 32 additions and 52 deletions

View File

@ -231,6 +231,10 @@ config ARCH_CHIP_SAM4L
default n default n
select ARCH_RAMFUNCS select ARCH_RAMFUNCS
config ARCH_CHIP_SAM4E
bool
default n
config ARCH_CHIP_SAM4S config ARCH_CHIP_SAM4S
bool bool
default n default n

View File

@ -1418,31 +1418,25 @@ choice
default SAMA5_SSC0_RX_MCKDIV default SAMA5_SSC0_RX_MCKDIV
config SAMA5_SSC0_RX_RKINPUT config SAMA5_SSC0_RX_RKINPUT
bool "External Clock" bool "RK input"
---help--- ---help---
The SSC receiver clock is an external clock provided on the RK input The SSC receiver clock is an external clock provided on the RK input
pin. pin. Sample rate determined by the external clock frequency.
config SAMA5_SSC0_RX_TXCLK config SAMA5_SSC0_RX_TXCLK
bool "Transmitter Clock" bool "Transmitter Clock"
---help--- ---help---
The SSC receiver clock is transmitter clock. The SSC receiver clock is transmitter clock. RX sample rate is the same
as the TX sample rate.
config SAMA5_SSC0_RX_MCKDIV config SAMA5_SSC0_RX_MCKDIV
bool "MCK/2" bool "MCK/2"
---help--- ---help---
The SSC receiver clock is the MCK/2 divided by a up to 4095. The SSC receiver clock is the MCK/2 divided by a up to 4095. Desired
sample rate must be provided below.
endchoice # Receiver clock source endchoice # Receiver clock source
config SAMA5_SSC0_RX_EXTFREQ
int "External reciver clock frequency"
default 100
depends on SAMA5_SSC0_RX_RKINPUT
---help---
If the receiver clock is provided via a clock input on the RK pin,
then the frequency of the receiver clock must be provided.
if !SAMA5_SSC0_RX_RKINPUT if !SAMA5_SSC0_RX_RKINPUT
choice choice
prompt "Receiver output clock" prompt "Receiver output clock"
@ -1474,31 +1468,25 @@ choice
default SAMA5_SSC0_TX_MCKDIV default SAMA5_SSC0_TX_MCKDIV
config SAMA5_SSC0_TX_TKINPUT config SAMA5_SSC0_TX_TKINPUT
bool "External Clock" bool "TK input"
---help--- ---help---
The SSC transmitter clock is an external clock provided on the TK input The SSC transmitter clock is an external clock provided on the TK input
pin. pin. Sample rate determined by the external clock frequency.
config SAMA5_SSC0_TX_RXCLK config SAMA5_SSC0_TX_RXCLK
bool "Receiver Clock" bool "Receiver Clock"
---help--- ---help---
The SSC transmitter clock is receiver clock. The SSC transmitter clock is receiver clock. TX sample rate is the same
as the RX sample rate.
config SAMA5_SSC0_TX_MCKDIV config SAMA5_SSC0_TX_MCKDIV
bool "MCK/2" bool "MCK/2"
---help--- ---help---
The SSC transmitter clock is the MCK/2 divided by a up to 4095. The SSC transmitter clock is the MCK/2 divided by a up to 4095. Desired
sample rate must be provided below.
endchoice # Transmitter clock source endchoice # Transmitter clock source
config SAMA5_SSC0_TX_EXTFREQ
int "External transmitter clock frequency"
default 100
depends on SAMA5_SSC0_TX_TKINPUT
---help---
If the transmitter clock is provided via a clock input on the TK pin,
then the frequency of the transmitter clock must be provided.
if !SAMA5_SSC0_TX_TKINPUT if !SAMA5_SSC0_TX_TKINPUT
choice choice
prompt "Transmitter output clock" prompt "Transmitter output clock"
@ -1518,8 +1506,8 @@ endif # !SAMA5_SSC0_TX_TKINPUT
endif # SAMA5_SSC0_TX endif # SAMA5_SSC0_TX
config SAMA5_SSC0_MCKDIV_SAMPLERATE config SAMA5_SSC0_MCKDIV_SAMPLERATE
int "Internal transmitter clock frequency" int "Sample rate"
default 100 default 48000
depends on SAMA5_SSC0_RX_MCKDIV || SAMA5_SSC0_TX_MCKDIV depends on SAMA5_SSC0_RX_MCKDIV || SAMA5_SSC0_TX_MCKDIV
---help--- ---help---
If the either the receiver or transmitter clock is provided by MCK/2 divided If the either the receiver or transmitter clock is provided by MCK/2 divided
@ -1570,31 +1558,25 @@ choice
default SAMA5_SSC1_RX_MCKDIV default SAMA5_SSC1_RX_MCKDIV
config SAMA5_SSC1_RX_RKINPUT config SAMA5_SSC1_RX_RKINPUT
bool "External Clock" bool "RK input"
---help--- ---help---
The SSC receiver clock is an external clock provided on the RK input The SSC receiver clock is an external clock provided on the RK input
pin. pin. Sample rate determined by the external clock frequency.
config SAMA5_SSC1_RX_TXCLK config SAMA5_SSC1_RX_TXCLK
bool "Transmitter Clock" bool "Transmitter Clock"
---help--- ---help---
The SSC receiver clock is transmitter clock. The SSC receiver clock is transmitter clock. RX sample rate is the same
as the TX sample rate.
config SAMA5_SSC1_RX_MCKDIV config SAMA5_SSC1_RX_MCKDIV
bool "MCK/2" bool "MCK/2"
---help--- ---help---
The SSC receiver clock is the MCK/2 divided by a up to 4095. The SSC receiver clock is the MCK/2 divided by a up to 4095. Desired
sample rate must be provided below.
endchoice # Receiver clock source endchoice # Receiver clock source
config SAMA5_SSC1_RX_EXTFREQ
int "External reciver clock frequency"
default 100
depends on SAMA5_SSC1_RX_RKINPUT
---help---
If the receiver clock is provided via a clock input on the RK pin,
then the frequency of the receiver clock must be provided.
if !SAMA5_SSC1_RX_RKINPUT if !SAMA5_SSC1_RX_RKINPUT
choice choice
prompt "Receiver output clock" prompt "Receiver output clock"
@ -1626,31 +1608,25 @@ choice
default SAMA5_SSC1_TX_MCKDIV default SAMA5_SSC1_TX_MCKDIV
config SAMA5_SSC1_TX_TKINPUT config SAMA5_SSC1_TX_TKINPUT
bool "External Clock" bool "TK input"
---help--- ---help---
The SSC transmitter clock is an external clock provided on the TK input The SSC transmitter clock is an external clock provided on the TK input
pin. pin. Sample rate determined by the external clock frequency.
config SAMA5_SSC1_TX_RXCLK config SAMA5_SSC1_TX_RXCLK
bool "Receiver Clock" bool "Receiver Clock"
---help--- ---help---
The SSC transmitter clock is receiver clock. The SSC transmitter clock is receiver clock. TX sample rate is the same
as the RX sample rate.
config SAMA5_SSC1_TX_MCKDIV config SAMA5_SSC1_TX_MCKDIV
bool "MCK/2" bool "MCK/2"
---help--- ---help---
The SSC transmitter clock is the MCK/2 divided by a up to 4095. The SSC transmitter clock is the MCK/2 divided by a up to 4095. Desired
sample rate must be provided below.
endchoice # Transmitter clock source endchoice # Transmitter clock source
config SAMA5_SSC1_TX_EXTFREQ
int "External transmitter clock frequency"
default 100
depends on SAMA5_SSC1_TX_TKINPUT
---help---
If the transmitter clock is provided via a clock input on the TK pin,
then the frequency of the transmitter clock must be provided.
if !SAMA5_SSC1_TX_TKINPUT if !SAMA5_SSC1_TX_TKINPUT
choice choice
prompt "Transmitter output clock" prompt "Transmitter output clock"
@ -1670,8 +1646,8 @@ endif # !SAMA5_SSC1_TX_TKINPUT
endif # SAMA5_SSC1_TX endif # SAMA5_SSC1_TX
config SAMA5_SSC1_MCKDIV_SAMPLERATE config SAMA5_SSC1_MCKDIV_SAMPLERATE
int "Internal transmitter clock frequency" int "Sample rate"
default 100 default 48000
depends on SAMA5_SSC1_RX_MCKDIV || SAMA5_SSC1_TX_MCKDIV depends on SAMA5_SSC1_RX_MCKDIV || SAMA5_SSC1_TX_MCKDIV
---help--- ---help---
If the either the receiver or transmitter clock is provided by MCK/2 divided If the either the receiver or transmitter clock is provided by MCK/2 divided