summaryrefslogtreecommitdiff
path: root/cesar/hal/phy/src/phy.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/hal/phy/src/phy.c')
-rw-r--r--cesar/hal/phy/src/phy.c29
1 files changed, 2 insertions, 27 deletions
diff --git a/cesar/hal/phy/src/phy.c b/cesar/hal/phy/src/phy.c
index 3f34f7192d..c2cc692ccf 100644
--- a/cesar/hal/phy/src/phy.c
+++ b/cesar/hal/phy/src/phy.c
@@ -19,6 +19,7 @@
#include "inc/resys.h"
#include "inc/hlut.h"
#include "inc/dini_pamela.h"
+#include "inc/tonemask.h"
#include "hal/phy/spoc/spoc.h"
@@ -876,27 +877,6 @@ phy_set_tunable_param (phy_t *ctx, const u32 *tonemask, uint carrier_nb)
phy_hlut_set_tunable ();
}
-static void
-phy_tonemask_to_ampmap (u32 *tonemask, u32 *ampmap)
-{
- uint i, j;
- u32 tmw = 0, amw;
- for (i = 0; i < PHY_TONEMAP_WORDS; i++)
- {
- if (i % 4 == 0)
- tmw = *tonemask++;
- amw = 0;
- for (j = 0; j < 8; j++)
- {
- amw >>= 4;
- if (tmw & 1)
- amw |= 0xf0000000;
- tmw >>= 1;
- }
- *ampmap++ = amw;
- }
-}
-
void
phy_set_tonemask (phy_t *ctx, u32 *tonemask, uint carrier_nb)
{
@@ -950,12 +930,7 @@ phy_set_tonemask (phy_t *ctx, u32 *tonemask, uint carrier_nb)
(NB_CARRIER, carrier_nb),
(NB_CARRIER_10, PHY_CARRIER_NB_10_FC));
/* Set HP 1.0 parameters. */
- PHY_DSPSS_HP10_MASK_0 = 0x0C060F01;
- PHY_DSPSS_HP10_MASK_1 = 0xC0000400;
- PHY_DSPSS_HP10_MASK_2 = 0x000C0001;
- PHY_DSPSS_HP10_MASK_3 = 0x0060001E;
- PHY_DSPSS_HP10_MASK_4 = 0x0000FFE0;
- PHY_DSPSS_HP10_MASK_5 = 0x00000000;
+ phy_tonemask_to_tonemask10 (tonemask, &PHY_DSPSS_HP10_MASK_0);
PHY_DSPSS_HP10_FC_MASK_0 = 0x20006000;
PHY_DSPSS_HP10_FC_MASK_1 = 0x000E0000;
PHY_DSPSS_HP10_FC_MASK_2 = 0xFFF00060;