From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=pass header.i=@akeo-ie.20150623.gappssmtp.com header.s=20150623 header.b=ZkGR2Ju0; spf=none, err=permanent DNS error (domain: akeo.ie, ip: 209.85.128.68, mailfrom: pete@akeo.ie) Received: by mail-wm1-f68.google.com with SMTP id m10so2258943wmc.0 for ; Tue, 28 Jan 2020 09:20:11 -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=EQnvHCgmWHmg88hfvn7ytGCFmEd/TgG2oL/ZFa31SfA=; b=ZkGR2Ju0fmm6Oe7NMNg0DVVI1VDAgGm59gLIWdtKIp2Qq9YQT9NLwONmZnl4N8Sj1w /wurmkzDr0leTkTO90zFb+o9pMMsW+JXcSUMGWtbx9zo085FUZIpeTNw/Xq5U7xcq9E3 MMbqrDuySs/QJChUGq4DFbK0Ym7wH+aBNENMVhbVrjM+cNIUSMZMCPti4/vZror2CLqZ Ds0hqOc+XfSvZBkPf3PoPKrjAluuaijFDJlMg7h0m4OJtraMhs3UvyICAhwhQJMp22vq traciIZVb1ND/+fx39U9fKJYrTbIirLr2E2PSVRyynj7f+g0phHOrln5UBkz9+uOQmDs b4sA== 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=EQnvHCgmWHmg88hfvn7ytGCFmEd/TgG2oL/ZFa31SfA=; b=jGG7c0xB3dGBjnT3//G8GB0gWxNuad/JV8fCkS34tygjT+SKvIv0V3AnYS0rgJq65c DMik8JcVcAexsbs0Us3gV2uKpZhV718CAHHYHf77BBQZfFwZlDo26j12XAgRQwHk5e1c yp7LUbwIuCBK4x8glV+w1UwHokoCa4dgXXs5wSn50B485XXn2m78OJnpjZEXs9FE7V4t KUCvnPkX17oA6ox6vyTCAboPNGRrWGEVcqitM7lBRoKqI6g8yapFb0CVXx6vadk7I3av SS1Prnq7JzO3pl+KaywU/9W0iScLqPfatthjGuPXc9N1xyxilWqrJMWFGiL1G5Q2BuVV ymPQ== X-Gm-Message-State: APjAAAXK6iRtAB2ouOEIQjVnP3ZJaS4YVTbQWA+d561Q66AH9skFtWZQ GDf8a3O6Qyc/CAizgyNDNlXOCLbCEok= 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) Return-Path: 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-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> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20200128171956.9680-1-pete@akeo.ie> References: <20200128171956.9680-1-pete@akeo.ie> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 +/* clock manager constants */ +#define BCM2836_CM_OFFSET 0x00101000 +#define BCM2836_CM_BASE (BCM2836_SOC_REGISTERS + 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_REGISTERS + BCM2836_MBOX_OFFSET) -- 2.21.0.windows.1