Skip to content

Commit

Permalink
Add separate driver for cortex53
Browse files Browse the repository at this point in the history
This patch adds new driver cpu_cortexa53 to
support ZynqMP.

Signed-off-by: Naga Sureshkumar Relli <[email protected]>
  • Loading branch information
Naga Sureshkumar Relli committed Oct 15, 2015
1 parent eb36ad7 commit 7e83682
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
24 changes: 24 additions & 0 deletions cpu_cortexa53/data/cpu_cortexa53.mdd
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# (C) Copyright 2014-2015 Xilinx, Inc.
#
# 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.
#

OPTION psf_version = 3.0;

BEGIN driver cpu_cortexa53

OPTION driver_state = ACTIVE;
OPTION supported_peripherals = (psu_cortexa53);
OPTION supported_os_types = (DTS);
OPTION NAME = cpu_cortexa53;

END driver
30 changes: 30 additions & 0 deletions cpu_cortexa53/data/cpu_cortexa53.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#
# (C) Copyright 2014-2015 Xilinx, Inc.
#
# 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 generate {drv_handle} {
global dtsi_fname
set dtsi_fname "zynqmp/zynqmp.dtsi"

foreach i [get_sw_cores device_tree] {
set common_tcl_file "[get_property "REPOSITORY" $i]/data/common_proc.tcl"
if {[file exists $common_tcl_file]} {
source $common_tcl_file
break
}
}

# create root node
set master_root_node [gen_root_node $drv_handle]
set nodes [gen_cpu_nodes $drv_handle]
}

0 comments on commit 7e83682

Please sign in to comment.