This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3352: How to calculate the amr5 timer5 address

Part Number: AM3352

Tool/software: Linux

I want to know how the value of the am3x timer5 register address is obtained. According to what kind of formula, I want to operate the pwm of timer5. The operation is as follows, but I don't know how the address is obtained:

#configurations changed for Timer6
# Enable Timer4's clock in CM_PER
# This allows us to access it's control regs
#devmem2 0x44e00088 w 0x2

  • Hi user5355349,

    AM335x TIMER5 base address is 0x48046000, this is documented in AM335x TRM, Table 2-3. L4_PER Peripheral Memory Map

    CM_PER_TIMER5_CLKCTRL register address is 0x44E000EC (0x44E00000 + 0xEC, CM_PER + offset), see "Table 2-2. L4_WKUP Peripheral Memory Map" and "Table 8-30. CM_PER REGISTERS"

    Regards,
    Pavel