X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ArmPlatformPkg%2FInclude%2FDrivers%2FPL061Gpio.h;fp=ArmPlatformPkg%2FInclude%2FDrivers%2FPL061Gpio.h;h=0000000000000000000000000000000000000000;hp=308f69fa84a4234c72cc2340904ea397eacc5adf;hb=c13f36654b5c122c7a75d89216535cc0bd5462ff;hpb=ef120b7d639b78c7942e07a2a5dadc3d657fcfd7 diff --git a/ArmPlatformPkg/Include/Drivers/PL061Gpio.h b/ArmPlatformPkg/Include/Drivers/PL061Gpio.h deleted file mode 100644 index 308f69fa84..0000000000 --- a/ArmPlatformPkg/Include/Drivers/PL061Gpio.h +++ /dev/null @@ -1,49 +0,0 @@ -/** @file -* -* Copyright (c) 2011-2012, ARM Limited. All rights reserved. -* -* 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 -* http://opensource.org/licenses/bsd-license.php -* -* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -* -**/ - - -#ifndef __PL061_GPIO_H__ -#define __PL061_GPIO_H__ - -#include - -// PL061 GPIO Registers -#define PL061_GPIO_DATA_REG_OFFSET ((UINTN) 0x000) -#define PL061_GPIO_DATA_REG 0x000 -#define PL061_GPIO_DIR_REG 0x400 -#define PL061_GPIO_IS_REG 0x404 -#define PL061_GPIO_IBE_REG 0x408 -#define PL061_GPIO_IEV_REG 0x40C -#define PL061_GPIO_IE_REG 0x410 -#define PL061_GPIO_RIS_REG 0x414 -#define PL061_GPIO_MIS_REG 0x410 -#define PL061_GPIO_IC_REG 0x41C -#define PL061_GPIO_AFSEL_REG 0x420 - -#define PL061_GPIO_PERIPH_ID0 0xFE0 -#define PL061_GPIO_PERIPH_ID1 0xFE4 -#define PL061_GPIO_PERIPH_ID2 0xFE8 -#define PL061_GPIO_PERIPH_ID3 0xFEC - -#define PL061_GPIO_PCELL_ID0 0xFF0 -#define PL061_GPIO_PCELL_ID1 0xFF4 -#define PL061_GPIO_PCELL_ID2 0xFF8 -#define PL061_GPIO_PCELL_ID3 0xFFC - -#define PL061_GPIO_PINS 8 - -// All bits low except one bit high, native bit length -#define GPIO_PIN_MASK(Pin) (1UL << ((UINTN)(Pin))) - -#endif // __PL061_GPIO_H__