[OpenBIOS] [PATCH 1/5] ppc: fix up power-mgt properties

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Fri Oct 9 16:20:29 CET 2015


From: Cormac O'Brien <cormac at c-obrien.org>

Modify some basic device tree properties to more accurately emulate a real Mac
machine.

Signed-off-by: Cormac O'Brien <cormac at c-obrien.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
 openbios-devel/drivers/cuda.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/openbios-devel/drivers/cuda.c b/openbios-devel/drivers/cuda.c
index 9555dea..f117b0b 100644
--- a/openbios-devel/drivers/cuda.c
+++ b/openbios-devel/drivers/cuda.c
@@ -380,7 +380,8 @@ powermgt_init(char *path)
 
 	ph = find_dev(buf);
 	set_property(ph, "device_type", "power-mgt", 10);
-	set_property(ph, "compatible", "power-mgt", 10);
+	set_property(ph, "mgt-kind", "min-consumption-pwm-led", strlen("min-consumption-pwm-led") + 1);
+	set_property(ph, "compatible", "cuda", strlen("cuda") + 1);
 }
 
 cuda_t *cuda_init (const char *path, phys_addr_t base)
-- 
1.7.10.4




More information about the OpenBIOS mailing list