xref: /freebsd/sys/contrib/ncsw/inc/ddr_std_ext.h (revision c2c014f24c10f90d85126ac5fbd4d8524de32b1c)
1*852ba100SJustin Hibbits /*
2*852ba100SJustin Hibbits  * Copyright 2008-2012 Freescale Semiconductor Inc.
30aeed3e9SJustin Hibbits  *
4*852ba100SJustin Hibbits  * Redistribution and use in source and binary forms, with or without
5*852ba100SJustin Hibbits  * modification, are permitted provided that the following conditions are met:
6*852ba100SJustin Hibbits  *     * Redistributions of source code must retain the above copyright
7*852ba100SJustin Hibbits  *       notice, this list of conditions and the following disclaimer.
8*852ba100SJustin Hibbits  *     * Redistributions in binary form must reproduce the above copyright
9*852ba100SJustin Hibbits  *       notice, this list of conditions and the following disclaimer in the
10*852ba100SJustin Hibbits  *       documentation and/or other materials provided with the distribution.
11*852ba100SJustin Hibbits  *     * Neither the name of Freescale Semiconductor nor the
12*852ba100SJustin Hibbits  *       names of its contributors may be used to endorse or promote products
13*852ba100SJustin Hibbits  *       derived from this software without specific prior written permission.
14*852ba100SJustin Hibbits  *
15*852ba100SJustin Hibbits  *
16*852ba100SJustin Hibbits  * ALTERNATIVELY, this software may be distributed under the terms of the
17*852ba100SJustin Hibbits  * GNU General Public License ("GPL") as published by the Free Software
18*852ba100SJustin Hibbits  * Foundation, either version 2 of that License or (at your option) any
19*852ba100SJustin Hibbits  * later version.
20*852ba100SJustin Hibbits  *
21*852ba100SJustin Hibbits  * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
22*852ba100SJustin Hibbits  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23*852ba100SJustin Hibbits  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24*852ba100SJustin Hibbits  * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
25*852ba100SJustin Hibbits  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26*852ba100SJustin Hibbits  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27*852ba100SJustin Hibbits  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
28*852ba100SJustin Hibbits  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29*852ba100SJustin Hibbits  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30*852ba100SJustin Hibbits  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31*852ba100SJustin Hibbits  */
320aeed3e9SJustin Hibbits 
330aeed3e9SJustin Hibbits #ifndef __DDR_SDT_EXT_H
340aeed3e9SJustin Hibbits #define __DDR_SDT_EXT_H
350aeed3e9SJustin Hibbits 
360aeed3e9SJustin Hibbits 
370aeed3e9SJustin Hibbits /**************************************************************************//**
380aeed3e9SJustin Hibbits  @Group         ddr_Generic_Resources
390aeed3e9SJustin Hibbits 
400aeed3e9SJustin Hibbits  @Description   ddr generic functions, definitions and enums.
410aeed3e9SJustin Hibbits 
420aeed3e9SJustin Hibbits  @{
430aeed3e9SJustin Hibbits *//***************************************************************************/
440aeed3e9SJustin Hibbits 
450aeed3e9SJustin Hibbits 
460aeed3e9SJustin Hibbits /**************************************************************************//**
470aeed3e9SJustin Hibbits  @Description   SPD maximum size
480aeed3e9SJustin Hibbits *//***************************************************************************/
490aeed3e9SJustin Hibbits #define SPD_MAX_SIZE 256
500aeed3e9SJustin Hibbits 
510aeed3e9SJustin Hibbits /**************************************************************************//**
520aeed3e9SJustin Hibbits  @Description   DDR types select
530aeed3e9SJustin Hibbits *//***************************************************************************/
540aeed3e9SJustin Hibbits typedef enum e_DdrType
550aeed3e9SJustin Hibbits {
560aeed3e9SJustin Hibbits     e_DDR_DDR1,
570aeed3e9SJustin Hibbits     e_DDR_DDR2,
580aeed3e9SJustin Hibbits     e_DDR_DDR3,
59*852ba100SJustin Hibbits     e_DDR_DDR3L,
60*852ba100SJustin Hibbits     e_DDR_DDR4
610aeed3e9SJustin Hibbits } e_DdrType;
620aeed3e9SJustin Hibbits 
630aeed3e9SJustin Hibbits /**************************************************************************//**
640aeed3e9SJustin Hibbits  @Description   DDR Mode.
650aeed3e9SJustin Hibbits *//***************************************************************************/
660aeed3e9SJustin Hibbits typedef enum e_DdrMode
670aeed3e9SJustin Hibbits {
680aeed3e9SJustin Hibbits     e_DDR_BUS_WIDTH_32BIT,
690aeed3e9SJustin Hibbits     e_DDR_BUS_WIDTH_64BIT
700aeed3e9SJustin Hibbits } e_DdrMode;
710aeed3e9SJustin Hibbits 
720aeed3e9SJustin Hibbits /** @} */ /* end of ddr_Generic_Resources group */
730aeed3e9SJustin Hibbits 
740aeed3e9SJustin Hibbits 
750aeed3e9SJustin Hibbits 
760aeed3e9SJustin Hibbits #endif /* __DDR_SDT_EXT_H */
770aeed3e9SJustin Hibbits 
78