UPSTREAM: driver: clock: npcx: Add valid clock checking
NPCX clock has some limitations about the frequency range &
synchronization between core clock & other clocks. Add build assert to
check whether NPCX clock setting correct. This also fixed soc_clock.h
to consist with datasheet.
Signed-off-by: Wealian Liao <WHLIAO@nuvoton.com>
(cherry picked from commit 42aeaccb3e19acf6194320dbb87d009aaeb33887
https://github.com/zephyrproject-rtos/zephyr.git master)
BUG=none
TEST=zmake testall
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: I6e5b0409b93c0583371118c7e51c4460a3b83945
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/2885864
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
3 files changed