Hey everyone!
I'm currently developing a simple PWM driver for the A13 micro (without graphical output) to control a fan (with mosfet). I've read in documentation of the a13-micro board, that there is one free PWM PIN on GPIO-2, I've also read the chapter about PWM in the A13 Allwinners documentation. But there is no information for the IO address of the PWM controller/timer. Then I've found the article about PWM on A10 (linux-sunxi.org) (http://linux-sunxi.org/A10/PWM), but I don't know if this address is right for the A13, because I've found no entry about this address in <mach/platform.h>, only this definitions are near that address:
...
#define SW_PA_PORTC_IO_BASE 0x01c20800
#define SW_PA_TIMERC_IO_BASE 0x01c20c00
#define SW_PA_SPDIF_IO_BASE 0x01c21000
...
This is the output of my driver while setting pwm0 settings:
[ 2510.870000] pwm_init_driver: CTRL: 0xd0906e00 [phy: 0x1c20e00] --> 0x0
[ 2510.880000] pwm_init_driver: CTRL: 0xd0906e00 [phy: 0x1c20e00] --> 0x99
[ 2510.890000] pwm_init_driver: CH0: 0xd0906e04 [phy: 0x1c20e04] --> 0x10000400
atm. I've connected a led to the pw0 port, but i see now change, while playing whith values...
Would be nice if someone knows some info about that topic.
Look at that:
http://dl.linux-sunxi.org/A10/A10%20User%20Manual%20-%20v1.20%20%282012-04-09,%20DECRYPTED%29.pdf
wow, thats the information i've just looked for, thanks alot!