aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2013-03-07 19:25:16 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-21 18:03:20 -0400
commitbb2e12a6f983045f4452f7561c712162002ccf44 (patch)
tree0eb7372fcf5f4eb1d48b4e6b2ce1e0874ee504e9
parenta72cbb77c1f18e7e560afea9cba1159fa0968c50 (diff)
[media] af9033: add IT9135 tuner config "51" 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 1386d2968129..d6fc566669ea 100644
--- a/drivers/media/dvb-frontends/af9033.c
+++ b/drivers/media/dvb-frontends/af9033.c
@@ -351,6 +351,9 @@ static int af9033_init(struct dvb_frontend *fe)
351 init = tuner_init_it9135_38; 351 init = tuner_init_it9135_38;
352 break; 352 break;
353 case AF9033_TUNER_IT9135_51: 353 case AF9033_TUNER_IT9135_51:
354 len = ARRAY_SIZE(tuner_init_it9135_51);
355 init = tuner_init_it9135_51;
356 break;
354 case AF9033_TUNER_IT9135_52: 357 case AF9033_TUNER_IT9135_52:
355 case AF9033_TUNER_IT9135_60: 358 case AF9033_TUNER_IT9135_60:
356 case AF9033_TUNER_IT9135_61: 359 case AF9033_TUNER_IT9135_61:
diff --git a/drivers/media/dvb-frontends/af9033_priv.h b/drivers/media/dvb-frontends/af9033_priv.h
index 0dc13ebf4951..5e35ef6c5825 100644
--- a/drivers/media/dvb-frontends/af9033_priv.h
+++ b/drivers/media/dvb-frontends/af9033_priv.h
@@ -875,6 +875,223 @@ static const struct reg_val tuner_init_it9135_38[] = {
875 { 0x80fd8b, 0x00 }, 875 { 0x80fd8b, 0x00 },
876}; 876};
877 877
878/* ITE Tech IT9135 Omega LNA config 1 tuner init
879 AF9033_TUNER_IT9135_51 = 0x51 */
880static const struct reg_val tuner_init_it9135_51[] = {
881 { 0x800043, 0x00 },
882 { 0x800046, 0x51 },
883 { 0x800051, 0x01 },
884 { 0x80005f, 0x00 },
885 { 0x800060, 0x00 },
886 { 0x800068, 0x0a },
887 { 0x800070, 0x0a },
888 { 0x800071, 0x06 },
889 { 0x800072, 0x02 },
890 { 0x800075, 0x8c },
891 { 0x800076, 0x8c },
892 { 0x800077, 0x8c },
893 { 0x800078, 0xc8 },
894 { 0x800079, 0x01 },
895 { 0x80007e, 0x04 },
896 { 0x80007f, 0x00 },
897 { 0x800081, 0x0a },
898 { 0x800082, 0x12 },
899 { 0x800083, 0x02 },
900 { 0x800084, 0x0a },
901 { 0x800085, 0x03 },
902 { 0x800086, 0xc0 },
903 { 0x800087, 0x96 },
904 { 0x800088, 0xcf },
905 { 0x800089, 0xc3 },
906 { 0x80008a, 0x01 },
907 { 0x80008e, 0x01 },
908 { 0x800092, 0x06 },
909 { 0x800093, 0x00 },
910 { 0x800094, 0x00 },
911 { 0x800095, 0x00 },
912 { 0x800096, 0x00 },
913 { 0x800099, 0x01 },
914 { 0x80009b, 0x3c },
915 { 0x80009c, 0x28 },
916 { 0x80009f, 0xe1 },
917 { 0x8000a0, 0xcf },
918 { 0x8000a3, 0x01 },
919 { 0x8000a4, 0x5a },
920 { 0x8000a5, 0x01 },
921 { 0x8000a6, 0x01 },
922 { 0x8000a9, 0x00 },
923 { 0x8000aa, 0x01 },
924 { 0x8000b0, 0x01 },
925 { 0x8000b3, 0x02 },
926 { 0x8000b4, 0x3c },
927 { 0x8000b6, 0x14 },
928 { 0x8000c0, 0x11 },
929 { 0x8000c1, 0x00 },
930 { 0x8000c2, 0x05 },
931 { 0x8000c4, 0x00 },
932 { 0x8000c6, 0x19 },
933 { 0x8000c7, 0x00 },
934 { 0x8000cc, 0x2e },
935 { 0x8000cd, 0x51 },
936 { 0x8000ce, 0x33 },
937 { 0x8000f3, 0x05 },
938 { 0x8000f4, 0x8c },
939 { 0x8000f5, 0x8c },
940 { 0x8000f8, 0x03 },
941 { 0x8000f9, 0x06 },
942 { 0x8000fa, 0x06 },
943 { 0x8000fc, 0x03 },
944 { 0x8000fd, 0x02 },
945 { 0x8000fe, 0x02 },
946 { 0x8000ff, 0x09 },
947 { 0x800100, 0x50 },
948 { 0x800101, 0x7a },
949 { 0x800102, 0x77 },
950 { 0x800103, 0x01 },
951 { 0x800104, 0x02 },
952 { 0x800105, 0xb0 },
953 { 0x800106, 0x02 },
954 { 0x800107, 0x7a },
955 { 0x800109, 0x02 },
956 { 0x800115, 0x0a },
957 { 0x800116, 0x03 },
958 { 0x800117, 0x02 },
959 { 0x800118, 0x80 },
960 { 0x80011a, 0xc0 },
961 { 0x80011b, 0x7a },
962 { 0x80011c, 0xac },
963 { 0x80011d, 0x8c },
964 { 0x800122, 0x02 },
965 { 0x800123, 0x70 },
966 { 0x800124, 0xa4 },
967 { 0x800127, 0x00 },
968 { 0x800128, 0x07 },
969 { 0x80012a, 0x53 },
970 { 0x80012b, 0x51 },
971 { 0x80012c, 0x4e },
972 { 0x80012d, 0x43 },
973 { 0x800137, 0x01 },
974 { 0x800138, 0x00 },
975 { 0x800139, 0x07 },
976 { 0x80013a, 0x00 },
977 { 0x80013b, 0x06 },
978 { 0x80013d, 0x00 },
979 { 0x80013e, 0x01 },
980 { 0x80013f, 0x5b },
981 { 0x800140, 0xc0 },
982 { 0x800141, 0x59 },
983 { 0x80f000, 0x0f },
984 { 0x80f016, 0x10 },
985 { 0x80f017, 0x04 },
986 { 0x80f018, 0x05 },
987 { 0x80f019, 0x04 },
988 { 0x80f01a, 0x05 },
989 { 0x80f01f, 0x8c },
990 { 0x80f020, 0x00 },
991 { 0x80f021, 0x03 },
992 { 0x80f022, 0x0a },
993 { 0x80f023, 0x0a },
994 { 0x80f029, 0x8c },
995 { 0x80f02a, 0x00 },
996 { 0x80f02b, 0x00 },
997 { 0x80f02c, 0x01 },
998 { 0x80f064, 0x03 },
999 { 0x80f065, 0xf9 },
1000 { 0x80f066, 0x03 },
1001 { 0x80f067, 0x01 },
1002 { 0x80f06f, 0xe0 },
1003 { 0x80f070, 0x03 },
1004 { 0x80f072, 0x0f },
1005 { 0x80f073, 0x03 },
1006 { 0x80f077, 0x01 },
1007 { 0x80f078, 0x00 },
1008 { 0x80f085, 0xc0 },
1009 { 0x80f086, 0x01 },
1010 { 0x80f087, 0x00 },
1011 { 0x80f09b, 0x3f },
1012 { 0x80f09c, 0x00 },
1013 { 0x80f09d, 0x20 },
1014 { 0x80f09e, 0x00 },
1015 { 0x80f09f, 0x0c },
1016 { 0x80f0a0, 0x00 },
1017 { 0x80f130, 0x04 },
1018 { 0x80f132, 0x04 },
1019 { 0x80f144, 0x1a },
1020 { 0x80f146, 0x00 },
1021 { 0x80f14a, 0x01 },
1022 { 0x80f14c, 0x00 },
1023 { 0x80f14d, 0x00 },
1024 { 0x80f14f, 0x04 },
1025 { 0x80f158, 0x7f },
1026 { 0x80f15a, 0x00 },
1027 { 0x80f15b, 0x08 },
1028 { 0x80f15d, 0x03 },
1029 { 0x80f15e, 0x05 },
1030 { 0x80f163, 0x05 },
1031 { 0x80f166, 0x01 },
1032 { 0x80f167, 0x40 },
1033 { 0x80f168, 0x0f },
1034 { 0x80f17a, 0x00 },
1035 { 0x80f17b, 0x00 },
1036 { 0x80f183, 0x01 },
1037 { 0x80f19d, 0x40 },
1038 { 0x80f1bc, 0x36 },
1039 { 0x80f1bd, 0x00 },
1040 { 0x80f1cb, 0xa0 },
1041 { 0x80f1cc, 0x01 },
1042 { 0x80f204, 0x10 },
1043 { 0x80f214, 0x00 },
1044 { 0x80f24c, 0x88 },
1045 { 0x80f24d, 0x95 },
1046 { 0x80f24e, 0x9a },
1047 { 0x80f24f, 0x90 },
1048 { 0x80f25a, 0x07 },
1049 { 0x80f25b, 0xe8 },
1050 { 0x80f25c, 0x03 },
1051 { 0x80f25d, 0xb0 },
1052 { 0x80f25e, 0x04 },
1053 { 0x80f270, 0x01 },
1054 { 0x80f271, 0x02 },
1055 { 0x80f272, 0x01 },
1056 { 0x80f273, 0x02 },
1057 { 0x80f40e, 0x0a },
1058 { 0x80f40f, 0x40 },
1059 { 0x80f410, 0x08 },
1060 { 0x80f55f, 0x0a },
1061 { 0x80f561, 0x15 },
1062 { 0x80f562, 0x20 },
1063 { 0x80f5df, 0xfb },
1064 { 0x80f5e0, 0x00 },
1065 { 0x80f5e3, 0x09 },
1066 { 0x80f5e4, 0x01 },
1067 { 0x80f5e5, 0x01 },
1068 { 0x80f5f8, 0x01 },
1069 { 0x80f5fd, 0x01 },
1070 { 0x80f600, 0x05 },
1071 { 0x80f601, 0x08 },
1072 { 0x80f602, 0x0b },
1073 { 0x80f603, 0x0e },
1074 { 0x80f604, 0x11 },
1075 { 0x80f605, 0x14 },
1076 { 0x80f606, 0x17 },
1077 { 0x80f607, 0x1f },
1078 { 0x80f60e, 0x00 },
1079 { 0x80f60f, 0x04 },
1080 { 0x80f610, 0x32 },
1081 { 0x80f611, 0x10 },
1082 { 0x80f707, 0xfc },
1083 { 0x80f708, 0x00 },
1084 { 0x80f709, 0x37 },
1085 { 0x80f70a, 0x00 },
1086 { 0x80f78b, 0x01 },
1087 { 0x80f80f, 0x40 },
1088 { 0x80f810, 0x54 },
1089 { 0x80f811, 0x5a },
1090 { 0x80f905, 0x01 },
1091 { 0x80fb06, 0x03 },
1092 { 0x80fd8b, 0x00 },
1093};
1094
878static const struct reg_val ofsm_init_it9135_v2[] = { 1095static const struct reg_val ofsm_init_it9135_v2[] = {
879 { 0x800051, 0x01 }, 1096 { 0x800051, 0x01 },
880 { 0x800070, 0x0a }, 1097 { 0x800070, 0x0a },