Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  * Copyright 2011 Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
0004  */
0005 /*
0006  * driver for VIA VT1625(M) HDTV Encoder
0007  */
0008 
0009 #include <linux/slab.h>
0010 #include "via_aux.h"
0011 
0012 
0013 static const char *name = "VT1625(M) HDTV Encoder";
0014 
0015 
0016 static void probe(struct via_aux_bus *bus, u8 addr)
0017 {
0018     struct via_aux_drv drv = {
0019         .bus    =   bus,
0020         .addr   =   addr,
0021         .name   =   name};
0022     u8 tmp;
0023 
0024     if (!via_aux_read(&drv, 0x1B, &tmp, 1) || tmp != 0x50)
0025         return;
0026 
0027     printk(KERN_INFO "viafb: Found %s at address 0x%x\n", name, addr);
0028     via_aux_add(&drv);
0029 }
0030 
0031 void via_aux_vt1625_probe(struct via_aux_bus *bus)
0032 {
0033     probe(bus, 0x20);
0034     probe(bus, 0x21);
0035 }