Skip to content

Add multi-chips support for NAND, FSL-UPM and TQM8548

Wolfgang Grandegger u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest0 of 5 patches 0 repliesNew
  2. v13 of 4 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

None of the 5 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [U-Boot] Fwd: [PATCH v2 0/5] Add multi-chips support for NAND, FSL-UPM and TQM8548
Quoted 8 lines · arun sharma
Quoted 1 line

* Index: u-boot/drivers/mtd/nand/fsl_upm.c

*>* =================================================================== *>* --- u-boot.orig/drivers/mtd/nand/fsl_upm.c
*>* +++ u-boot/drivers/mtd/nand/fsl_upm.c
*>* @@ -90,8 +90,11 @@ static void fun_cmd_ctrl(struct mtd_info

*>*  	mar = cmd << (32 - fun->width);
*>*  	io_addr = fun->upm.io_addr;
*>*  #if CONFIG_SYS_NAND_MAX_CHIPS > 1
Quoted 10 lines

*>* - if (fun->chip_nr > 0)
*>* + if (fun->chip_nr > 0) {
*>* io_addr += fun->chip_offset * fun->chip_nr;
*>* + if (fun->upm_mar_chip_offset)
*>* + mar |= fun->upm_mar_chip_offset * fun->chip_nr;
*>* + }
*
above patch is not suitable for 832x becuase mar register has only 26 bit (6 bit are resrved)
what should be done

Simply do not define fun->upm_mar_chip_offset in your BSP code. It is used on the TQM8548 modules to driver some board-specific chip select logic. Anyhow, do you need to support a multi-chip (multi-die) device all?

Wolfgang.