chip/npcx/espi: Fix race condition between PLTRST# and PCHANEN
chip/npcx/espi: Fix race condition between PLTRST# and PCHANEN

The PLTRST# handler has a race condition. It sets the peripheral channel
ready bit before the IO ports are memory mapped. This means that the AP
can start sending IO requests before the mappings are ready.

BUG=b:188188172, b:188935533
BRANCH=none
TEST=On guybrush make an EC call after eSPI init. I no longer see a
failure. Also verify zork still boots.

Suggested-by: Rob Barnes <3ced0940a2329ce70499686f01d3d60685ec66ed@google.com>
Signed-off-by: Raul E Rangel <9a9c998e11a2655b1de9a05eeeef5f710c0dc7ed@chromium.org>
Change-Id: I09c58ef989b8bb90d7662afc63d23dc5498c293b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2912090
Reviewed-by: Tim Wawrzynczak <86444811eee8c2cb29e29a251d7a069e64ccc665@chromium.org>
Reviewed-by: Rob Barnes <3ced0940a2329ce70499686f01d3d60685ec66ed@google.com>

coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec