Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

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

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

Not applicable

Version: *A

Translation - Japanese: LinuxにCypressS26KL / KS-S HyperFlash™ のサポートを追加する方法 - KBA218974 - Community Translated (JA)


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


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.