Skip to content

feat(spi_nand_flash): Add micron dual-plane nand flash chip (MT29F2G) support #496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RathiSonika
Copy link
Collaborator

@RathiSonika RathiSonika commented Apr 30, 2025

Change description

Micron dual plane chip MT29F2G01ABAGDWB-IT:G support is added.
This is an extension of the PR #397 and includes a fix for an issue with column address calculation when adding plane index.

uint32_t plane = block % handle->chip.num_planes;
// The plane index is the bit following the most significant bit (MSB) of the address.
// For a 2048-byte page (2^11), the plane select bit is the 12th bit, and
// for a 4096-byte page (2^12), it is the 13th bit.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you say "12th bit", are you using 0-based or 1-based indexing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I am referring to 0-based indexing. That's why mentioned (2^11), so next bit is 12th. Is it confusing?

@RathiSonika RathiSonika force-pushed the feat/add_micron_multiplane_nand_flash_support branch 2 times, most recently from cf6f05b to 967966e Compare May 2, 2025 10:15
@RathiSonika RathiSonika marked this pull request as ready for review May 19, 2025 12:01
@RathiSonika RathiSonika force-pushed the feat/add_micron_multiplane_nand_flash_support branch from 53363d9 to 6d21e58 Compare May 22, 2025 08:35
@RathiSonika RathiSonika requested a review from pacucha42 May 29, 2025 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants