Skip to contentSkip to conversation

onenand_init: Allow disabling sync read and write based on flags, v2 (Re: [PATCH 1/4] onenand init: Rename board-n800-flash.c to gpmc-onenand.c)

PATCH vimal singh 2 participants 2 messages May 4, 2009

lore
Share & tools
lore
#0 lore raw
Quoted 10 lines · Tony Lindgren
Quoted 9 lines · Tony Lindgren
Quoted 7 lines · Tony Lindgren
Quoted 2 lines · vimal singh

'gpmc-onenand.c' is still confusing name. This is not going to used in all boards anyway.

Why do you think this cannot be used for all boards?

The GPMC timings are totally based on the onenand chip features.

Quoted 8 lines
Quoted 5 lines

And these two patches make omap3430sdp to work with the gpmc-onenand code. Sync mode does not work, but it seems like it was never enabled for sdp anyways.

Similar patch should work for other boards too.

Setting the sync_write depends on flags and processor, not just flags. Here's a fixed version of this patch.

OK, these both patches seems good to me...
Earlier I was in impression that this patch series is basically to remove board-*-flash.c files. Since in 3430sdp boards we find out 'CS' number for flash devices dynamically in different versions of boards. So, I was confused.

Quoted 2 lines

Tony

---
Regards,
\/ | |\/| /-\ |_

#1 lore raw
Quoted 17 lines · vimal singh
Quoted 14 lines · Tony Lindgren
Quoted 13 lines · Tony Lindgren
Quoted 7 lines · Tony Lindgren
Quoted 2 lines · vimal singh

'gpmc-onenand.c' is still confusing name. This is not going to used in all boards anyway.

Why do you think this cannot be used for all boards?

The GPMC timings are totally based on the onenand chip features.

And these two patches make omap3430sdp to work with the gpmc-onenand code. Sync mode does not work, but it seems like it was never enabled for sdp anyways.

Quoted 5 lines
Quoted 4 lines
Quoted 1 line

Similar patch should work for other boards too.

Setting the sync_write depends on flags and processor, not just flags. Here's a fixed version of this patch.

OK, these both patches seems good to me...

OK, thanks for looking.

Quoted 3 lines

Earlier I was in impression that this patch series is basically to remove board-*-flash.c files. Since in 3430sdp boards we find out 'CS' number for flash devices dynamically in different versions of boards. So, I was confused.

Well looks like those functions are used for at least few boards, so we could have functions like gpmc_probe_onenand() and gpmc_probe_nor() functions that could be called from board-*.c files.

That way we could have generic gpmc-onenand.c and gpmc-nor.c, and still do the necessary probe logic in the board-*.c files.

Regards,

Tony