Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/xilinx Add OCM to devmap
details: https://anonhg.NetBSD.org/src/rev/b5430fbc5e9e
branches: trunk
changeset: 372125:b5430fbc5e9e
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Thu Oct 27 20:37:10 2022 +0000
description:
Add OCM to devmap
diffstat:
sys/arch/arm/xilinx/zynq_platform.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r 85ba7ec7c0d2 -r b5430fbc5e9e sys/arch/arm/xilinx/zynq_platform.c
--- a/sys/arch/arm/xilinx/zynq_platform.c Thu Oct 27 20:00:24 2022 +0000
+++ b/sys/arch/arm/xilinx/zynq_platform.c Thu Oct 27 20:37:10 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zynq_platform.c,v 1.7 2022/10/27 08:49:08 jmcneill Exp $ */
+/* $NetBSD: zynq_platform.c,v 1.8 2022/10/27 20:37:10 jmcneill Exp $ */
/*-
* Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
#include "arml2cc.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zynq_platform.c,v 1.7 2022/10/27 08:49:08 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zynq_platform.c,v 1.8 2022/10/27 20:37:10 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -77,6 +77,10 @@
#define ZYNQ_ARMCORE_PBASE 0xf8f00000
#define ZYNQ_ARMCORE_SIZE 0x00003000
+#define ZYNQ_OCM_VBASE (ZYNQ_ARMCORE_VBASE + ZYNQ_ARMCORE_SIZE)
+#define ZYNQ_OCM_PBASE 0xfff00000
+#define ZYNQ_OCM_SIZE 0x00100000
+
#define ZYNQ_ARMCORE_SCU_BASE 0x00000000
#define ZYNQ_ARMCORE_L2C_BASE 0x00002000
@@ -101,6 +105,9 @@
DEVMAP_ENTRY(ZYNQ_ARMCORE_VBASE,
ZYNQ_ARMCORE_PBASE,
ZYNQ_ARMCORE_SIZE),
+ DEVMAP_ENTRY(ZYNQ_OCM_VBASE,
+ ZYNQ_OCM_PBASE,
+ ZYNQ_OCM_SIZE),
DEVMAP_ENTRY_END
};
Home |
Main Index |
Thread Index |
Old Index