58 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/*3 * isl6405.h - driver for dual lnb supply and control ic ISL64054 *5 * Copyright (C) 2008 Hartmut Hackmann6 * Copyright (C) 2006 Oliver Endriss7 *8 * the project's page is at https://linuxtv.org9 */10 11#ifndef _ISL6405_H12#define _ISL6405_H13 14#include <linux/dvb/frontend.h>15 16/* system register bits */17 18/* this bit selects register (control) 1 or 219 note that the bit maps are different */20 21#define ISL6405_SR 0x8022 23/* SR = 0 */24#define ISL6405_OLF1 0x0125#define ISL6405_EN1 0x0226#define ISL6405_VSEL1 0x0427#define ISL6405_LLC1 0x0828#define ISL6405_ENT1 0x1029#define ISL6405_ISEL1 0x2030#define ISL6405_DCL 0x4031 32/* SR = 1 */33#define ISL6405_OLF2 0x0134#define ISL6405_OTF 0x0235#define ISL6405_EN2 0x0436#define ISL6405_VSEL2 0x0837#define ISL6405_LLC2 0x1038#define ISL6405_ENT2 0x2039#define ISL6405_ISEL2 0x4040 41#if IS_REACHABLE(CONFIG_DVB_ISL6405)42/* override_set and override_clear control which system register bits (above)43 * to always set & clear44 */45extern struct dvb_frontend *isl6405_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c,46 u8 i2c_addr, u8 override_set, u8 override_clear);47#else48static inline struct dvb_frontend *isl6405_attach(struct dvb_frontend *fe,49 struct i2c_adapter *i2c, u8 i2c_addr,50 u8 override_set, u8 override_clear)51{52 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);53 return NULL;54}55#endif /* CONFIG_DVB_ISL6405 */56 57#endif58