S26KL/KS-S HyperFlash™ Support under Linux – KBA218974

Version: *A

 

Question:

How can I add S26KL/KS-S HyperFlash™ support to Linux?

 

Answer:

Cypress S26KL/KS-S HyperFlash memory uses the same command set as classic parallel NOR flash, so the appropriate Linux MTD driver is the standard driver for Cypress pNOR flash devices under drivers/mtd/chips/cfi_cmdset_0002.c (part of every Linux kernel source tree). There is only one small incompatibility: the classic driver uses legacy toggling status from the device while a program or erase is ongoing to detect the end of the operation. S26KL/KS-S HyperFlash does not support this mechanism, instead the Status Register must be polled to properly detect the end of P/E operations. A small Linux patch is provided to implement this change. It is part of the Parallel and HyperBus Flash driver patch that is available for download form www.cypress.com.