Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

mpc5121_nfc.c

Blame
  • Forked from Reform / reform-boundary-uboot
    44059 commits behind the upstream repository.
    • Stefan Roese's avatar
      35f2edbb
      nand/mpc512x: Add MPC512x NAND support (NFC) · 35f2edbb
      Stefan Roese authored
      
      This patch adds NAND Flash Controller driver for MPC5121 revision 2.
      All device features, except hardware ECC and power management, are
      supported.
      
      This NFC driver replaces the one orignally posted by John Rigby:
      
      "[PATCH] Freescale NFC NAND driver"
      
      It's a port of the Linux driver version posted by Piotr Ziecik a few
      weeks ago. Using this driver has the following advantages (from my
      point of view):
      
      - Compatibility with the Linux NAND driver (e.g. ECC usage)
      - Better code quality in general
      - Resulting U-Boot image is a bit smaller (approx. 3k)
      - Better to sync with newer Linux driver versions
      
      The only disadvantage I can see, is that HW-ECC is not supported right
      now. But this could be added later (e.g. port from Linux driver after
      it's supported there). Using HW-ECC on the MCP5121 NFC has a general
      problem because of the ECC usage in the spare area. This collides with
      JFFS2 for example.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Piotr Ziecik <kosmo@semihalf.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: John Rigby <jcrigby@gmail.com>
      Cc: Scott Wood <scottwood@freescale.com>
      35f2edbb
      History
      nand/mpc512x: Add MPC512x NAND support (NFC)
      Stefan Roese authored
      
      This patch adds NAND Flash Controller driver for MPC5121 revision 2.
      All device features, except hardware ECC and power management, are
      supported.
      
      This NFC driver replaces the one orignally posted by John Rigby:
      
      "[PATCH] Freescale NFC NAND driver"
      
      It's a port of the Linux driver version posted by Piotr Ziecik a few
      weeks ago. Using this driver has the following advantages (from my
      point of view):
      
      - Compatibility with the Linux NAND driver (e.g. ECC usage)
      - Better code quality in general
      - Resulting U-Boot image is a bit smaller (approx. 3k)
      - Better to sync with newer Linux driver versions
      
      The only disadvantage I can see, is that HW-ECC is not supported right
      now. But this could be added later (e.g. port from Linux driver after
      it's supported there). Using HW-ECC on the MCP5121 NFC has a general
      problem because of the ECC usage in the spare area. This collides with
      JFFS2 for example.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Piotr Ziecik <kosmo@semihalf.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: John Rigby <jcrigby@gmail.com>
      Cc: Scott Wood <scottwood@freescale.com>
    mpc5121_nfc.c 16.40 KiB