allwinner: Synchronize PMIC enumerations
Ensure that the default (zero) value represents the case where we take
no action. Previously, if a PLAT=sun50i_a64 build was booted on an
unknown SoC ID, it would be treated as an H5 at shutdown.

This removes some duplicate code and fixes error propagation on H6.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Change-Id: I4e51d8a43a56eccb0d8088593cb9908e52e782bc
1 parent eb75518 commit c0e109f2feb4fb40c9b345684ab18b8afd9e94cb
@Samuel Holland Samuel Holland authored on 20 Oct 2019
Showing 2 changed files
View
plat/allwinner/sun50i_a64/sunxi_power.c
View
plat/allwinner/sun50i_h6/sunxi_power.c