1    /*
     2     *  Copyright 2009 by Texas Instruments Incorporated.
     3     *
     4     *  All rights reserved. Property of Texas Instruments Incorporated.
     5     *  Restricted rights to use, duplicate or disclose this code are
     6     *  granted through contract.
     7     *
     8     */
     9    
    10    /*
    11     *  ======== Platform.xdc ========
    12     */
    13    
    14    package ti.platforms.evmOMAPL138;
    15    
    16    /*!
    17     *  ======== Platform ========
    18     *  Platform support for the evmOMAPL138
    19     *
    20     *  This module implements xdc.platform.IPlatform and defines configuration
    21     *  parameters that correspond to this platform's Cpu's, Board's, etc.
    22     *
    23     *  The configuration parameters are initialized in this package's
    24     *  configuration script (package.cfg) and "bound" to the TCOM object
    25     *  model.  Once they are part of the model, these parameters are
    26     *  queried by a program's configuration script.
    27     *
    28     *  This particular platform has a single Cpu, and therefore, only
    29     *  declares a single CPU configuration object.  Multi-CPU platforms
    30     *  would declare multiple Cpu configuration parameters (one per
    31     *  platform CPU).
    32     */
    33    metaonly module Platform inherits xdc.platform.IPlatform
    34    {
    35        readonly config xdc.platform.IPlatform.Board BOARD = {      
    36            id:             "0",
    37            boardName:      "evmOMAPL138",
    38            boardFamily:    "evmOMAPL138",
    39            boardRevision:  null,
    40        };
    41            
    42        readonly config xdc.platform.IExeContext.Cpu DSP = {        
    43            id:             "0",
    44            clockRate:      300.0,
    45            catalogName:    "ti.catalog.c6000",
    46            deviceName:     "OMAPL138",
    47            revision:       "",
    48        };
    49    
    50        readonly config xdc.platform.IExeContext.Cpu GPP = {
    51            id:             "1",
    52            clockRate:      300.0,
    53            catalogName:    "ti.catalog.arm",
    54            deviceName:     "OMAPL138",
    55            revision:       "1.0",
    56        };
    57    instance:
    58    
    59        /* 
    60         *  DDR is 128MByte but we need to share it with Arm.
    61         *  Reserve 32MB for Arm/Linux (base: 0xC000000)
    62         *  16MB for shared Arm/DSP (base: 0xC2000000)
    63         *  16MB for DSP (base: 0xC3000000)
    64         *  64MB for ARM (base: 0xC4000000)
    65         */
    66        override readonly config xdc.platform.IPlatform.Memory
    67            externalMemoryMap[string] = [
    68                ["DDR",  {name: "DDR",  base: 0xC3000000, len: 0x01000000}],
    69            ];
    70    
    71        /*
    72         *  ======== sectMap ========
    73         *  Define a placement of compiler generated output sections into
    74         *  memory regions defined in the memTab above.
    75         */
    76        override config string codeMemory = "DDR";
    77        
    78        override config string dataMemory = "DDR";
    79    
    80        override config string stackMemory = "DDR";
    81    
    82        /*
    83         *  ======== l1PMode ========
    84         *  Define the amount of L1P RAM used for L1 Program Cache.
    85         *
    86         *  Check the device documentation for valid values.
    87         */
    88        config String l1PMode;
    89        
    90        /*
    91         *  ======== l1DMode ========
    92         *  Define the amount of L1D RAM used for L1 Data Cache.
    93         *
    94         *  Check the device documentation for valid values.
    95         */
    96        config String l1DMode;
    97        
    98        /*
    99         *  ======== l2Mode ========
   100         *  Define the amount of L2 RAM used for L2 Cache.
   101         *
   102         *  Check the device documentation for valid values.
   103         */
   104        config String l2Mode;
   105    };
   106    /*
   107     *  @(#) ti.platforms.evmOMAPL138; 1, 0, 0,15; 6-4-2009 14:23:42; /db/ztree/library/trees/platform-k10x/src/
   108     */
   109