All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/4] sf: Accessing > 16MBytes flashes in existing 3-byte addr mode.
@ 2013-02-23 11:38 Jagannadha Sutradharudu Teki
  2013-05-25 19:37 ` Jagan Teki
  0 siblings, 1 reply; 4+ messages in thread
From: Jagannadha Sutradharudu Teki @ 2013-02-23 11:38 UTC (permalink / raw)
  To: u-boot

The current implementation in spi_flash supports 3-byte address mode
due to this up to 16MB amount of flash is able to access for those
flashes which has an actual size of > 16MB.

List of flashes:
S25FL256S
N25Q256
N25Q256A
W25Q256(not yet mainlined)

extended/bank address register contains an information to access the
4th byte addressing hence the flashes which has > 16MB can be accessible.

extended/bank address read/write commands in spansion & winbond/stmicro
are different, currently I have added support for spansion.

if the user is giving an offset > 0x1000000 for read/write/erase commands
the implementation will subtract the offset from 0x1000000 and then enable the
extended/bank address register.

[pseudo]
if (offset > 0x1000000) {
        offset -= 0x1000000;
        enable the ext/bank addr register
} else
        disable the ext/bank addr register


Thanks,
Jagan.

Jagannadha Sutradharudu Teki (4):
  sf: Add extended address register writing support
  sf: Add extended address register reading support
  sf: Add extended address access support
  sf: winbond: Add support for W25Q256

 drivers/mtd/spi/spi_flash.c          |  145 ++++++++++++++++++++++++++++++++++
 drivers/mtd/spi/spi_flash_internal.h |   18 ++++
 drivers/mtd/spi/winbond.c            |    5 +
 3 files changed, 168 insertions(+), 0 deletions(-)

-- 
1.7.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH 0/4] sf: Accessing > 16MBytes flashes in existing 3-byte addr mode.
  2013-02-23 11:38 [U-Boot] [PATCH 0/4] sf: Accessing > 16MBytes flashes in existing 3-byte addr mode Jagannadha Sutradharudu Teki
@ 2013-05-25 19:37 ` Jagan Teki
  0 siblings, 0 replies; 4+ messages in thread
From: Jagan Teki @ 2013-05-25 19:37 UTC (permalink / raw)
  To: u-boot

On Sat, Feb 23, 2013 at 5:08 PM, Jagannadha Sutradharudu Teki
<jagannadha.sutradharudu-teki@xilinx.com> wrote:
> The current implementation in spi_flash supports 3-byte address mode
> due to this up to 16MB amount of flash is able to access for those
> flashes which has an actual size of > 16MB.
>
> List of flashes:
> S25FL256S
> N25Q256
> N25Q256A
> W25Q256(not yet mainlined)
>
> extended/bank address register contains an information to access the
> 4th byte addressing hence the flashes which has > 16MB can be accessible.
>
> extended/bank address read/write commands in spansion & winbond/stmicro
> are different, currently I have added support for spansion.
>
> if the user is giving an offset > 0x1000000 for read/write/erase commands
> the implementation will subtract the offset from 0x1000000 and then enable the
> extended/bank address register.
>
> [pseudo]
> if (offset > 0x1000000) {
>         offset -= 0x1000000;
>         enable the ext/bank addr register
> } else
>         disable the ext/bank addr register
>
>
> Thanks,
> Jagan.
>
> Jagannadha Sutradharudu Teki (4):
>   sf: Add extended address register writing support
>   sf: Add extended address register reading support
>   sf: Add extended address access support
>   sf: winbond: Add support for W25Q256
>
>  drivers/mtd/spi/spi_flash.c          |  145 ++++++++++++++++++++++++++++++++++
>  drivers/mtd/spi/spi_flash_internal.h |   18 ++++
>  drivers/mtd/spi/winbond.c            |    5 +
>  3 files changed, 168 insertions(+), 0 deletions(-)
>
> --
> 1.7.4

Thanks for your contribution for new feature setup.
Could you please send the v2 for these > 16MB flash support patch set.

--
Thanks,
Jagan.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH 0/4] sf: Accessing > 16MBytes flashes in existing 3-byte addr mode.
  2013-02-24 15:50 Langer Thomas
