aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2013-03-06 22:03:06 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-21 18:00:01 -0400
commit463c399c2a8a9a465ebc17524a14616a49106689 (patch)
treefca5ecbc79320eeb0d7e58570f72e278cc6b4639
parentcfd08f0fb9b761c44e4d853c5b38f7fc7c3f5325 (diff)
[media] af9033: add IT9135 demod reg init tables
Dumped out from Windows driver version 12.07.06.1, 07/06/2012. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb-frontends/af9033.c6
-rw-r--r--drivers/media/dvb-frontends/af9033_priv.h209
2 files changed, 214 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/af9033.c b/drivers/media/dvb-frontends/af9033.c
index f51022817fed..23690aa36460 100644
--- a/drivers/media/dvb-frontends/af9033.c
+++ b/drivers/media/dvb-frontends/af9033.c
@@ -297,10 +297,14 @@ static int af9033_init(struct dvb_frontend *fe)
297 case AF9033_TUNER_IT9135_38: 297 case AF9033_TUNER_IT9135_38:
298 case AF9033_TUNER_IT9135_51: 298 case AF9033_TUNER_IT9135_51:
299 case AF9033_TUNER_IT9135_52: 299 case AF9033_TUNER_IT9135_52:
300 len = ARRAY_SIZE(ofsm_init_it9135_v1);
301 init = ofsm_init_it9135_v1;
302 break;
300 case AF9033_TUNER_IT9135_60: 303 case AF9033_TUNER_IT9135_60:
301 case AF9033_TUNER_IT9135_61: 304 case AF9033_TUNER_IT9135_61:
302 case AF9033_TUNER_IT9135_62: 305 case AF9033_TUNER_IT9135_62:
303 len = 0; 306 len = ARRAY_SIZE(ofsm_init_it9135_v2);
307 init = ofsm_init_it9135_v2;
304 break; 308 break;
305 default: 309 default:
306 len = ARRAY_SIZE(ofsm_init); 310 len = ARRAY_SIZE(ofsm_init);
diff --git a/drivers/media/dvb-frontends/af9033_priv.h b/drivers/media/dvb-frontends/af9033_priv.h
index e9bd78265543..0808319d4324 100644
--- a/drivers/media/dvb-frontends/af9033_priv.h
+++ b/drivers/media/dvb-frontends/af9033_priv.h
@@ -547,5 +547,214 @@ static const struct reg_val tuner_init_fc2580[] = {
547 { 0x80f1e6, 0x01 }, 547 { 0x80f1e6, 0x01 },
548}; 548};
549 549
550static const struct reg_val ofsm_init_it9135_v1[] = {
551 { 0x800051, 0x01 },
552 { 0x800070, 0x0a },
553 { 0x80007e, 0x04 },
554 { 0x800081, 0x0a },
555 { 0x80008a, 0x01 },
556 { 0x80008e, 0x01 },
557 { 0x800092, 0x06 },
558 { 0x800099, 0x01 },
559 { 0x80009f, 0xe1 },
560 { 0x8000a0, 0xcf },
561 { 0x8000a3, 0x01 },
562 { 0x8000a5, 0x01 },
563 { 0x8000a6, 0x01 },
564 { 0x8000a9, 0x00 },
565 { 0x8000aa, 0x01 },
566 { 0x8000b0, 0x01 },
567 { 0x8000c2, 0x05 },
568 { 0x8000c6, 0x19 },
569 { 0x80f000, 0x0f },
570 { 0x80f016, 0x10 },
571 { 0x80f017, 0x04 },
572 { 0x80f018, 0x05 },
573 { 0x80f019, 0x04 },
574 { 0x80f01a, 0x05 },
575 { 0x80f021, 0x03 },
576 { 0x80f022, 0x0a },
577 { 0x80f023, 0x0a },
578 { 0x80f02b, 0x00 },
579 { 0x80f02c, 0x01 },
580 { 0x80f064, 0x03 },
581 { 0x80f065, 0xf9 },
582 { 0x80f066, 0x03 },
583 { 0x80f067, 0x01 },
584 { 0x80f06f, 0xe0 },
585 { 0x80f070, 0x03 },
586 { 0x80f072, 0x0f },
587 { 0x80f073, 0x03 },
588 { 0x80f078, 0x00 },
589 { 0x80f087, 0x00 },
590 { 0x80f09b, 0x3f },
591 { 0x80f09c, 0x00 },
592 { 0x80f09d, 0x20 },
593 { 0x80f09e, 0x00 },
594 { 0x80f09f, 0x0c },
595 { 0x80f0a0, 0x00 },
596 { 0x80f130, 0x04 },
597 { 0x80f132, 0x04 },
598 { 0x80f144, 0x1a },
599 { 0x80f146, 0x00 },
600 { 0x80f14a, 0x01 },
601 { 0x80f14c, 0x00 },
602 { 0x80f14d, 0x00 },
603 { 0x80f14f, 0x04 },
604 { 0x80f158, 0x7f },
605 { 0x80f15a, 0x00 },
606 { 0x80f15b, 0x08 },
607 { 0x80f15d, 0x03 },
608 { 0x80f15e, 0x05 },
609 { 0x80f163, 0x05 },
610 { 0x80f166, 0x01 },
611 { 0x80f167, 0x40 },
612 { 0x80f168, 0x0f },
613 { 0x80f17a, 0x00 },
614 { 0x80f17b, 0x00 },
615 { 0x80f183, 0x01 },
616 { 0x80f19d, 0x40 },
617 { 0x80f1bc, 0x36 },
618 { 0x80f1bd, 0x00 },
619 { 0x80f1cb, 0xa0 },
620 { 0x80f1cc, 0x01 },
621 { 0x80f204, 0x10 },
622 { 0x80f214, 0x00 },
623 { 0x80f40e, 0x0a },
624 { 0x80f40f, 0x40 },
625 { 0x80f410, 0x08 },
626 { 0x80f55f, 0x0a },
627 { 0x80f561, 0x15 },
628 { 0x80f562, 0x20 },
629 { 0x80f5df, 0xfb },
630 { 0x80f5e0, 0x00 },
631 { 0x80f5e3, 0x09 },
632 { 0x80f5e4, 0x01 },
633 { 0x80f5e5, 0x01 },
634 { 0x80f5f8, 0x01 },
635 { 0x80f5fd, 0x01 },
636 { 0x80f600, 0x05 },
637 { 0x80f601, 0x08 },
638 { 0x80f602, 0x0b },
639 { 0x80f603, 0x0e },
640 { 0x80f604, 0x11 },
641 { 0x80f605, 0x14 },
642 { 0x80f606, 0x17 },
643 { 0x80f607, 0x1f },
644 { 0x80f60e, 0x00 },
645 { 0x80f60f, 0x04 },
646 { 0x80f610, 0x32 },
647 { 0x80f611, 0x10 },
648 { 0x80f707, 0xfc },
649 { 0x80f708, 0x00 },
650 { 0x80f709, 0x37 },
651 { 0x80f70a, 0x00 },
652 { 0x80f78b, 0x01 },
653 { 0x80f80f, 0x40 },
654 { 0x80f810, 0x54 },
655 { 0x80f811, 0x5a },
656 { 0x80f905, 0x01 },
657 { 0x80fb06, 0x03 },
658 { 0x80fd8b, 0x00 },
659};
660
661static const struct reg_val ofsm_init_it9135_v2[] = {
662 { 0x800051, 0x01 },
663 { 0x800070, 0x0a },
664 { 0x80007e, 0x04 },
665 { 0x800081, 0x0a },
666 { 0x80008a, 0x01 },
667 { 0x80008e, 0x01 },
668 { 0x800092, 0x06 },
669 { 0x800099, 0x01 },
670 { 0x80009f, 0xe1 },
671 { 0x8000a0, 0xcf },
672 { 0x8000a3, 0x01 },
673 { 0x8000a5, 0x01 },
674 { 0x8000a6, 0x01 },
675 { 0x8000a9, 0x00 },
676 { 0x8000aa, 0x01 },
677 { 0x8000b0, 0x01 },
678 { 0x8000c2, 0x05 },
679 { 0x8000c6, 0x19 },
680 { 0x80f000, 0x0f },
681 { 0x80f02b, 0x00 },
682 { 0x80f064, 0x03 },
683 { 0x80f065, 0xf9 },
684 { 0x80f066, 0x03 },
685 { 0x80f067, 0x01 },
686 { 0x80f06f, 0xe0 },
687 { 0x80f070, 0x03 },
688 { 0x80f072, 0x0f },
689 { 0x80f073, 0x03 },
690 { 0x80f078, 0x00 },
691 { 0x80f087, 0x00 },
692 { 0x80f09b, 0x3f },
693 { 0x80f09c, 0x00 },
694 { 0x80f09d, 0x20 },
695 { 0x80f09e, 0x00 },
696 { 0x80f09f, 0x0c },
697 { 0x80f0a0, 0x00 },
698 { 0x80f130, 0x04 },
699 { 0x80f132, 0x04 },
700 { 0x80f144, 0x1a },
701 { 0x80f146, 0x00 },
702 { 0x80f14a, 0x01 },
703 { 0x80f14c, 0x00 },
704 { 0x80f14d, 0x00 },
705 { 0x80f14f, 0x04 },
706 { 0x80f158, 0x7f },
707 { 0x80f15a, 0x00 },
708 { 0x80f15b, 0x08 },
709 { 0x80f15d, 0x03 },
710 { 0x80f15e, 0x05 },
711 { 0x80f163, 0x05 },
712 { 0x80f166, 0x01 },
713 { 0x80f167, 0x40 },
714 { 0x80f168, 0x0f },
715 { 0x80f17a, 0x00 },
716 { 0x80f17b, 0x00 },
717 { 0x80f183, 0x01 },
718 { 0x80f19d, 0x40 },
719 { 0x80f1bc, 0x36 },
720 { 0x80f1bd, 0x00 },
721 { 0x80f1cb, 0xa0 },
722 { 0x80f1cc, 0x01 },
723 { 0x80f204, 0x10 },
724 { 0x80f214, 0x00 },
725 { 0x80f40e, 0x0a },
726 { 0x80f40f, 0x40 },
727 { 0x80f410, 0x08 },
728 { 0x80f55f, 0x0a },
729 { 0x80f561, 0x15 },
730 { 0x80f562, 0x20 },
731 { 0x80f5e3, 0x09 },
732 { 0x80f5e4, 0x01 },
733 { 0x80f5e5, 0x01 },
734 { 0x80f600, 0x05 },
735 { 0x80f601, 0x08 },
736 { 0x80f602, 0x0b },
737 { 0x80f603, 0x0e },
738 { 0x80f604, 0x11 },
739 { 0x80f605, 0x14 },
740 { 0x80f606, 0x17 },
741 { 0x80f607, 0x1f },
742 { 0x80f60e, 0x00 },
743 { 0x80f60f, 0x04 },
744 { 0x80f610, 0x32 },
745 { 0x80f611, 0x10 },
746 { 0x80f707, 0xfc },
747 { 0x80f708, 0x00 },
748 { 0x80f709, 0x37 },
749 { 0x80f70a, 0x00 },
750 { 0x80f78b, 0x01 },
751 { 0x80f80f, 0x40 },
752 { 0x80f810, 0x54 },
753 { 0x80f811, 0x5a },
754 { 0x80f905, 0x01 },
755 { 0x80fb06, 0x03 },
756 { 0x80fd8b, 0x00 },
757};
758
550#endif /* AF9033_PRIV_H */ 759#endif /* AF9033_PRIV_H */
551 760