Lines Matching full:bank
27 * s3c2410_print_timing - print bank timing data for debug purposes
35 int bank; in s3c2410_print_timing() local
37 for (bank = 0; bank < MAX_BANKS; bank++) { in s3c2410_print_timing()
38 bt = timings->bank[bank].io_2410; in s3c2410_print_timing()
43 "Tcoh=%d.%d, Tcah=%d.%d\n", pfx, bank, in s3c2410_print_timing()
53 * bank_reg - convert bank number to pointer to the control register.
54 * @bank: The IO bank number.
56 static inline void __iomem *bank_reg(unsigned int bank) in bank_reg() argument
58 return S3C2410_BANKCON0 + (bank << 2); in bank_reg()
62 * bank_is_io - test whether bank is used for IO
63 * @bankcon: The bank control register.
66 * bank. It currently does not take into account whether BWSCON has
141 * @nwait_en: IS nWAIT enabled for this bank.
146 * the bank has nWAIT enabled. The result is used to modify the value
158 /* if nWait enabled on an bank, Tacc must be at-least 4 cycles. */ in calc_tacc()
205 * s3c2410_calc_bank - calculate bank timing information
207 * @bt: The bank timing information.
209 * Given the cycle timine for a bank @bt, calculate the new BANKCON
262 * @val: The bank timing register value, shifed down.
274 * @val: The bank timing register value, shifed down.
286 * @bt: The bank timing to fill in (uses cached BANKCON)
305 * s3c2410_iotiming_debugfs - debugfs show io bank timing information
308 * @iob: The IO bank information to decode.
349 * s3c2410_iotiming_calc - Calculate bank timing for frequency change.
362 int bank; in s3c2410_iotiming_calc() local
365 for (bank = 0; bank < MAX_BANKS; bank++) { in s3c2410_iotiming_calc()
366 bankcon = __raw_readl(bank_reg(bank)); in s3c2410_iotiming_calc()
367 bt = iot->bank[bank].io_2410; in s3c2410_iotiming_calc()
376 printk(KERN_ERR "%s: cannot calculate bank %d io\n", in s3c2410_iotiming_calc()
377 __func__, bank); in s3c2410_iotiming_calc()
381 s3c_freq_iodbg("%s: bank %d: con=%08lx\n", in s3c2410_iotiming_calc()
382 __func__, bank, bt->bankcon); in s3c2410_iotiming_calc()
395 * Set all the currently used IO bank timing information generated
403 int bank; in s3c2410_iotiming_set() local
407 for (bank = 0; bank < MAX_BANKS; bank++) { in s3c2410_iotiming_set()
408 bt = iot->bank[bank].io_2410; in s3c2410_iotiming_set()
412 __raw_writel(bt->bankcon, bank_reg(bank)); in s3c2410_iotiming_set()
437 int bank; in s3c2410_iotiming_get() local
443 for (bank = 0; bank < MAX_BANKS; bank++) { in s3c2410_iotiming_get()
444 bankcon = __raw_readl(bank_reg(bank)); in s3c2410_iotiming_get()
449 s3c_freq_iodbg("%s: bank %d: con %08lx\n", in s3c2410_iotiming_get()
450 __func__, bank, bankcon); in s3c2410_iotiming_get()
456 /* find out in nWait is enabled for bank. */ in s3c2410_iotiming_get()
458 if (bank != 0) { in s3c2410_iotiming_get()
459 unsigned long tmp = S3C2410_BWSCON_GET(bwscon, bank); in s3c2410_iotiming_get()
464 timings->bank[bank].io_2410 = bt; in s3c2410_iotiming_get()