u-boot/include/linux
Boris Brezillon 27c4792cd2 mtd: nand: automate NAND timings selection
The NAND framework provides several helpers to query timing modes supported
by a NAND chip, but this implies that all NAND controller drivers have
to implement the same timings selection dance. Also currently NAND
devices can be resetted at arbitrary places which also resets the timing
for ONFI chips to timing mode 0.

Provide a common logic to select the best timings based on ONFI or
->onfi_timing_mode_default information. Hook this into nand_reset()
to make sure the new timing is applied each time during a reset.

NAND controller willing to support timings adjustment should just
implement the ->setup_data_interface() method.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
[Linux commit: d8e725dd831186a3595036b2b1df9f68cbc6efa3]
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2017-11-29 00:28:58 +09:00
..
byteorder
mtd mtd: nand: automate NAND timings selection 2017-11-29 00:28:58 +09:00
unaligned
usb armv8: ls1088ardb: Enable USB command RDB qspi-boot 2017-10-27 08:47:06 -07:00
apm_bios.h
arm-smccc.h ARM: adjust arm-smccc code for use in U-Boot 2017-04-18 10:29:17 -04:00
bch.h
bitfield.h linux/bitfield.h: import <linux/bitfield.h> from Linux 4.13 2017-10-04 12:00:21 -04:00
bitops.h bitops: collect BIT macros to include/linux/bitops.h 2017-11-29 00:28:57 +09:00
bitrev.h
bug.h bug.h: move runtime BUG/WARN macros into <linux/bug.h> 2017-10-04 12:00:20 -04:00
build_bug.h bug.h: sync BUILD_BUG stuff with Linux 4.13 2017-10-04 12:00:19 -04:00
compat.h dm: define dev_*() log functions in DM header 2017-10-04 12:00:20 -04:00
compiler-clang.h
compiler-gcc.h
compiler-intel.h
compiler.h bug.h: sync BUILD_BUG stuff with Linux 4.13 2017-10-04 12:00:19 -04:00
crc7.h
crc8.h
crc32.h
ctype.h
delay.h
dma-direction.h dma: import linux/dma-direction.h to consolidate enum dma_data_direction 2017-09-12 18:02:23 -04:00
drm_dp_helper.h
edd.h
err.h
errno.h
ethtool.h
fb.h avr32: Retire AVR32 for good 2017-07-06 16:17:19 -04:00
immap_qe.h armv7: ls1021a: Drop macro CONFIG_LS102XA 2017-04-17 09:03:30 -07:00
input.h
io.h linux/io.h: import generic ioread* / iowrite* accessors from Linux 2017-09-12 18:02:23 -04:00
ioctl.h
iopoll.h iopoll: import include/linux/iopoll.h from Linux 4.9 2017-01-14 16:46:30 -05:00
ioport.h
kbuild.h
kconfig.h spl: dm: use CONFIG_IS_ENABLED to test for the DM option 2017-08-13 17:12:20 +02:00
kernel.h linux/kernel.h: import DIV_ROUND_{DOWN, UP}_ULL from Linux 2017-10-05 21:31:04 -04:00
libfdt.h lib: libfdt: wrap scripts/dtc/libfdt/* where possible 2017-11-17 07:44:13 -05:00
libfdt_env.h lib: libfdt: wrap scripts/dtc/libfdt/* where possible 2017-11-17 07:44:13 -05:00
linkage.h
linux_string.h
list.h
list_sort.h
log2.h
lzo.h lzo: add a function to check the validity of the header 2017-10-05 21:31:04 -04:00
math64.h lib: div64: sync with Linux 2017-04-13 09:41:10 -04:00
mbus.h
mc146818rtc.h
mdio.h
mii.h net: Add mii_resolve_flowctrl_fdx() 2017-08-14 12:47:32 -05:00
netdevice.h
poison.h
posix_types.h
printk.h printk: collect printk stuff into <linux/printk.h> with loglevel support 2017-10-04 10:31:17 -04:00
psci.h sysreset: psci: support system reset in a generic way with PSCI 2017-04-18 10:29:19 -04:00
rbtree.h
rbtree_augmented.h
screen_info.h
serial_reg.h
sizes.h
stat.h avr32: Retire AVR32 for good 2017-07-06 16:17:19 -04:00
stddef.h
string.h string: Add strcspn() 2017-06-01 07:03:12 -06:00
stringify.h
time.h linux/time.h: Remove dead code 2017-10-16 09:42:51 -04:00
typecheck.h typecheck: import include/linux/typecheck.h from Linux 4.9 2017-01-14 16:46:29 -05:00
types.h linux/types.h: add typedef of uintptr_t 2017-11-17 07:44:13 -05:00