diff mbox

Add a couple more missing Naples references

Message ID 1430347505.17831.142.camel@au1.ibm.com
State Accepted
Headers show

Commit Message

Benjamin Herrenschmidt April 29, 2015, 10:45 p.m. UTC
The i2c and SLW code are testing for P8 chips by chip type
and missing Naples. Fix this.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
 hw/p8-i2c.c | 2 ++
 hw/slw.c    | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/hw/p8-i2c.c b/hw/p8-i2c.c
index 52b9489..f1bddc7 100644
--- a/hw/p8-i2c.c
+++ b/hw/p8-i2c.c
@@ -288,6 +288,8 @@  static bool p8_i2c_has_irqs(void)
 		return chip->ec_level >= 0x21;
 	case PROC_CHIP_P8_VENICE:
 		return chip->ec_level >= 0x20;
+	case PROC_CHIP_P8_NAPLES:
+		return true;
 	default:
 		return false;
 	}
diff --git a/hw/slw.c b/hw/slw.c
index 458560c..d09fda2 100644
--- a/hw/slw.c
+++ b/hw/slw.c
@@ -537,7 +537,8 @@  static void add_cpu_idle_state_properties(void)
 	chip = next_chip(NULL);
 	assert(chip);
 	if (chip->type == PROC_CHIP_P8_MURANO ||
-	    chip->type == PROC_CHIP_P8_VENICE) {
+	    chip->type == PROC_CHIP_P8_VENICE ||
+	    chip->type == PROC_CHIP_P8_NAPLES) {
 		const struct dt_property *p;
 
 		p = dt_find_property(dt_root, "ibm,enabled-idle-states");