summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-03-06 13:19:10 -0700
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:39 -0600
commit00cf7bf19eb85ae9c28736ace8b046af0c3baed9 (patch)
tree1acbcdbdefbffaef5839318166fe9c7f987ad274
parentde79a7654be3805477d63b5e1377aa1ad4cf6a4d (diff)
downloadu-boot-imx-00cf7bf19eb85ae9c28736ace8b046af0c3baed9.zip
u-boot-imx-00cf7bf19eb85ae9c28736ace8b046af0c3baed9.tar.gz
u-boot-imx-00cf7bf19eb85ae9c28736ace8b046af0c3baed9.tar.bz2
sandbox: exynos: Move CONFIG_I2S to Kconfig
Move this over to Kconfig and tidy up. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--configs/arndale_defconfig1
-rw-r--r--configs/smdk5250_defconfig1
-rw-r--r--configs/snow_defconfig1
-rw-r--r--drivers/sound/Kconfig9
-rw-r--r--include/configs/exynos5250-common.h1
5 files changed, 12 insertions, 1 deletions
diff --git a/configs/arndale_defconfig b/configs/arndale_defconfig
index f452b13..3c0a6b3 100644
--- a/configs/arndale_defconfig
+++ b/configs/arndale_defconfig
@@ -5,3 +5,4 @@ CONFIG_TARGET_ARNDALE=y
CONFIG_DEFAULT_DEVICE_TREE="exynos5250-arndale"
CONFIG_SOUND=y
CONFIG_CMD_SOUND=y
+CONFIG_I2S=y
diff --git a/configs/smdk5250_defconfig b/configs/smdk5250_defconfig
index 2151e89..58e0516 100644
--- a/configs/smdk5250_defconfig
+++ b/configs/smdk5250_defconfig
@@ -5,3 +5,4 @@ CONFIG_TARGET_SMDK5250=y
CONFIG_DEFAULT_DEVICE_TREE="exynos5250-smdk5250"
CONFIG_SOUND=y
CONFIG_CMD_SOUND=y
+CONFIG_I2S=y
diff --git a/configs/snow_defconfig b/configs/snow_defconfig
index 8c1d64d..eb8c64a 100644
--- a/configs/snow_defconfig
+++ b/configs/snow_defconfig
@@ -9,3 +9,4 @@ CONFIG_CROS_EC_KEYB=y
CONFIG_CMD_CROS_EC=y
CONFIG_SOUND=y
CONFIG_CMD_SOUND=y
+CONFIG_I2S=y
diff --git a/drivers/sound/Kconfig b/drivers/sound/Kconfig
index 599edae..759a10f 100644
--- a/drivers/sound/Kconfig
+++ b/drivers/sound/Kconfig
@@ -9,3 +9,12 @@ config SOUND
Note: At present the sound setup is somewhat tangled up in that the
audio codecs are called from the sound-i2s code. This could be
converted to driver model.
+
+config I2S
+ bool "Enable I2S support"
+ depends on SOUND
+ help
+ I2S is a serial bus often used to transmit audio data from the
+ SoC to the audio codec. This option enables sound support using
+ I2S. It calls either of the two supported codecs (no use is made
+ of driver model at present).
diff --git a/include/configs/exynos5250-common.h b/include/configs/exynos5250-common.h
index 9f09e14..c9eac15 100644
--- a/include/configs/exynos5250-common.h
+++ b/include/configs/exynos5250-common.h
@@ -31,7 +31,6 @@
/* Sound */
#ifdef CONFIG_CMD_SOUND
#define CONFIG_I2S_SAMSUNG
-#define CONFIG_I2S
#define CONFIG_SOUND_MAX98095
#define CONFIG_SOUND_WM8994
#endif