Lines Matching refs:clk_period
861 u32 reg_val, clk_rate, clk_period, time_val; in setup_timing() local
865 clk_period = 1000 / clk_rate; in setup_timing()
866 reg_val = ((timing[FDT_NAND_MAX_TRP_TREA] / clk_period) << in setup_timing()
868 reg_val |= ((timing[FDT_NAND_TWB] / clk_period) << in setup_timing()
870 time_val = timing[FDT_NAND_MAX_TCR_TAR_TRR] / clk_period; in setup_timing()
874 reg_val |= ((timing[FDT_NAND_TWHR] / clk_period) << in setup_timing()
876 time_val = timing[FDT_NAND_MAX_TCS_TCH_TALS_TALH] / clk_period; in setup_timing()
880 reg_val |= ((timing[FDT_NAND_TWH] / clk_period) << in setup_timing()
882 reg_val |= ((timing[FDT_NAND_TWP] / clk_period) << in setup_timing()
884 reg_val |= ((timing[FDT_NAND_TRH] / clk_period) << in setup_timing()
886 reg_val |= ((timing[FDT_NAND_MAX_TRP_TREA] / clk_period) << in setup_timing()
891 time_val = timing[FDT_NAND_TADL] / clk_period; in setup_timing()