mei: condition PGI support on HW and HBM version
authorTomas Winkler <tomas.winkler@intel.com>
Tue, 18 Mar 2014 20:51:58 +0000 (22:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 May 2014 23:20:23 +0000 (19:20 -0400)
commitee7e5afd2c369b64ffcf419d38ce7ad1c709a53e
treeb61d3eea96f2fee5ab8209c44a41dced1e023a60
parentb16c35716b843acdbe562bc0068580c50db203ff
mei: condition PGI support on HW and HBM version

Enable power gating isolation only if hw and fw support it.
This is indicated by ME_PGIC_HRA bit in ME_CSR_HA register
and on HBM protocol version.

The information is exported to MEI layer through
new pg_is_enabled hw op.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/hw-me.c
drivers/misc/mei/hw-txe.c
drivers/misc/mei/hw.h
drivers/misc/mei/mei_dev.h