pru: Force load the ADC module during PRU startup

Make sure the ADC module gets loaded during startup - it's normally
loaded by the cape manager eeprom, but there's no harm in requesting
it explicitly.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2017-10-18 13:23:10 -04:00
parent 75ba375b8a
commit eaacb928fc
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ pru_start()
log_daemon_msg "Starting pru" log_daemon_msg "Starting pru"
echo 4a334000.pru0 > /sys/bus/platform/drivers/pru-rproc/bind echo 4a334000.pru0 > /sys/bus/platform/drivers/pru-rproc/bind
echo 4a338000.pru1 > /sys/bus/platform/drivers/pru-rproc/bind echo 4a338000.pru1 > /sys/bus/platform/drivers/pru-rproc/bind
log_daemon_msg "Loading ADC module"
echo 'BB-ADC' > /sys/devices/platform/bone_capemgr/slots
} }
mcu_host_stop() mcu_host_stop()