Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
9f4bea8acThis file is pinned to the selected release. Download the original to open it in your design tool.
#!/bin/sh
[ -e /sys/class/fclk/fclk0 ] || \
echo fclk0 >/sys/devices/soc0/amba/f8007000.devcfg/fclk_export
[ -e /sys/class/fclk/fclk1 ] || \
echo fclk1 >/sys/devices/soc0/amba/f8007000.devcfg/fclk_export
[ -e /sys/class/fclk/fclk2 ] || \
echo fclk2 >/sys/devices/soc0/amba/f8007000.devcfg/fclk_export
[ -e /sys/class/fclk/fclk3 ] || \
echo fclk3 >/sys/devices/soc0/amba/f8007000.devcfg/fclk_export
echo 100000000 >/sys/class/fclk/fclk0/set_rate # 100MHz
echo 10000000 >/sys/class/fclk/fclk1/set_rate # 10MHz
echo 100000000 >/sys/class/fclk/fclk2/set_rate # 100MHz
echo 125000000 >/sys/class/fclk/fclk3/set_rate # 125MHz