Simon Glass 
							
						 
					 
					
						
						
							
						
						49c164c310 
					 
					
						
						
							
							mtd: Drop unused nand_plat driver  
						
						... 
						
						
						
						This is not used since this commit:
   936478e797sjg@chromium.org > 
						
						
					 
					
						2023-02-07 14:33:49 -05:00 
						 
				 
			
				
					
						
							
							
								Simon Glass 
							
						 
					 
					
						
						
							
						
						6a138b0be3 
					 
					
						
						
							
							mtd: Drop unused fsmc_nand driver  
						
						... 
						
						
						
						This is not used since this commit:
   570c3dcfc1sjg@chromium.org >
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com > 
						
						
					 
					
						2023-02-07 14:33:49 -05:00 
						 
				 
			
				
					
						
							
							
								Simon Glass 
							
						 
					 
					
						
						
							
						
						2661c2da6d 
					 
					
						
						
							
							mtd: Drop unused fsl_upm driver  
						
						... 
						
						
						
						This is not used since this commit:
   8d1e3cb140sjg@chromium.org >
Reviewed-By: Michael Trimarchi <michael@amarulasolutions.com > 
						
						
					 
					
						2023-02-07 14:33:48 -05:00 
						 
				 
			
				
					
						
							
							
								Simon Glass 
							
						 
					 
					
						
						
							
						
						9262fa8b68 
					 
					
						
						
							
							nand: Drop CONFIG_NAND_SPEAR  
						
						... 
						
						
						
						This is not used anymore. Drop it.
Signed-off-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com > 
						
						
					 
					
						2023-02-07 14:33:47 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						6e7df1d151 
					 
					
						
						
							
							global: Finish CONFIG -> CFG migration  
						
						... 
						
						
						
						At this point, the remaining places where we have a symbol that is
defined as CONFIG_... are in fairly odd locations. While as much dead
code has been removed as possible, some of these locations are simply
less obvious at first. In other cases, this code is used, but was
defined in such a way as to have been missed by earlier checks.  Perform
a rename of all such remaining symbols to be CFG_... rather than
CONFIG_...
Signed-off-by: Tom Rini <trini@konsulko.com >
Reviewed-by: Simon Glass <sjg@chromium.org > 
						
						
					 
					
						2023-01-20 12:27:24 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						89c90cadf3 
					 
					
						
						
							
							nxp: Finish migration of SYS_FSL_IFC_BANK_COUNT to Kconfig  
						
						... 
						
						
						
						As this is used on both ARM and PowerPC platforms, this needs to be
asked in arch/Kconfig.nxp.  Set the PowerPC defaults based on
arch/powerpc/include/asm/config_mpc85xx.h and remove the default set in
drivers/mtd/nand/raw/fsl_ifc_nand.c
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2023-01-20 12:27:06 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						fe33066d24 
					 
					
						
						
							
							Merge tag 'u-boot-nand-20230108' of  https://source.denx.de/u-boot/custodians/u-boot-nand-flash  into next  
						
						... 
						
						
						
						Pull request for u-boot-nand-20230108
- rawnand: omap_gpmc: driver model support 
						
						
					 
					
						2023-01-08 13:12:42 -05:00 
						 
				 
			
				
					
						
							
							
								Roger Quadros 
							
						 
					 
					
						
						
							
						
						7363cf0581 
					 
					
						
						
							
							mtd: rawnand: omap_elm: u-boot driver model support  
						
						... 
						
						
						
						Support u-boot driver model. We still retain
support legacy way of doing things if ELM_BASE
is defined in <asm/arch/hardware.h>
We could completely get rid of that if all
platforms defining ELM_BASE get rid of that definition
and enable CONFIG_SYS_NAND_SELF_INIT and are verified
to work.
Signed-off-by: Roger Quadros <rogerq@kernel.org >
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com >
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com >
Reviewed-by: Tom Rini <trini@konsulko.com >
Link: https://lore.kernel.org/all/20221220102203.52398-9-rogerq@kernel.org 
Link: https://lore.kernel.org/all/CABGWkvrvKiVA_yaDnHJcHEKwc+pEuLdz=i6HQEY0oJQvohCUsw@mail.gmail.com  
						
						
					 
					
						2023-01-08 10:38:50 +01:00 
						 
				 
			
				
					
						
							
							
								Roger Quadros 
							
						 
					 
					
						
						
							
						
						c2147bc7ec 
					 
					
						
						
							
							mtd: rawnand: omap_gpmc: Enable SYS_NAND_PAGE_COUNT for OMAP_GPMC  
						
						... 
						
						
						
						The symbol is required for NAND support in SPL when using
