1494N/A * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved. 1494N/A * Copyright (c) 2006, 2013, Intel Corporation 1494N/A * Permission is hereby granted, free of charge, to any person obtaining a 1494N/A * copy of this software and associated documentation files (the "Software"), 1494N/A * to deal in the Software without restriction, including without limitation 1494N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense, 1494N/A * and/or sell copies of the Software, and to permit persons to whom the 1494N/A * Software is furnished to do so, subject to the following conditions: 1494N/A * The above copyright notice and this permission notice (including the next 1494N/A * paragraph) shall be included in all copies or substantial portions of the 1494N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1494N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1494N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1494N/A * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1494N/A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1494N/A * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 1494N/A * Eric Anholt <eric@anholt.net> 1494N/A /* skip to first section */ 1494N/A /* walk the sections looking for section_id */ 1494N/A * the size of fp_timing varies on the different platform. 1494N/A * So calculate the DVO timing relative offset in LVDS data 1494N/A * entry to get the DVO timing entry 1494N/A * this function may return NULL if the corresponding entry is invalid 1494N/A/* Try to find integrated panel data */ 1494N/A * enumerate the LVDS panel timing info entry in VBT to check whether 1494N/A * the LVDS downclock is found. 1494N/A "Normal Clock %dKHz, downclock %dKHz\n",
1494N/A /* check the resolution, just to be sure */ 1494N/A/* Try to find sdvo panel data */ 1494N/A " %d lvds_use_ssc %d lvds_ssc_freq %d display_clock_mode" 1494N/A " %d fdi_rx_polarity_inverted %d\n",
1494N/A /* judge whether the size of child device meets the requirements. 1494N/A * If the child device size obtained from general definition block 1494N/A * is different with sizeof(struct child_device_config), skip the 1494N/A * parsing of sdvo device info 1494N/A /* different child dev size . Ignore it */ 1494N/A /* get the block size of general definitions */ 1494N/A /* get the number of child device */ 1494N/A /* skip the device block if device type is invalid */ 1494N/A * If the slave address is neither 0x70 nor 0x72, 1494N/A * it is not a SDVO device. Skip it. 1494N/A /* skip the incorrect SDVO port */ 1494N/A /* Maybe this is a SDVO device with multiple inputs */ 1494N/A /* And the mapping info is not added */ 1494N/A " is a SDVO device with multiple inputs.\n");
1494N/A /* No SDVO device info is found */ 1494N/A /* Get the eDP sequencing and link info */ 1494N/A /* judge whether the size of child device meets the requirements. 1494N/A * If the child device size obtained from general definition block 1494N/A * is different with sizeof(struct child_device_config), skip the 1494N/A * parsing of sdvo device info 1494N/A /* different child dev size . Ignore it */ 1494N/A /* get the block size of general definitions */ 1494N/A /* get the number of child device */ 1494N/A /* get the number of child device that is present */ 1494N/A /* skip the device block if device type is invalid */ 1494N/A /* skip the device block if device type is invalid */ 1494N/A * intel_init_bios - initialize VBIOS settings & find VBT 1494N/A * Loads the Video BIOS and checks that the VBT exists. Sets scratch registers 1494N/A * Returns 0 on success, nonzero on failure. 1494N/A /* Scour memory looking for the VBT signature */ 1494N/A /* Grab useful general definitions */ 1494N/A/* Ensure that vital registers have been initialised, even if the BIOS 1494N/A * is absent or just failing to do its job. 1494N/A /* Set the Panel Power On/Off timings if uninitialized. */ 1494N/A /* Set T2 to 40ms and T5 to 200ms */ 1494N/A /* Set T3 to 35ms and Tx to 200ms */