aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/gpmc-nand.c
diff options
context:
space:
mode:
authorAfzal Mohammed <afzal@ti.com>2012-09-18 05:13:37 -0400
committerAfzal Mohammed <afzal@ti.com>2012-11-08 14:29:16 -0500
commita1bfdc6020c2ac52fbadca11cc99c7c63b310d37 (patch)
treeda401c7e0a35df40621fabca0040e183cf2377e0 /arch/arm/mach-omap2/gpmc-nand.c
parent6ba54ab4a49bbad736b0254aa6bdf0cb83013815 (diff)
ARM: OMAP2+: nand: remove redundant rounding
gpmc_cs_set_timings() calculate ticks to be programmed by rounding time in ns to next tick value. Hence remove redundant rounding of nanosecond timing. Signed-off-by: Afzal Mohammed <afzal@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/gpmc-nand.c')
-rw-r--r--arch/arm/mach-omap2/gpmc-nand.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/arch/arm/mach-omap2/gpmc-nand.c b/arch/arm/mach-omap2/gpmc-nand.c
index 8607735b3ab3..db969a5c4998 100644
--- a/arch/arm/mach-omap2/gpmc-nand.c
+++ b/arch/arm/mach-omap2/gpmc-nand.c
@@ -52,27 +52,27 @@ static int omap2_nand_gpmc_retime(
52 52
53 memset(&t, 0, sizeof(t)); 53 memset(&t, 0, sizeof(t));
54 t.sync_clk = gpmc_t->sync_clk; 54 t.sync_clk = gpmc_t->sync_clk;
55 t.cs_on = gpmc_round_ns_to_ticks(gpmc_t->cs_on); 55 t.cs_on = gpmc_t->cs_on;
56 t.adv_on = gpmc_round_ns_to_ticks(gpmc_t->adv_on); 56 t.adv_on = gpmc_t->adv_on;
57 57
58 /* Read */ 58 /* Read */
59 t.adv_rd_off = gpmc_round_ns_to_ticks(gpmc_t->adv_rd_off); 59 t.adv_rd_off = gpmc_t->adv_rd_off;
60 t.oe_on = t.adv_on; 60 t.oe_on = t.adv_on;
61 t.access = gpmc_round_ns_to_ticks(gpmc_t->access); 61 t.access = gpmc_t->access;
62 t.oe_off = gpmc_round_ns_to_ticks(gpmc_t->oe_off); 62 t.oe_off = gpmc_t->oe_off;
63 t.cs_rd_off = gpmc_round_ns_to_ticks(gpmc_t->cs_rd_off); 63 t.cs_rd_off = gpmc_t->cs_rd_off;
64 t.rd_cycle = gpmc_round_ns_to_ticks(gpmc_t->rd_cycle); 64 t.rd_cycle = gpmc_t->rd_cycle;
65 65
66 /* Write */ 66 /* Write */
67 t.adv_wr_off = gpmc_round_ns_to_ticks(gpmc_t->adv_wr_off); 67 t.adv_wr_off = gpmc_t->adv_wr_off;
68 t.we_on = t.oe_on; 68 t.we_on = t.oe_on;
69 if (cpu_is_omap34xx()) { 69 if (cpu_is_omap34xx()) {
70 t.wr_data_mux_bus = gpmc_round_ns_to_ticks(gpmc_t->wr_data_mux_bus); 70 t.wr_data_mux_bus = gpmc_t->wr_data_mux_bus;
71 t.wr_access = gpmc_round_ns_to_ticks(gpmc_t->wr_access); 71 t.wr_access = gpmc_t->wr_access;
72 } 72 }
73 t.we_off = gpmc_round_ns_to_ticks(gpmc_t->we_off); 73 t.we_off = gpmc_t->we_off;
74 t.cs_wr_off = gpmc_round_ns_to_ticks(gpmc_t->cs_wr_off); 74 t.cs_wr_off = gpmc_t->cs_wr_off;
75 t.wr_cycle = gpmc_round_ns_to_ticks(gpmc_t->wr_cycle); 75 t.wr_cycle = gpmc_t->wr_cycle;
76 76
77 /* Configure GPMC */ 77 /* Configure GPMC */
78 if (gpmc_nand_data->devsize == NAND_BUSWIDTH_16) 78 if (gpmc_nand_data->devsize == NAND_BUSWIDTH_16)