summaryrefslogtreecommitdiffstats
path: root/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2012-05-02 19:52:49 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2012-05-02 19:52:49 +0000
commit3f305c063a3bf3ce556b939da31fb99a526d768c (patch)
tree7e4de94b2421178106306cb67131ddaa732137b2 /ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe
parentd9efd68ef54883f8142d833212d66870248c0dd7 (diff)
downloadedk2-3f305c063a3bf3ce556b939da31fb99a526d768c.tar.gz
edk2-3f305c063a3bf3ce556b939da31fb99a526d768c.tar.bz2
edk2-3f305c063a3bf3ce556b939da31fb99a526d768c.zip
ArmPlatformPkg: Removed the 'Identify' functions
This function was introduced in some drivers to check if the ARM controller was present in the memory map. It was using a 8 bit access to get the value from the Identification registers. These accesses could generate access error on some buses. Instead of replacing the 8bit access by a 32bit access, these fcuntions have been removed because they are only useful when the boot firmware is ported on a new platform. Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13247 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe')
-rw-r--r--ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111Lcd.c35
1 files changed, 2 insertions, 33 deletions
diff --git a/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111Lcd.c b/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111Lcd.c
index ec1a199824..a955acb4dc 100644
--- a/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111Lcd.c
+++ b/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111Lcd.c
@@ -1,6 +1,7 @@
/** @file PL111Lcd.c
- 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
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
@@ -26,42 +27,10 @@
**********************************************************************/
EFI_STATUS
-PL111Indentify (
- VOID
- )
-{
- // Check if this is a PrimeCell Peripheral
- if ( ( MmioRead8( PL111_REG_CLCD_P_CELL_ID_0 ) != 0x0D )
- || ( MmioRead8( PL111_REG_CLCD_P_CELL_ID_1 ) != 0xF0 )
- || ( MmioRead8( PL111_REG_CLCD_P_CELL_ID_2 ) != 0x05 )
- || ( MmioRead8( PL111_REG_CLCD_P_CELL_ID_3 ) != 0xB1 ) ) {
- return EFI_NOT_FOUND;
- }
-
- // Check if this PrimeCell Peripheral is the PL111 LCD
- if ( ( MmioRead8( PL111_REG_CLCD_PERIPH_ID_0 ) != 0x11 )
- || ( MmioRead8( PL111_REG_CLCD_PERIPH_ID_1 ) != 0x11 )
- || ( (MmioRead8( PL111_REG_CLCD_PERIPH_ID_2 ) & 0xF) != 0x04 )
- || ( MmioRead8( PL111_REG_CLCD_PERIPH_ID_3 ) != 0x00 ) ) {
- return EFI_NOT_FOUND;
- }
-
- return EFI_SUCCESS;
-}
-
-EFI_STATUS
LcdInitialize (
IN EFI_PHYSICAL_ADDRESS VramBaseAddress
)
{
- EFI_STATUS Status = EFI_SUCCESS;
-
- // Check if the PL111 is fitted on this motherboard
- Status = PL111Indentify ();
- if (EFI_ERROR( Status )) {
- return EFI_DEVICE_ERROR;
- }
-
// Define start of the VRAM. This never changes for any graphics mode
MmioWrite32(PL111_REG_LCD_UP_BASE, (UINT32) VramBaseAddress);
MmioWrite32(PL111_REG_LCD_LP_BASE, 0); // We are not using a double buffer