SAMA5D4-EK: Add WM8904 initialization logic
This commit is contained in:
parent
8055a59d49
commit
c7055a4cb8
@ -483,14 +483,14 @@ config SAMA5_SSC0
|
||||
bool "Synchronous Serial Controller 0 (SSC0)"
|
||||
default n
|
||||
select I2S
|
||||
depends on SAMA5_DMAC0
|
||||
depends on SAMA5_DMAC0 || SAMA5_XDMAC0 || SAMA5_XDMAC1
|
||||
select AUDIO
|
||||
|
||||
config SAMA5_SSC1
|
||||
bool "Synchronous Serial Controller 1 (SSC1)"
|
||||
default n
|
||||
select I2S
|
||||
depends on SAMA5_DMAC1
|
||||
depends on SAMA5_DMAC1 || SAMA5_XDMAC0 || SAMA5_XDMAC1
|
||||
select AUDIO
|
||||
|
||||
config SAMA5_CAN0
|
||||
|
@ -87,12 +87,28 @@
|
||||
# define SAMA5_SSC_MAXINFLIGHT 16
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SAMA5_SSC0) && !defined(CONFIG_SAMA5_DMAC0)
|
||||
# error CONFIG_SAMA5_DMAC0 required by SSC0
|
||||
#if defined(CONFIG_SAMA5_SSC0)
|
||||
# if defined(CONFIG_SAMA5_HAVE_XDMA)
|
||||
# if !defined(CONFIG_SAMA5_XDMAC0) && !defined(CONFIG_SAMA5_XDMAC1)
|
||||
# error CONFIG_SAMA5_XDMAC1 (or XDMAC0) required by SSC0
|
||||
# endif
|
||||
# else
|
||||
# if !defined(CONFIG_SAMA5_DMAC0)
|
||||
# error CONFIG_SAMA5_DMAC0 required by SSC0
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SAMA5_SSC1) && !defined(CONFIG_SAMA5_DMAC1)
|
||||
# error CONFIG_SAMA5_DMAC1 required by SSC1
|
||||
#if defined(CONFIG_SAMA5_SSC1)
|
||||
# if defined(CONFIG_SAMA5_HAVE_XDMA)
|
||||
# if !defined(CONFIG_SAMA5_XDMAC0) && !defined(CONFIG_SAMA5_XDMAC1)
|
||||
# error CONFIG_SAMA5_XDMAC1 (or XDMAC0) required by SSC1
|
||||
# endif
|
||||
# else
|
||||
# if !defined(CONFIG_SAMA5_DMAC1)
|
||||
# error CONFIG_SAMA5_DMAC0 required by SSC1
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SAMA5_SSC0_DATALEN
|
||||
|
Loading…
x
Reference in New Issue
Block a user