Ignore:
Timestamp:
2012-10-17T22:17:29Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
150a2718
Parents:
6454ad47 (diff), 57912af3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge changes from bbxm branch

Location:
uspace/drv/infrastructure/rootamdm37x/cm
Files:
1 added
2 moved

Legend:

Unmodified
Added
Removed
  • uspace/drv/infrastructure/rootamdm37x/cm/core.h

    r6454ad47 rc2b2de7  
    3636#define AMDM37x_CORE_CM_H
    3737#include <sys/types.h>
     38#include <macros.h>
    3839
    3940/* AM/DM37x TRM p.447 */
     
    6162#define CORE_CM_FCLKEN1_EN_MMC3_FLAG  (1 << 30)
    6263
    63         uint32_t padd0_;
     64        PADD32;
    6465        ioport32_t fclken3;
    6566#define CORE_CM_FCLKEN3_EN_TS_FLAG  (1 << 1)
    6667#define CORE_CM_FCLKEN3_EN_USBTLL_FLAG  (1 << 2)
    6768
    68         uint32_t padd1_;
     69        PADD32;
    6970        ioport32_t iclken1;
    7071#define CORE_CM_ICLKEN1_EN_SDRC_FLAG  (1 << 1)
     
    9596#define CORE_CM_ICLKEN3_EN_USBTLL_FLAG  (1 << 2)
    9697
    97         uint32_t padd2_;
     98        PADD32;
    9899        const ioport32_t idlest1;
    99100#define CORE_CM_IDLEST1_ST_SDRC_FLAG  (1 << 1)
     
    126127#define CORE_CM_IDLEST3_ST_USBTLL_FLAG  (1 << 2)
    127128
    128         uint32_t padd3_;
     129        PADD32;
    129130        ioport32_t autoidle1;
    130131#define CORE_CM_AUTOIDLE1_AUTO_HSOTGUSB_FLAG  (1 << 4)
     
    154155#define CORE_CM_AUTOIDLE3_AUTO_USBTLL_FLAG  (1 << 2)
    155156
    156         uint32_t padd4_;
     157        PADD32;
    157158        ioport32_t clksel;
    158 #define CORE_CM_CLKSEL_CLKSEL_L3_MASK  0x3
    159 #define CORE_CM_CLKSEL_CLKSEL_L3_SHIFT  0
    160 #define CORE_CM_CLKSEL_CLKSEL_L3_DIVIDED1  0x1
    161 #define CORE_CM_CLKSEL_CLKSEL_L3_DIVIDED2  0x2
    162 #define CORE_CM_CLKSEL_CLKSEL_L4_MASK  0x3
    163 #define CORE_CM_CLKSEL_CLKSEL_L4_SHIFT  2
    164 #define CORE_CM_CLKSEL_CLKSEL_L4_DIVIDED1  0x1
    165 #define CORE_CM_CLKSEL_CLKSEL_L4_DIVIDED2  0x2
    166 #define CORE_CM_CLKSEL_CLKSEL_96M_MASK  0x3
    167 #define CORE_CM_CLKSEL_CLKSEL_96M_SHIFT  2
    168 #define CORE_CM_CLKSEL_CLKSEL_96M_DIVIDED1  0x1
    169 #define CORE_CM_CLKSEL_CLKSEL_96M_DIVIDED2  0x2
     159#define CORE_CM_CLKSEL_CLKSEL_L3_MASK  (0x3 << 0)
     160#define CORE_CM_CLKSEL_CLKSEL_L3_DIVIDED1  (0x1 << 0)
     161#define CORE_CM_CLKSEL_CLKSEL_L3_DIVIDED2  (0x2 << 0)
     162#define CORE_CM_CLKSEL_CLKSEL_L4_MASK  (0x3 << 2)
     163#define CORE_CM_CLKSEL_CLKSEL_L4_DIVIDED1  (0x1 << 2)
     164#define CORE_CM_CLKSEL_CLKSEL_L4_DIVIDED2  (0x2 << 2)
     165#define CORE_CM_CLKSEL_CLKSEL_96M_MASK  (0x3 << 12)
     166#define CORE_CM_CLKSEL_CLKSEL_96M_DIVIDED1  (0x1 << 12)
     167#define CORE_CM_CLKSEL_CLKSEL_96M_DIVIDED2  (0x2 << 12)
    170168#define CORE_CM_CLKSEL_CLKSEL_GPT10_FLAG (1 << 6)
    171 #define CORE_CM_CLKSEL_CLKSEL_GPT11_FLAG (1 << 6)
     169#define CORE_CM_CLKSEL_CLKSEL_GPT11_FLAG (1 << 7)
    172170
    173         uint32_t padd5_;
     171        PADD32;
    174172        ioport32_t clkstctrl;
    175 #define CORE_CM_CLKCTRL_CLKCTRL_L3_MASK  0x3
    176 #define CORE_CM_CLKCTRL_CLKCTRL_L3_SHIFT  0
    177 #define CORE_CM_CLKCTRL_CLKCTRL_L3_AUTO_EN  0x0
    178 #define CORE_CM_CLKCTRL_CLKCTRL_L3_AUTO_DIS  0x3
    179 #define CORE_CM_CLKCTRL_CLKCTRL_L4_MASK  0x3
    180 #define CORE_CM_CLKCTRL_CLKCTRL_L4_SHIFT  2
    181 #define CORE_CM_CLKCTRL_CLKCTRL_L4_AUTO_EN  0x0
    182 #define CORE_CM_CLKCTRL_CLKCTRL_L4_AUTO_DIS  0x3
     173#define CORE_CM_CLKCTRL_CLKCTRL_L3_MASK  (0x3 << 0)
     174#define CORE_CM_CLKCTRL_CLKCTRL_L3_AUTO_EN  (0x0 << 0)
     175#define CORE_CM_CLKCTRL_CLKCTRL_L3_AUTO_DIS  (0x3 << 0)
     176#define CORE_CM_CLKCTRL_CLKCTRL_L4_MASK  (0x3 << 2)
     177#define CORE_CM_CLKCTRL_CLKCTRL_L4_AUTO_EN  (0x0 << 2)
     178#define CORE_CM_CLKCTRL_CLKCTRL_L4_AUTO_DIS  (0x3 << 2)
    183179
    184180        const ioport32_t clkstst;
    185181#define CORE_CM_CLKSTST_CLKACTIVITY_L3_FLAG  (1 << 0)
    186182#define CORE_CM_CLKSTST_CLKACTIVITY_L4_FLAG  (1 << 1)
    187 
    188183} core_cm_regs_t;
    189184
  • uspace/drv/infrastructure/rootamdm37x/cm/usbhost.h

    r6454ad47 rc2b2de7  
    3535#ifndef AMDM37x_USBHOST_CM_H
    3636#define AMDM37x_USBHOST_CM_H
     37#include <macros.h>
    3738#include <sys/types.h>
    3839
     
    4647#define USBHOST_CM_FCLKEN_EN_USBHOST2_FLAG  (1 << 1)
    4748
    48         uint32_t padd0_[3];
     49        PADD32[3];
    4950        ioport32_t iclken;
    5051#define USBHOST_CM_ICLKEN_EN_USBHOST  (1 << 0)
    5152
    52         uint32_t padd1_[3];
     53        PADD32[3];
    5354        const ioport32_t idlest;
    5455#define USBHOST_CM_IDLEST_ST_USBHOST_STDBY_FLAG  (1 << 0)
    5556#define USBHOST_CM_IDLEST_ST_USBHOST_IDLE_FLAG  (1 << 1)
    5657
    57         uint32_t padd2_[3];
     58        PADD32[3];
    5859        ioport32_t autoidle;
    5960#define USBHOST_CM_AUTOIDLE_AUTO_USBHOST_FLAG  (1 << 0)
    6061
    61         uint32_t padd3_[4];
     62        PADD32[4];
    6263        ioport32_t sleepdep;
    6364#define USBHOST_CM_SLEEPDEP_EN_MPU_FLAG  (1 << 1)
     
    6566
    6667        ioport32_t clkstctrl;
    67 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_MASK  0x3
    68 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_SHIFT  0
    69 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_AUTO_DIS  0x0
    70 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_SUPERVISED_SLEEP  0x1
    71 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_SUPERVISED_WAKEUP  0x2
    72 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_AUTO_EN  0x1
     68#define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_MASK  (0x3 << 0)
     69#define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_AUTO_DIS  (0x0 << 0)
     70#define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_SUPERVISED_SLEEP  (0x1 << 0)
     71#define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_SUPERVISED_WAKEUP  (0x2 << 0)
     72#define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_AUTO_EN  (0x3 << 0)
    7373
    7474        ioport32_t clkstst;
Note: See TracChangeset for help on using the changeset viewer.