Ignore:
Timestamp:
2013-02-13T22:08:57Z (11 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4a09b86
Parents:
06c4609
Message:

fix bug in the am335x_ctrl_module_clock_freq_get() function

File:
1 edited

Legend:

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

    r06c4609 rff8f93b  
    5555        switch (sysboot1) {
    5656        default:
    57                 return EOK;
     57                return EINVAL;
    5858        case 0:
    5959                *freq = 19200000; /* 19.2 Mhz */
     60                break;
    6061        case 1:
    6162                *freq = 24000000; /* 24 Mhz */
     63                break;
    6264        case 2:
    6365                *freq = 25000000; /* 25 Mhz */
     66                break;
    6467        case 3:
    6568                *freq = 26000000; /* 26 Mhz */
     69                break;
    6670        }
    6771
    68         return EINVAL;
     72        return EOK;
    6973}
    7074
Note: See TracChangeset for help on using the changeset viewer.