Home | History | Annotate | Download | only in Omap35xx
      1 #/** @file
      2 # Omap35xx SoC package.
      3 #
      4 # Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>
      5 #
      6 #    This program and the accompanying materials
      7 #    are licensed and made available under the terms and conditions of the BSD License
      8 #    which accompanies this distribution. The full text of the license may be found at
      9 #    http://opensource.org/licenses/bsd-license.php
     10 #
     11 #    THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     12 #    WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     13 #
     14 #**/
     15 
     16 ################################################################################
     17 #
     18 # Defines Section - statements that will be processed to create a Makefile.
     19 #
     20 ################################################################################
     21 [Defines]
     22   PLATFORM_NAME                  = Omap35xxPkg
     23   PLATFORM_GUID                  = D196A631-B7B7-4953-A3EE-0F773CBABF20
     24   PLATFORM_VERSION               = 0.1
     25   DSC_SPECIFICATION              = 0x00010005
     26   OUTPUT_DIRECTORY               = Build/Omap35xxPkg
     27   SUPPORTED_ARCHITECTURES        = ARM
     28   BUILD_TARGETS                  = DEBUG|RELEASE
     29   SKUID_IDENTIFIER               = DEFAULT
     30   DEFINE TARGET_HACK             = DEBUG
     31 
     32 
     33 [LibraryClasses.common]
     34   DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
     35 
     36   ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
     37   MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
     38 
     39   BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
     40   BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
     41 
     42   PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
     43 
     44   CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
     45   DefaultExceptioHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
     46   CpuExceptionHandlerLib|MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.inf
     47   PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
     48 
     49   RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
     50 
     51   IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
     52   OmapLib|OpenPlatformPkg/Chips/TexasInstruments/Omap35xx/Library/OmapLib/OmapLib.inf
     53   OmapDmaLib|OpenPlatformPkg/Chips/TexasInstruments/Omap35xx/Library/OmapDmaLib/OmapDmaLib.inf
     54 
     55   MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
     56   UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
     57   UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
     58   DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
     59   UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
     60 
     61   DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
     62   UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
     63   UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
     64   DmaLib|ArmPkg/Library/ArmDmaLib/ArmDmaLib.inf
     65 
     66 #
     67 # Assume everything is fixed at build
     68 #
     69   PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
     70 
     71   UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
     72 
     73  # UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
     74   UncachedMemoryAllocationLib|ArmPkg/Library/DebugUncachedMemoryAllocationLib/DebugUncachedMemoryAllocationLib.inf
     75 
     76   CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
     77 
     78 
     79 [LibraryClasses.common.DXE_DRIVER]
     80   DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
     81 
     82 
     83 [LibraryClasses.ARM]
     84   #
     85   # Note: This NULL library feature is not yet in the edk2/BaseTools, but it is checked in to
     86   # the BaseTools project. So you need to build with the BaseTools project util this feature gets synced.
     87   #
     88   NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
     89 
     90 
     91 [BuildOptions]
     92   XCODE:*_*_ARM_ARCHCC_FLAGS     == -arch armv7 -march=armv7
     93   XCODE:*_*_ARM_ARCHASM_FLAGS    == -arch armv7
     94   XCODE:*_*_ARM_ARCHDLINK_FLAGS  == -arch armv7
     95 
     96   GCC:*_*_ARM_ARCHCC_FLAGS     == -march=armv7-a -mthumb
     97   GCC:*_*_ARM_ARCHASM_FLAGS    == -march=armv7-a
     98 
     99   RVCT:*_*_ARM_ARCHCC_FLAGS     == --cpu 7-A
    100   RVCT:*_*_ARM_ARCHASM_FLAGS    == --cpu 7-A
    101 
    102 
    103 ################################################################################
    104 #
    105 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
    106 #
    107 ################################################################################
    108 
    109 
    110 [PcdsFixedAtBuild.common]
    111 
    112 # DEBUG_ASSERT_ENABLED       0x01
    113 # DEBUG_PRINT_ENABLED        0x02
    114 # DEBUG_CODE_ENABLED         0x04
    115 # CLEAR_MEMORY_ENABLED       0x08
    116 # ASSERT_BREAKPOINT_ENABLED  0x10
    117 # ASSERT_DEADLOOP_ENABLED    0x20
    118   gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
    119 
    120 #  DEBUG_INIT      0x00000001  // Initialization
    121 #  DEBUG_WARN      0x00000002  // Warnings
    122 #  DEBUG_LOAD      0x00000004  // Load events
    123 #  DEBUG_FS        0x00000008  // EFI File system
    124 #  DEBUG_POOL      0x00000010  // Alloc & Free's
    125 #  DEBUG_PAGE      0x00000020  // Alloc & Free's
    126 #  DEBUG_INFO      0x00000040  // Verbose
    127 #  DEBUG_DISPATCH  0x00000080  // PEI/DXE Dispatchers
    128 #  DEBUG_VARIABLE  0x00000100  // Variable
    129 #  DEBUG_BM        0x00000400  // Boot Manager
    130 #  DEBUG_BLKIO     0x00001000  // BlkIo Driver
    131 #  DEBUG_NET       0x00004000  // SNI Driver
    132 #  DEBUG_UNDI      0x00010000  // UNDI Driver
    133 #  DEBUG_LOADFILE  0x00020000  // UNDI Driver
    134 #  DEBUG_EVENT     0x00080000  // Event messages
    135 #  DEBUG_ERROR     0x80000000  // Error
    136   gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000004
    137 
    138   gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
    139 
    140   gEmbeddedTokenSpaceGuid.PcdPrePiTempMemorySize|0
    141   gEmbeddedTokenSpaceGuid.PcdPrePiBfvBaseAddress|0
    142   gEmbeddedTokenSpaceGuid.PcdPrePiBfvSize|0
    143   gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|0
    144   gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize|0
    145   gEmbeddedTokenSpaceGuid.PcdPrePiHobBase|0x80001000
    146   gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0x87FE0000 # stack at top of memory
    147   gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0x20000  # 128K stack
    148   gArmTokenSpaceGuid.PcdCpuVectorBaseAddress|0x80000000
    149   gArmTokenSpaceGuid.PcdCpuResetAddress|0x80008000
    150 
    151   gOmap35xxTokenSpaceGuid.PcdOmap35xxGpmcOffset|0x6E000000
    152   gOmap35xxTokenSpaceGuid.PcdOmap35xxMMCHS1Base|0x4809C000
    153 
    154   # Console
    155   gOmap35xxTokenSpaceGuid.PcdOmap35xxConsoleUart|3
    156 
    157   # Timers
    158   gOmap35xxTokenSpaceGuid.PcdOmap35xxArchTimer|3
    159   gOmap35xxTokenSpaceGuid.PcdOmap35xxFreeTimer|4
    160   gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000
    161   gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterPeriodInNanoseconds|77
    162   gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|13000000
    163 
    164   #
    165   # ARM Pcds
    166   #
    167   gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
    168 
    169 ################################################################################
    170 #
    171 # Components Section - list of all EDK II Modules needed by this Platform
    172 #
    173 ################################################################################
    174 [Components.common]
    175   OpenPlatformPkg/Chips/TexasInstruments/Omap35xx/Library/Omap35xxTimerLib/Omap35xxTimerLib.inf
    176   OpenPlatformPkg/Chips/TexasInstruments/Omap35xx/Library/OmapLib/OmapLib.inf
    177   OpenPlatformPkg/Chips/TexasInstruments/Omap35xx/Library/OmapDmaLib/OmapDmaLib.inf
    178 
    179   OpenPlatformPkg/Chips/TexasInstruments/Omap35xx/Flash/Flash.inf
    180   OpenPlatformPkg/Chips/TexasInstruments/Omap35xx/MMCHSDxe/MMCHS.inf
    181   OpenPlatformPkg/Chips/TexasInstruments/Omap35xx/SmbusDxe/Smbus.inf
    182   OpenPlatformPkg/Chips/TexasInstruments/Omap35xx/Gpio/Gpio.inf
    183   OpenPlatformPkg/Chips/TexasInstruments/Omap35xx/InterruptDxe/InterruptDxe.inf
    184   OpenPlatformPkg/Chips/TexasInstruments/Omap35xx/TimerDxe/TimerDxe.inf
    185   OpenPlatformPkg/Chips/TexasInstruments/Omap35xx/TPS65950Dxe/TPS65950.inf
    186 
    187 
    188 
    189