Created
November 25, 2011 16:44
-
-
Save kylemanna/1393945 to your computer and use it in GitHub Desktop.
Enable GPT9 PWM on AM3505/AM3517
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Enable functional and interface clocks for gpt9 (bit 10) | |
devmem2 0x48005000 w 0x00000c00 | |
devmem2 0x48005010 w 0x0003Ec00 | |
# Zero pwm | |
devmem2 0x49040024 w 0 | |
# Switch to gpt9_pwm_evt in mux | |
devmem2 0x480021D8 h 1 | |
# Configure PWM and start it | |
devmem2 0x4904002C w 0xFFFFc000 | |
devmem2 0x49040038 w 0xFFFFf000 | |
devmem2 0x49040028 w 0xFFFFc000 | |
devmem2 0x49040024 w 0x01843 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment