Antti Palosaari | f926374 | 2012-03-30 06:37:26 -0300 | [diff] [blame] | 1 | /* |
Antti Palosaari | 465433f | 2015-04-15 20:26:06 -0300 | [diff] [blame] | 2 | * Infineon TUA9001 silicon tuner driver |
Antti Palosaari | f926374 | 2012-03-30 06:37:26 -0300 | [diff] [blame] | 3 | * |
| 4 | * Copyright (C) 2009 Antti Palosaari <crope@iki.fi> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
Antti Palosaari | f926374 | 2012-03-30 06:37:26 -0300 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | #ifndef TUA9001_H |
| 18 | #define TUA9001_H |
| 19 | |
| 20 | #include "dvb_frontend.h" |
| 21 | |
Antti Palosaari | fc851c6 | 2015-04-15 19:12:34 -0300 | [diff] [blame] | 22 | /* |
| 23 | * I2C address |
| 24 | * 0x60, |
| 25 | */ |
| 26 | |
| 27 | /** |
| 28 | * struct tua9001_platform_data - Platform data for the tua9001 driver |
| 29 | * @dvb_frontend: DVB frontend. |
| 30 | */ |
| 31 | struct tua9001_platform_data { |
| 32 | struct dvb_frontend *dvb_frontend; |
| 33 | }; |
| 34 | |
Antti Palosaari | 89054e3 | 2012-09-11 22:27:07 -0300 | [diff] [blame] | 35 | /* |
| 36 | * TUA9001 I/O PINs: |
| 37 | * |
| 38 | * CEN - chip enable |
| 39 | * 0 = chip disabled (chip off) |
| 40 | * 1 = chip enabled (chip on) |
| 41 | * |
| 42 | * RESETN - chip reset |
| 43 | * 0 = reset disabled (chip reset off) |
| 44 | * 1 = reset enabled (chip reset on) |
| 45 | * |
| 46 | * RXEN - RX enable |
| 47 | * 0 = RX disabled (chip idle) |
| 48 | * 1 = RX enabled (chip tuned) |
| 49 | */ |
| 50 | |
| 51 | #define TUA9001_CMD_CEN 0 |
| 52 | #define TUA9001_CMD_RESETN 1 |
| 53 | #define TUA9001_CMD_RXEN 2 |
| 54 | |
Antti Palosaari | f926374 | 2012-03-30 06:37:26 -0300 | [diff] [blame] | 55 | #endif |