soc : arm : microchip_mec Fix MEC1501 SoC ECIA initialization

Changes to MEC1501 HAL for eSPI changed loop constant used by SoC
code initializing the ECIA registers. Fixed by using HAL constants
that are invariant.

Signed-off-by: Scott Worley <scott.worley@microchip.com>
This commit is contained in:
Scott Worley 2019-08-01 10:13:17 -04:00 committed by Ioannis Glaropoulos
commit 58e9a93faf

View file

@ -112,7 +112,7 @@ static int soc_ecia_init(void)
/* Clear all GIRQn source enables and source status */ /* Clear all GIRQn source enables and source status */
pg = &ECIA_REGS->GIRQ08; pg = &ECIA_REGS->GIRQ08;
for (n = 0u; n < MCHP_GIRQ_ZID_MAX; n++) { for (n = MCHP_FIRST_GIRQ; n <= MCHP_LAST_GIRQ; n++) {
pg->EN_CLR = 0xFFFFFFFFul; pg->EN_CLR = 0xFFFFFFFFul;
pg->SRC = 0xFFFFFFFFul; pg->SRC = 0xFFFFFFFFul;
pg++; pg++;