- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

# /space/home/slher/rel/Beken/v6_4_5/macsw/plf/refip/src/driver/sysctrl/sysctrl.c

Go to the documentation of this file.

    00001
    00020 /*
    00021  * INCLUDE FILES
    00022  ****************************************************************************************
    00023  */
    00024 #include "sysctrl.h"
    00025 #include "reg_sysctrl.h"
    00026
    00027
    00029 #define CLOCK_GATING_BITS (SYSCTRL_MAC_PI_CLK_GATING_EN_BIT | SYSCTRL_MAC_PI_TX_CLK_GATING_EN_BIT |\
    00030                            SYSCTRL_MAC_PI_RX_CLK_GATING_EN_BIT | SYSCTRL_MAC_CORE_CLK_GATING_EN_BIT |\
    00031                            SYSCTRL_MAC_CRYPT_CLK_GATING_EN_BIT | SYSCTRL_MAC_CORE_TX_CLK_GATING_EN_BIT |\
    00032                            SYSCTRL_MAC_CORE_RX_CLK_GATING_EN_BIT | SYSCTRL_MAC_WT_CLK_GATING_EN_BIT |\
    00033                            SYSCTRL_MPIF_CLK_GATING_EN_BIT)
    00034
    00035 void sysctrl_init(void)
    00036 {
    00037     // Set DIAG MUX
    00038     sysctrl_diag_conf1_set(SYSCTRL_DIAG_SEL_EN_BIT | DIAG_MAC);
    00039
    00040     // Enable Clock gating
    00041     sysctrl_misc_cntl_set(sysctrl_misc_cntl_get() | CLOCK_GATING_BITS);
    00042 }
    00043