ArmPlatformPkg: Minor code changes (comments, misspellings, coding stylei, line endings)

- Fixed misspellings
- Updated Copyright
- Remove unused sections in INF file
- Fixed incorrect commentsi
- Fixed coding style
- Fixed line endings (CRLR)



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13052 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
oliviermartin 2012-02-28 17:11:42 +00:00
parent 986223907f
commit 0db25ccc6c
26 changed files with 435 additions and 458 deletions

View File

@ -1,6 +1,6 @@
#/** @file #/** @file
# #
# Component discription file for Timer DXE module # Component description file for Timer DXE module
# #
# Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR> # Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>
# This program and the accompanying materials # This program and the accompanying materials

View File

@ -1,8 +1,8 @@
#/** @file #/** @file
# #
# Component discription file for ArmVeGraphicsDxe module # Component description file for ArmVeGraphicsDxe module
# #
# Copyright (c) 2011, ARM Ltd. All rights reserved.<BR> # Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
# This program and the accompanying materials # This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at # which accompanies this distribution. The full text of the license may be found at

View File

@ -1,8 +1,8 @@
#/** @file #/** @file
# #
# Component discription file for ArmVeGraphicsDxe module # Component description file for ArmRealViewGraphicsDxe module
# #
# Copyright (c) 2011, ARM Ltd. All rights reserved.<BR> # Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
# This program and the accompanying materials # This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at # which accompanies this distribution. The full text of the license may be found at

View File

@ -1,8 +1,8 @@
#/** @file #/** @file
# #
# Component discription file for ArmVeGraphicsDxe module # Component description file for SysConfigArmRealViewEbLib module
# #
# Copyright (c) 2011, ARM Ltd. All rights reserved.<BR> # Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
# This program and the accompanying materials # This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at # which accompanies this distribution. The full text of the license may be found at
@ -31,15 +31,3 @@
[LibraryClasses] [LibraryClasses]
BaseLib BaseLib
[Guids]
[Protocols]
[FeaturePcd]
[FixedPcd.common]
[Pcd.common]
[Depex]

View File

@ -77,7 +77,6 @@
[PcdsFixedAtBuild.common] [PcdsFixedAtBuild.common]
gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Versatile Express" gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Versatile Express"
gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmVExpress-RTSM" gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmVExpress-RTSM"
# #

View File

@ -1,6 +1,6 @@
/** @file /** @file
* *
* Copyright (c) 2011, ARM Limited. All rights reserved. * Copyright (c) 2011-2012, ARM Limited. All rights reserved.
* *
* This program and the accompanying materials * This program and the accompanying materials
* are licensed and made available under the terms and conditions of the BSD License * are licensed and made available under the terms and conditions of the BSD License
@ -13,7 +13,6 @@
**/ **/
#include <Library/IoLib.h> #include <Library/IoLib.h>
#include <Library/ArmTrustZoneLib.h>
#include <Library/ArmPlatformLib.h> #include <Library/ArmPlatformLib.h>
#include <Library/DebugLib.h> #include <Library/DebugLib.h>
#include <Library/PcdLib.h> #include <Library/PcdLib.h>

View File

