Fix credit configuration on Broadcom XLP CMS
The CMS output queue credit configuration register is 64 bit, so use a 64 bit variable while updating it. Obtained from: Venkatesh J V <venkatesh.vivekanandan@broadcom.com>
This commit is contained in:
parent
4282299f69
commit
d4aba0f611
@ -138,9 +138,9 @@ uint32_t nlm_cms_total_stations = 18 * 4 /*xlp_num_nodes*/;
|
||||
|
||||
void nlm_cms_setup_credits(uint64_t base, int destid, int srcid, int credit)
|
||||
{
|
||||
uint32_t val;
|
||||
uint64_t val;
|
||||
|
||||
val = ((credit << 24) | (destid << 12) | (srcid << 0));
|
||||
val = (((uint64_t)credit << 24) | (destid << 12) | (srcid << 0));
|
||||
nlm_write_cms_reg(base, CMS_OUTPUTQ_CREDIT_CFG, val);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user