2 * linux/drivers/video/nvidia/nv_of.c
4 * Copyright 2004 Antonino A. Daplas <adaplas @pol.net>
6 * Based on rivafb-i2c.c
8 * This file is subject to the terms and conditions of the GNU General Public
9 * License. See the file COPYING in the main directory of this archive
13 #include <linux/config.h>
14 #include <linux/module.h>
15 #include <linux/kernel.h>
16 #include <linux/sched.h>
17 #include <linux/delay.h>
18 #include <linux/pci.h>
24 #include <asm/pci-bridge.h>
30 void nvidia_create_i2c_busses(struct nvidia_par
*par
) {}
31 void nvidia_delete_i2c_busses(struct nvidia_par
*par
) {}
33 int nvidia_probe_i2c_connector(struct nvidia_par
*par
, int conn
, u8
**out_edid
)
35 struct device_node
*dp
;
36 unsigned char *pedid
= NULL
;
37 unsigned char *disptype
= NULL
;
38 static char *propnames
[] = {
39 "DFP,EDID", "LCD,EDID", "EDID", "EDID1", "EDID,B", "EDID,A", NULL
};
42 dp
= pci_device_to_OF_node(par
->pci_dev
);
43 for (; dp
!= NULL
; dp
= dp
->child
) {
44 disptype
= (unsigned char *)get_property(dp
, "display-type", NULL
);
47 if (strncmp(disptype
, "LCD", 3) != 0)
49 for (i
= 0; propnames
[i
] != NULL
; ++i
) {
50 pedid
= (unsigned char *)
51 get_property(dp
, propnames
[i
], NULL
);