tuner_drv_config.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. *
  3. * drivers/media/isdbtmm/tuner_drv_config.h
  4. *
  5. * MM Tuner Driver
  6. *
  7. * Copyright (C) (2013, Samsung Electronics)
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation version 2.
  12. *
  13. * This program is distributed "as is" WITHOUT ANY WARRANTY of any
  14. * kind, whether express or implied; without even the implied warranty
  15. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. */
  19. #ifndef _TUNER_DRV_CONFIG_H
  20. #define _TUNER_DRV_CONFIG_H
  21. /******************************************************************************
  22. * data
  23. ******************************************************************************/
  24. #define TUNER_SET_ON 1 /* setting ON */
  25. #define TUNER_SET_OFF 0 /* setting OFF */
  26. /* device driver file name */
  27. #define TUNER_CONFIG_DRIVER_NAME "mmtuneri2c"
  28. /* device number */
  29. #define TUNER_CONFIG_DRV_MAJOR 225 /* MAJOR No. */
  30. #define TUNER_CONFIG_DRV_MINOR 0 /* MINOR No. */
  31. /* compile switch for IRQ */
  32. /* #define TUNER_CONFIG_IRQ_PC_LINUX */
  33. /* IRQ# */
  34. #define TUNER_CONFIG_INT 0x07 /* IRQ No. ( Not Used ) */
  35. /* I2C bus # */
  36. #define TUNER_CONFIG_I2C_BUSNUM 0x0A /* I2C Bus No. */
  37. /* kernel thread priority */
  38. #define TUNER_CONFIG_KTH_PRI 95 /* priority (0�`99) */
  39. /* exclusive access control */
  40. #define TUNER_CONFIG_DRV_MULTI /* exclusive control enable */
  41. /* interrupt trigger type */
  42. #define TUNER_CONFIG_IRQ_LEVEL TUNER_SET_ON /* trigger type = level */
  43. /* I2C slave address of tuner device register bank */
  44. #define TUNER_SLAVE_ADR_S 0x60 /* reg. bank: Sub */
  45. #define TUNER_SLAVE_ADR_M1 0x61 /* reg. bank: Main#1 */
  46. #define TUNER_SLAVE_ADR_M2 0x62 /* reg. bank: Main#2 */
  47. #endif/* _TUNER_DRV_CONFIG_H */