2 * Copyright (C) 2013 Samsung Electronics
4 * SPDX-License-Identifier: GPL-2.0+
13 #include <asm/arch/board.h>
14 #include <asm/arch/cpu.h>
15 #include <asm/arch/gpio.h>
16 #include <asm/arch/pinmux.h>
17 #include <asm/arch/dp_info.h>
19 DECLARE_GLOBAL_DATA_PTR;
21 #ifdef CONFIG_USB_EHCI_EXYNOS
22 static int board_usb_vbus_init(void)
24 /* Enable VBUS power switch */
25 gpio_direction_output(EXYNOS5420_GPIO_X26, 1);
27 /* VBUS turn ON time */
36 #ifdef CONFIG_USB_EHCI_EXYNOS
37 board_usb_vbus_init();
43 void cfg_lcd_gpio(void)
46 gpio_cfg_pin(EXYNOS5420_GPIO_B20, S5P_GPIO_OUTPUT);
47 gpio_set_value(EXYNOS5420_GPIO_B20, 1);
50 gpio_cfg_pin(EXYNOS5420_GPIO_X15, S5P_GPIO_OUTPUT);
51 gpio_set_value(EXYNOS5420_GPIO_X15, 1);
53 /* Set Hotplug detect for DP */
54 gpio_cfg_pin(EXYNOS5420_GPIO_X07, S5P_GPIO_FUNC(0x3));
57 vidinfo_t panel_info = {
63 .vl_clkp = CONFIG_SYS_LOW,
64 .vl_hsp = CONFIG_SYS_LOW,
65 .vl_vsp = CONFIG_SYS_LOW,
66 .vl_dp = CONFIG_SYS_LOW,
67 .vl_bpix = 4, /* LCD_BPP = 2^4, for output conosle on LCD */
69 /* wDP panel timing infomation */
77 .vl_cmd_allow_len = 0xf,
80 .cfg_gpio = cfg_lcd_gpio,
84 .dual_lcd_enabled = 0,
89 .interface_mode = FIMD_RGB_INTERFACE,
93 static struct edp_device_info edp_info = {
106 .lt_status = DP_LT_NONE,
110 .bist_mode = DP_DISABLE,
111 .bist_pattern = NO_PATTERN,
112 .h_sync_polarity = 0,
113 .v_sync_polarity = 0,
115 .color_space = COLOR_RGB,
116 .dynamic_range = VESA,
117 .ycbcr_coeff = COLOR_YCBCR601,
118 .color_depth = COLOR_8,
122 static struct exynos_dp_platform_data dp_platform_data = {
123 .phy_enable = set_dp_phy_ctrl,
124 .edp_dev_info = &edp_info,
127 void init_panel_info(vidinfo_t *vid)
129 vid->rgb_mode = MODE_RGB_P;
131 exynos_set_dp_platform_data(&dp_platform_data);
135 int board_get_revision(void)