@ 2013-02-27 17:48 ` Jagannadha Sutradharudu Teki
  0 siblings, 0 replies; 4+ messages in thread
From: Jagannadha Sutradharudu Teki @ 2013-02-27 17:48 UTC (permalink / raw)
  To: u-boot

Hi Thomas,

> -----Original Message-----
> From: Langer Thomas (LQDE RD ST PON SW)
> [mailto:thomas.langer at lantiq.com]
> Sent: 24 February 2013 21:21
> To: Jagannadha Sutradharudu Teki; u-boot at lists.denx.de
> Cc: Michal at theia.denx.de; Jagannadha Sutradharudu Teki
> Subject: AW: [U-Boot] [PATCH 0/4] sf: Accessing > 16MBytes flashes in
> existing 3-byte addr mode.
>
> Hello Jagan,
>
> thanks for your contribution.
>
> As there is currently no explicit custodian for sf, I would like to give some
> comments to your code.
>
> Am 23.02.2013 12:38, schrieb Jagannadha Sutradharudu Teki:
> > The current implementation in spi_flash supports 3-byte address mode
> > due to this up to 16MB amount of flash is able to access for those
> > flashes which has an actual size of > 16MB.
> >
> > List of flashes:
> > S25FL256S
> > N25Q256
> > N25Q256A
> > W25Q256(not yet mainlined)
> >
> > extended/bank address register contains an information to access the
> > 4th byte addressing hence the flashes which has > 16MB can be accessible.
> >
>
> I don't see a config option described here (and also don't find it in the
> patches).
> Please keep in mind that the code size for existing boards should not
> increase!
> See http://www.denx.de/wiki/U-Boot/DesignPrinciples , points 1 and 5
>
> The code might fit for your use-case, but has influence on other
> boards/systems, and this is not acceptable.
> Please add a config option for this new code and also use the existing
> options, like CONFIG_SPI_FLASH_SPANSION, in your code.

The main reason for not adding CONFIG macro is like this entire support requires
spansion, winbond and numonyx flashes.  I

As I have added support for spansion, I will send few more patches
for winbond and numonyx support as well.

Can I send all the patches again including winbond and numonyx support
with RESEND as prefix?

Is still a config macro required if the code opt for these 3 flashes?

Thanks,
Jagan.



This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH 0/4] sf: Accessing > 16MBytes flashes in existing 3-byte addr mode.
@ 2013-02-24 15:50 Langer Thomas
  2013-02-27 17:48 ` Jagannadha Sutradharudu Teki
  0 siblings, 1 reply; 4+ messages in thread
From: Langer Thomas @ 2013-02-24 15:50 UTC (permalink / raw)
  To: u-boot

Hello Jagan,

thanks for your contribution.

As there is currently no explicit custodian for sf, I would like to give some comments to your code.

Am 23.02.2013 12:38, schrieb Jagannadha Sutradharudu Teki:
> The current implementation in spi_flash supports 3-byte address mode
> due to this up to 16MB amount of flash is able to access for those
> flashes which has an actual size of > 16MB.
> 
> List of flashes:
> S25FL256S
> N25Q256
> N25Q256A
> W25Q256(not yet mainlined)
> 
> extended/bank address register contains an information to access the
> 4th byte addressing hence the flashes which has > 16MB can be accessible.
> 

I don't see a config option described here (and also don't find it in the patches).
Please keep in mind that the code size for existing boards should not increase!
See http://www.denx.de/wiki/U-Boot/DesignPrinciples , points 1 and 5

The code might fit for your use-case, but has influence on other boards/systems,
and this is not acceptable.
Please add a config option for this new code and also use the existing options,
like CONFIG_SPI_FLASH_SPANSION, in your code.

> 
> Thanks,
> Jagan.
> 

Best Regards,
Thomas

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-25 19:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-23 11:38 [U-Boot] [PATCH 0/4] sf: Accessing > 16MBytes flashes in existing 3-byte addr mode Jagannadha Sutradharudu Teki
2013-05-25 19:37 ` Jagan Teki
2013-02-24 15:50 Langer Thomas
2013-02-27 17:48 ` Jagannadha Sutradharudu Teki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.