@ -1,6 +1,6 @@
/** @file /** @file
* *
* Copyright (c) 2011, ARM Limited. All rights reserved. * Copyright (c) 2011-2012, ARM Limited. All rights reserved.
* *
* This program and the accompanying materials * This program and the accompanying materials
* are licensed and made available under the terms and conditions of the BSD License * are licensed and made available under the terms and conditions of the BSD License
@ -13,12 +13,13 @@
**/ **/
#include <Library/IoLib.h> #include <Library/IoLib.h>
#include <Library/ArmTrustZoneLib.h>
#include <Library/ArmPlatformLib.h> #include <Library/ArmPlatformLib.h>
#include <Library/DebugLib.h> #include <Library/DebugLib.h>
#include <Library/PcdLib.h> #include <Library/PcdLib.h>
#include <Drivers/PL310L2Cache.h> #include <Drivers/PL310L2Cache.h>
#include <Drivers/SP804Timer.h> #include <Drivers/SP804Timer.h>
#include <ArmPlatform.h> #include <ArmPlatform.h>
/** /**

View File

@ -1,8 +1,8 @@
#/** @file #/** @file
# #
# Component discription file for ArmVeGraphicsDxe module # Component description file for ArmVExpressSysConfigLib module
# #
# Copyright (c) 2011, ARM Ltd. All rights reserved.<BR> # Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
# This program and the accompanying materials # This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at # which accompanies this distribution. The full text of the license may be found at
@ -32,15 +32,3 @@
[LibraryClasses] [LibraryClasses]
BaseLib BaseLib
IoLib IoLib
[Guids]
[Protocols]
[FeaturePcd]
[FixedPcd.common]
[Pcd.common]
[Depex]

View File

@ -1,8 +1,8 @@
#/** @file #/** @file
# #
# Component discription file for ArmVeGraphicsDxe module # Component description file for ArmVeGraphicsDxe module
# #
# Copyright (c) 2011, ARM Ltd. All rights reserved.<BR> # Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
# This program and the accompanying materials # This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at # which accompanies this distribution. The full text of the license may be found at

View File

@ -1,8 +1,8 @@
#/** @file #/** @file
# #
# Component discription file for NorFlashDxe module # Component description file for Bds module
# #
# Copyright (c) 2011, ARM Ltd. All rights reserved.<BR> # Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
# This program and the accompanying materials # This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at # which accompanies this distribution. The full text of the license may be found at

View File

@ -1,6 +1,6 @@
/** @file /** @file
* *
* Copyright (c) 2011, ARM Limited. All rights reserved. * Copyright (c) 2011-2012, ARM Limited. All rights reserved.
* *
* This program and the accompanying materials * This program and the accompanying materials
* are licensed and made available under the terms and conditions of the BSD License * are licensed and made available under the terms and conditions of the BSD License
@ -93,7 +93,6 @@ EditHIInputAscii (
AsciiStrToUnicodeStr (CmdLine, Str); AsciiStrToUnicodeStr (CmdLine, Str);
Status = EditHIInputStr (Str, MaxCmdLine); Status = EditHIInputStr (Str, MaxCmdLine);
if (!EFI_ERROR(Status)) { if (!EFI_ERROR(Status)) {
UnicodeStrToAsciiStr (Str, CmdLine); UnicodeStrToAsciiStr (Str, CmdLine);
} }

View File

@ -390,7 +390,7 @@ BdsLoadOptionFileSystemUpdateDevicePath (
FILEPATH_DEVICE_PATH* FilePathDevicePath; FILEPATH_DEVICE_PATH* FilePathDevicePath;
EFI_DEVICE_PATH* DevicePath; EFI_DEVICE_PATH* DevicePath;
DevicePath = DuplicateDevicePath(OldDevicePath); DevicePath = DuplicateDevicePath (OldDevicePath);
EndingDevicePath = (FILEPATH_DEVICE_PATH*)GetLastDevicePathNode (DevicePath); EndingDevicePath = (FILEPATH_DEVICE_PATH*)GetLastDevicePathNode (DevicePath);

View File

@ -57,7 +57,7 @@ LcdInitialize (
EFI_STATUS Status = EFI_SUCCESS; EFI_STATUS Status = EFI_SUCCESS;
// Check if the PL111 is fitted on this motherboard // Check if the PL111 is fitted on this motherboard
Status = PL111Indentify(); Status = PL111Indentify ();
if (EFI_ERROR( Status )) { if (EFI_ERROR( Status )) {
return EFI_DEVICE_ERROR; return EFI_DEVICE_ERROR;
} }

View File

@ -1,8 +1,8 @@
#/** @file #/** @file
# #
# Component discription file for ArmVeGraphicsDxe module # Component description file for PL111LcdGraphicsOutputDxe module
# #
# Copyright (c) 2011, ARM Ltd. All rights reserved.<BR> # Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
# This program and the accompanying materials # This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at # which accompanies this distribution. The full text of the license may be found at

View File

@ -1,8 +1,9 @@
#/** @file #/** @file
# #
# Component discription file for NorFlashDxe module # Component description file for PL011Uart module
#
# Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
# #
# Copyright (c) 2011, ARM Ltd. All rights reserved.<BR>
# This program and the accompanying materials # This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at # which accompanies this distribution. The full text of the license may be found at

View File

@ -2,7 +2,7 @@
Template for Timer Architecture Protocol driver of the ARM flavor Template for Timer Architecture Protocol driver of the ARM flavor
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
Copyright (c) 20i1 - 2012, ARM Ltd. All rights reserved.<BR> Copyright (c) 2011 - 2012, ARM Ltd. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License

View File

@ -1,6 +1,6 @@
#/** @file #/** @file
# #
# Component discription file for Timer module # Component description file for Timer module
# #
# Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR> # Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>
# This program and the accompanying materials # This program and the accompanying materials

View File

@ -1,6 +1,6 @@
/** @file /** @file
* *
* Copyright (c) 2011, ARM Limited. All rights reserved. * Copyright (c) 2011-2012, ARM Limited. All rights reserved.
* *
* This program and the accompanying materials * This program and the accompanying materials
* are licensed and made available under the terms and conditions of the BSD License * are licensed and made available under the terms and conditions of the BSD License
@ -18,7 +18,7 @@
#include <Protocol/EmbeddedGpio.h> #include <Protocol/EmbeddedGpio.h>
// SP805 Watchdog Registers // PL061 GPIO Registers
#define PL061_GPIO_DATA_REG ((UINT32)PcdGet32 (PcdPL061GpioBase) + 0x000) #define PL061_GPIO_DATA_REG ((UINT32)PcdGet32 (PcdPL061GpioBase) + 0x000)
#define PL061_GPIO_DIR_REG ((UINT32)PcdGet32 (PcdPL061GpioBase) + 0x400) #define PL061_GPIO_DIR_REG ((UINT32)PcdGet32 (PcdPL061GpioBase) + 0x400)
#define PL061_GPIO_IS_REG ((UINT32)PcdGet32 (PcdPL061GpioBase) + 0x404) #define PL061_GPIO_IS_REG ((UINT32)PcdGet32 (PcdPL061GpioBase) + 0x404)
@ -44,7 +44,7 @@
// GPIO pins are numbered 0..7 // GPIO pins are numbered 0..7
#define LAST_GPIO_PIN 7 #define LAST_GPIO_PIN 7
// All bits low except one bit high, native bit lenght // All bits low except one bit high, native bit length
#define GPIO_PIN_MASK(Pin) (1UL << ((UINTN)(Pin))) #define GPIO_PIN_MASK(Pin) (1UL << ((UINTN)(Pin)))
// All bits low except one bit high, restricted to 8 bits (i.e. ensures zeros above 8bits) // All bits low except one bit high, restricted to 8 bits (i.e. ensures zeros above 8bits)
#define GPIO_PIN_MASK_HIGH_8BIT(Pin) (GPIO_PIN_MASK(Pin) && 0xFF) #define GPIO_PIN_MASK_HIGH_8BIT(Pin) (GPIO_PIN_MASK(Pin) && 0xFF)

View File

@ -1,6 +1,6 @@
/** @file /** @file
* *
* Copyright (c) 2011, ARM Limited. All rights reserved. * Copyright (c) 2011-2012, ARM Limited. All rights reserved.
* *
* This program and the accompanying materials * This program and the accompanying materials
* are licensed and made available under the terms and conditions of the BSD License * are licensed and made available under the terms and conditions of the BSD License
@ -29,7 +29,7 @@
#include <Library/ArmLib.h> #include <Library/ArmLib.h>
/** /**
This structure is used by ArmVExpressGetEfiMemoryMap to describes a region of the EFI memory map This structure is used to describe a region of the EFI memory map
Every EFI regions of the system memory described by their physical start address and their size Every EFI regions of the system memory described by their physical start address and their size
can have different attributes. Some regions can be tested and other untested. can have different attributes. Some regions can be tested and other untested.

View File

@ -1,8 +1,8 @@
#/** @file #/** @file
# Timer library implementation # ArmPlatformGlobalVariableLib library implementation
#
# #
# Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR> # Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
#
# This program and the accompanying materials # This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at # which accompanies this distribution. The full text of the license may be found at

View File

@ -1,6 +1,7 @@
#/** @file #/** @file
# #
# Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR> # Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
#
# This program and the accompanying materials # This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at # which accompanies this distribution. The full text of the license may be found at

View File

@ -1,6 +1,7 @@
#/** @file #/** @file
# #
# Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR> # Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
#
# This program and the accompanying materials # This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at # which accompanies this distribution. The full text of the license may be found at

View File

@ -1,5 +1,5 @@
#/* @file #/* @file
# Copyright (c) 2011, ARM Limited. All rights reserved. # Copyright (c) 2011-2012, ARM Limited. All rights reserved.
# #
# This program and the accompanying materials # This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
@ -17,7 +17,7 @@
FILE_GUID = 8fff7a60-a6f8-11e0-990a-0002a5d5c51b FILE_GUID = 8fff7a60-a6f8-11e0-990a-0002a5d5c51b
MODULE_TYPE = BASE MODULE_TYPE = BASE
VERSION_STRING = 1.0 VERSION_STRING = 1.0
LIBRARY_CLASS = DebugSecExtraActionLib LIBRARY_CLASS = ArmPlatformSecExtraActionLib
# #
# The following information is for reference only and not required by the build tools. # The following information is for reference only and not required by the build tools.

View File

@ -53,7 +53,7 @@ IdentifyPL031 (
goto EXIT; goto EXIT;
} }
// Check if this PrimeCell Peripheral is the SP805 Watchdog Timer // Check if this PrimeCell Peripheral is the PL031 Real Time Clock
if ( (MmioRead8 (PL031_RTC_PERIPH_ID0) != 0x31) if ( (MmioRead8 (PL031_RTC_PERIPH_ID0) != 0x31)
|| (MmioRead8 (PL031_RTC_PERIPH_ID1) != 0x10) || (MmioRead8 (PL031_RTC_PERIPH_ID1) != 0x10)
|| ((MmioRead8 (PL031_RTC_PERIPH_ID2) & 0xF) != 0x04) || ((MmioRead8 (PL031_RTC_PERIPH_ID2) & 0xF) != 0x04)

View File

@ -1,6 +1,6 @@
#/** @file #/** @file
# #
# Component discription file for Bds module # Component description file for Bds module
# #
# Copyright (c) 2008, Apple Inc. All rights reserved.<BR> # Copyright (c) 2008, Apple Inc. All rights reserved.<BR>
# This program and the accompanying materials # This program and the accompanying materials

View File

@ -1,6 +1,6 @@
#/** @file #/** @file
# #
# Component discription file for Bds module # Component description file for Bds module
# #
# Copyright (c) 2008, Intel Corporation. All rights reserved.<BR> # Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials # This program and the accompanying materials