diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-06-06 10:17:01 +0200 |
---|---|---|
committer | Scott Wood <oss@buserror.net> | 2016-06-19 19:12:01 -0500 |
commit | 4e7d1b3bebc5bf5176d35ac32378bcf0ff6e5914 (patch) | |
tree | 0efd5c188134f1d59e3d24c34f8dde3d1f3da1ec /drivers/thermal | |
parent | bb9783b66bf56a27b4db8dc444dda6c380816e99 (diff) | |
download | u-boot-imx-4e7d1b3bebc5bf5176d35ac32378bcf0ff6e5914.zip u-boot-imx-4e7d1b3bebc5bf5176d35ac32378bcf0ff6e5914.tar.gz u-boot-imx-4e7d1b3bebc5bf5176d35ac32378bcf0ff6e5914.tar.bz2 |
spl: nand: sunxi: split 'load page' and 'read page' logic
Split the 'load page' and 'read page' logic in 2 different functions so
we can later load the page and test different ECC configs without the
penalty of reloading the same page in the NAND cache.
We also move common setup to a dedicated function (nand_apply_config()) to
avoid rewriting the same values in NFC registers each time we read a page.
These new functions are passed a pointer to an nfc_config struct to limit
the number of parameters.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/thermal')
0 files changed, 0 insertions, 0 deletions