driver/fast_spi: Refactor the SPI APIs (fill_xfer_fifo and drain_xfer_fifo)

The current fast_spi code uses memcpy for rw. The SPI flash read/write
has 4 byte limit, due to which the current 64 bit memcpy doesn't work.
Hence update rw ops to accommodate 64-bit mode operations.

BUG=b:242829490
TEST=Verified CSE RW update is successful in both 32-bit and 64-bit mode.

Change-Id: Id3cac3d8a5eddfc706990a828234e0ea088cecff
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/depthcharge/+/5689513
Tested-by: Subrata Banik <subratabanik@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Pranava Y N <pranavayn@google.com>
Auto-Submit: Subrata Banik <subratabanik@chromium.org>
Commit-Queue: Subrata Banik <subratabanik@chromium.org>
1 file changed