u-boot/drivers
Michael Trimarchi 007f1d1473 mtd: nand: samsung: Retrieve ECC requirements from extended
Upstream linux commit 8fc82d456e40a0.

On some nand controllers with hw-ecc the controller code wants to know
the ecc strength and size and having these as 0, 0 is not accepted.

Specifying these in devicetree is possible but undesirable as the nand
may be different in different production runs of the same board, so it
is better to get this info from the nand id where possible.

This commit adds code to read the ecc strength and size from the nand
for Samsung extended-id nands. This code is based on the info for the 5th
id byte in the datasheets for the following Samsung nands: K9GAG08U0E,
K9GAG08U0F, K9GAG08X0D, K9GBG08U0A, K9GBG08U0B. These all use these bits
in the exact same way.

Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Reviewed-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
2022-08-22 11:15:24 +02:00
..
adc adc: meson-saradc: add AXG variant 2022-04-25 09:25:00 +02:00
ata ata: sata_sil: Remove useless BLK guard in sata_sil.h 2022-06-28 17:03:32 -04:00
axi WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
bios_emulator video: Rename structs and functions to avoid VBE 2022-08-12 08:14:23 -04:00
block block: ide: Remove ide_preinit function 2022-06-28 17:03:32 -04:00
bootcount Convert CONFIG_SYS_BOOTCOUNT_LE et al to Kconfig 2022-07-07 14:01:09 -04:00
bus bus: ti-sysc: change in a normal driver 2021-03-22 19:23:27 +13:00
button button: adc: set state to pressed when the voltage is closest to nominal 2022-02-11 09:00:47 -05:00
cache drivers: cache: ncore: Disable snoop filter 2022-06-17 16:27:05 +08:00
clk treewide: Fix Marek's name and change my e-mail address 2022-07-21 10:14:04 +02:00
core dm: core: Add support for writing u32 with ofnode 2022-08-12 08:14:24 -04:00
cpu common: Drop display_options.h from common header 2022-08-10 13:46:55 -04:00
crypto Convert CONFIG_SYS_FSL_MAX_NUM_OF_SEC to Kconfig 2022-08-12 16:10:49 -04:00
ddr Convert CONFIG_SYS_FSL_DDR_MAIN_NUM_CTRLS et al to Kconfig 2022-08-12 16:10:49 -04:00
demo demo: migrate uclass to livetree 2021-10-05 08:50:15 -04:00
dfu Audit <flash.h> inclusion 2022-08-04 16:18:47 -04:00
dma arm: mach-k3: Rename SOC_K3_AM6 to SOC_K3_AM654 2022-07-25 13:02:04 -04:00
fastboot Audit <flash.h> inclusion 2022-08-04 16:18:47 -04:00
firmware firmware: zynqmp: Load config overlay for core0 to pmufw 2022-07-26 08:36:10 +02:00
fpga fpga: zynqmp: support loading encrypted bitfiles 2022-07-26 09:34:21 +02:00
fuzz sandbox: Implement fuzzing engine driver 2022-06-23 12:58:19 -04:00
gpio gpio: Remove mvgpio driver 2022-08-09 08:58:27 +02:00
hwspinlock treewide: invaild -> invalid 2022-01-13 07:57:49 -05:00
i2c i2c: avoid dynamic stack use in dm_i2c_write 2022-07-19 13:46:28 +02:00
input input: apple: Add support for Apple SPI keyboard 2022-02-10 16:44:23 -05:00
iommu iommu: Add M2 support to Apple DART driver 2022-07-25 09:38:47 -04:00
led led: pwm: Use NOP uclass driver for top-level node 2022-07-08 10:56:45 -04:00
mailbox arm64: versal: Enable power domain driver and its dependencies 2022-07-26 08:36:25 +02:00
memory keystone2: Move CONFIG_AEMIF_CNTRL_BASE out of CONFIG namespace 2021-09-27 21:38:34 -04:00
misc misc: atsha204a: Don't check for error when waking up the device 2022-08-09 10:01:31 +02:00
mmc Convert CONFIG_SYS_FSL_ESDHC_HAS_DDR_MODE to Kconfig 2022-08-12 16:10:49 -04:00
mtd mtd: nand: samsung: Retrieve ECC requirements from extended 2022-08-22 11:15:24 +02:00
mux treewide: invaild -> invalid 2022-01-13 07:57:49 -05:00
net net: Make DM_ETH be selected by NETDEVICE 2022-08-20 21:18:15 -04:00
nvme arm: apple: nvme: Add SART support and RTKit buffer management 2022-06-23 08:24:49 -04:00
pch treewide: Simply conditions with the new OF_REAL 2021-09-25 09:46:15 -06:00
pci video: Rename structs and functions to avoid VBE 2022-08-12 08:14:23 -04:00
pci_endpoint dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
phy phy: ti: j721e-wiz: use OF data for device specific data 2022-07-25 09:38:47 -04:00
pinctrl arm64: a37xx: pinctrl: Improve description for pinmux command 2022-08-09 08:58:27 +02:00
power power: regulator: Remove i2c header from gpio regulator 2022-08-10 13:38:30 -04:00
pwm pwm: aspeed: Select SYSCON to get parent detail. 2022-08-04 13:59:59 -04:00
qe configs: fsl: migrate FMAN/QE specific defines to Kconfig 2021-11-09 17:18:23 +05:30
ram arm: mach-k3: Rename SOC_K3_AM6 to SOC_K3_AM654 2022-07-25 13:02:04 -04:00
reboot-mode reboot-mode: migrate uclass to livetree 2021-10-05 08:50:15 -04:00
remoteproc remoteproc: ipu: Add driver to bring up ipu 2022-02-08 11:00:03 -05:00
reset reset: zynqmp: Add reset driver support for versal 2022-07-26 08:27:15 +02:00
rng tpm: rng: Add driver model interface for TPM RNG device 2022-08-02 23:50:02 +03:00
rtc treewide: Fix Marek's name and change my e-mail address 2022-07-21 10:14:04 +02:00
scsi scsi: call device_probe() after scanning 2022-04-09 21:06:31 +02:00
serial serial: zynq: Use DIV_ROUND_CLOSEST() to calcurate divider value 2022-07-26 08:23:55 +02:00
smem dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
soc soc: soc_ti_k3: identify j7200 SR2.0 SoCs 2022-07-06 14:30:51 -04:00
sound sound: enable building DA7219 driver with ACPIGEN=n 2022-07-08 09:05:47 -04:00
spi spi: zynq_qspi: Fix programming qspi speed 2022-07-26 09:34:21 +02:00
spmi spmi: msm: add arbiter version 5 support 2021-10-31 08:46:44 -04:00
sysinfo sysinfo: rcar3: Add Renesas R-Car Gen3 sysinfo driver 2021-07-20 23:33:54 +02:00
sysreset sysreset: socfpga: Use parent device for reading base address 2022-07-01 14:57:14 +08:00
tee drivers:optee:rpmb: initialize drivers of mmc devices in UCLASS_BLK for rpmb access 2022-06-06 18:01:21 -04:00
thermal WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
timer Xilinx changes for v2022.10 2022-06-27 10:15:50 -04:00
tpm common: Drop display_options.h from common header 2022-08-10 13:46:55 -04:00
ufs lib: fix selection of CONFIG_CHARSET 2022-05-03 21:39:22 +02:00
usb Convert CONFIG_SYS_FSL_QMAN_V3 et al to Kconfig 2022-08-12 16:10:49 -04:00
video video: Rename structs and functions to avoid VBE 2022-08-12 08:14:23 -04:00
virtio virtio: rng: Check length before copying 2022-06-08 09:24:04 -04:00
w1 arm: Remove zmx25 board and ARCH_MX25 2021-10-01 21:08:18 -04:00
w1-eeprom dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
watchdog Merge https://source.denx.de/u-boot/custodians/u-boot-watchdog 2022-07-22 20:48:28 -04:00
xen drivers: xen: events: fix build issues with disabled Xen HVC 2022-08-04 13:59:59 -04:00
Kconfig fuzzing_engine: Add fuzzing engine uclass 2022-06-23 12:58:18 -04:00
Makefile ddr: imx: Add i.MX9 DDR controller driver 2022-07-26 11:29:01 +02:00