ps8751: add support for the ps8815 variant

This adds support for updating the new parade ps8815 chip. The basic
programming logic can be reused from previous chips, but some tweaks
are needed because some register definitions have changed.

I'm also adding an optimization to skip programming 0xff sequences
after flash erase. The latest firmware update is a full flash image,
so this optimization is necessary.

BRANCH=none
BUG=b:147848721
TEST=in combination with other patches, was able to update TCPC
	firmware.

Change-Id: If3a609f971783931fc582e2d1851acc8f57a54fd
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/depthcharge/+/2013636
Reviewed-by: Karthikeyan Ramasubramanian <kramasub@chromium.org>
2 files changed