From 7e83682a5269f626238d3ca6df8a0ba515ce1a30 Mon Sep 17 00:00:00 2001 From: Naga Sureshkumar Relli Date: Fri, 9 Oct 2015 11:33:40 +0530 Subject: [PATCH] Add separate driver for cortex53 This patch adds new driver cpu_cortexa53 to support ZynqMP. Signed-off-by: Naga Sureshkumar Relli --- cpu_cortexa53/data/cpu_cortexa53.mdd | 24 ++++++++++++++++++++++ cpu_cortexa53/data/cpu_cortexa53.tcl | 30 ++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 cpu_cortexa53/data/cpu_cortexa53.mdd create mode 100644 cpu_cortexa53/data/cpu_cortexa53.tcl diff --git a/cpu_cortexa53/data/cpu_cortexa53.mdd b/cpu_cortexa53/data/cpu_cortexa53.mdd new file mode 100644 index 00000000..e40bb24b --- /dev/null +++ b/cpu_cortexa53/data/cpu_cortexa53.mdd @@ -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 diff --git a/cpu_cortexa53/data/cpu_cortexa53.tcl b/cpu_cortexa53/data/cpu_cortexa53.tcl new file mode 100644 index 00000000..921c8d18 --- /dev/null +++ b/cpu_cortexa53/data/cpu_cortexa53.tcl @@ -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] +}