drm/rockchip: Don't change hdmi reference clock rate
[drm/drm-misc.git] / drivers / video / fbdev / via / via_aux_ch7301.c
blob70852d06b5d583431ac966b94fecae3b28c917fa
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Copyright 2011 Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
4 */
5 /*
6 * driver for Chrontel CH7301 DVI Transmitter
7 */
9 #include <linux/slab.h>
10 #include "via_aux.h"
13 static const char *name = "CH7301 DVI Transmitter";
16 static void probe(struct via_aux_bus *bus, u8 addr)
18 struct via_aux_drv drv = {
19 .bus = bus,
20 .addr = addr,
21 .name = name};
22 u8 tmp;
24 if (!via_aux_read(&drv, 0x4B, &tmp, 1) || tmp != 0x17)
25 return;
27 printk(KERN_INFO "viafb: Found %s at address 0x%x\n", name, addr);
28 via_aux_add(&drv);
31 void via_aux_ch7301_probe(struct via_aux_bus *bus)
33 probe(bus, 0x75);
34 probe(bus, 0x76);