It's simpler that you could think:
modprobe pwm_test
echo am33xx_pwm > /sys/devices/bone_capemgr.9/slots
echo bone_pwm_P9_14 > /sys/devices/bone_capemgr.9/slots
echo 500 > /sys/devices/ocp.2/pwm_test_P9_14.*/period
echo 250 > /sys/devices/ocp.2/pwm_test_P9_14.*/duty
This will connect PWM to pin P9_14 and generate on the pin ~2MHz
waveform with 50% duty.
j.
> --
> For more options, visit
http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
beagleboard...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
Given a choice between two theories, take the one which is funnier