diff options
author | Rajeshwari Shinde <rajeshwari.s@samsung.com> | 2013-02-14 19:46:14 +0000 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2013-03-08 22:34:18 +0900 |
commit | ce07380534a9fc3cba2b3c1f97932d126ef9979a (patch) | |
tree | 410ce006a5e8a537781c5f95995be5ad788f4288 /board/samsung | |
parent | 14d2dfc33a087cf98ae37e453edd294c7835caae (diff) | |
download | u-boot-imx-ce07380534a9fc3cba2b3c1f97932d126ef9979a.zip u-boot-imx-ce07380534a9fc3cba2b3c1f97932d126ef9979a.tar.gz u-boot-imx-ce07380534a9fc3cba2b3c1f97932d126ef9979a.tar.bz2 |
EXYNOS5: GPIO to enable MAX98095
This patch sets high a GPIO to enable the codec MAX98095
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>
Diffstat (limited to 'board/samsung')
-rw-r--r-- | board/samsung/smdk5250/smdk5250.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c index ffc5ee5..6f6f2c2 100644 --- a/board/samsung/smdk5250/smdk5250.c +++ b/board/samsung/smdk5250/smdk5250.c @@ -56,6 +56,18 @@ int board_usb_vbus_init(void) } #endif +#ifdef CONFIG_SOUND_MAX98095 +static void board_enable_audio_codec(void) +{ + struct exynos5_gpio_part1 *gpio1 = (struct exynos5_gpio_part1 *) + samsung_get_base_gpio_part1(); + + /* Enable MAX98095 Codec */ + s5p_gpio_direction_output(&gpio1->x1, 7, 1); + s5p_gpio_set_pull(&gpio1->x1, 7, GPIO_PULL_NONE); +} +#endif + int board_init(void) { gd->bd->bi_boot_params = (PHYS_SDRAM_1 + 0x100UL); @@ -65,6 +77,9 @@ int board_init(void) #ifdef CONFIG_USB_EHCI_EXYNOS board_usb_vbus_init(); #endif +#ifdef CONFIG_SOUND_MAX98095 + board_enable_audio_codec(); +#endif return 0; } |