Hikey960: Change to use recommended power state id format
authorLeo Yan <leo.yan@linaro.org>
Fri, 24 Nov 2017 06:19:51 +0000 (14:19 +0800)
committerLeo Yan <leo.yan@linaro.org>
Wed, 6 Dec 2017 01:18:33 +0000 (09:18 +0800)
commitfdae60b6ba27c216fd86d13b7432a1ff4f57dd84
treebdbebe622a058edd688ddd29f96ea309950fb495
parenta852ec46055977c2cd811d5b54eb3044858fe2ee
Hikey960: Change to use recommended power state id format

ARM Power State Coordination Interface (ARM DEN 0022D) chapter
6.5 "Recommended StateID Encoding" defines the state ID which can be
used by platforms. The recommended power states can be presented by
below values; and it divides into three fields, every field has 4 bits
to present power states corresponding to core level, cluster level and
system level.

  0: Run
  1: Standby
  2: Retention
  3: Powerdown

This commit changes to use upper recommended power states definition on
Hikey960; and changes the power state validate function to check the
power state passed from kernel side.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
plat/hisilicon/hikey960/hikey960_pm.c
plat/hisilicon/hikey960/include/platform_def.h