summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Porotchkin <kostap@marvell.com>2017-07-23 14:22:42 +0300
committerKostya Porotchkin <kostap@marvell.com>2017-07-23 15:02:40 +0300
commit0b8a7ffabbc8b180fdff01b4a303b16e9a9f347a (patch)
tree90cd7307613aa64ff73c8a3d0b5d67ba6be77a36
parent07aa2d08e601409eb1e3f9f717bb13a9655fbd70 (diff)
fix: svc: Correct the PIDI slow bit position
Correct the shift of PIDI slow bit in the frequency mode and PIDI status. The frequency mode is located in bits[4:0], so the PIDI slow bit[20] should be shifted back by 15 in order to be located in bit[5] of the frequncy mode and not override the bit[4] Change-Id: Ic6ec031ccb4cf7083d5459a14c0485c3e5fd8019 Signed-off-by: Konstantin Porotchkin <kostap@marvell.com> Reviewed-on: http://vgitil04.il.marvell.com:8080/42001 Tested-by: iSoC Platform CI <ykjenk@marvell.com> Reviewed-by: Omri Itach <omrii@marvell.com>
-rw-r--r--plat/marvell/a8k/common/plat_ble_setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plat/marvell/a8k/common/plat_ble_setup.c b/plat/marvell/a8k/common/plat_ble_setup.c
index 7203a11d..133f0e40 100644
--- a/plat/marvell/a8k/common/plat_ble_setup.c
+++ b/plat/marvell/a8k/common/plat_ble_setup.c
@@ -81,7 +81,7 @@
#define SAR_CLOCK_FREQ_MODE_MASK (0x1f << SAR_CLOCK_FREQ_MODE_OFFSET)
#define SAR_PIDI_LOW_SPEED_OFFSET (20)
#define SAR_PIDI_LOW_SPEED_MASK (1 << SAR_PIDI_LOW_SPEED_OFFSET)
-#define SAR_PIDI_LOW_SPEED_SHIFT (16)
+#define SAR_PIDI_LOW_SPEED_SHIFT (15)
#define SAR_PIDI_LOW_SPEED_SET (1 << SAR_PIDI_LOW_SPEED_SHIFT)
#define FREQ_MODE_AP_SAR_REG_NUM (0)