Searched refs:cs_cnt (Results 1 – 2 of 2) sorted by relevance
/linux-2.6.39/drivers/mtd/nand/ |
D | denali.c | 255 uint16_t addr_2_data, re_2_we, re_2_re, we_2_re, cs_cnt; in nand_onfi_timing_set() local 301 cs_cnt = CEIL_DIV((Tcs[mode] - Trp[mode]), CLK_X); in nand_onfi_timing_set() 303 cs_cnt = CEIL_DIV(Tcs[mode], CLK_X); in nand_onfi_timing_set() 304 if (cs_cnt == 0) in nand_onfi_timing_set() 305 cs_cnt = 1; in nand_onfi_timing_set() 308 while (((cs_cnt * CLK_X) + Trea[mode]) < Tcea[mode]) in nand_onfi_timing_set() 309 cs_cnt++; in nand_onfi_timing_set() 329 iowrite32(cs_cnt, denali->flash_reg + CS_SETUP_CNT); in nand_onfi_timing_set()
|
/linux-2.6.39/drivers/staging/spectra/ |
D | lld_nand.c | 181 u16 addr_2_data, re_2_we, re_2_re, we_2_re, cs_cnt; in NAND_ONFi_Timing_Mode() local 228 cs_cnt = CEIL_DIV((Tcs[mode] - Trp[mode]), CLK_X); in NAND_ONFi_Timing_Mode() 230 cs_cnt = CEIL_DIV(Tcs[mode], CLK_X); in NAND_ONFi_Timing_Mode() 231 if (cs_cnt == 0) in NAND_ONFi_Timing_Mode() 232 cs_cnt = 1; in NAND_ONFi_Timing_Mode() 235 while (((cs_cnt * CLK_X) + Trea[mode]) < Tcea[mode]) in NAND_ONFi_Timing_Mode() 236 cs_cnt++; in NAND_ONFi_Timing_Mode() 256 iowrite32(cs_cnt, FlashReg + CS_SETUP_CNT); in NAND_ONFi_Timing_Mode()
|