Skip to content

Commit

Permalink
Add nandpsu support for ZynqMP
Browse files Browse the repository at this point in the history
This patch adds nandpsu support for ZynqMP
and also removes the nand-cycle times as Arasan Nand Flash
Contoller used in ZynqMP doesn't require these.

Signed-off-by: Naga Sureshkumar Relli <[email protected]>
  • Loading branch information
Naga Sureshkumar Relli committed Oct 15, 2015
1 parent 52a3537 commit eb36ad7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion nandps/data/nandps.mdd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ OPTION psf_version = 3.0;

BEGIN driver nandps

OPTION supported_peripherals = (ps7_nand);
OPTION supported_peripherals = (ps7_nand psu_nand);
OPTION supported_os_types = (DTS);
OPTION driver_state = ACTIVE;
OPTION NAME = nandps;
Expand Down
18 changes: 9 additions & 9 deletions nandps/data/nandps.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ proc generate {drv_handle} {
set nand_cycle_time [expr "1000000000/[get_property CONFIG.C_NAND_CLK_FREQ_HZ [get_cells -hier $drv_handle]]"]
}
}

set_drv_prop $drv_handle "arm,nand-cycle-t0" [ns_to_cycle $drv_handle "${nand_par_prefix}T0" $nand_cycle_time]
set_drv_prop $drv_handle "arm,nand-cycle-t1" [ns_to_cycle $drv_handle "${nand_par_prefix}T1" $nand_cycle_time]
set_drv_prop $drv_handle "arm,nand-cycle-t2" [ns_to_cycle $drv_handle "${nand_par_prefix}T2" $nand_cycle_time]
set_drv_prop $drv_handle "arm,nand-cycle-t3" [ns_to_cycle $drv_handle "${nand_par_prefix}T3" $nand_cycle_time]
set_drv_prop $drv_handle "arm,nand-cycle-t4" [ns_to_cycle $drv_handle "${nand_par_prefix}T4" $nand_cycle_time]
set_drv_prop $drv_handle "arm,nand-cycle-t5" [ns_to_cycle $drv_handle "${nand_par_prefix}T5" $nand_cycle_time]
set_drv_prop $drv_handle "arm,nand-cycle-t6" [ns_to_cycle $drv_handle "${nand_par_prefix}T6" $nand_cycle_time]

if {![regexp -nocase "psu_nand*" $drv_handle match]} {
set_drv_prop $drv_handle "arm,nand-cycle-t0" [ns_to_cycle $drv_handle "${nand_par_prefix}T0" $nand_cycle_time]
set_drv_prop $drv_handle "arm,nand-cycle-t1" [ns_to_cycle $drv_handle "${nand_par_prefix}T1" $nand_cycle_time]
set_drv_prop $drv_handle "arm,nand-cycle-t2" [ns_to_cycle $drv_handle "${nand_par_prefix}T2" $nand_cycle_time]
set_drv_prop $drv_handle "arm,nand-cycle-t3" [ns_to_cycle $drv_handle "${nand_par_prefix}T3" $nand_cycle_time]
set_drv_prop $drv_handle "arm,nand-cycle-t4" [ns_to_cycle $drv_handle "${nand_par_prefix}T4" $nand_cycle_time]
set_drv_prop $drv_handle "arm,nand-cycle-t5" [ns_to_cycle $drv_handle "${nand_par_prefix}T5" $nand_cycle_time]
set_drv_prop $drv_handle "arm,nand-cycle-t6" [ns_to_cycle $drv_handle "${nand_par_prefix}T6" $nand_cycle_time]
}
}

0 comments on commit eb36ad7

Please sign in to comment.