PDK API Guide for J721E
csl_emif.h File Reference

Introduction

Header file containing various enumerations, structure definitions and function.

declarations for the EMIF IP.


(C) Copyright 2019, Texas Instruments, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of Texas Instruments Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Go to the source code of this file.

EMIF config function return value

This enumerator defines the possible return values from the CSL_emifConfig function



#define CSL_EMIF_CONFIG_RETURN_OK   ((int32_t) 0)
 
#define CSL_EMIF_CONFIG_RETURN_INVALID_CFG   ((int32_t) -1)
 
typedef int32_t CSL_EmifConfigReturn
 

Data Structures

struct  CSL_EmifMemEccCfg
 Emif ECC configuration structure. More...
 
struct  CSL_EmifConfig
 EMIF configuration structure. More...
 
struct  CSL_ECCErrorInfo
 Emif ECC Error Information structure. More...
 

Macros

#define CSL_EMIF_ECC_MAX_REGIONS   3
 
#define ECC_1B_ERR_ADR_LOG_REG_SHIFT   6
 ECC_1B_ERR_ADR_LOG_REG_SHIFT For SOC_J7200, ECC_1B_ERR_ADR_LOG_REG expects a 32-byte aligned address whereas the other SOCs expects a 64-byte aligned address. More...
 
#define ECC_2B_ERR_ADR_LOG_REG_SHIFT   6
 ECC_2B_ERR_ADR_LOG_REG_SHIFT For SOC_J7200, ECC_2B_ERR_ADR_LOG_REG expects a 32-byte aligned address whereas the other SOCs expects a 64-byte aligned address. More...
 

Enumerations

enum  CSL_EmifECCErrorType { CSL_EMIF_ECC_ERROR_TYPE_SINGLE_BIT = 1, CSL_EMIF_ECC_ERROR_TYPE_DOUBLE_BIT = 2 }
 This enumerator defines the different ECC error types. More...
 

Functions

uint32_t CSL_emifGetRevision (CSL_emif_sscfgRegs *pEmifSsRegs)
 Return revision of the EMIF subsystem module. More...
 
int32_t CSL_emifConfig (CSL_emif_sscfgRegs *pEmifSsRegs, CSL_EmifConfig *pCfg)
 Configure EMIF. More...
 
int32_t CSL_emifEnableECC (CSL_emif_sscfgRegs *pEmifSsRegs)
 Enables ECC. More...
 
int32_t CSL_emifDisableECC (CSL_emif_sscfgRegs *pEmifSsRegs)
 Disables ECC. More...
 
int32_t CSL_emifGetECCErrorInfo (CSL_emif_sscfgRegs *pEmifSsRegs, CSL_ECCErrorInfo *pECCErrorInfo)
 Get ECC error information. More...
 
int32_t CSL_emifClearAllECCErrors (CSL_emif_sscfgRegs *pEmifSsRegs)
 Clears all ECC errors. More...
 
int32_t CSL_emifClearECCError (CSL_emif_sscfgRegs *pEmifSsRegs, CSL_EmifECCErrorType errorType)
 Clears ECC error. More...
 
int32_t CSL_emifEnableECCInterrupts (CSL_emif_sscfgRegs *pEmifSsRegs, uint32_t eccInterruptBitmap)
 Enables ECC interrupts. More...
 
int32_t CSL_emifDisableECCInterrupts (CSL_emif_sscfgRegs *pEmifSsRegs, uint32_t eccInterruptBitmap)
 Disables ECC interrupts. More...
 
int32_t CSL_emifClearECCInterruptStatus (CSL_emif_sscfgRegs *pEmifSsRegs, uint32_t eccInterruptBitmap)
 Clear ECC interrupt status. More...