apply patch 2 of ticket #655: report IBM PowerNV hardware model

From: Dipankar Sarma <dipankar@in.ibm.com>

Like x86, now IBM Power system allows the user to run Linux
on host (PowerNV - Power Non Virtualized) as well as guest
(PowerKVM guest, PowerVM LPAR).

The IBM Power systems use OPAL firmware (https://github.com/open-power/skiboot)
on PowerNV mode which exposes system information to Linux
via device tree (/proc/device-tree).

Device tree provided by OPAL is slightly different than Open
Firmware specification.

lshw presently fetches device tree information according to the
Apple Open firmware format.

Hence we need to detect if the platform is IBM Powernv, if true process
the information appropriately.

Signed-off-by: Dipankar Sarma <dipankar@in.ibm.com>
Signed-off-by: Janani Venkataraman <jananive@linux.vnet.ibm.com>


git-svn-id: http://ezix.org/source/packages/lshw/development@2539 811e2811-9fd9-0310-a116-b6e8ac943c8b
apply patch 5 of ticket #655: report IBM PowerNV memory info

From: Dipankar Sarma <dipankar@in.ibm.com>

This patch adds support for listing memory hardware based on the
device tree exposed by OPAL firmware on IBM PowerNV platforms.

We use this information available in device tree and make lshw list
the memory banks.

We also add the location-code and part-number for the memory banks
listed.

Signed-off-by: Dipankar Sarma <dipankar@in.ibm.com>
Signed-off-by: Janani Venkataraman <jananive@linux.vnet.ibm.com>



git-svn-id: http://ezix.org/source/packages/lshw/development@2540 811e2811-9fd9-0310-a116-b6e8ac943c8b