I'm trying to drive a TLC5940 with a brand new RPi Model A+ (V1). I plan to use the Pi's SPI bus to pipe data to the chip, which I've done successfully before using an AVR. The part I'm stuck with is generating a regular greyscale clock for the chip at about 1MHz (the actual frequency doesn't really matter, but it's definitely in the megahertz range).
How can I get GPCLK0 (pin 7/GPIO 7) to output a 1MHz+ clock signal using rpi.gpio in Python? Ideally I'd like to be able to control the frequency.
I found this question about using GPLK0 as a clock for an ADC, however the answer is just "use a crystal" which I don't want to do. Additionally, this question about turning a GPIO to it's alternative output mode didn't help either. I did find an article that uses the one wire bus, and a forum post on how to set up the pin as a clock source in C but nothing in Python.