sm5803: add the CONFIG_BATTERY for the battery api
sm5803: add the CONFIG_BATTERY for the battery api

In order to support the HW design which includes a charger ic but
doesn't include a battery, we add some checks and only call the
battery api when the CONFIG_BATTERY is defined.

LOW_COVERAGE_REASON=no SM5803 emulator set up yet
BUG=b:242949656
BRANCH=none
TEST=build pass with/without CONFIG_BATTERY
     build pass with `make buildall`

Change-Id: I2a8903cb620a70aff5c639eef46607c4c535c7f1
Signed-off-by: Zhuohao Lee <916bf7ddbf0565669e59e3cb2b613381a48066c0@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3865213
Code-Coverage: Zoss <345cf107e82c70959d46f59d98bddc98ce458aff@prod.google.com>
Reviewed-by: Diana Z <cb2016afc7183e5356c690dc63b4ba817470501a@chromium.org>

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