look for DDC data in both EDID and edid properties so we can use firmware

provided data on my XVR-100
This commit is contained in:
macallan 2010-08-11 19:14:26 +00:00
parent 1c1548ae4e
commit 50603223e7
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.175 2010/04/04 23:38:55 nakayama Exp $ */
/* $NetBSD: autoconf.c,v 1.176 2010/08/11 19:14:26 macallan Exp $ */
/*
* Copyright (c) 1996
@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.175 2010/04/04 23:38:55 nakayama Exp $");
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.176 2010/08/11 19:14:26 macallan Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -1150,7 +1150,8 @@ copyprops(struct device *busdev, int node, prop_dictionary_t dict)
fboffset = (uint32_t)(fbpa - mem_base);
prop_dictionary_set_uint32(dict, "address", fboffset);
}
of_to_dataprop(dict, console_node, "EDID", "EDID");
if (!of_to_dataprop(dict, console_node, "EDID", "EDID"))
of_to_dataprop(dict, console_node, "edid", "EDID");
temp = 0;
if (OF_getprop(console_node, "ATY,RefCLK", &temp, sizeof(temp)) != 4) {