mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-02 20:29:45 -04:00
EXYNOS: Add pinmux for I2S
This patch adds pinmux support for I2S1 Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
parent
75ddfb4ff4
commit
6b0884d73a
@ -230,6 +230,16 @@ static void exynos5_i2c_config(int peripheral, int flags)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void exynos5_i2s_config(int peripheral)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
struct exynos5_gpio_part1 *gpio1 =
|
||||||
|
(struct exynos5_gpio_part1 *) samsung_get_base_gpio_part1();
|
||||||
|
|
||||||
|
for (i = 0; i < 5; i++)
|
||||||
|
s5p_gpio_cfg_pin(&gpio1->b0, i, GPIO_FUNC(0x02));
|
||||||
|
}
|
||||||
|
|
||||||
static int exynos5_pinmux_config(int peripheral, int flags)
|
static int exynos5_pinmux_config(int peripheral, int flags)
|
||||||
{
|
{
|
||||||
switch (peripheral) {
|
switch (peripheral) {
|
||||||
@ -257,6 +267,9 @@ static int exynos5_pinmux_config(int peripheral, int flags)
|
|||||||
case PERIPH_ID_I2C7:
|
case PERIPH_ID_I2C7:
|
||||||
exynos5_i2c_config(peripheral, flags);
|
exynos5_i2c_config(peripheral, flags);
|
||||||
break;
|
break;
|
||||||
|
case PERIPH_ID_I2S1:
|
||||||
|
exynos5_i2s_config(peripheral);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
debug("%s: invalid peripheral %d", __func__, peripheral);
|
debug("%s: invalid peripheral %d", __func__, peripheral);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -38,6 +38,7 @@ enum periph_id {
|
|||||||
PERIPH_ID_I2C5,
|
PERIPH_ID_I2C5,
|
||||||
PERIPH_ID_I2C6,
|
PERIPH_ID_I2C6,
|
||||||
PERIPH_ID_I2C7,
|
PERIPH_ID_I2C7,
|
||||||
|
PERIPH_ID_I2S1,
|
||||||
PERIPH_ID_SDMMC0,
|
PERIPH_ID_SDMMC0,
|
||||||
PERIPH_ID_SDMMC1,
|
PERIPH_ID_SDMMC1,
|
||||||
PERIPH_ID_SDMMC2,
|
PERIPH_ID_SDMMC2,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user