changeset 413:780fa76e9c9b

tpudrv10.c: all magic1 tables reconstructed
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 19 Jan 2018 21:07:28 +0000
parents 2b038b43e31b
children cbc25978be5a
files src/cs/layer1/tpu_drivers/source0/tpudrv10.c
diffstat 1 files changed, 36 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/cs/layer1/tpu_drivers/source0/tpudrv10.c	Fri Jan 19 08:13:27 2018 +0000
+++ b/src/cs/layer1/tpu_drivers/source0/tpudrv10.c	Fri Jan 19 21:07:28 2018 +0000
@@ -171,6 +171,7 @@
   UWORD8  tx_down;
   UWORD8  tx_up_rev;
   struct  synth_s *synth;
+  struct  magic1_s *magic1;
 };
 
 static const struct synth_s synth_900[] =
@@ -196,7 +197,6 @@
   { 988, 0x0820},
   {1014, 0x083A},
   {1023, 0x0820},
-  {1023, 0x0820},
 };
 
 static const struct synth_s synth_1800[] =
@@ -204,35 +204,64 @@
   {511, 885, {{1710, -1},  {1805,   1}}}, // dcs  512 - 885
 };
 
+static const struct magic1_s magic1_1800[] =
+{
+  {571, 0x0820},
+  {610, 0x0847},
+  {671, 0x083A},
+  {688, 0x082D},
+  {719, 0x083A},
+  {730, 0x0861},
+  {755, 0x083A},
+  {794, 0x0847},
+  {845, 0x0820},
+  {885, 0x082D},
+};
+
 static const struct synth_s synth_1900[] =
 {
   {511, 810, {{1850, -1},  {1930,   1}}}, // pcs  512 - 810;
 };
 
+static const struct magic1_s magic1_1900[] =
+{
+  {550, 0x0847},
+  {615, 0x082D},
+  {642, 0x083A},
+  {702, 0x0820},
+  {777, 0x0854},
+  {810, 0x0861},
+};
+
 static const struct synth_s synth_850[] =
 {
   {127, 251, {{ 824,   1},  { 869,   4}}}, // gsm850 high
 };
 
+static const struct magic1_s magic1_850[] =
+{
+  {251, 0x0924},
+};
+
 struct rf_path_s rf_path[] = {    //same index used as for band_config[] - 1
   /* EGSM */
   { BAND_SELECT_GSM, RU_900,  RD_900,  TU_900,  TD_900,  TU_REV_900,
-    (struct synth_s *)synth_900 },
+    (struct synth_s *)synth_900,  (struct magic1_s *)magic1_900},
   /* DCS */
   { BAND_SELECT_DCS, RU_1800, RD_1800, TU_1800, TD_1800, TU_REV_1800,
-    (struct synth_s *)synth_1800},
+    (struct synth_s *)synth_1800, (struct magic1_s *)magic1_1800},
   /* PCS */
   { BAND_SELECT_PCS, RU_1900, RD_1900, TU_1900, TD_1900, TU_REV_1900,
-    (struct synth_s *)synth_1900},
+    (struct synth_s *)synth_1900, (struct magic1_s *)magic1_1900},
   /* GSM850 */
   { BAND_SELECT_850, RU_850,  RD_850,  TU_850,  TD_850,  TU_REV_850,
-    (struct synth_s *)synth_850 },
+    (struct synth_s *)synth_850,  (struct magic1_s *)magic1_850},
   /* PCS in dual-us */
   { BAND_SELECT_PCS, RU_1900, RD_1900, TU_1900, TD_1900, TU_REV_1900,
-    (struct synth_s *)synth_1900},
+    (struct synth_s *)synth_1900, (struct magic1_s *)magic1_1900},
   /* non-E GSM */
   { BAND_SELECT_GSM, RU_900,  RD_900,  TU_900,  TD_900,  TU_REV_900,
-    (struct synth_s *)synth_900 },
+    (struct synth_s *)synth_900,  (struct magic1_s *)magic1_900},
 };
 
 /*