1    /*
     2     *  Copyright (c) 2011 by Texas Instruments and others.
     3     *  All rights reserved. This program and the accompanying materials
     4     *  are made available under the terms of the Eclipse Public License v1.0
     5     *  which accompanies this distribution, and is available at
     6     *  http://www.eclipse.org/legal/epl-v10.html
     7     *
     8     *  Contributors:
     9     *      Texas Instruments - initial implementation
    10     *
    11     * */
    12    
    13    /*
    14     *  ======== Platform.xdc ========
    15     *  Platform support for sdp4430 
    16     *
    17     */
    18    
    19    /*!
    20     *  ======== Platform ========
    21     *  Platform support for OMAP4430
    22     *
    23     *  This module implements xdc.platform.IPlatform and defines configuration
    24     *  parameters that correspond to this platform's Cpu's, Board's, etc.
    25     *
    26     *  The configuration parameters are initialized in this package's
    27     *  configuration script (package.cfg) and "bound" to the TCOM object
    28     *  model.  Once they are part of the model, these parameters are
    29     *  queried by a program's configuration script.
    30     *
    31     *  This particular platform has 4 CPU's, a host GPP, 2 M3's, and a
    32     *  C64T DSP.
    33     */
    34    metaonly module Platform inherits xdc.platform.IPlatform
    35    {
    36        readonly config xdc.platform.IPlatform.Board BOARD = {      
    37            id:             "0",
    38            boardName:      "sdp4430",
    39            boardFamily:    "sdp4430",
    40            boardRevision:  null,
    41        };
    42    
    43        readonly config xdc.platform.IExeContext.Cpu GEM = {        
    44            id:             "0",
    45            clockRate:      466,
    46            catalogName:    "ti.catalog.c6000",
    47            deviceName:     "OMAP4430",
    48            revision:       "1.0",
    49        };
    50    
    51        /* M3 Subsystem */
    52        readonly config xdc.platform.IExeContext.Cpu DSS = {
    53            id:             "1",
    54            clockRate:      200.0,
    55            catalogName:    "ti.catalog.arm.cortexm3",
    56            deviceName:     "OMAP4430",
    57            revision:       "1.0",
    58        };
    59        
    60        /* GPP */
    61        readonly config xdc.platform.IExeContext.Cpu GPP = {
    62            id:             "2",
    63            clockRate:      720.0,  /* Typically set by the HLOS */
    64            catalogName:    "ti.catalog.arm.cortexa9",
    65            deviceName:     "OMAP4430",
    66            revision:       "1.0"
    67        };
    68    
    69    instance:
    70    
    71        /*!
    72         *  ======== externalMemoryMap ========
    73         *  Memory regions as defined in the OMAP4 Functional Specification
    74         */
    75    
    76        override readonly config xdc.platform.IPlatform.Memory
    77            externalMemoryMap[string] = [
    78    
    79                ["EXT_RAM", {
    80                    comment: "External RAM",
    81                    name: "EXT_RAM",
    82                    base: 0x80000000, 
    83                    len:  0x20000000
    84                }],
    85    
    86            ];
    87    
    88        override config string codeMemory  = "EXT_RAM";
    89        override config string dataMemory  = "EXT_RAM";
    90        override config string stackMemory = "EXT_RAM";
    91    
    92        /*
    93         *  ======== l1PMode ========
    94         *  Define the amount of L1P RAM used for L1 Program Cache.
    95         *
    96         *  Check the device documentation for valid values.
    97         */
    98        config String l1PMode = "32k";
    99        
   100        /*
   101         *  ======== l1DMode ========
   102         *  Define the amount of L1D RAM used for L1 Data Cache.
   103         *
   104         *  Check the device documentation for valid values.
   105         */
   106        config String l1DMode = "32k";
   107        
   108        /*
   109         *  ======== l2Mode ========
   110         *  Define the amount of L2 RAM used for L2 Cache.
   111         *
   112         *  Check the device documentation for valid values.
   113         */
   114        config String l2Mode = "0k";
   115    };
   116    /*
   117     *  @(#) ti.platforms.sdp4430; 1, 0, 0, 0,51; 6-15-2011 13:52:53; /db/ztree/library/trees/platform/platform-m22x/src/
   118     */
   119