aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2013-03-07 19:17:55 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-21 18:03:08 -0400
commita72cbb77c1f18e7e560afea9cba1159fa0968c50 (patch)
treea19565908ad31f85a82343dbbd46be203e3f261b
parent70375ecc452128d855f89e04b31a0961501cc153 (diff)
[media] af9033: add IT9135 tuner config "38" init table
Dumped out from the Windows driver version 12.07.06.1 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.c3
-rw-r--r--drivers/media/dvb-frontends/af9033_priv.h217
2 files changed, 220 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/af9033.c b/drivers/media/dvb-frontends/af9033.c
index 23690aa36460..1386d2968129 100644
--- a/drivers/media/dvb-frontends/af9033.c
+++ b/drivers/media/dvb-frontends/af9033.c
@@ -347,6 +347,9 @@ static int af9033_init(struct dvb_frontend *fe)
347 init = tuner_init_fc0012; 347 init = tuner_init_fc0012;
348 break; 348 break;
349 case AF9033_TUNER_IT9135_38: 349 case AF9033_TUNER_IT9135_38:
350 len = ARRAY_SIZE(tuner_init_it9135_38);
351 init = tuner_init_it9135_38;
352 break;
350 case AF9033_TUNER_IT9135_51: 353 case AF9033_TUNER_IT9135_51:
351 case AF9033_TUNER_IT9135_52: 354 case AF9033_TUNER_IT9135_52:
352 case AF9033_TUNER_IT9135_60: 355 case AF9033_TUNER_IT9135_60:
diff --git a/drivers/media/dvb-frontends/af9033_priv.h b/drivers/media/dvb-frontends/af9033_priv.h
index 0808319d4324..0dc13ebf4951 100644
--- a/drivers/media/dvb-frontends/af9033_priv.h
+++ b/drivers/media/dvb-frontends/af9033_priv.h
@@ -658,6 +658,223 @@ static const struct reg_val ofsm_init_it9135_v1[] = {
658 { 0x80fd8b, 0x00 }, 658 { 0x80fd8b, 0x00 },
659}; 659};
660 660
661/* ITE Tech IT9135 Omega tuner init
662 AF9033_TUNER_IT9135_38 = 0x38 */
663static const struct reg_val tuner_init_it9135_38[] = {
664 { 0x800043, 0x00 },
665 { 0x800046, 0x38 },
666 { 0x800051, 0x01 },
667 { 0x80005f, 0x00 },
668 { 0x800060, 0x00 },
669 { 0x800068, 0x0a },
670 { 0x800070, 0x0a },
671 { 0x800071, 0x05 },
672 { 0x800072, 0x02 },
673 { 0x800075, 0x8c },
674 { 0x800076, 0x8c },
675 { 0x800077, 0x8c },
676 { 0x800078, 0xc8 },
677 { 0x800079, 0x01 },
678 { 0x80007e, 0x04 },
679 { 0x80007f, 0x00 },
680 { 0x800081, 0x0a },
681 { 0x800082, 0x12 },
682 { 0x800083, 0x02 },
683 { 0x800084, 0x0a },
684 { 0x800085, 0x03 },
685 { 0x800086, 0xc8 },
686 { 0x800087, 0xb8 },
687 { 0x800088, 0xd0 },
688 { 0x800089, 0xc3 },
689 { 0x80008a, 0x01 },
690 { 0x80008e, 0x01 },
691 { 0x800092, 0x06 },
692 { 0x800093, 0x00 },
693 { 0x800094, 0x00 },
694 { 0x800095, 0x00 },
695 { 0x800096, 0x00 },
696 { 0x800099, 0x01 },
697 { 0x80009b, 0x3c },
698 { 0x80009c, 0x28 },
699 { 0x80009f, 0xe1 },
700 { 0x8000a0, 0xcf },
701 { 0x8000a3, 0x01 },
702 { 0x8000a4, 0x5a },
703 { 0x8000a5, 0x01 },
704 { 0x8000a6, 0x01 },
705 { 0x8000a9, 0x00 },
706 { 0x8000aa, 0x01 },
707 { 0x8000b0, 0x01 },
708 { 0x8000b3, 0x02 },
709 { 0x8000b4, 0x32 },
710 { 0x8000b6, 0x14 },
711 { 0x8000c0, 0x11 },
712 { 0x8000c1, 0x00 },
713 { 0x8000c2, 0x05 },
714 { 0x8000c4, 0x00 },
715 { 0x8000c6, 0x19 },
716 { 0x8000c7, 0x00 },
717 { 0x8000cc, 0x2e },
718 { 0x8000cd, 0x51 },
719 { 0x8000ce, 0x33 },
720 { 0x8000f3, 0x05 },
721 { 0x8000f4, 0x8c },
722 { 0x8000f5, 0x8c },
723 { 0x8000f8, 0x03 },
724 { 0x8000f9, 0x06 },
725 { 0x8000fa, 0x06 },
726 { 0x8000fc, 0x02 },
727 { 0x8000fd, 0x02 },
728 { 0x8000fe, 0x02 },
729 { 0x8000ff, 0x09 },
730 { 0x800100, 0x50 },
731 { 0x800101, 0x7b },
732 { 0x800102, 0x77 },
733 { 0x800103, 0x00 },
734 { 0x800104, 0x02 },
735 { 0x800105, 0xc8 },
736 { 0x800106, 0x05 },
737 { 0x800107, 0x7b },
738 { 0x800109, 0x02 },
739 { 0x800115, 0x0a },
740 { 0x800116, 0x03 },
741 { 0x800117, 0x02 },
742 { 0x800118, 0x80 },
743 { 0x80011a, 0xc8 },
744 { 0x80011b, 0x7b },
745 { 0x80011c, 0x8a },
746 { 0x80011d, 0xa0 },
747 { 0x800122, 0x02 },
748 { 0x800123, 0x18 },
749 { 0x800124, 0xc3 },
750 { 0x800127, 0x00 },
751 { 0x800128, 0x07 },
752 { 0x80012a, 0x53 },
753 { 0x80012b, 0x51 },
754 { 0x80012c, 0x4e },
755 { 0x80012d, 0x43 },
756 { 0x800137, 0x01 },
757 { 0x800138, 0x00 },
758 { 0x800139, 0x07 },
759 { 0x80013a, 0x00 },
760 { 0x80013b, 0x06 },
761 { 0x80013d, 0x00 },
762 { 0x80013e, 0x01 },
763 { 0x80013f, 0x5b },
764 { 0x800140, 0xc8 },
765 { 0x800141, 0x59 },
766 { 0x80f000, 0x0f },
767 { 0x80f016, 0x10 },
768 { 0x80f017, 0x04 },
769 { 0x80f018, 0x05 },
770 { 0x80f019, 0x04 },
771 { 0x80f01a, 0x05 },
772 { 0x80f01f, 0x8c },
773 { 0x80f020, 0x00 },
774 { 0x80f021, 0x03 },
775 { 0x80f022, 0x0a },
776 { 0x80f023, 0x0a },
777 { 0x80f029, 0x8c },
778 { 0x80f02a, 0x00 },
779 { 0x80f02b, 0x00 },
780 { 0x80f02c, 0x01 },
781 { 0x80f064, 0x03 },
782 { 0x80f065, 0xf9 },
783 { 0x80f066, 0x03 },
784 { 0x80f067, 0x01 },
785 { 0x80f06f, 0xe0 },
786 { 0x80f070, 0x03 },
787 { 0x80f072, 0x0f },
788 { 0x80f073, 0x03 },
789 { 0x80f077, 0x01 },
790 { 0x80f078, 0x00 },
791 { 0x80f085, 0x00 },
792 { 0x80f086, 0x02 },
793 { 0x80f087, 0x00 },
794 { 0x80f09b, 0x3f },
795 { 0x80f09c, 0x00 },
796 { 0x80f09d, 0x20 },
797 { 0x80f09e, 0x00 },
798 { 0x80f09f, 0x0c },
799 { 0x80f0a0, 0x00 },
800 { 0x80f130, 0x04 },
801 { 0x80f132, 0x04 },
802 { 0x80f144, 0x1a },
803 { 0x80f146, 0x00 },
804 { 0x80f14a, 0x01 },
805 { 0x80f14c, 0x00 },
806 { 0x80f14d, 0x00 },
807 { 0x80f14f, 0x04 },
808 { 0x80f158, 0x7f },
809 { 0x80f15a, 0x00 },
810 { 0x80f15b, 0x08 },
811 { 0x80f15d, 0x03 },
812 { 0x80f15e, 0x05 },
813 { 0x80f163, 0x05 },
814 { 0x80f166, 0x01 },
815 { 0x80f167, 0x40 },
816 { 0x80f168, 0x0f },
817 { 0x80f17a, 0x00 },
818 { 0x80f17b, 0x00 },
819 { 0x80f183, 0x01 },
820 { 0x80f19d, 0x40 },
821 { 0x80f1bc, 0x36 },
822 { 0x80f1bd, 0x00 },
823 { 0x80f1cb, 0xa0 },
824 { 0x80f1cc, 0x01 },
825 { 0x80f204, 0x10 },
826 { 0x80f214, 0x00 },
827 { 0x80f24c, 0x88 },
828 { 0x80f24d, 0x95 },
829 { 0x80f24e, 0x9a },
830 { 0x80f24f, 0x90 },
831 { 0x80f25a, 0x07 },
832 { 0x80f25b, 0xe8 },
833 { 0x80f25c, 0x03 },
834 { 0x80f25d, 0xb0 },
835 { 0x80f25e, 0x04 },
836 { 0x80f270, 0x01 },
837 { 0x80f271, 0x02 },
838 { 0x80f272, 0x01 },
839 { 0x80f273, 0x02 },
840 { 0x80f40e, 0x0a },
841 { 0x80f40f, 0x40 },
842 { 0x80f410, 0x08 },
843 { 0x80f55f, 0x0a },
844 { 0x80f561, 0x15 },
845 { 0x80f562, 0x20 },
846 { 0x80f5df, 0xfb },
847 { 0x80f5e0, 0x00 },
848 { 0x80f5e3, 0x09 },
849 { 0x80f5e4, 0x01 },
850 { 0x80f5e5, 0x01 },
851 { 0x80f5f8, 0x01 },
852 { 0x80f5fd, 0x01 },
853 { 0x80f600, 0x05 },
854 { 0x80f601, 0x08 },
855 { 0x80f602, 0x0b },
856 { 0x80f603, 0x0e },
857 { 0x80f604, 0x11 },
858 { 0x80f605, 0x14 },
859 { 0x80f606, 0x17 },
860 { 0x80f607, 0x1f },
861 { 0x80f60e, 0x00 },
862 { 0x80f60f, 0x04 },
863 { 0x80f610, 0x32 },
864 { 0x80f611, 0x10 },
865 { 0x80f707, 0xfc },
866 { 0x80f708, 0x00 },
867 { 0x80f709, 0x37 },
868 { 0x80f70a, 0x00 },
869 { 0x80f78b, 0x01 },
870 { 0x80f80f, 0x40 },
871 { 0x80f810, 0x54 },
872 { 0x80f811, 0x5a },
873 { 0x80f905, 0x01 },
874 { 0x80fb06, 0x03 },
875 { 0x80fd8b, 0x00 },
876};
877
661static const struct reg_val ofsm_init_it9135_v2[] = { 878static const struct reg_val ofsm_init_it9135_v2[] = {
662 { 0x800051, 0x01 }, 879 { 0x800051, 0x01 },
663 { 0x800070, 0x0a }, 880 { 0x800070, 0x0a },