Ignore:
Timestamp:
2013-02-11T22:55:29Z (11 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0f66886
Parents:
40762c6
Message:

Improve the dmtimer modules initialization.

File:
1 edited

Legend:

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

    r40762c6 r4c754f6  
    3737#define _KERN_AM335X_CTRL_MODULE_H_
    3838
    39 #include <drivers/am335x/ctrl_module_regs.h>
     39#include <typedefs.h>
     40#include "ctrl_module_regs.h"
    4041
    4142#define AM335x_CTRL_MODULE_BASE_ADDRESS  0x44E10000
    4243#define AM335x_CTRL_MODULE_SIZE          131072 /* 128 Kb */
    4344
    44 static unsigned am335x_ctrl_module_clock_freq_get(void *base)
     45typedef ioport32_t am335x_ctrl_module_t;
     46
     47static unsigned am335x_ctrl_module_clock_freq_get(am335x_ctrl_module_t *base)
    4548{
    46         unsigned const control_status = AM335x_CTRL_MODULE_REG_ADDR(base,
     49        unsigned const control_status = *AM335x_CTRL_MODULE_REG_ADDR(base,
    4750            CONTROL_SYSCONFIG);
    4851        unsigned const sysboot1 = (control_status >> 22) & 0x03;
    4952
    50         switch (sysboot) {
     53        switch (sysboot1) {
    5154        default:
    5255        case 0:
Note: See TracChangeset for help on using the changeset viewer.