mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Opps, my kirkwood fix for the dreamplug missed this.
This commit is contained in:
parent
8d7cf9b5d4
commit
6f1dba186e
1 changed files with 7 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue