hw/mips: add initial Cluster Power Controller support
authorLeon Alrae <leon.alrae@imgtec.com>
Tue, 15 Mar 2016 09:59:30 +0000 (09:59 +0000)
committerLeon Alrae <leon.alrae@imgtec.com>
Wed, 30 Mar 2016 08:13:59 +0000 (09:13 +0100)
commit1f93a6e4f3f4da3c2ce4be1d300dcfe3e6dd0e77
tree84d623e36c0185d4fa1d437e02ed75ec066b198a
parenta9bd9b5a8682c8129b46ae0e673efdad35f493c2
hw/mips: add initial Cluster Power Controller support

Cluster Power Controller (CPC) is responsible for power management in
multiprocessing system. It provides registers to control the power and the
clock frequency of the individual elements in the system.

This patch implements only three registers that are used to control the
power state of each VP on a single core:
* VP Run is a write-only register used to set each VP to the run state
* VP Stop is a write-only register used to set each VP to the suspend state
* VP Running is a read-only register indicating the run state of each VP

Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
hw/misc/Makefile.objs
hw/misc/mips_cpc.c [new file with mode: 0644]
include/hw/misc/mips_cpc.h [new file with mode: 0644]