From nobody Mon Feb 9 18:20:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+53508+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+53508+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1580232013250108.16670785278518; Tue, 28 Jan 2020 09:20:13 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id e1Q4YY1788612xitCtMlmQz5; Tue, 28 Jan 2020 09:20:12 -0800 X-Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by mx.groups.io with SMTP id smtpd.web10.243.1580232011417247620 for ; Tue, 28 Jan 2020 09:20:11 -0800 X-Received: by mail-wm1-f68.google.com with SMTP id m10so2258943wmc.0 for ; Tue, 28 Jan 2020 09:20:11 -0800 (PST) X-Gm-Message-State: 9jVUPP9PWHwtqc3p349Fboiyx1787277AA= X-Google-Smtp-Source: APXvYqwJb6wtbzyBYqZHOYyM60b9XknFTK+MdIwtufvgppYBnhH4UNxI2loraK1okDURcyiDSPEzOw== X-Received: by 2002:a1c:770e:: with SMTP id t14mr6136418wmi.101.1580232009702; Tue, 28 Jan 2020 09:20:09 -0800 (PST) X-Received: from localhost.localdomain ([84.203.49.247]) by smtp.gmail.com with ESMTPSA id 205sm4000853wmd.42.2020.01.28.09.20.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jan 2020 09:20:09 -0800 (PST) From: "Pete Batard" To: devel@edk2.groups.io Cc: ard.biesheuvel@linaro.org, leif@nuviainc.com, philmd@redhat.com Subject: [edk2-devel] [edk2-platforms][PATCH 1/4] Silicon/Broadcom/Bcm283x: Add clock manager constants Date: Tue, 28 Jan 2020 17:19:53 +0000 Message-Id: <20200128171956.9680-2-pete@akeo.ie> In-Reply-To: <20200128171956.9680-1-pete@akeo.ie> References: <20200128171956.9680-1-pete@akeo.ie> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,pete@akeo.ie Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1580232012; bh=L1EVqwtoSBFmgYxW9c+jfiVvMRSfDGbKqtuZztkhbS8=; h=Cc:Date:From:Reply-To:Subject:To; b=oZxI4ZbJcIJktpDwfbH7Y04WWYGTzxvgO+feOfZmkRFj8Jg1lsV4imc0f57Hpaocmih 8aAS5jXfkL+1U1ZpXcE54BOl0UBzfrPGHzqUqeXi4mDSkioCZ9IpRhU3CcfWL8xoHbFAy HbkPjhNLoiUKGehXya9xjiDoXP0HT7xma6I= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" We need these to be able to read the VPU divisor to set the 16650 serial baudrate on the Raspberry Pi. Signed-off-by: Pete Batard --- Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h | 22 +++++++++= +++++++++++ 1 file changed, 22 insertions(+) diff --git a/Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h b/= Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h index dd9a698f7218..7ba4877337a8 100644 --- a/Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h +++ b/Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h @@ -31,6 +31,28 @@ #define BCM2836_WDOG_RSTC_WRCFG_MASK 0x00000030 #define BCM2836_WDOG_RSTC_WRCFG_FULL_RESET 0x00000020 =20 +/* clock manager constants */ +#define BCM2836_CM_OFFSET 0x00101000 +#define BCM2836_CM_BASE (BCM2836_SOC_R= EGISTERS + BCM2836_CM_OFFSET) +#define BCM2836_CM_GEN_CLOCK_CONTROL 0x0000 +#define BCM2836_CM_GEN_CLOCK_DIVISOR 0x0004 +#define BCM2836_CM_VPU_CLOCK_CONTROL 0x0008 +#define BCM2836_CM_VPU_CLOCK_DIVISOR 0x000c +#define BCM2836_CM_SYSTEM_CLOCK_CONTROL 0x0010 +#define BCM2836_CM_SYSTEM_CLOCK_DIVISOR 0x0014 +#define BCM2836_CM_H264_CLOCK_CONTROL 0x0028 +#define BCM2836_CM_H264_CLOCK_DIVISOR 0x002c +#define BCM2836_CM_PWM_CLOCK_CONTROL 0x00a0 +#define BCM2836_CM_PWM_CLOCK_DIVISOR 0x00a4 +#define BCM2836_CM_UART_CLOCK_CONTROL 0x00f0 +#define BCM2836_CM_UART_CLOCK_DIVISOR 0x00f4 +#define BCM2836_CM_SDC_CLOCK_CONTROL 0x01a8 +#define BCM2836_CM_SDC_CLOCK_DIVISOR 0x01ac +#define BCM2836_CM_ARM_CLOCK_CONTROL 0x01b0 +#define BCM2836_CM_ARM_CLOCK_DIVISOR 0x01b4 +#define BCM2836_CM_EMMC_CLOCK_CONTROL 0x01c0 +#define BCM2836_CM_EMMC_CLOCK_DIVISOR 0x01c4 + /* mailbox interface constants */ #define BCM2836_MBOX_OFFSET 0x0000b880 #define BCM2836_MBOX_BASE_ADDRESS (BCM2836_SOC_R= EGISTERS + BCM2836_MBOX_OFFSET) --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#53508): https://edk2.groups.io/g/devel/message/53508 Mute This Topic: https://groups.io/mt/70222626/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-