mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-02-22 22:57:38 +01:00
This is most likely not the way how we would like to do things in the end, however fine for now to see if we can get the soundcard working in our image.
21 lines
360 B
Bash
Executable File
21 lines
360 B
Bash
Executable File
#! /usr/bin/env sh
|
|
|
|
modprobe i2s_master_loader
|
|
|
|
setup_bclk
|
|
setup_mclk
|
|
|
|
# Startup xvf3510
|
|
XMOS_POWER=16
|
|
XMOS_RESET=27
|
|
gpio -g mode $XMOS_POWER out
|
|
gpio -g mode $XMOS_RESET out
|
|
sleep 0.1
|
|
gpio -g write $XMOS_POWER 1
|
|
gpio -g write $XMOS_RESET 1
|
|
|
|
sleep 1
|
|
xvf3510-flash --direct "/usr/lib/firmware/xvf3510/app_xvf3510_int_spi_boot_v4_1_0.bin"
|
|
sleep 1
|
|
i2cdetect -y 1
|