]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg: remove unused PL301Axi driver
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 15 Nov 2017 14:29:35 +0000 (14:29 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 8 Dec 2017 16:30:38 +0000 (16:30 +0000)
No platforms use this driver so remove it.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
ArmPlatformPkg/Drivers/PL301Axi/PL301Axi.c [deleted file]
ArmPlatformPkg/Drivers/PL301Axi/PL301Axi.inf [deleted file]
ArmPlatformPkg/Include/Drivers/PL301Axi.h [deleted file]

diff --git a/ArmPlatformPkg/Drivers/PL301Axi/PL301Axi.c b/ArmPlatformPkg/Drivers/PL301Axi/PL301Axi.c
deleted file mode 100644 (file)
index 8600721..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-/** @file\r
-*\r
-*  Copyright (c) 2011, ARM Limited. All rights reserved.\r
-*\r
-*  This program and the accompanying materials\r
-*  are licensed and made available under the terms and conditions of the BSD License\r
-*  which accompanies this distribution.  The full text of the license may be found at\r
-*  http://opensource.org/licenses/bsd-license.php\r
-*\r
-*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-*\r
-**/\r
-\r
-#include <Library/IoLib.h>\r
-#include <Library/DebugLib.h>\r
-\r
-#define PL301_QOS_TIDEMARK_MI_0                  0x400\r
-#define PL301_QOS_ACCESSCONTROL_MI_0             0x404\r
-\r
-#define PL301_QOS_TIDEMARK_MI_1                  0x420\r
-#define PL301_QOS_ACCESSCONTROL_MI_1             0x424\r
-\r
-#define PL301_QOS_TIDEMARK_MI_2                  0x440\r
-#define PL301_QOS_ACCESSCONTROL_MI_2             0x444\r
-\r
-#define PL301_AR_ARB_MI_0                        0x408\r
-#define PL301_AW_ARB_MI_0                        0x40C\r
-\r
-#define PL301_AR_ARB_MI_1                        0x428\r
-#define PL301_AW_ARB_MI_1                        0x42C\r
-\r
-#define PL301_AR_ARB_MI_2                        0x448\r
-#define PL301_AW_ARB_MI_2                        0x44C\r
-\r
-#define PL301_MI_1_OFFSET                        0x20\r
-#define PL301_MI_2_OFFSET                        0x40\r
-#define PL301_MI_3_OFFSET                        0x60\r
-#define PL301_MI_4_OFFSET                        0x80\r
-#define PL301_MI_5_OFFSET                        0xa0\r
-\r
-#define V2P_CA9_FAXI_MI0_TIDEMARK_VAL            0x6\r
-#define V2P_CA9_FAXI_MI0_ACCESSCNTRL_VAL         0x1\r
-\r
-#define V2P_CA9_FAXI_MI1_TIDEMARK_VAL            0x6\r
-#define V2P_CA9_FAXI_MI1_ACCESSCNTRL_VAL         0x1\r
-\r
-#define V2P_CA9_FAXI_MI2_TIDEMARK_VAL            0x6\r
-#define V2P_CA9_FAXI_MI2_ACCESSCNTRL_VAL         0x1\r
-\r
-\r
-#define FAxiWriteReg(reg,val)                    MmioWrite32(FAxiBase + reg, val)\r
-#define FAxiReadReg(reg)                         MmioRead32(FAxiBase + reg)\r
-\r
-// IN FAxiBase\r
-// Initialize PL301 Dynamic Memory Controller\r
-VOID PL301AxiInit(UINTN FAxiBase) {\r
-    // Configure Tidemark Register for Master Port 0 (MI 0)\r
-    FAxiWriteReg(PL301_QOS_TIDEMARK_MI_0, V2P_CA9_FAXI_MI0_TIDEMARK_VAL);\r
-\r
-    // Configure the Access Control Register (MI 0)\r
-    FAxiWriteReg(PL301_QOS_ACCESSCONTROL_MI_0, V2P_CA9_FAXI_MI0_ACCESSCNTRL_VAL);\r
-\r
-    // MP0\r
-    // Set priority for Read\r
-    FAxiWriteReg(PL301_AR_ARB_MI_0, 0x00000100);\r
-    FAxiWriteReg(PL301_AR_ARB_MI_0, 0x01000200);\r
-    FAxiWriteReg(PL301_AR_ARB_MI_0, 0x02000200);\r
-    FAxiWriteReg(PL301_AR_ARB_MI_0, 0x03000200);\r
-    FAxiWriteReg(PL301_AR_ARB_MI_0, 0x04000200);\r
-\r
-    // Set priority for Write\r
-    FAxiWriteReg(PL301_AW_ARB_MI_0, 0x00000100);\r
-    FAxiWriteReg(PL301_AW_ARB_MI_0, 0x01000200);\r
-    FAxiWriteReg(PL301_AW_ARB_MI_0, 0x02000200);\r
-    FAxiWriteReg(PL301_AW_ARB_MI_0, 0x03000200);\r
-    FAxiWriteReg(PL301_AW_ARB_MI_0, 0x04000200);\r
-\r
-    // MP1\r
-    // Set priority for Read\r
-    FAxiWriteReg(PL301_AR_ARB_MI_1, 0x00000100);\r
-    FAxiWriteReg(PL301_AR_ARB_MI_1, 0x01000200);\r
-    FAxiWriteReg(PL301_AR_ARB_MI_1, 0x02000200);\r
-    FAxiWriteReg(PL301_AR_ARB_MI_1, 0x03000200);\r
-    FAxiWriteReg(PL301_AR_ARB_MI_1, 0x04000200);\r
-\r
-    // Set priority for Write\r
-    FAxiWriteReg(PL301_AW_ARB_MI_1, 0x00000100);\r
-    FAxiWriteReg(PL301_AW_ARB_MI_1, 0x01000200);\r
-    FAxiWriteReg(PL301_AW_ARB_MI_1, 0x02000200);\r
-    FAxiWriteReg(PL301_AW_ARB_MI_1, 0x03000200);\r
-    FAxiWriteReg(PL301_AW_ARB_MI_1, 0x04000200);\r
-\r
-    // MP2\r
-    // Set priority for Read\r
-    FAxiWriteReg(PL301_AR_ARB_MI_2, 0x00000100);\r
-    FAxiWriteReg(PL301_AR_ARB_MI_2, 0x01000100);\r
-    FAxiWriteReg(PL301_AR_ARB_MI_2, 0x02000100);\r
-    FAxiWriteReg(PL301_AR_ARB_MI_2, 0x03000100);\r
-    FAxiWriteReg(PL301_AR_ARB_MI_2, 0x04000100);\r
-\r
-    // Set priority for Write\r
-    FAxiWriteReg(PL301_AW_ARB_MI_2, 0x00000100);\r
-    FAxiWriteReg(PL301_AW_ARB_MI_2, 0x01000200);\r
-    FAxiWriteReg(PL301_AW_ARB_MI_2, 0x02000200);\r
-    FAxiWriteReg(PL301_AW_ARB_MI_2, 0x03000200);\r
-    FAxiWriteReg(PL301_AW_ARB_MI_2, 0x04000200);\r
-}\r
diff --git a/ArmPlatformPkg/Drivers/PL301Axi/PL301Axi.inf b/ArmPlatformPkg/Drivers/PL301Axi/PL301Axi.inf
deleted file mode 100644 (file)
index 108161f..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#/* @file\r
-#  Copyright (c) 2011, ARM Limited. All rights reserved.\r
-#\r
-#  This program and the accompanying materials\r
-#  are licensed and made available under the terms and conditions of the BSD License\r
-#  which accompanies this distribution.  The full text of the license may be found at\r
-#  http://opensource.org/licenses/bsd-license.php\r
-#\r
-#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-#*/\r
-\r
-[Defines]\r
-  INF_VERSION                    = 0x00010005\r
-  BASE_NAME                      = PL301Axi\r
-  FILE_GUID                      = 2ea84160-aba0-11df-9896-0002a5d5c51b\r
-  MODULE_TYPE                    = BASE\r
-  VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = PL301AxiLib\r
-\r
-[Sources]\r
-  PL301Axi.c\r
-\r
-[Packages]\r
-  ArmPlatformPkg/ArmPlatformPkg.dec\r
-  MdePkg/MdePkg.dec\r
diff --git a/ArmPlatformPkg/Include/Drivers/PL301Axi.h b/ArmPlatformPkg/Include/Drivers/PL301Axi.h
deleted file mode 100644 (file)
index ae94183..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-/** @file\r
-*\r
-*  Copyright (c) 2011, ARM Limited. All rights reserved.\r
-*\r
-*  This program and the accompanying materials\r
-*  are licensed and made available under the terms and conditions of the BSD License\r
-*  which accompanies this distribution.  The full text of the license may be found at\r
-*  http://opensource.org/licenses/bsd-license.php\r
-*\r
-*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-*\r
-**/\r
-\r
-#ifndef PL301AXI_H_\r
-#define PL301AXI_H_\r
-\r
-VOID PL301AxiInit(UINTN FAxiBase);\r
-\r
-\r
-#endif /* PL301AXI_H_ */\r