2 * Copyright (C) 2013 Samsung Electronics
4 * SPDX-License-Identifier: GPL-2.0+
15 #include <asm/arch/board.h>
16 #include <asm/arch/cpu.h>
17 #include <asm/arch/pinmux.h>
18 #include <asm/arch/system.h>
19 #include <asm/arch/dp_info.h>
20 #include <power/tps65090_pmic.h>
22 DECLARE_GLOBAL_DATA_PTR;
24 #ifdef CONFIG_USB_EHCI_EXYNOS
25 static int board_usb_vbus_init(void)
27 /* Enable VBUS power switch */
28 gpio_direction_output(EXYNOS5420_GPIO_X26, 1);
30 /* VBUS turn ON time */
39 #ifdef CONFIG_USB_EHCI_EXYNOS
40 board_usb_vbus_init();
46 static int has_edp_bridge(void)
50 node = fdtdec_next_compatible(gd->fdt_blob, 0, COMPAT_PARADE_PS8625);
52 /* No node for bridge in device tree. */
56 /* Default is with bridge ic */
60 void exynos_lcd_power_on(void)
64 #ifdef CONFIG_POWER_TPS65090
65 ret = tps65090_init();
67 printf("%s: tps65090_init() failed\n", __func__);
71 tps65090_fet_enable(6);
76 /* TODO(ajaykumar.rs@samsung.com): Use device tree */
77 gpio_request(EXYNOS5420_GPIO_X35, "edp_slp#");
78 gpio_direction_output(EXYNOS5420_GPIO_X35, 1); /* EDP_SLP# */
80 gpio_request(EXYNOS5420_GPIO_Y77, "edp_rst#");
81 gpio_direction_output(EXYNOS5420_GPIO_Y77, 1); /* EDP_RST# */
82 gpio_request(EXYNOS5420_GPIO_X26, "edp_hpd");
83 gpio_direction_input(EXYNOS5420_GPIO_X26); /* EDP_HPD */
84 gpio_set_pull(EXYNOS5420_GPIO_X26, S5P_GPIO_PULL_NONE);
87 if (parade_init(gd->fdt_blob))
88 printf("%s: ps8625_init() failed\n", __func__);
91 void exynos_backlight_on(unsigned int onoff)
94 gpio_request(EXYNOS5420_GPIO_B20, "backlight_on");
95 gpio_cfg_pin(EXYNOS5420_GPIO_B20, S5P_GPIO_FUNC(0x1));
96 gpio_set_value(EXYNOS5420_GPIO_B20, 1);
98 #ifdef CONFIG_POWER_TPS65090
99 tps65090_fet_enable(1);
104 int board_get_revision(void)