forked from Xilinx/system-device-tree-xlnx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common: Add memory nodes for axi_emc and linear qspi
axi_emc and linear qspi like ps7_qspi_linear and psu_qspi_linear IPs are valid memory segments and can be used inside linker sections. Add memory nodes for these IPs to facilitate the same. Signed-off-by: Onkar Harsh <[email protected]> Acked-for-series: Siva Durga Prasad Paladugu <[email protected]>
- Loading branch information
1 parent
b980dc5
commit 4b99ac0
Showing
4 changed files
with
68 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# | ||
# (C) Copyright 2024 Advanced Micro Devices, Inc. All Rights Reserved. | ||
# | ||
# 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. | ||
# | ||
|
||
proc linear_spi_generate {drv_handle} { | ||
set baseaddr [get_baseaddr $drv_handle no_prefix] | ||
set memory_node [create_node -n "memory" -l "${drv_handle}_memory" -u $baseaddr -p root -d "system-top.dts"] | ||
add_prop "${memory_node}" "device_type" "memory" string "system-top.dts" 1 | ||
set mem_compatible_string [gen_compatible_string $drv_handle] | ||
if {![string_is_empty $mem_compatible_string]} { | ||
add_prop ${memory_node} "compatible" "${mem_compatible_string}-memory" string "system-top.dts" | ||
} | ||
set reg [gen_reg_property $drv_handle "skip_ps_check" 0] | ||
if {![string_is_empty $reg]} { | ||
add_prop "${memory_node}" "reg" $reg hexlist "system-top.dts" 1 | ||
} | ||
add_prop "${memory_node}" "xlnx,ip-name" [get_ip_property $drv_handle IP_NAME] string "system-top.dts" | ||
add_prop "${memory_node}" "memory_type" "linear_flash" string "system-top.dts" | ||
} |