Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gma500: SDVO DDC bus guessing isn't working so hardcode it instead

We currently don't have support for parsing SDVO mappings from BIOS so we're
guessing the bus switch parameter. This isn't working so hardcode it to a
configuration known to work on most poulsbo hardware.

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Patrik Jakobsson and committed by
Dave Airlie
fea578b6 9bd81acd

+8
+8
drivers/gpu/drm/gma500/psb_intel_sdvo.c
··· 1876 1876 static void 1877 1877 psb_intel_sdvo_guess_ddc_bus(struct psb_intel_sdvo *sdvo) 1878 1878 { 1879 + /* FIXME: At the moment, ddc_bus = 2 is the only thing that works. 1880 + * We need to figure out if this is true for all available poulsbo 1881 + * hardware, or if we need to fiddle with the guessing code above. 1882 + * The problem might go away if we can parse sdvo mappings from bios */ 1883 + sdvo->ddc_bus = 2; 1884 + 1885 + #if 0 1879 1886 uint16_t mask = 0; 1880 1887 unsigned int num_bits; 1881 1888 ··· 1914 1907 1915 1908 /* Corresponds to SDVO_CONTROL_BUS_DDCx */ 1916 1909 sdvo->ddc_bus = 1 << num_bits; 1910 + #endif 1917 1911 } 1918 1912 1919 1913 /**