coresight: correctly set bits for bc, tc and dsb element size

BC, TC and DSB element size needs to be programmed in one of the TPDA
register.  Correctly set bits representing BC, TC and DSB element size.

Change-Id: I1ea1936539c5c4a117b86bc6193b7acf4872e62c
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
This commit is contained in:
Sarangdhar Joshi 2015-02-18 14:13:06 -08:00 committed by Gerrit - the friendly Code Review server
parent 7d779c2760
commit 992db96510
1 changed files with 6 additions and 6 deletions

View File

@ -111,19 +111,19 @@ static void __tpda_enable_port(struct tpda_drvdata *drvdata, int port)
val = tpda_readl(drvdata, TPDA_Pn_CR(port));
if (drvdata->bc_esize[port] == 32)
val = val | BIT(4);
else if (drvdata->bc_esize[port] == 64)
val = val & ~BIT(4);
else if (drvdata->bc_esize[port] == 64)
val = val | BIT(4);
if (drvdata->tc_esize[port] == 32)
val = val | BIT(5);
else if (drvdata->tc_esize[port] == 64)
val = val & ~BIT(5);
else if (drvdata->tc_esize[port] == 64)
val = val | BIT(5);
if (drvdata->dsb_esize[port] == 32)
val = val | BIT(8);
else if (drvdata->dsb_esize[port] == 64)
val = val & ~BIT(8);
else if (drvdata->dsb_esize[port] == 64)
val = val | BIT(8);
val = val & ~(0x3 << 6);
if (drvdata->cmb_esize[port] == 8)