OMAP_GPMC driver.
Signed-off-by: Roger Quadros <rogerq@kernel.org >
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com >
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com >
Link: https://lore.kernel.org/all/20221220102203.52398-7-rogerq@kernel.org  
						
						
					 
					
						2023-01-08 10:38:50 +01:00 
						 
				 
			
				
					
						
							
							
								Roger Quadros 
							
						 
					 
					
						
						
							
						
						b747090705 
					 
					
						
						
							
							mtd: rawnand: omap_gpmc: Add SPL NAND support  
						
						... 
						
						
						
						Enables SPL NAND support for ARCH_K3 by enabling
SPL_NAND_INIT and SPL_SYS_NAND_SELF_INIT.
Legacy OMAP2plus platforms still rely on SPL_NAND_AM33XX_BCH
instead.
Signed-off-by: Roger Quadros <rogerq@kernel.org >
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com >
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com >
Link: https://lore.kernel.org/all/20221220102203.52398-6-rogerq@kernel.org  
						
						
					 
					
						2023-01-08 10:38:50 +01:00 
						 
				 
			
				
					
						
							
							
								Roger Quadros 
							
						 
					 
					
						
						
							
						
						ff0d078942 
					 
					
						
						
							
							mtd: rawnand: omap_gpmc: support u-boot driver model  
						
						... 
						
						
						
						Adds driver model support.
We need to be able to self initialize the NAND controller/chip
at probe and so enable CONFIG_SYS_NAND_SELF_INIT.
Doing so requires nand_register() API which is provided by nand.c
and needs to be enabled during SPL build via CONFIG_SPL_NAND_INIT.
But nand.c also provides nand_init() so we need to get rid of nand_init()
in omap_gpmc driver if CONFIG_SPL_NAND_INIT is set.
Signed-off-by: Roger Quadros <rogerq@kernel.org >
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com >
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com >
Link: https://lore.kernel.org/all/20221220102203.52398-5-rogerq@kernel.org  
						
						
					 
					
						2023-01-08 10:38:50 +01:00 
						 
				 
			
				
					
						
							
							
								Roger Quadros 
							
						 
					 
					
						
						
							
						
						fa87360b3a 
					 
					
						
						
							
							mtd: rawnand: nand_base: Allow base driver to be used in SPL without nand_bbt  
						
						... 
						
						
						
						nand_bbt.c is not being built with the nand_base driver during SPL
build. This results in build failures if we try to access any nand_bbt
related functions.
Don't use any nand_bbt functions for SPL build.
Signed-off-by: Roger Quadros <rogerq@kernel.org >
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com >
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com >
Link: https://lore.kernel.org/all/20221220102203.52398-3-rogerq@kernel.org  
						
						
					 
					
						2023-01-08 10:38:30 +01:00 
						 
				 
			
				
					
						
							
							
								Roger Quadros 
							
						 
					 
					
						
						
							
						
						04fcd25873 
					 
					
						
						
							
							mtd: rawnand: omap_gpmc: Fix BCH6/16 HW based correction  
						
						... 
						
						
						
						The BCH detection hardware can generate ECC bytes for multiple
sectors in one go. Use that feature.
correct() only corrects one sector at a time so we need to call it
repeatedly for each sector.
Signed-off-by: Roger Quadros <rogerq@kernel.org >
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com >
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com >
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com >
Link: https://lore.kernel.org/all/20221220102203.52398-2-rogerq@kernel.org  
						
						
					 
					
						2023-01-08 10:33:20 +01:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						b82f12b642 
					 
					
						
						
							
							Merge tag 'u-boot-at91-2023.04-a' of  https://source.denx.de/u-boot/custodians/u-boot-at91  into next  
						
						... 
						
						
						
						First set of u-boot-at91 features for the 2023.04 cycle:
This feature set includes the new DM-based NAND flash driver (old non-DM
driver is still kept for backwards compatibility), and the move to DM
NAND flash driver for sam9x60ek board. Feature set also includes
devicetree alignment for sama7g5 with Linux, devicetree alignment on USB
with Linux for all boards (sama5, sam9x60), chip id for sama7g5, minor
configs and tweaks. 
						
						
					 
					
						2023-01-06 11:53:26 -05:00 
						 
				 
			
				
					
						
							
							
								Lokanathan, Raaj 
							
						 
					 
					
						
						
							
						
						357c352cdc 
					 
					
						
						
							
							Add CONFIG_SYS_NAND_SELF_INIT to Kconfig for NAND DENALI driver  
						
						... 
						
						
						
						Add the CONFIG_SYS_NAND_SELF_INIT to the Kconfig to follow the changes from
mainline.
Signed-off-by: Lokanathan, Raaj <raaj.lokanathan@intel.com >
Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com > 
						
						
					 
					
						2023-01-02 16:01:40 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						d1c723895b 
					 
					
						
						
							
							global: Migrate CONFIG_MXC_NAND_REGS_BASE to CFG  
						
						... 
						
						
						
						Perform a simple rename of CONFIG_MXC_NAND_REGS_BASE to CFG_MXC_NAND_REGS_BASE
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:14:51 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						55eef1d629 
					 
					
						
						
							
							global: Migrate CONFIG_MXC_NAND_IP_REGS_BASE to CFG  
						
						... 
						
						
						
						Perform a simple rename of CONFIG_MXC_NAND_IP_REGS_BASE to CFG_MXC_NAND_IP_REGS_BASE
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:14:51 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						bd79d3d616 
					 
					
						
						
							
							global: Migrate CONFIG_LPC32XX_NAND_SLC_WWIDTH to CFG  
						
						... 
						
						
						
						Perform a simple rename of CONFIG_LPC32XX_NAND_SLC_WWIDTH to CFG_LPC32XX_NAND_SLC_WWIDTH
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:14:51 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						308ed80839 
					 
					
						
						
							
							global: Migrate CONFIG_LPC32XX_NAND_SLC_WSETUP to CFG  
						
						... 
						
						
						
						Perform a simple rename of CONFIG_LPC32XX_NAND_SLC_WSETUP to CFG_LPC32XX_NAND_SLC_WSETUP
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:14:51 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						b0c548273e 
					 
					
						
						
							
							global: Migrate CONFIG_LPC32XX_NAND_SLC_WHOLD to CFG  
						
						... 
						
						
						
						Perform a simple rename of CONFIG_LPC32XX_NAND_SLC_WHOLD to CFG_LPC32XX_NAND_SLC_WHOLD
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:14:51 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						fa32dc7d15 
					 
					
						
						
							
							global: Migrate CONFIG_LPC32XX_NAND_SLC_WDR_CLKS to CFG  
						
						... 
						
						
						
						Perform a simple rename of CONFIG_LPC32XX_NAND_SLC_WDR_CLKS to CFG_LPC32XX_NAND_SLC_WDR_CLKS
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:14:51 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						fa0e72a34e 
					 
					
						
						
							
							global: Migrate CONFIG_LPC32XX_NAND_SLC_RWIDTH to CFG  
						
						... 
						
						
						
						Perform a simple rename of CONFIG_LPC32XX_NAND_SLC_RWIDTH to CFG_LPC32XX_NAND_SLC_RWIDTH
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:14:50 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						416ef8c7c6 
					 
					
						
						
							
							global: Migrate CONFIG_LPC32XX_NAND_SLC_RSETUP to CFG  
						
						... 
						
						
						
						Perform a simple rename of CONFIG_LPC32XX_NAND_SLC_RSETUP to CFG_LPC32XX_NAND_SLC_RSETUP
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:14:50 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						bba52ab080 
					 
					
						
						
							
							global: Migrate CONFIG_LPC32XX_NAND_SLC_RHOLD to CFG  
						
						... 
						
						
						
						Perform a simple rename of CONFIG_LPC32XX_NAND_SLC_RHOLD to CFG_LPC32XX_NAND_SLC_RHOLD
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:14:50 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						c102eb5ca7 
					 
					
						
						
							
							global: Migrate CONFIG_LPC32XX_NAND_SLC_RDR_CLKS to CFG  
						
						... 
						
						
						
						Perform a simple rename of CONFIG_LPC32XX_NAND_SLC_RDR_CLKS to CFG_LPC32XX_NAND_SLC_RDR_CLKS
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:14:50 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						39fa17718f 
					 
					
						
						
							
							global: Migrate CONFIG_LPC32XX_NAND_MLC_WR_LOW to CFG  
						
						... 
						
						
						
						Perform a simple rename of CONFIG_LPC32XX_NAND_MLC_WR_LOW to CFG_LPC32XX_NAND_MLC_WR_LOW
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:14:50 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						196690dfda 
					 
					
						
						
							
							global: Migrate CONFIG_LPC32XX_NAND_MLC_WR_HIGH to CFG  
						
						... 
						
						
						
						Perform a simple rename of CONFIG_LPC32XX_NAND_MLC_WR_HIGH to CFG_LPC32XX_NAND_MLC_WR_HIGH
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:14:50 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						259ec2ce11 
					 
					
						
						
							
							global: Migrate CONFIG_LPC32XX_NAND_MLC_TCEA_DELAY to CFG  
						
						... 
						
						
						
						Perform a simple rename of CONFIG_LPC32XX_NAND_MLC_TCEA_DELAY to CFG_LPC32XX_NAND_MLC_TCEA_DELAY
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:14:50 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						3c35c036ad 
					 
					
						
						
							
							global: Migrate CONFIG_LPC32XX_NAND_MLC_RD_LOW to CFG  
						
						... 
						
						
						
						Perform a simple rename of CONFIG_LPC32XX_NAND_MLC_RD_LOW to CFG_LPC32XX_NAND_MLC_RD_LOW
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:14:50 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						ab8c6e370c 
					 
					
						
						
							
							global: Migrate CONFIG_LPC32XX_NAND_MLC_RD_HIGH to CFG  
						
						... 
						
						
						
						Perform a simple rename of CONFIG_LPC32XX_NAND_MLC_RD_HIGH to CFG_LPC32XX_NAND_MLC_RD_HIGH
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:14:50 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						ea93286e5f 
					 
					
						
						
							
							global: Migrate CONFIG_LPC32XX_NAND_MLC_NAND_TA to CFG  
						
						... 
						
						
						
						Perform a simple rename of CONFIG_LPC32XX_NAND_MLC_NAND_TA to CFG_LPC32XX_NAND_MLC_NAND_TA
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:14:50 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						dff9de5c2c 
					 
					
						
						
							
							global: Migrate CONFIG_LPC32XX_NAND_MLC_BUSY_DELAY to CFG  
						
						... 
						
						
						
						Perform a simple rename of CONFIG_LPC32XX_NAND_MLC_BUSY_DELAY to CFG_LPC32XX_NAND_MLC_BUSY_DELAY
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:14:50 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						d5c4b8b063 
					 
					
						
						
							
							log: Remove some places where we redefine LOGLEVEL  
						
						... 
						
						
						
						We cannot redefine a CONFIG value per file in this manner.
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:07:03 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						991bc16951 
					 
					
						
						
							
							atmel_nand: Remove undef during SPL_BUILD  
						
						... 
						
						
						
						We cannot disable features in SPL in this manner, remove the undef here.
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-23 10:07:03 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						46df77669e 
					 
					
						
						
							
							nxp: Rename CONFIG_U_BOOT_HDR_SIZE to FSL_U_BOOT_HDR_SIZE  
						
						... 
						
						
						
						This is always defined to 16K, so we move this over to
include/fsl_validate.h to start with. Next, we rename this from CONFIG_
to FSL_. Coalesce the various comments around this definition to be in
fsl_validate.h as well to explain the usage.
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-22 10:31:49 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						71894173bb 
					 
					
						
						
							
							Convert CONFIG_MXC_NAND_HWECC to Kconfig  
						
						... 
						
						
						
						This converts the following to Kconfig:
   CONFIG_MXC_NAND_HWECC
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-22 10:31:48 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						14f43797d0 
					 
					
						
						
							
							Merge tag 'v2023.01-rc4' into next  
						
						... 
						
						
						
						Prepare v2023.01-rc4
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-21 13:09:01 -05:00 
						 
				 
			
				
					
						
							
							
								Dario Binacchi 
							
						 
					 
					
						
						
							
						
						17c2ccde22 
					 
					
						
						
							
							mtd: nand: mxs_nand_spl: don't read useless pages  
						
						... 
						
						
						
						The patch prevents pages beyond the last from being unnecessarily read.
This occurs when the last page to be read is not the last page of the
last block. Before this change we would have read all the pages up to
the end of the last block.
Suggested-by: Michael Trimarchi <michael@amarulasolutions.com >
Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com >
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com >
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com >
Acked-by: Michael Trimarchi <michael@amarulasolutions.com >
Link: https://lore.kernel.org/all/20221120095705.3019295-1-dario.binacchi@amarulasolutions.com  
						
						
					 
					
						2022-12-10 14:35:55 +01:00 
						 
				 
			
				
					
						
							
							
								Dario Binacchi 
							
						 
					 
					
						
						
							
						
						670789f5ba 
					 
					
						
						
							
							mtd: nand: drop EXPORT_SYMBOL_GPL for nanddev_erase()  
						
						... 
						
						
						
						This function is only used within this module, so it is no longer
necessary to use EXPORT_SYMBOL_GPL().
This patch parallels the work done in the following patch:
https://lore.kernel.org/linux-mtd/20221018170205.1733958-1-dario.binacchi@amarulasolutions.com 
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com >
Reviewed-By: Michael Trimarchi <michael@amarulasolutions.com >
Link: https://lore.kernel.org/all/20221108090719.3631621-1-dario.binacchi@amarulasolutions.com  
						
						
					 
					
						2022-12-10 14:35:55 +01:00 
						 
				 
			
				
					
						
							
							
								Michael Trimarchi 
							
						 
					 
					
						
						
							
						
						c21b0ca525 
					 
					
						
						
							
							mtd: nand: make Samsung SLC NAND usable again  
						
						... 
						
						
						
						Upstream linux commit 69fc01296c9281
commit a1286a1fc4marcingol30@gmail.com >
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com >
Reviewed-by: Dario Binacchi <dario.binacchi@amarulasolutions.com >
Link: https://lore.kernel.org/all/20221021060536.11747-1-michael@amarulasolutions.com 
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com > 
						
						
					 
					
						2022-12-10 14:35:55 +01:00 
						 
				 
			
				
					
						
							
							
								Roger Quadros 
							
						 
					 
					
						
						
							
						
						ec2c9240d5 
					 
					
						
						
							
							mtd: rawnand: omap_gpmc: Reduce .bss usage  
						
						... 
						
						
						
						Allocate omap_ecclayout on the heap as we have
limited .bss space on AM64 R5 SPL configuration.
Reduces .bss usage by 2984 bytes.
Signed-off-by: Roger Quadros <rogerq@kernel.org >
Reviewed-By: Michael Trimarchi <michael@amarulasolutions.com >
Link: https://lore.kernel.org/all/20221011115012.6181-9-rogerq@kernel.org 
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com > 
						
						
					 
					
						2022-12-10 14:35:54 +01:00 
						 
				 
			
				
					
						
							
							
								Roger Quadros 
							
						 
					 
					
						
						
							
						
						664d536926 
					 
					
						
						
							
							mtd: rawnand: nand_spl_loaders: Fix cast type build warning  
						
						... 
						
						
						
						Fixes the below build warning on 64-bit platforms.
drivers/mtd/nand/raw/nand_spl_loaders.c:26:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      dst = (void *)((int)dst - page_offset);
Signed-off-by: Roger Quadros <rogerq@kernel.org >
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com >
Link: https://lore.kernel.org/all/20221011115012.6181-8-rogerq@kernel.org 
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com > 
						
						
					 
					
						2022-12-10 14:35:54 +01:00 
						 
				 
			
				
					
						
							
							
								Roger Quadros 
							
						 
					 
					
						
						
							
						
						cd72a950e0 
					 
					
						
						
							
							mtd: rawnand: omap_gpmc: Optimize NAND reads  
						
						... 
						
						
						
						Rename omap_nand_read() to omap_nand_read_buf() to reflect
actual behaviour.
Use FIFO read address instead of raw read address for reads.
The GPMC automatically converts 32-bit/16-bit reads to NAND
device specific reads (8/16 bit). Use the largest possible
read granularity size for more efficient reads.
Signed-off-by: Roger Quadros <rogerq@kernel.org >
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com >
Link: https://lore.kernel.org/all/20221011115012.6181-5-rogerq@kernel.org 
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com > 
						
						
					 
					
						2022-12-10 11:11:25 +01:00 
						 
				 
			
				
					
						
							
							
								Roger Quadros 
							
						 
					 
					
						
						
							
						
						7e4a494c5f 
					 
					
						
						
							
							mtd: rawnand: omap_gpmc: Fix build warning on 64-bit platforms  
						
						... 
						
						
						
						Pointer size cannot be assumed to be 32-bit, so use
use uintptr_t instead of uint32_t.
Fixes the below build warning on 64-bit builds.
drivers/mtd/nand/raw/omap_gpmc.c:439:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  head = ((uint32_t) buf) % 4;
Signed-off-by: Roger Quadros <rogerq@kernel.org >
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com >
Link: https://lore.kernel.org/all/20221011115012.6181-4-rogerq@kernel.org 
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com > 
						
						
					 
					
						2022-12-10 11:11:25 +01:00 
						 
				 
			
				
					
						
							
							
								Roger Quadros 
							
						 
					 
					
						
						
							
						
						472229fcfc 
					 
					
						
						
							
							mtd: rawnand: omap_gpmc: Enable build for K2/K3 platforms  
						
						... 
						
						
						
						The GPMC module is present on some K2 and K3 SoCs.
Enable building GPMC NAND driver for K2/K3 platforms.
Signed-off-by: Roger Quadros <rogerq@kernel.org >
Reviewed-By: Michael Trimarchi <michael@amarulasolutions.com >
Link: https://lore.kernel.org/all/20221011115012.6181-3-rogerq@kernel.org 
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com > 
						
						
					 
					
						2022-12-10 11:11:25 +01:00 
						 
				 
			
				
					
						
							
							
								Roger Quadros 
							
						 
					 
					
						
						
							
						
						c6bafdae50 
					 
					
						
						
							
							mtd: rawnand: omap_gpmc: Deprecate asm/arch/mem.h  
						
						... 
						
						
						
						We want to get rid of <asm/arch/mem.h> so don't
enforce it for new platforms.
This also means GPMC_MAX CS doesn't have to be defined
by platform code.
Define it locally here for now.
Signed-off-by: Roger Quadros <rogerq@kernel.org >
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com >
Link: https://lore.kernel.org/all/20221011115012.6181-2-rogerq@kernel.org 
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com > 
						
						
					 
					
						2022-12-10 11:11:25 +01:00 
						 
				 
			
				
					
						
							
							
								Balamanikandan Gunasundar 
							
						 
					 
					
						
						
							
						
						a490e1b7c0 
					 
					
						
						
							
							nand: atmel: Add pmecc driver  
						
						... 
						
						
						
						Add driver for atmel pmecc. This implementation is ported from
Linux. The reference taken is linux-5.4-at91.
Signed-off-by: Balamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com > 
						
						
					 
					
						2022-12-08 18:06:27 +02:00 
						 
				 
			
				
					
						
							
							
								Balamanikandan Gunasundar 
							
						 
					 
					
						
						
							
						
						6a8dfd5722 
					 
					
						
						
							
							nand: atmel: Add DM based NAND driver  
						
						... 
						
						
						
						This implementation is ported from the rework done by Boris Brezillon
in Linux. This porting is done based on linux-5.4-at91. The driver is
tested in sam9x60ek, sama5d3_xplained, sam9x75eb and sama7g54-ddr3-eb.
Changes done includes
- Adapt GPIO descriptor apis for U-Boot. Use gpio_request_by_name_nodev,
  dm_gpio_get_value etc.
- Use U_BOOT_DRIVER instead of platform_driver.
- Replace struct platform_device with struct udevice
- Check the status of nfc exec operation by polling the status
  register instead of interrupt based handling
- DMA operations not supported. Remove it
- Adapt DT parsing to U-Boot APIs
Signed-off-by: Balamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com > 
						
						
					 
					
						2022-12-08 18:06:18 +02:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						9200011e95 
					 
					
						
						
							
							Convert CONFIG_NAND_KMETER1 et al to Kconfig  
						
						... 
						
						
						
						This converts the following to Kconfig:
   CONFIG_NAND_ECC_BCH
   CONFIG_NAND_KIRKWOOD
   CONFIG_NAND_KMETER1
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-05 16:07:13 -05:00 
						 
				 
			
				
					
						
							
							
								Tom Rini 
							
						 
					 
					
						
						
							
						
						2568bd6db7 
					 
					
						
						
							
							arm: Remove unused mx27 code  
						
						... 
						
						
						
						We no longer have any i.MX27 platforms, remove the remaining support
code.
Signed-off-by: Tom Rini <trini@konsulko.com > 
						
						
					 
					
						2022-12-05 16:07:13 -05:00