[U-Boot] [PATCH] README: Device Tree: Add & explain undocumented options.

2016-06-11 Thread Ahmed Samir Khalil
There are no info about these options in the README. Documenting these options makes getting startup, configuration & testing easier. Signed-off-by: Ahmed Samir Khalil <engkhali...@gmail.com> --- README | 8 1 file changed, 8 insertions(+) diff --git a/README b/README ind

[U-Boot] [PATCH] README: SPI: Add & explain missed SPI & serial flash options.

2016-06-11 Thread Ahmed Samir Khalil
There are no README documentation about these options of SPI & serial flash devices. Documenting these options makes getting startup, configuration & testing easier. Signed-off-by: Ahmed Samir Khalil <engkhali...@gmail.com> --- README | 15 +++ 1 file changed, 15 inser

[U-Boot] [PATCH] README: SPI Support: Add & explain undocumented SPI_FLASH options.

2016-06-12 Thread Ahmed Samir Khalil
CONFIG_SPI_FLASH_BAR & CONFIG_SPI_FLASH_MTD are used without documentation. Documenting these options makes getting startup, configuration & testing easier. Signed-off-by: Ahmed Samir Khalil <engkhali...@gmail.com> --- README | 10 ++ 1 file changed, 10 insertions(+) diff

[U-Boot] [PATCH] Drivers: SPI: spi_slave struct has no member called bus nor cs.

2016-06-12 Thread Ahmed Samir Khalil
.txt Signed-off-by: Ahmed Samir Khalil <engkhali...@gmail.com> --- drivers/spi/spi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 7d81fbd..b02c7ab 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -31,8 +31,10 @@ void *spi_do_alloc

[U-Boot] [PATCH] Common: SPL: spl_nand: Fixed debug correct NAND ECC type.

2016-03-25 Thread Ahmed Samir Khalil
In case of #define DEBUG 1 (fordebugging SPL). A bug in spl_nand_load_image() will be triggered, because it prints using hw ecc regardless of soft ecc configurations and initializations. Signed-off-by: Ahmed Samir --- common/spl/spl_nand.c | 4 1 file changed, 4

[U-Boot] [PATCH] cmd/nand.c: Remove unnecessarily repeated step

2016-10-11 Thread Ahmed Samir Khalil
Getting the current NAND device is already done once as part of nand command. Therefore, repeating this step as part of the sub-commands is unnecessary. Signed-off-by: Ahmed Samir Khalil <engkhali...@gmail.com> --- cmd/nand.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/cmd/

[U-Boot] [PATCH] cmd/nand.c: Debug additional helpful NAND info

2016-10-11 Thread Ahmed Samir Khalil
While dealing with large chips (e.g. page: 4KB, OOB:224), we found it helpful to get these additional NAND info by enabling the DEBUG macro instead of full tracing every time and consuming time. Especially about the currently in use scheme for testing & development. Signed-off-by: Ahmed S

[U-Boot] [PATCH 1/5] mtd: spi: Define CLSR command

2017-09-30 Thread Ahmed Samir Khalil
Define clear status register command to be used in error handling. Signed-off-by: Ahmed S. Khalil --- drivers/mtd/spi/sf_internal.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/spi/sf_internal.h b/drivers/mtd/spi/sf_internal.h index 839cdbe..42f2b20

[U-Boot] [PATCH 0/5] Clear error flags & initialization of Spansion

2017-09-30 Thread Ahmed Samir Khalil
be done for the other flash vendors too. Ahmed Samir Khalil (5): mtd: spi: Define CLSR command mtd: spi_flash: Support clearing status register mtd: spi_flash: Clear SR if write/erase error is flagged mtd: spi_flash: Clear SR error flags in case of failed write mtd: spi_flash:

[U-Boot] [PATCH 5/5] mtd: spi_flash: preserve Spansion's original value during reboot

2017-09-30 Thread Ahmed Samir Khalil
Spansion flash has QEB in the same status register as well. Therefore, preserve the original values while rebooting. Otherwise, some SPI controllers may be unable to access the flash correctly e.g. receive garbage bytes instead. Signed-off-by: Ahmed S. Khalil ---

[U-Boot] [PATCH 2/5] mtd: spi_flash: Support clearing status register

2017-09-30 Thread Ahmed Samir Khalil
A function to clear status register-1 after error flag(s) being triggered. Signed-off-by: Ahmed S. Khalil --- drivers/mtd/spi/spi_flash.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c

[U-Boot] [PATCH 3/5] mtd: spi_flash: Clear SR if write/erase error is flagged

2017-09-30 Thread Ahmed Samir Khalil
In case of write or erase error, flags are being triggered into status register-1. The flags should be cleared, otherwise they may lead to unstable behavior for the following operation(s). Signed-off-by: Ahmed S. Khalil --- drivers/mtd/spi/spi_flash.c | 3 +++ 1 file