Ignore:
Timestamp:
2013-02-14T23:02:56Z (11 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fe6593b7
Parents:
2e55443
Message:

Fix macro to return the value of a register, not the address.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/drivers/am335x/ctrl_module.h

    r2e55443 rf942226e  
    4949am335x_ctrl_module_clock_freq_get(am335x_ctrl_module_t *base, unsigned *freq)
    5050{
    51         unsigned const control_status = *AM335x_CTRL_MODULE_REG_ADDR(base,
     51        unsigned const control_status = AM335x_CTRL_MODULE_REG_VALUE(base,
    5252            CONTROL_STATUS);
    5353        unsigned const sysboot1 = (control_status >> 22) & 0x03;
Note: See TracChangeset for help on using the changeset viewer.