Commit 013e8d99 authored by Mike Looijmans's avatar Mike Looijmans Committed by Michal Simek
Browse files

memory/pl353-smc.c: Don't lie about the default timings



When the "arm,nand-cycle-t*" are missing from the device-tree, the driver
outputs the following warning and continues:
pl353-smc e000e000.memory-controller: arm,nand-cycle-t0 not in device tree
pl353-smc e000e000.memory-controller: Using default timing for
pl353-smc e000e000.memory-controller: 2Gb Numonyx MT29F2G08ABAEAWP NAND flash
pl353-smc e000e000.memory-controller: t_wp, t_clr, t_ar are set to 4
pl353-smc e000e000.memory-controller: t_rc, t_wc, t_rr are set to 2
pl353-smc e000e000.memory-controller: t_rea is set to 1

Simply entering this information in a devicetree when you actually have that
NAND part connected does not work however. The cause was that this information
is incorrect, the "4" and "2" are reversed as one can see in the three lines
of code that follow that output in the kernel.

This patch fixes this by outputting the timings as they are actually set.

Signed-off-by: default avatarMike Looijmans <mike.looijmans@topic.nl>
Acked-by: default avatarPunnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 9de174b2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment