From 6f1dba186ea41fdda85b6a18e63f5f7b990c600e Mon Sep 17 00:00:00 2001 From: Randall Stewart Date: Tue, 29 Oct 2013 11:28:11 +0000 Subject: [PATCH] Opps, my kirkwood fix for the dreamplug missed this. --- sys/dev/cesa/cesa.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/dev/cesa/cesa.c b/sys/dev/cesa/cesa.c index bc9a56840db..899211cbe47 100644 --- a/sys/dev/cesa/cesa.c +++ b/sys/dev/cesa/cesa.c @@ -995,11 +995,17 @@ cesa_attach(device_t dev) sc->sc_dev = dev; /* Check if CESA peripheral device has power turned on */ +#if defined(SOC_MV_KIRKWOOD) + if (soc_power_ctrl_get(CPU_PM_CTRL_CRYPTO) == CPU_PM_CTRL_CRYPTO) { + device_printf(dev, "not powered on\n"); + return (ENXIO); + } +#else if (soc_power_ctrl_get(CPU_PM_CTRL_CRYPTO) != CPU_PM_CTRL_CRYPTO) { device_printf(dev, "not powered on\n"); return (ENXIO); } - +#endif soc_id(&d, &r); switch (d) {