Opps, my kirkwood fix for the dreamplug missed this.

This commit is contained in:
Randall Stewart 2013-10-29 11:28:11 +00:00
parent 8d7cf9b5d4
commit 6f1dba186e

View file

@ -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) {