Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/broadcom Add BCM2838_{PERIPHERALS, ARM_LOCAL}_BA...



details:   https://anonhg.NetBSD.org/src/rev/7b99e1acb5b0
branches:  trunk
changeset: 464146:7b99e1acb5b0
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Sep 25 18:05:39 2019 +0000

description:
Add BCM2838_{PERIPHERALS,ARM_LOCAL}_BASE and support macros

diffstat:

 sys/arch/arm/broadcom/bcm2835reg.h |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r c38402773130 -r 7b99e1acb5b0 sys/arch/arm/broadcom/bcm2835reg.h
--- a/sys/arch/arm/broadcom/bcm2835reg.h        Wed Sep 25 18:01:03 2019 +0000
+++ b/sys/arch/arm/broadcom/bcm2835reg.h        Wed Sep 25 18:05:39 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bcm2835reg.h,v 1.24 2019/09/25 18:01:03 skrll Exp $    */
+/*     $NetBSD: bcm2835reg.h,v 1.25 2019/09/25 18:05:39 skrll Exp $    */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -44,11 +44,17 @@
 #error Must define SOC_BCM2835 or SOC_BCM2836, and not both
 #endif
 
+#define        BCM2838_PERIPHERALS_BASE        0xfe000000
 #define        BCM2836_PERIPHERALS_BASE        0x3f000000
 #define        BCM2835_PERIPHERALS_BASE        0x20000000
 #define        BCM283X_PERIPHERALS_SIZE        0x01000000      /* 16MBytes */
 #define        BCM283X_PERIPHERALS_BASE_BUS    0x7e000000
 
+#define        BCM2838_PERIPHERALS_PHYS_TO_BUS(a) \
+    ((a) - BCM2838_PERIPHERALS_BASE + BCM283X_PERIPHERALS_BASE_BUS)
+#define        BCM2838_PERIPHERALS_BUS_TO_PHYS(a) \
+    ((a) - BCM283X_PERIPHERALS_BASE_BUS + BCM2838_PERIPHERALS_BASE)
+
 #define        BCM2836_PERIPHERALS_PHYS_TO_BUS(a) \
     ((a) - BCM2836_PERIPHERALS_BASE + BCM283X_PERIPHERALS_BASE_BUS)
 #define        BCM2836_PERIPHERALS_BUS_TO_PHYS(a) \
@@ -206,6 +212,9 @@
 
 #define        BCM2835_UART0_CLK               3000000
 
+#define        BCM2838_ARM_LOCAL_BASE          0xff800000
+#define        BCM2838_ARM_LOCAL_SIZE          0x00100000      /* 1MByte */
+
 #define        BCM2836_ARM_LOCAL_BASE          0x40000000
 #define        BCM2836_ARM_LOCAL_SIZE          0x00001000      /* 4KBytes */
 



Home | Main Index | Thread Index | Old Index