2 * Copyright (C) 2012 Samsung Electronics
4 * SPDX-License-Identifier: GPL-2.0+
14 #include <asm/arch/cpu.h>
15 #include <asm/arch/dwmmc.h>
16 #include <asm/arch/gpio.h>
17 #include <asm/arch/mmc.h>
18 #include <asm/arch/pinmux.h>
19 #include <asm/arch/power.h>
20 #include <asm/arch/sromc.h>
21 #include <power/pmic.h>
22 #include <power/max77686_pmic.h>
25 DECLARE_GLOBAL_DATA_PTR;
27 #ifdef CONFIG_SOUND_MAX98095
28 static void board_enable_audio_codec(void)
30 /* Enable MAX98095 Codec */
31 gpio_direction_output(EXYNOS5_GPIO_X17, 1);
32 gpio_set_pull(EXYNOS5_GPIO_X17, S5P_GPIO_PULL_NONE);
38 #ifdef CONFIG_SOUND_MAX98095
39 board_enable_audio_codec();
45 void exynos_cfg_lcd_gpio(void)
48 gpio_cfg_pin(EXYNOS5_GPIO_B20, S5P_GPIO_OUTPUT);
49 gpio_set_value(EXYNOS5_GPIO_B20, 1);
52 gpio_cfg_pin(EXYNOS5_GPIO_X15, S5P_GPIO_OUTPUT);
53 gpio_set_value(EXYNOS5_GPIO_X15, 1);
55 /* Set Hotplug detect for DP */
56 gpio_cfg_pin(EXYNOS5_GPIO_X07, S5P_GPIO_FUNC(0x3));
59 void exynos_set_dp_phy(unsigned int onoff)
61 set_dp_phy_ctrl(onoff);