Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
meta-soleil-fofb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DG
FOFB
meta-soleil-fofb
Commits
c24f515f
Commit
c24f515f
authored
Feb 7, 2023
by
BRONES Romain
Browse files
Options
Downloads
Patches
Plain Diff
Appending XVC to manually declare debug bridges
parent
b2847831
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
recipes-kernel/xilinx-xvc/files/0001-Apply-custom-header.patch
+110
-0
110 additions, 0 deletions
...es-kernel/xilinx-xvc/files/0001-Apply-custom-header.patch
recipes-kernel/xilinx-xvc/xilinx-xvc-driver.bbappend
+8
-0
8 additions, 0 deletions
recipes-kernel/xilinx-xvc/xilinx-xvc-driver.bbappend
with
118 additions
and
0 deletions
recipes-kernel/xilinx-xvc/files/0001-Apply-custom-header.patch
0 → 100644
+
110
−
0
View file @
c24f515f
From acb4d842ee1def9ada5ee403ceeb9331fd826af6 Mon Sep 17 00:00:00 2001
From: Romain Broucquart <romain.broucquart@synchrotron-soleil.fr>
Date: Wed, 8 Feb 2023 09:42:01 +0100
Subject: [PATCH] Apply custom header
---
xvc_user_config.h | 93 ++++++++++++++++++++++++++++-
1 file changed, 92 insertions(+), 1 deletion(-)
diff --git a/xvc_user_config.h b/xvc_user_config.h
index 0aab080..6d075aa 100644
--- a/xvc_user_config.h
+++ b/xvc_user_config.h
@@ -1 +1,92 @@
-/* Intentionally empty */
+/*
+ * Xilinx XVC Driver
+ * Copyright (C) 2019 Xilinx Corporation
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+
+
+#ifndef _XVC_USER_CONFIG_H
+#define _XVC_USER_CONFIG_H
+
+// debug bridge configuration
+struct db_config {
+ const char* name;
+ unsigned long base_addr;
+ unsigned long size;
+};
+
+/*
+ * Modify the macros and structure below with customizations
+ * for the driver, if desired.
+ *
+ * XVC_DRIVER_NAME - name of the driver and character files
+ * DEBUG_BRIDGE_COMPAT_STRING - debug_bridge ".compatible" entry in device tree
+ *
+ * name - alias to append to character file name
+ * base_addr - debug_bridge base address from device tree
+ * size - debug_bridge size from device tree
+ */
+#define XVC_DRIVER_NAME "xilinx_xvc_driver"
+#define DEBUG_BRIDGE_COMPAT_STRING "xlnx,xvc"
+
+static const struct db_config db_configs[] = {
+ /////////////////////////////////////////////////////////
+ // The single debug tree entry below with an empty
+ // name modifier will create a character file called:
+ //
+ // /dev/xilinx_xvc_driver
+ //
+ /////////////////////////////////////////////////////////
+ {
+ .name = "",
+ .base_addr = 0xA0804C00,
+ .size = 0x00020,
+ },
+ /////////////////////////////////////////////////////////
+ // For two debug trees in the same driver, you can
+ // uncomment and modify the entries below. If names are
+ // empty, only the index will be appended to the
+ // character file:
+ // /dev/xilinx_xvc_driver_0
+ // /dev/xilinx_xvc_driver_1
+ //
+ // In this example, since the names are not empty, the
+ // names "tree0" and "tree1" are appended to the
+ // character files as follows:
+ //
+ // /dev/xilinx_xvc_driver_tree0
+ // /dev/xilinx_xvc_driver_tree1
+ //
+ /////////////////////////////////////////////////////////
+ //
+ /*
+ {
+ .name = "tree0",
+ .base_addr = 0x90020000,
+ .size = 0x10000,
+ },
+ {
+ .name = "tree1",
+ .base_addr = 0x90030000,
+ .size = 0x10000,
+ },
+ */
+};
+
+#define CONFIG_COUNT (sizeof(db_configs) / sizeof(*db_configs))
+
+#endif /* _XVC_USER_CONFIG_H */
--
2.39.1
This diff is collapsed.
Click to expand it.
recipes-kernel/xilinx-xvc/xilinx-xvc-driver.bbappend
0 → 100644
+
8
−
0
View file @
c24f515f
# As indicated by XVC readme, give the addresses of the debug bridges
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI_append = "\
file://0001-Apply-custom-header.patch \
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment