From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by mx.groups.io with SMTP id smtpd.web12.8819.1576757689810717297 for ; Thu, 19 Dec 2019 04:14:50 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@akeo-ie.20150623.gappssmtp.com header.s=20150623 header.b=H4lkwm27; spf=none, err=permanent DNS error (domain: akeo.ie, ip: 209.85.221.65, mailfrom: pete@akeo.ie) Received: by mail-wr1-f65.google.com with SMTP id b6so5788336wrq.0 for ; Thu, 19 Dec 2019 04:14:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akeo-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/fyJu0gQmm+nrLtg+L5cc5XZAYxBIkUaC4mpLjRa/Ns=; b=H4lkwm27dwhIXPsWXotpcVc1CouPVDuOzdC4aBSmyRWa7yoDtUSgZIAO26w4MEarKw aab3dU8XVd6fcd7pSi3gJGNlKhA6wQ8Fkip/kCwPQ/4p/Mbx/rZw1giCaCc7WJdIy94q I8YNncwSVCAO1EAEiBLDAHht7H0+EqnEDLFGSd4YI2DjvlHtZvm6PDBs9HK54AkjUv3G CKSssSwsBcZHZ+vtkgHHBBDGf6JzC6DhpWo8UewB7Y80fsqv+hTGe865Dj72jwu6Ytbw 5mWc0wn/5sNkjl48bC5wO1O82XIXAxp/mCXt8fEb3UlrPgGNp5pkDik51fb2RUTTDwSn PSOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/fyJu0gQmm+nrLtg+L5cc5XZAYxBIkUaC4mpLjRa/Ns=; b=AsGnl4cunf00K4nocm2+EzgCSnGpMUpWjqmnpLpup0PlM/PzBwfxpZUfbMZo5NN8Xu cFmxGHXvekLyJC86kc5byQEaVMMjcUmMka7I3x1J3dLo3g23IlZ/77YonTRtEYNQMl7o FYerSIkT9sKC0r5iggN44PSgjz+dUFA8L+Xp7o7/9M17fLkonnzqoKjC0OAh4woQZGm4 FjPLe8HWbNrv1F3eRE/HuZ0IGGEegedsEKuOr6oWzrIzk296aPJNdyPtT2Jlqhv0QBCa //V7a25opl+CfZMRs/Vyx0RAb5/+8Tu0Gb+NtvKxO51yMg6jDhQuXl6CilHAgpaI2iWP V6Sw== X-Gm-Message-State: APjAAAW057lrzmh3fLzK59VQ4WylUG1xGFEV9NAztt3BS+Yi8Xy/4dQG XHcKX/gTGVxPdex69ypWqtWO7paqFgw= X-Google-Smtp-Source: APXvYqzMJE/pFz0jleMASWnPRK8Xt9Nv7Lu2SKaCi+uwDwtvakuPO+KXnjrL9wHR5d1Rb+z54WBvvg== X-Received: by 2002:a05:6000:149:: with SMTP id r9mr784886wrx.147.1576757687989; Thu, 19 Dec 2019 04:14:47 -0800 (PST) Return-Path: Received: from localhost.localdomain ([84.203.77.210]) by smtp.gmail.com with ESMTPSA id u8sm5823147wmm.15.2019.12.19.04.14.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Dec 2019 04:14:47 -0800 (PST) From: "Pete Batard" To: devel@edk2.groups.io Cc: ard.biesheuvel@linaro.org, leif.lindholm@linaro.org, philmd@redhat.com Subject: [edk2-platforms][PATCH v2 1/7] Silicon/Bcm283x: Add UART constants for PL011 and miniUART Date: Thu, 19 Dec 2019 12:14:28 +0000 Message-Id: <20191219121434.2856-2-pete@akeo.ie> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20191219121434.2856-1-pete@akeo.ie> References: <20191219121434.2856-1-pete@akeo.ie> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This adds offset, base address, interrupt and register-space length for the 2 UARTs that the Bcm283x SoC provides. To be consistent, we simplify the two other existing base address definitions to a more legible equivalent since there is no point in explicit refs to FixedPcdGet64 (PcdBcm283xRegistersAddress). Signed-off-by: Pete Batard --- Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h b/Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h index 02107086d439..dd9a698f7218 100644 --- a/Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h +++ b/Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h @@ -24,8 +24,7 @@ /* watchdog constants */ #define BCM2836_WDOG_OFFSET 0x00100000 -#define BCM2836_WDOG_BASE_ADDRESS (FixedPcdGet64 (PcdBcm283xRegistersAddress) \ - + BCM2836_WDOG_OFFSET) +#define BCM2836_WDOG_BASE_ADDRESS (BCM2836_SOC_REGISTERS + BCM2836_WDOG_OFFSET) #define BCM2836_WDOG_PASSWORD 0x5a000000 #define BCM2836_WDOG_RSTC_OFFSET 0x0000001c #define BCM2836_WDOG_WDOG_OFFSET 0x00000024 @@ -34,8 +33,7 @@ /* mailbox interface constants */ #define BCM2836_MBOX_OFFSET 0x0000b880 -#define BCM2836_MBOX_BASE_ADDRESS (FixedPcdGet64 (PcdBcm283xRegistersAddress) \ - + BCM2836_MBOX_OFFSET) +#define BCM2836_MBOX_BASE_ADDRESS (BCM2836_SOC_REGISTERS + BCM2836_MBOX_OFFSET) #define BCM2836_MBOX_READ_OFFSET 0x00000000 #define BCM2836_MBOX_STATUS_OFFSET 0x00000018 #define BCM2836_MBOX_CONFIG_OFFSET 0x0000001c @@ -50,4 +48,15 @@ #define BCM2836_INTC_TIMER_CONTROL_OFFSET 0x00000040 #define BCM2836_INTC_TIMER_PENDING_OFFSET 0x00000060 +/* uart constants */ +#define BCM2836_PL011_UART_OFFSET 0x00201000 +#define BCM2836_PL011_UART_BASE_ADDRESS (BCM2836_SOC_REGISTERS + BCM2836_PL011_UART_OFFSET) +#define BCM2836_PL011_UART_LENGTH 0x00001000 +#define BCM2836_PL011_UART_INTERRUPT 0x99 + +#define BCM2836_MINI_UART_OFFSET 0x00215000 +#define BCM2836_MINI_UART_BASE_ADDRESS (BCM2836_SOC_REGISTERS + BCM2836_MINI_UART_OFFSET) +#define BCM2836_MINI_UART_LENGTH 0x00000070 +#define BCM2836_MINI_UART_INTERRUPT 0x7D + #endif /*__BCM2836_H__ */ -- 2.21.0.windows.1