exynos5250: Add a pinmux function to set up i2s bus 0.

This bus is hooked up on snow and, as it's the only bus hooked up on some
other boards, having it available in firmware to test is handy.

BUG=chrome-os-partner:19420
TEST=Built and booted on snow and heard a beep.
BRANCH=None

Change-Id: Icb48b9af4a67d382bd6fbce1e4c6a320d811d365
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: https://gerrit.chromium.org/gerrit/64877
Reviewed-by: Ronald G. Minnich <rminnich@chromium.org>
Commit-Queue: Stefan Reinauer <reinauer@google.com>
Tested-by: Stefan Reinauer <reinauer@google.com>
This commit is contained in:
Gabe Black 2013-08-05 22:15:21 -07:00 committed by ChromeBot
commit d2f8bd60bd
2 changed files with 11 additions and 0 deletions

View file

@ -244,6 +244,16 @@ void exynos_pinmux_dphpd(void)
gpio_set_pull(GPIO_X07, GPIO_PULL_NONE);
}
void exynos_pinmux_i2s0(void)
{
int i;
for (i = 0; i < 5; i++) {
gpio_cfg_pin(GPIO_Z0 + i, GPIO_FUNC(0x02));
gpio_set_pull(GPIO_Z0 + i, GPIO_PULL_NONE);
}
}
void exynos_pinmux_i2s1(void)
{
int i;

View file

@ -52,6 +52,7 @@ void exynos_pinmux_i2c7(void);
void exynos_pinmux_dphpd(void);
void exynos_pinmux_i2s0(void);
void exynos_pinmux_i2s1(void);
#endif