From eaacb928fc1feaac675762d369b3b8277e25d323 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 18 Oct 2017 13:23:10 -0400 Subject: [PATCH] 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 --- scripts/klipper-pru-start.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/klipper-pru-start.sh b/scripts/klipper-pru-start.sh index e73213d0..88ff98e0 100755 --- a/scripts/klipper-pru-start.sh +++ b/scripts/klipper-pru-start.sh @@ -52,6 +52,9 @@ pru_start() log_daemon_msg "Starting pru" echo 4a334000.pru0 > /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()